/* CSS变量 - 浅蓝主题 */
:root {
    /* 主色调 */
    --primary-color: #80cbc4;
    --primary-dark: #4db6ac;
    --primary-light: #e0f2f1;
    --primary-lighter: #b2dfdb;
    
    /* 背景色 */
    --bg-warm-white: #f5f8ff;
    --bg-warm-gray: #eef4ff;
    --bg-white: #ffffff;
    
    /* 文字颜色 */
    --text-primary: #333333;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-dark: #1a202c;
    
    /* 边框颜色 */
    --border-light: #e2e8f0;
    --border-gray: #d1d5db;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 25px rgba(128, 203, 196, 0.18);
    --shadow-xl: 0 10px 40px rgba(77, 182, 172, 0.28);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #80cbc4 0%, #4db6ac 100%);
    --gradient-bg: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 性能优化 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-warm-white);
    margin: 0;
    padding: 0;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-name {
    font-weight: 600;
}

.logo {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

/* 响应式导航 */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.25rem;
    background: #f7fafc;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background: transparent;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #e2e8f0;
    color: var(--primary-dark);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(128, 203, 196, 0.3);
}

/* 验证码 */
.captcha-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.captcha-group label {
    min-width: 90px;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: right;
    flex-shrink: 0;
}

.captcha-question {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.captcha-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    min-height: 52px;
    box-sizing: border-box;
}

.captcha-refresh {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.3s ease;
    z-index: 10;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

.captcha-refresh:active {
    transform: rotate(360deg);
}

.captcha-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 密码可见性切换 */
.password-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    line-height: 1;
}

.password-toggle:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle.active {
    opacity: 0.8;
}

/* 记住我复选框 */
.remember-group {
    margin-bottom: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-label {
    min-width: auto !important;
    text-align: left !important;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-large.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.btn-large.btn-secondary:hover {
    background: transparent;
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    min-height: 52px;
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero 区域 */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 特性区域 */
.features {
    padding: 4rem 0;
    background: #faf9f7;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    padding: 1rem;
    background: var(--gradient-bg);
    border-radius: 50%;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #2d3748;
}

.feature-desc {
    color: #718096;
    line-height: 1.6;
}

/* 色彩预览 */
.color-preview {
    padding: 4rem 0;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.palette-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.palette-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.palette-name {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.1rem;
}

.palette-colors {
    display: flex;
    gap: 0.5rem;
}

.color-box {
    flex: 1;
    height: 70px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-box:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

/* CTA 区域 */
.cta {
    background: var(--bg-warm-gray);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 认证页面 */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f8ff 0%, #e0f2f1 100%);
    padding: 3rem 2rem;
}

.auth-card {
    width: 100%;
    max-width: 900px;
    background: white;
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 15px 50px rgba(128, 203, 196, 0.15);
    transform: translateY(-2px);
}

/* 注册页面特殊布局 */
body:has([id="registerForm"]) .auth-card,
.register-page .auth-card {
    max-width: 1000px;
    gap: 3.5rem;
}

.register-page .auth-header {
    margin-bottom: 0;
}

.register-page .form-group {
    margin-bottom: 1.25rem;
}

.register-page .form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.register-page .form-group input {
    padding: 0.875rem 1.125rem;
    min-height: 50px;
    font-size: 1rem;
}

.register-page .auth-footer {
    padding-top: 1.5rem;
    border-top: none;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 8px 25px rgba(128, 203, 196, 0.3);
    transition: transform 0.3s ease;
}

.auth-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.auth-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 320px;
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0;
}

.auth-form .form-group label {
    min-width: auto;
    text-align: left;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-form .form-group input,
.auth-form .form-group .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    min-height: 52px;
    box-sizing: border-box;
}

.form-group input:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(128, 203, 196, 0.15);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #a0aec0;
    font-size: 0.95rem;
}

.auth-form button[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
}

.auth-footer {
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    grid-column: 2;
}

.auth-footer p {
    margin: 0;
    line-height: 1.6;
}

.auth-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.auth-footer a:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

/* 定价页面 */
.pricing-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-warm-white) 0%, var(--bg-warm-gray) 100%);
}

.pricing-section .section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.pricing-section .section-subtitle {
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.pricing-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 700;
    color: #2d3748;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.4;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-card .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 支付选项 */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-options .btn {
    margin-bottom: 0;
}

/* 支付宝微信支付样式 */
.payment-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 8px;
}

.payment-status {
    text-align: center;
    margin: 2rem 0;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.checkmark {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: checkmarkPop 0.5s ease-out;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#qrcode-container {
    text-align: center;
    padding: 1rem;
}

#qrcode-container p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* 二维码图片样式 */
.qr-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.qr-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
}

.qr-option:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0.5;
    object-fit: cover;
}

.qr-code.loaded {
    opacity: 1;
}

