* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    padding: 40px;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
}

h2 {
    margin-bottom: 20px;
    color: #444;
    font-size: 1.5em;
}

button {
    margin: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#user-info {
    margin-top: 20px;
    text-align: left;
}

.user-info-item {
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    background: #f8f9fa;
}

.user-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.user-info-item pre {
    overflow-x: auto;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #e9ecef;
    font-size: 12px;
}

#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#loading p {
    color: #666;
    font-size: 18px;
}

.error-message {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    background: #f8d7da;
    color: #721c24;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#login-section, #user-info {
    animation: fadeIn 0.5s ease-in-out;
}
.info-panel {
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-in-out;
}

.info-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.info-card h3 {
    margin-bottom: 15px;
    padding-left: 10px;
    color: #495057;
    font-weight: 600;
    font-size: 1.1em;
}

.info-card p {
    margin-bottom: 12px;
    padding-left: 10px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .info-card {
        padding: 15px;
    }
    
    .info-card h3 {
        font-size: 1em;
    }
    
    .info-card p {
        font-size: 13px;
    }
}

/* Token信息展示样式 */
.token-info-section {
    margin: 20px 0;
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    background: #f8f9fa;
}

.token-info-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.token-status {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.token-item:last-child {
    border-bottom: none;
}

.token-item strong {
    color: #495057;
    font-weight: 600;
}

.status-valid {
    color: #28a745;
    font-weight: 600;
}

.status-expired {
    color: #dc3545;
    font-weight: 600;
}

.status-refreshing {
    color: #ffc107;
    font-weight: 600;
}

.progress-bar {
    overflow: hidden;
    margin-top: 10px;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 1s ease-in-out;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .token-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }
    
    .progress-bar {
        margin-top: 15px;
    }
}