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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-box {
    padding: 40px;
}

.login-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.api-section, .result-section, .api-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.api-section h3, .result-section h3, .api-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin-bottom: 10px;
    color: #666;
}

.status-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

#tokenInfo p {
    margin-bottom: 10px;
    font-size: 14px;
}

#tokenInfo strong {
    color: #333;
    width: 60px;
    display: inline-block;
}

#tokenStatus {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

#userInfo {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

#userInfo h4 {
    color: #333;
    margin-bottom: 10px;
}

#userData {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.api-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.api-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

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

.api-item p {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.layui-btn {
    border-radius: 4px;
}

.layui-btn-primary {
    border-color: #667eea;
    color: #667eea;
}

.layui-btn-primary:hover {
    background: #667eea;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 状态颜色 */
.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-logged_in {
    background: #d4edda;
    color: #155724;
}

.status-invalid {
    background: #f8d7da;
    color: #721c24;
}

/* 登录表单样式 */
.layui-form {
    margin-top: 20px;
}

.layui-form-item {
    margin-bottom: 20px;
}

.layui-form-label {
    width: 80px;
    text-align: left;
    padding: 9px 5px;
}

.layui-input-block {
    margin-left: 80px;
}

.layui-input {
    height: 38px;
    border-radius: 4px;
}

.layui-btn-fluid {
    width: 100%;
    height: 42px;
    border-radius: 4px;
}

/* 结果框样式 */
.layui-card {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.layui-card-header {
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.layui-card-body {
    padding: 15px;
}

#resultData {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}