.qr-option:hover .qr-code {
    box-shadow: 0 8px 25px rgba(128, 203, 196, 0.2);
    transform: scale(1.05);
}

.qr-label {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.qr-option.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.qr-option.selected .qr-label {
    color: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-images {
        flex-direction: column;
        gap: 1rem;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"],
.auth-form input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: white !important;
    box-sizing: border-box !important;
    display: block !important;
    min-height: 44px !important;
}

.form-control:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 203, 196, 0.1);
}

/* 认证页面样式 */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: var(--bg-warm-white);
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 复选框样式 */
.remember-group {
    margin-bottom: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    margin-bottom: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
    font-size: 0.9rem;
}

input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    display: inline-block !important;
    min-height: auto !important;
    padding: 0 !important;
}

/* 警告框样式 */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fed7aa;
    color: #d97706;
}

/* 按钮样式 */
.btn,
button.btn,
.auth-form button {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
    min-height: 44px !important;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-warm-gray);
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 控制台和管理页面 */
.dashboard-section, .admin-section {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Dashboard布局 */
.dashboard-layout {
    display: block;
    width: 100%;
}

.dashboard-main {
    width: 100%;
}

/* 订阅状态和API密钥横排两列布局 */
.dashboard-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 2rem;
}

.dashboard-cards-grid > .card {
    margin-bottom: 0 !important;
}

/* 响应式：小屏幕时改为单列 */
@media (max-width: 992px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-cards-grid > .card {
        margin-bottom: 1.5rem !important;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
    font-size: 1.25rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

.code-example {
    margin-bottom: 1.5rem;
}

.code-example h4 {
    margin-bottom: 0.5rem;
}

.code-example pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0ea5e9;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.data-table code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* 提示框 */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-success::before {
    content: '✓';
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-error::before {
    content: '✕';
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.info-card {
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.info-card .card-header {
    border-bottom-color: #93c5fd;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* 工具类 */
.text-muted {
    color: #666;
}

.text-error {
    color: var(--primary-dark);
}

.text-sm {
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 响应式 */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 平板设备 - 切换为单列布局 */
@media (max-width: 992px) {
    .auth-card {
        max-width: 600px;
        padding: 3rem 2.5rem;
        grid-template-columns: 1fr;
    }
    
    .register-page .auth-card {
        max-width: 650px;
    }
    
    .auth-footer {
        grid-column: 1;
    }
}

/* 小平板设备 */
@media (max-width: 768px) {
    .auth-section {
        padding: 2rem 1.5rem;
    }
    
    .auth-card {
        max-width: 100%;
        padding: 2.5rem 2rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .register-page .auth-card {
        max-width: 100%;
        padding: 2.5rem 2rem;
    }
    
    .auth-header {
        padding: 0.5rem;
    }
    
    .auth-icon {
        width: 80px;
        height: 80px;
        font-size: 2.25rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-subtitle {
        font-size: 1.05rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-group label {
        min-width: auto;
        text-align: left;
    }
    
    .form-group input {
        width: 100%;
        padding: 0.9rem 1.1rem;
        min-height: 48px;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .captcha-group label {
        min-width: auto;
        text-align: left;
    }
    
    .captcha-group input {
        width: 100%;
    }
    
    .captcha-refresh {
        right: 0.75rem;
        top: auto;
        bottom: 0.75rem;
        transform: none;
    }
    
    .auth-footer {
        grid-column: 1;
    }
}

/* 手机设备 */
@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .lang-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .pricing-title {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.8rem;
    }
    
    .pricing-features li {
        font-size: 0.9rem;
    }
    
    .auth-section {
        padding: 1.5rem 1rem;
        min-height: 100vh;
    }
    
    .auth-card {
        width: 100%;
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .auth-header {
        padding: 0;
    }
    
    .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.125rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.45rem;
    }
    
    .form-group input {
        padding: 0.85rem 1rem;
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .register-page .auth-card {
        max-width: 100%;
    }
    
    .register-page .form-group {
        margin-bottom: 1rem;
    }
    
    .register-page .form-group input {
        padding: 0.8rem 1rem;
        min-height: 46px;
    }
    
    .btn-block {
        padding: 0.95rem 1.75rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .auth-footer {
        padding-top: 1.5rem;
        font-size: 0.9rem;
        grid-column: 1;
    }
    
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .alert::before {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
    .auth-section {
        padding: 1rem 0.75rem;
    }
    
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .auth-header {
        padding: 0;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.875rem;
        min-height: 46px;
        font-size: 0.9rem;
    }
    
    .register-page .form-group {
        margin-bottom: 0.875rem;
    }
    
    .register-page .form-group input {
        padding: 0.7rem 0.875rem;
        min-height: 44px;
        font-size: 0.875rem;
    }
    
    .btn-block {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .auth-footer {
        padding-top: 1.25rem;
        font-size: 0.85rem;
        grid-column: 1;
    }
    
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .alert::before {
        font-size: 0.95rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}
