/* ==================== 设计系统变量 ==================== */
:root {
    /* ===== 字体系统 ===== */
    --font-display: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* ===== 品牌色 - 猎手橙 ===== */
    --color-primary: #FF8C00;
    --color-primary-hover: #E67E00;
    --color-primary-light: #FFF4E6;
    --color-primary-dark: #CC7000;
    
    /* ===== 强调色 - 琥珀金 ===== */
    --color-accent: #F5A623;
    --color-accent-hover: #E09000;
    --color-accent-light: #FFF9E6;
    
    /* ===== 语义色 ===== */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    
    /* ===== 中性色 (浅色模式) ===== */
    --color-bg: #F8FAFC;
    --color-bg-elevated: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F1F5F9;
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;
    
    /* ===== 文字色 (浅色模式) ===== */
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-muted: #94A3B8;
    --color-text-inverse: #FFFFFF;
    
    /* ===== 间距系统 ===== */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* ===== 圆角系统 ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    /* ===== 阴影系统 ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(255, 140, 0, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(255, 140, 0, 0.4);
    
    /* ===== 动效系统 ===== */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== 玻璃拟态 ===== */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;
    
    /* ===== 渐变 ===== */
    --gradient-primary: linear-gradient(135deg, #FF8C00 0%, #F5A623 100%);
    --gradient-primary-hover: linear-gradient(135deg, #E67E00 0%, #E09000 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    
    /* ===== 背景纹理 ===== */
    --bg-grid: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0z'/%3E%3Cpath d='M40 0v40H0V0h40zM1 1v38h38V1H1z' fill='%23E2E8F0' fill-opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
    --bg-dots: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%2394A3B8' fill-opacity='0.15'/%3E%3C/svg%3E");
}

/* ===== 深色模式变量 ===== */
[data-theme="dark"] {
    /* 中性色 (深色模式) */
    --color-bg: #0F172A;
    --color-bg-elevated: #1E293B;
    --color-surface: #1E293B;
    --color-surface-hover: #334155;
    --color-border: #334155;
    --color-border-light: #475569;
    
    /* 文字色 (深色模式) */
    --color-text-primary: #F1F5F9;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #64748B;
    
    /* 玻璃拟态 (深色模式) */
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(51, 65, 85, 0.5);
    
    /* 阴影 (深色模式) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    
    /* 渐变 (深色模式) */
    --gradient-surface: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    
    /* 背景纹理 (深色模式) */
    --bg-grid: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0z'/%3E%3Cpath d='M40 0v40H0V0h40zM1 1v38h38V1H1z' fill='%23334155' fill-opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
    --bg-dots: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%2364748B' fill-opacity='0.3'/%3E%3C/svg%3E");
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    transition: background-color var(--duration-normal) var(--ease-out), 
                color var(--duration-normal) var(--ease-out);
}

/* ==================== 刷新防闪屏（已登录用户） ==================== */
/* 首屏就隐藏介绍页，避免“先回到登录介绍页 -> 又跳回主界面”的闪烁体验 */
.adhunter-preauth #authContainer {
    display: none !important;
}
.adhunter-preauth #appContainer {
    display: flex !important;
}

/* ==================== 滚动式产品介绍登录页 ==================== */

/* 品牌字体 */
.landing-container,
.landing-container * {
    font-family: var(--font-display);
}

/* 主容器 */
.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    scroll-behavior: smooth;
}

/* 固定顶部导航 */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-logo-text {
    font-size: 26px;
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1a1a2e 0%, #ff9f40 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-logo-badge {
    font-size: 10px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin-top: -8px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ff9f40;
}

.nav-login-btn {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 159, 64, 0.3);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 159, 64, 0.4);
}

/* Hero 首屏区域 */
.landing-hero {
    min-height: 100vh;
    padding: 120px 48px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fb 50%, #f0f4f8 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 159, 64, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: floatShape 12s ease-in-out infinite;
}

.hero-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: floatShape 8s ease-in-out infinite 2s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #e67e22;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 159, 64, 0.2);
}

.hero-title {
    margin-bottom: 28px;
}

.hero-title-main {
    display: block;
    font-size: 64px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-sub {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #ff9f40;
    margin-top: 12px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-desc strong {
    color: #2d3748;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #ff9f40;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(255, 159, 64, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 159, 64, 0.45);
}

.hero-btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.hero-btn-secondary:hover {
    border-color: #ff9f40;
    color: #ff9f40;
}

/* Hero 右侧视觉区域 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-card-stack {
    position: relative;
    width: 400px;
    height: 350px;
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-float-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.hfc-1 {
    top: 0;
    left: 0;
    animation: floatCard 4s ease-in-out infinite;
}

.hfc-2 {
    top: 110px;
    left: 80px;
    animation: floatCard 4s ease-in-out infinite 0.5s;
}

.hfc-3 {
    top: 220px;
    left: 40px;
    animation: floatCard 4s ease-in-out infinite 1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hfc-icon {
    font-size: 32px;
}

.hfc-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #a0aec0;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 通用 Section 样式 */
.landing-section {
    padding: 100px 48px;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #e67e22;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 功能介绍区域 */
.section-features {
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 32px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* 模式卡片区域 */
.section-sp-auto {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
}

.section-sp-manual {
    background: linear-gradient(180deg, #fff8f3 0%, #f0f7ff 100%);
}

.section-sb {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8f5ff 100%);
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mode-cards-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.mode-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.mode-card-warm::before {
    background: linear-gradient(90deg, #ff9f40, #ffb347);
}

.mode-card-blue::before {
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

.mode-card-purple::before {
    background: linear-gradient(90deg, #9f7aea, #b794f4);
}

.mode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.mode-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.mode-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.mode-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-features li {
    font-size: 13px;
    color: #718096;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-features li::before {
    content: '✓';
    color: #48bb78;
    font-weight: 700;
    font-size: 12px;
}

/* CTA 区域 */
.section-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    padding: 80px 48px;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-btn {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 159, 64, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 159, 64, 0.5);
}

/* 页脚 */
.landing-footer {
    background: #1a1a2e;
    padding: 40px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-pro {
    font-size: 9px;
    font-weight: 800;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* 登录弹窗 */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: white;
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: #e2e8f0;
    color: #1a1a2e;
}

.auth-modal-page {
    display: none;
}

.auth-modal-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-modal-header p {
    font-size: 15px;
    color: #64748b;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-cards-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto 36px;
    }
    
    .landing-nav-links .nav-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .landing-nav-inner {
        padding: 0 24px;
    }
    
    .landing-hero {
        padding: 100px 24px 60px;
    }
    
    .hero-title-main {
        font-size: 42px;
    }
    
    .hero-title-sub {
        font-size: 20px;
    }
    
    .hero-card-stack {
        width: 300px;
        height: 280px;
    }
    
    .landing-section {
        padding: 60px 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .mode-cards,
    .mode-cards-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==================== 原登录/注册样式（保留给弹窗使用） ==================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左侧品牌区域 */
.auth-brand {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 50%, #ffb300 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-logo {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.brand-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 2px;
}

.brand-features {
    margin-top: 60px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 16px;
    opacity: 0.9;
}

.feature-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 右侧表单区域 */
.auth-form-container {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.auth-header p {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

.auth-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    background: white;
    color: #ff9f40;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.15);
}

.auth-form {
    animation: slideIn 0.3s ease;
}

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

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 4px rgba(255, 159, 64, 0.1);
    background: white;
}

.input-with-btn {
    display: flex;
    gap: 12px;
}

.input-with-btn input {
    flex: 1;
}

.btn-code {
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 159, 64, 0.4);
}

.btn-code:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-auth {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(255, 159, 64, 0.3);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 159, 64, 0.5);
}

.btn-auth:active {
    transform: translateY(-1px);
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.auth-links a {
    color: #ff9f40;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    transition: width 0.3s;
}

.auth-links a:hover::after {
    width: 100%;
}

.auth-links a:hover {
    color: #ffb300;
}

.app-container {
    width: 100%;
    display: flex;
}

/* 响应式设计 - 登录页面 */
@media (max-width: 1024px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .auth-brand {
        padding: 40px;
        min-height: 300px;
    }
    
    .brand-title {
        font-size: 36px;
    }
    
    .brand-features {
        margin-top: 40px;
    }
    
    .auth-form-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 20px;
    }
    
    .auth-card {
        max-width: 100%;
    }
    
    .auth-brand {
        padding: 30px;
    }
    
    .brand-logo {
        font-size: 60px;
    }
    
    .brand-title {
        font-size: 32px;
    }
    
    .brand-subtitle {
        font-size: 14px;
    }
    
    .auth-form-container {
        padding: 30px 25px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
}

/* ==================== SaaS Sidebar (Ant/Semi-inspired) ==================== */
.app-container {
    --sb-accent: var(--color-primary);
    --sb-bg: var(--color-surface);
    --sb-surface: var(--color-surface-hover);
    --sb-text: var(--color-text-secondary);
    --sb-text-strong: var(--color-text-primary);
    --sb-border: var(--color-border);
    --sb-header-h: 64px;
    --sb-w: 280px;
    --sb-w-collapsed: 72px;
}

.app-container.sidebar-collapsed {
    --sb-w: var(--sb-w-collapsed);
}

/* 左侧边栏 */
.sidebar {
    width: var(--sb-w);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--sb-text);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--sb-header-h));
    position: fixed;
    left: 0;
    top: var(--sb-header-h);
    border-right: 1px solid var(--sb-border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: width var(--duration-normal) var(--ease-out), 
                background-color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.sidebar-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--sb-border);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--sb-text-strong);
}

.sidebar-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--sb-text);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-item {
    margin-bottom: 4px;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--sb-text);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
    position: relative;
    border-radius: 8px;
    font-weight: 500;
}

/* 悬停效果：微光 + 背景变化 */
.nav-link:hover {
    background: var(--sb-surface);
    color: var(--sb-text-strong);
}

.nav-link:active {
    background: #F3F4F6;
}

/* 激活状态 */
.nav-item.active > .nav-link {
    background: var(--color-primary-light);
    color: var(--color-primary);
    box-shadow: none;
    font-weight: 600;
}

[data-theme="dark"] .nav-item.active > .nav-link {
    background: rgba(255, 140, 0, 0.15);
    color: var(--color-primary);
}

/* 图标样式 */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: currentColor;
}

.nav-icon svg,
.nav-arrow svg,
.sidebar-collapse-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.nav-text {
    flex: 1;
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: transform 160ms ease, color 160ms ease;
    color: #9CA3AF;
}

.nav-item.has-children.expanded .nav-arrow {
    transform: rotate(180deg);
    color: var(--sb-text-strong);
}

/* 子菜单 - 动效优化 */
.nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* 连接线 */
.nav-children::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sb-border);
    border-radius: 1px;
}

.nav-item.has-children.expanded .nav-children {
    max-height: 600px; /* 足够大以容纳内容 */
}

.nav-child {
    padding: 10px 16px 10px 48px;
    color: var(--sb-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-child:hover {
    color: var(--sb-text-strong);
    background: var(--sb-surface);
}

.nav-child.active {
    color: var(--sb-accent);
    background: rgba(16, 185, 129, 0.10);
    font-weight: 500;
}

.nav-child.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sb-accent);
    box-shadow: none;
}

/* 侧边栏底部 - 用户卡片 */
.sidebar-footer {
    padding: 12px;
    background: var(--sb-bg);
    border-top: 1px solid var(--sb-border);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 10px;
    transition: background-color 160ms ease;
}

.user-info:hover {
    background: var(--sb-surface);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--sb-accent);
    box-shadow: none;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--sb-text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--sb-text);
    margin-top: 2px;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: var(--sb-bg);
    color: var(--sb-text);
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout::before {
    content: ''; /* Logout Icon placeholder if needed, using text for now */
}

.btn-logout:hover {
    background: #FEF2F2;
    color: #EF4444;
    border-color: #FECACA;
}

.btn-logout:active {
    background: #FEE2E2;
}

.sidebar-divider {
    height: 1px;
    background: var(--sb-border);
    margin: 10px 8px;
}

.sidebar-collapse-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    background: var(--sb-bg);
    color: var(--sb-text);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sidebar-collapse-btn:hover {
    background: var(--sb-surface);
    color: var(--sb-text-strong);
}

.sidebar-collapse-btn:active {
    background: #F3F4F6;
}

.app-container.sidebar-collapsed .nav-text,
.app-container.sidebar-collapsed .sidebar-subtitle,
.app-container.sidebar-collapsed .sidebar-header h2,
.app-container.sidebar-collapsed .sidebar-collapse-text,
.app-container.sidebar-collapsed .user-details,
.app-container.sidebar-collapsed .btn-logout {
    display: none;
}

.app-container.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 10px 10px;
}

.app-container.sidebar-collapsed .nav-arrow {
    display: none;
}

/* 主内容区 */
.main-content {
    margin-left: var(--sb-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sb-header-h);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 0 24px 0 calc(var(--sb-w) + 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sb-border);
    box-shadow: var(--shadow-sm);
    z-index: 1100;
    transition: background-color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.header h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sb-text-strong);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--sb-surface);
    transform: translateY(-2px);
}

/* 主题切换按钮 */
.btn-theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-theme-toggle:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: rotate(15deg);
    box-shadow: var(--shadow-md);
}

.btn-theme-toggle:active {
    transform: rotate(0deg) scale(0.95);
}

.btn-theme-toggle .theme-icon-light,
.btn-theme-toggle .theme-icon-dark {
    position: absolute;
    transition: all var(--duration-normal) var(--ease-bounce);
}

.btn-theme-toggle .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.btn-theme-toggle .theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .btn-theme-toggle .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .btn-theme-toggle .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* 页面内容区 */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: calc(var(--sb-header-h) + 20px) 24px 24px;
    background: 
        var(--bg-grid),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-hover) 100%);
    background-attachment: fixed;
    transition: background-color var(--duration-normal) var(--ease-out);
}

/* 表格内输入框 */
.table-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    box-sizing: border-box;
    background: var(--color-surface);
    color: var(--color-text-primary);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.table-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.asin-textarea {
    min-height: 110px;
    resize: vertical;
    font-family: var(--font-mono);
    line-height: 1.5;
}

.number-input {
    text-align: right;
}

.table-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.table-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* 主页欢迎区 */
.welcome-section {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: background-color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.welcome-section h2 {
    font-size: 28px;
    font-family: var(--font-display);
    color: var(--color-text-primary);
    margin-bottom: 30px;
}

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

.stat-card {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    padding: 30px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-glow);
    transition: transform var(--duration-normal) var(--ease-bounce),
                box-shadow var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-glow-lg);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 开发中页面 */
.coming-soon {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.coming-soon h2 {
    font-size: 32px;
    font-family: var(--font-display);
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.coming-soon p {
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* 工具栏 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 20px 0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-bounce),
                box-shadow var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

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

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

.search-box {
    margin-left: auto;
}

.search-box input {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 300px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    transition: background-color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 2000px;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--gradient-primary);
}

.data-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-display);
    color: var(--color-text-inverse);
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color var(--duration-fast) var(--ease-out);
}

.data-table tbody tr:hover {
    background: var(--color-surface-hover);
}

.data-table td {
    padding: 14px 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    border-right: 1px solid var(--color-border-light);
}

.data-table td:last-child {
    border-right: none;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* 操作按钮 */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-edit {
    background: var(--color-info-light);
    color: var(--color-info);
}

.btn-edit:hover {
    background: var(--color-info);
    color: var(--color-text-inverse);
    transform: translateY(-1px);
}

.btn-delete {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-delete:hover {
    background: #ff9f40;
    color: white;
}

/* 清空按钮样式（橙黄色） */
.btn-danger {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.4);
}

/* 表格操作列样式 */
.data-table td:last-child {
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}

.data-table .btn-sm {
    white-space: nowrap;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 0 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #ff9f40;
    color: white;
    border-color: #ff9f40;
}

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

.page-info {
    font-size: 14px;
    color: #6c757d;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    width: 520px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
    padding: 24px 24px 20px;
}

.modal h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1f2933;
}

.modal-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.modal textarea {
    width: 100%;
    min-height: 160px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    resize: vertical;
    font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.modal textarea:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 2px rgba(255, 159, 64, 0.15);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.neg-container {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.neg-block {
    flex: 1;
}

.neg-block h4 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-success {
    background: #d4edda;
    color: #155724;
}

.tag-warning {
    background: #fff3cd;
    color: #856404;
}

.tag-danger {
    background: #f8d7da;
    color: #721c24;
}

.tag-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .header {
        padding: 20px 30px;
    }
    
    .page-content {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .page-content {
        padding: 15px 20px;
    }
    
    .toolbar {
        flex-wrap: wrap;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* SKU 输入框样式 */
.sku-input {
    cursor: text !important;
}

.sku-cell {
    cursor: pointer;
}

.sku-cell small {
    display: block;
    font-size: 10px;
    margin-top: 2px;
}

/* 无否词提示 */
.no-neg-word {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* 进度提示弹窗 */
.progress-toast {
    position: fixed;
    top: 80px;
    right: 30px;
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.progress-icon {
    font-size: 32px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.progress-text {
    flex: 1;
}

.progress-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.progress-desc {
    font-size: 13px;
    color: #718096;
}

.progress-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #cbd5e0;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.progress-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    width: 0%;
    transition: width 0.5s ease;
}

/* 关键词弹窗样式 */
.keyword-modal {
    width: 1400px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.keyword-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.keyword-toolbar label {
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
}

.small-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.keyword-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.keyword-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 0;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-align: center;
}

.keyword-list-header > div {
    padding: 0 12px;
}

.keyword-list-header > div:first-child {
    text-align: left;
}

.keyword-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
    padding: 0;
}

.keyword-input {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.keyword-input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 2px rgba(255, 159, 64, 0.1);
}

.keyword-input.kw-name {
    font-weight: 500;
}

.btn-remove-keyword {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff3e0;
    color: #ff9f40;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-keyword:hover {
    background: #ff9f40;
    color: white;
}

.keyword-cell {
    cursor: pointer;
    transition: all 0.2s;
}

.keyword-cell:hover {
    background: #f8f9fa;
}

.keyword-placeholder {
    padding: 8px;
    display: block;
}

/* 手动广告表格特殊样式 */
#manualDataTable .keyword-cell {
    font-weight: 500;
    text-align: center;
}

/* 商品&类目行样式 */
.product-row .prod-id {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-weight: 600;
}

.product-row .prod-expanded:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ASIN单元格样式 */
.asin-cell {
    cursor: pointer;
    text-align: center;
    padding: 12px;
}

.asin-cell:hover {
    background: #f8f9fa;
}

/* 模式切换开关样式 */
.mode-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.mode-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.mode-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ff9f40;
    transition: 0.3s;
    border-radius: 24px;
}

.mode-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mode-switch input:checked + .mode-slider {
    background-color: #ff9f40;
}

.mode-switch input:checked + .mode-slider:before {
    transform: translateX(26px);
}

.mode-switch input:focus + .mode-slider {
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.2);
}

/* 非阻塞提示Toast */
.toast-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideDown 0.3s ease;
    min-width: 320px;
    max-width: 90vw;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-notification.toast-error {
    border-left: 4px solid #c62828;
}

.toast-notification.toast-success {
    border-left: 4px solid #2e7d32;
}

.toast-notification.toast-warning {
    border-left: 4px solid #ff9f40;
}

.toast-notification.toast-info {
    border-left: 4px solid #ff9f40;
}

.toast-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    background: #fef2f2;
    color: #c62828;
}

.toast-success .toast-icon {
    background: #f0fdf4;
    color: #2e7d32;
}

.toast-warning .toast-icon {
    background: #fffbeb;
    color: #d97706;
}

.toast-info .toast-icon {
    background: #fff7ed;
    color: #ff9f40;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
    word-break: break-word;
}

/* 批量插入弹窗 */
.batch-modal {
    width: 1200px;
    max-width: 95vw;
}

.batch-content {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    min-height: 450px;
}

.batch-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batch-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.batch-textarea {
    width: 100%;
    flex: 1;
    min-height: 450px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 14px;
    resize: none;
    font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    transition: all 0.3s;
}

.batch-textarea:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.15);
}

.batch-hint {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    line-height: 1.7;
    border-left: 4px solid #ff9f40;
}

.batch-hint strong {
    color: #ff9f40;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.batch-hint > div {
    margin-bottom: 6px;
}

.batch-hint .highlight {
    color: #ff9f40;
    font-weight: 600;
}

.batch-hint code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    color: #ff9f40;
    font-weight: 600;
    font-size: 12px;
}

.batch-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb3 100%);
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    line-height: 1.7;
    border-left: 4px solid #ff9f40;
}

.batch-warning strong {
    color: #c62828;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.batch-warning > div {
    margin-bottom: 4px;
}

.batch-warning code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    color: #ff9f40;
    font-weight: 700;
}

.batch-example {
    background: white;
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #495057;
    border: 2px solid #e9ecef;
    flex: 1;
}

.batch-example strong {
    color: #2d3748;
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.example-item {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.example-item code {
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    color: #2d3748;
    font-size: 12px;
    display: block;
    border-left: 3px solid #ff9f40;
}

.example-item .example-note {
    color: #ff9f40;
    font-size: 11px;
    font-style: italic;
    padding-left: 13px;
}

/* 响应式：小屏幕改为上下排版 */
@media (max-width: 1024px) {
    .batch-modal {
        width: 90vw;
    }
    
    .batch-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .batch-left {
        flex: none;
        width: 100%;
    }
    
    .batch-textarea {
        min-height: 300px;
    }
}

/* Toast 错误提示特殊样式 */
.toast-notification.toast-error .toast-message {
    white-space: pre-line;
    line-height: 1.6;
}

/* 主页表格样式 */
.page-header {
    padding: 20px 0;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
}

.page-desc {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

/* ==================== 购买记录页面样式 ==================== */

#purchaseHistoryPage {
    padding: 20px;
}

#purchaseHistoryTable {
    width: 100%;
}

#purchaseHistoryTable th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    padding: 14px 12px;
    font-size: 14px;
    white-space: nowrap;
}

#purchaseHistoryTable td {
    padding: 14px 12px;
    font-size: 14px;
    vertical-align: middle;
}

#purchaseHistoryTable tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* 订单号单元格 */
.order-no-cell .order-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 金额单元格 */
.amount-cell {
    font-weight: 600;
    color: #ef4444;
}

/* 时间单元格 */
.time-cell {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.status-error {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* 卡密单元格 */
.license-cell {
    min-width: 180px;
}

/* 状态/操作列 */
.status-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-sub {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

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

.action-cell {
    white-space: nowrap;
}

.action-muted {
    color: #94a3b8;
}

.btn-action {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-action-primary {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #16a34a;
}

.btn-action-primary:hover {
    background: rgba(34, 197, 94, 0.2);
}

.btn-action-secondary {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: #6366f1;
}

.btn-action-secondary:hover {
    background: rgba(99, 102, 241, 0.16);
}

.no-license {
    color: #94a3b8;
}

.license-code-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy-sm {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.btn-copy-sm:hover {
    opacity: 1;
}

.license-codes-multi .btn-view-codes {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #6366f1;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.license-codes-multi .btn-view-codes:hover {
    background: #6366f1;
    color: white;
}

/* 加载/空/错误状态 */
.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 48px 24px !important;
}

.loading-cell {
    color: #64748b;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    font-size: 48px;
}

.empty-state p {
    color: #64748b;
    font-size: 14px;
}

.empty-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.empty-link:hover {
    text-decoration: underline;
}

.error-cell {
    color: #ef4444;
}

/* 购买记录分页 */
#purchaseHistoryPagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#purchaseHistoryPagination .page-btn {
    padding: 10px 20px;
}

#purchaseHistoryPagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 卡密弹窗 */
#licenseCodesModal .license-codes-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 16px 0;
}

#licenseCodesModal .license-code-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#licenseCodesModal .code-index {
    font-weight: 600;
    color: #64748b;
    min-width: 24px;
}

#licenseCodesModal .license-code {
    flex: 1;
    max-width: none;
}

#dataListTable {
    width: 100%;
}

#dataListTable th {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    font-weight: 600;
}

#dataListTable td {
    text-align: center;
    padding: 15px;
}

#dataListTable tbody tr:hover {
    background: #f8f9fa;
}

/* 确认弹窗样式 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.confirm-header {
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.confirm-icon {
    font-size: 32px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.confirm-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.confirm-body {
    padding: 30px;
}

.confirm-message {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin: 0;
    white-space: pre-line;
}

.confirm-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.confirm-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
}

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

/* ==================== 修改密码弹窗样式 ==================== */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.modal .form-group input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.1);
}

/* 响应式设计 - 登录卡片 */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 25px;
    }
}

/* ==================== 账号信息页面样式 ==================== */

.account-container-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.account-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8e8e8;
}

.header-content {
    flex: 1;
}

.account-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.account-subtitle-new {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-modify-password {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-modify-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.3);
}

.btn-icon {
    font-size: 18px;
}

.account-content-new {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.account-main-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.title-icon {
    font-size: 24px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.info-card-modern:hover {
    border-color: #ff9f40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.15);
}

.card-header-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-icon-modern {
    font-size: 20px;
}

.card-label-modern {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-value-modern {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 卡密卡片 */
.key-card-modern {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 2px solid #ffe0b2;
    border-radius: 12px;
    padding: 24px;
}

.key-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.key-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.key-actions {
    display: flex;
    gap: 10px;
}

.btn-key-action {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-key-action:hover {
    background: #ff9f40;
    color: white;
    border-color: #ff9f40;
}

.btn-copy-modern:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.key-display-modern {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.key-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    color: #1a1a1a;
}

/* 到期信息卡片 */
.expire-card-modern {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    padding: 24px;
}

.expire-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.expire-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expire-label {
    font-size: 14px;
    color: #666;
}

.expire-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.expire-status-modern {
    display: flex;
    align-items: center;
}

.status-badge-modern {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge-modern.status-active {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.status-badge-modern.status-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
}

.status-badge-modern.status-expired {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
}

.expire-footer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.remain-days-label {
    font-size: 14px;
    color: #666;
}

.remain-days-value {
    font-size: 28px;
    font-weight: 700;
    color: #4caf50;
}

.remain-days-unit {
    font-size: 16px;
    color: #666;
}

/* 设备绑定区域 */
.account-side-section {
    display: flex;
    flex-direction: column;
}

.device-section-modern {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 30px;
}

.device-card-modern {
    margin-top: 20px;
}

.device-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.device-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.device-count-modern {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.device-separator {
    margin: 0 8px;
    color: #999;
}

.device-progress-modern {
    margin-bottom: 20px;
}

.progress-bar-modern {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #ff9f40 0%, #ffc107 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.progress-current {
    font-size: 20px;
    font-weight: 700;
    color: #ff9f40;
}

.progress-total {
    color: #999;
}

.device-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.tip-icon {
    font-size: 18px;
}

.tip-text {
    flex: 1;
}

/* 记住密码样式 */
.remember-password-group {
    margin-bottom: 0;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #666;
}

.remember-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9f40;
}

.remember-checkbox:hover {
    color: #ff9f40;
}

.checkbox-label {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .account-content-new {
        grid-template-columns: 1fr;
    }
    
    .device-section-modern {
        position: static;
    }
}

@media (max-width: 768px) {
    .account-container-new {
        padding: 20px;
    }
    
    .account-header-new {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .account-title {
        font-size: 28px;
    }
}

/* ==================== 卡密购买页面样式 ==================== */

.license-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.license-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.license-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.license-section .section-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
}

/* 套餐卡片网格 */
.package-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 套餐卡片 */
.package-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recommend-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.recommend-tag.hot {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.package-header {
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.package-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-symbol {
    font-size: 20px;
    margin-right: 5px;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
}

.price-unit {
    font-size: 16px;
    margin-left: 5px;
    opacity: 0.9;
}

.package-body {
    padding: 25px 20px;
}

.package-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
}

.package-feature .icon {
    font-size: 20px;
    margin-right: 10px;
}

.purchase-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.purchase-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 授权状态 */
.license-active, .license-inactive, .license-error, .license-loading {
    padding: 20px;
    border-radius: 8px;
}

.license-active {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
}

.license-inactive {
    background: #fef3c7;
    border: 1px solid #fde68a;
    text-align: center;
}

.license-error {
    background: #fee;
    border: 1px solid #fcc;
    text-align: center;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.status-header .icon {
    font-size: 24px;
}

.status-body {
    display: grid;
    gap: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.status-item label {
    color: #6b7280;
    font-weight: 500;
}

.status-item span {
    color: #111827;
    font-weight: 600;
}

.status-item span.active {
    color: #10b981;
}

.status-item span.expired {
    color: #ef4444;
}

.status-item span.warning {
    color: #f59e0b;
}

.license-code {
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 设备列表 */
.device-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.device-list h4 {
    margin-bottom: 15px;
    color: #374151;
}

.device-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.device-item.current {
    border-color: #3b82f6;
    background: #eff6ff;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.device-fingerprint {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 13px;
}

.current-tag {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.device-time {
    display: flex;
    gap: 20px;
}

.device-time small {
    color: #9ca3af;
    font-size: 12px;
}

/* 无授权状态 */
.inactive-message {
    color: #78350f;
    margin: 15px 0;
}

.activate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 激活卡密表单 */
.activate-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
}

.license-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.license-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-activate {
    padding: 12px 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 购买记录 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.order-no {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 14px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

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

.order-status.warning {
    background: #fef3c7;
    color: #92400e;
}

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

.order-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-info {
    display: flex;
    gap: 20px;
    color: #374151;
}

.order-time {
    display: flex;
    gap: 20px;
}

.order-time small {
    color: #9ca3af;
    font-size: 12px;
}

.order-licenses {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.order-licenses label {
    display: block;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
}

.license-code-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.license-code-item code {
    flex: 1;
    background: white;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #111827;
}

.copy-btn {
    padding: 6px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* 空状态 */
.empty-history, .history-error {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-history .icon, .history-error .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination button {
    padding: 8px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

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

.pagination span {
    color: #6b7280;
    font-size: 14px;
}

/* 加载状态 */
.license-loading, .history-loading {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .license-container {
        padding: 15px;
    }
    
    .package-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .activate-form {
        flex-direction: column;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .license-code-item {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================== 账号信息页面（AccX v3：玻璃拟态 + 动效） ==================== */

.accx-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 20px;
    padding: 24px;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 159, 64, 0.10), transparent 58%),
                radial-gradient(1000px 520px at 90% 20%, rgba(56, 189, 248, 0.08), transparent 58%),
                radial-gradient(900px 480px at 55% 110%, rgba(255, 193, 7, 0.06), transparent 60%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.accx-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.accx-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(86px);
    opacity: 0.18;
    transform: translate3d(0, 0, 0);
    animation: accxFloat 10s ease-in-out infinite;
}

.accx-orb-1 {
    top: -220px;
    left: -220px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 159, 64, 0.8), rgba(255, 159, 64, 0.05) 60%, transparent 70%);
    animation-duration: 12s;
}

.accx-orb-2 {
    top: -260px;
    right: -260px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.75), rgba(56, 189, 248, 0.05) 60%, transparent 72%);
    animation-duration: 14s;
    animation-direction: reverse;
}

.accx-orb-3 {
    bottom: -260px;
    left: 40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 193, 7, 0.65), rgba(255, 193, 7, 0.05) 60%, transparent 72%);
    animation-duration: 16s;
}

.accx-noise {
    position: absolute;
    inset: 0;
    display: none;
}

.accx-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.accx-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.accx-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accx-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.accx-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

.accx-primary-btn {
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 10px 24px rgba(255, 159, 64, 0.25);
    will-change: transform;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.accx-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 159, 64, 0.35);
}

.btn-icon-wrapper svg {
    display: block;
}

.accx-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
}

.accx-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accx-card {
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accx-card-glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
}

.accx-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 159, 64, 0.28);
    box-shadow: 0 16px 34px -14px rgba(255, 159, 64, 0.28);
}

.accx-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.accx-card-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.accx-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 159, 64, 0.12);
    color: #ff9f40;
}

.accx-ico svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.accx-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.accx-field {
    padding: 14px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.accx-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.accx-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accx-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.accx-chip {
    border: 1px solid rgba(203, 213, 225, 0.6);
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.accx-chip:hover {
    transform: translateY(-2px);
    border-color: #ff9f40;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.15);
}

.accx-chip:active {
    transform: translateY(0);
}

.accx-chip-ok {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
    color: #16a34a;
}

.accx-chip-ok:hover {
    border-color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.accx-keybox {
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
}

/* 卡密盒子的光效 */
.accx-keybox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px 140px at 10% 0%, rgba(255, 159, 64, 0.12), transparent 55%),
                radial-gradient(520px 140px at 90% 110%, rgba(56, 189, 248, 0.10), transparent 55%);
    pointer-events: none;
}

.accx-key {
    display: block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    letter-spacing: 1.2px;
    color: #0f172a;
    user-select: text;
    overflow-wrap: anywhere;
    text-align: center;
}

.accx-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

.accx-kv {
    display: grid;
    gap: 16px;
}

.accx-kv-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.accx-kv-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.accx-kv-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.accx-kv-big {
    font-size: 26px;
    font-weight: 800;
    color: #ff9f40;
    text-shadow: 0 2px 4px rgba(255, 159, 64, 0.1);
}

.accx-unit {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-shadow: none;
}

.accx-device-counter {
    font-weight: 800;
    color: #0f172a;
    font-size: 18px;
}

.accx-muted {
    color: #94a3b8;
    font-weight: 600;
    margin: 0 2px;
}

.accx-progress {
    margin-top: 16px;
}

.accx-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accx-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9f40 0%, #ffc107 100%);
    box-shadow: 0 0 10px rgba(255, 159, 64, 0.4);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accx-progress-text {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

.accx-tip {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 159, 64, 0.08);
    border: 1px solid rgba(255, 159, 64, 0.2);
    color: #d97706;
    font-size: 13px;
    font-weight: 600;
}

.accx-tip-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
}

.accx-tip-ico svg {
    width: 16px;
    height: 16px;
}

.accx-card-sticky {
    position: sticky;
    top: 24px;
}

/* 账号页-激活卡密和购买记录区域 */
.accx-section {
    margin-top: 32px;
}

.accx-card-full {
    width: 100%;
}

.accx-section-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.accx-activate-form {
    display: flex;
    gap: 16px;
    align-items: center;
}

.accx-license-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 1px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #0f172a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.accx-license-input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 4px rgba(255, 159, 64, 0.15);
}

.accx-license-input::placeholder {
    color: #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: normal;
}

.accx-activate-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.2);
}

.accx-loading {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 购买记录列表样式 */
.accx-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accx-order-item {
    padding: 20px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.accx-order-item:hover {
    border-color: #ff9f40;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.accx-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.accx-order-no {
    font-size: 13px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.accx-order-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.accx-order-status.success {
    background: #dcfce7;
    color: #166534;
}

.accx-order-status.warning {
    background: #fef3c7;
    color: #b45309;
}

.accx-order-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.accx-order-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accx-order-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}

.accx-order-time {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.accx-order-time small {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accx-order-licenses {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.accx-order-licenses label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.accx-license-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.accx-license-code-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #0f172a;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.accx-license-code-item .copy-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.accx-license-code-item .copy-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.accx-empty-history {
    padding: 60px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.accx-empty-history .icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.accx-empty-history p {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.accx-history-error {
    padding: 32px;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    background: #fee2e2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.accx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.accx-pagination button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accx-pagination button:hover:not(:disabled) {
    background: #fff7ed;
    border-color: #ff9f40;
    color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.1);
}

.accx-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.accx-pagination span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 640px) {
    .accx-activate-form {
        flex-direction: column;
    }
    .accx-activate-btn {
        width: 100%;
    }
}

/* 状态徽章（由 js/account.js 渲染） */
.accx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.accx-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.accx-badge--ok {
    border-color: rgba(34, 197, 94, 0.2);
    background: #dcfce7;
    color: #15803d;
}

.accx-badge--ok::before {
    background: #16a34a;
}

.accx-badge--warn {
    border-color: rgba(245, 158, 11, 0.2);
    background: #fef3c7;
    color: #b45309;
}

.accx-badge--warn::before {
    background: #d97706;
}

.accx-badge--bad {
    border-color: rgba(239, 68, 68, 0.2);
    background: #fee2e2;
    color: #991b1b;
}

.accx-badge--bad::before {
    background: #dc2626;
}

.accx-badge--none {
    border-color: rgba(148, 163, 184, 0.2);
    background: #f1f5f9;
    color: #64748b;
}

.accx-badge--none::before {
    background: #94a3b8;
}

/* 入场动画：由 JS 加 accx-enter 类触发 */
.accx-page.accx-enter .accx-hero,
.accx-page.accx-enter .accx-card {
    animation: accxEnter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.accx-page.accx-enter .accx-card:nth-child(2) {
    animation-delay: 100ms;
}

.accx-page.accx-enter .accx-card:nth-child(3) {
    animation-delay: 200ms;
}

.accx-page.accx-enter .accx-col-side .accx-card:nth-child(2) {
    animation-delay: 300ms;
}

@keyframes accxEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accxFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 20px, 0) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .accx-orb {
        animation: none;
    }
    .accx-page.accx-enter .accx-hero,
    .accx-page.accx-enter .accx-card {
        animation: none;
    }
    .accx-fill {
        transition: none;
    }
}

@media (max-width: 980px) {
    .accx-grid {
        grid-template-columns: 1fr;
    }
    .accx-card-sticky {
        position: static;
    }
}

@media (max-width: 640px) {
    .accx-page {
        padding: 20px;
    }
    .accx-title {
        font-size: 24px;
    }
    .accx-fields {
        grid-template-columns: 1fr;
    }
}

/* ==================== 固定悬浮客服入口组件 ==================== */
.cs-float-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 触发按钮 - 默认窄条状态 */
.cs-float-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    padding: 14px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.cs-float-trigger:hover {
    width: 48px;
    background: linear-gradient(180deg, #2d2d44 0%, #3d3d5c 100%);
}

.cs-trigger-icon {
    width: 22px;
    height: 22px;
    color: #ff9f40;
    transition: transform 0.3s ease;
}

.cs-trigger-icon svg {
    width: 100%;
    height: 100%;
}

.cs-float-trigger:hover .cs-trigger-icon {
    transform: scale(1.1);
}

.cs-trigger-text {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 4px;
}

/* 展开面板 */
.cs-float-panel {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    width: 260px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: -8px 8px 40px rgba(0, 0, 0, 0.12),
                0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover 展开效果 */
.cs-float-widget:hover .cs-float-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.cs-float-widget:hover .cs-float-trigger {
    border-radius: 0;
}

/* 面板头部 */
.cs-panel-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cs-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.cs-panel-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* 二维码区域 */
.cs-panel-qrcode {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    padding: 8px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cs-float-widget:hover .cs-panel-qrcode {
    border-color: #ff9f40;
    box-shadow: 0 4px 16px rgba(255, 159, 64, 0.15);
}

.cs-panel-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* 联系信息 */
.cs-panel-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cs-info-item:hover {
    background: #f1f5f9;
}

.cs-info-icon {
    width: 18px;
    height: 18px;
    color: #ff9f40;
    flex-shrink: 0;
}

.cs-info-icon svg {
    width: 100%;
    height: 100%;
}

.cs-info-text {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

/* 面板装饰线条 */
.cs-float-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9f40 0%, #ffb347 50%, #ffc857 100%);
    border-radius: 16px 16px 0 0;
}

/* 面板连接三角形 */
.cs-float-panel::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #ffffff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cs-float-widget {
        right: 0;
        top: auto;
        bottom: 100px;
        transform: none;
    }
    
    .cs-float-trigger {
        width: 40px;
        padding: 12px 0;
    }
    
    .cs-float-panel {
        right: 40px;
        width: 240px;
        padding: 20px;
    }
    
    .cs-panel-qrcode {
        width: 160px;
        height: 160px;
    }
    
    .cs-trigger-text {
        font-size: 11px;
        letter-spacing: 3px;
    }
}

/* 小屏幕进一步优化 */
@media (max-width: 480px) {
    .cs-float-widget {
        bottom: 80px;
    }
    
    .cs-float-panel {
        width: 220px;
        padding: 16px;
        right: 40px;
    }
    
    .cs-panel-qrcode {
        width: 140px;
        height: 140px;
        margin-bottom: 16px;
    }
    
    .cs-panel-title {
        font-size: 16px;
    }
    
    .cs-info-text {
        font-size: 12px;
    }
}

/* ==================== 深色模式全局适配 ==================== */

/* 深色模式 - 着陆页 */
[data-theme="dark"] .landing-container {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

[data-theme="dark"] .landing-nav {
    background: var(--glass-bg);
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .landing-hero {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-elevated) 50%, var(--color-surface) 100%);
}

[data-theme="dark"] .hero-title-main {
    background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] .landing-section {
    background: var(--color-bg);
}

[data-theme="dark"] .section-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .section-desc {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .mode-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .feature-title,
[data-theme="dark"] .mode-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .feature-desc,
[data-theme="dark"] .mode-desc {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .hero-float-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .hfc-text {
    color: var(--color-text-primary);
}

/* 深色模式 - 登录页 */
[data-theme="dark"] .auth-page {
    background: var(--color-bg);
}

[data-theme="dark"] .auth-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .auth-form-container {
    background: var(--color-surface);
}

[data-theme="dark"] .auth-input {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

[data-theme="dark"] .auth-input:focus {
    border-color: var(--color-primary);
}

/* 深色模式 - 弹窗 */
[data-theme="dark"] .modal-content {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .modal-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .modal-body {
    color: var(--color-text-secondary);
}

/* 深色模式 - 表单元素 */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--color-text-muted);
}

/* 深色模式 - 表格 */
[data-theme="dark"] .data-table tbody tr:hover {
    background: var(--color-surface-hover);
}

/* 深色模式 - 滚动条 */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--color-bg);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--color-border);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* 深色模式 - 客服浮窗 */
[data-theme="dark"] .cs-float-panel {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .cs-panel-title {
    color: var(--color-text-primary);
}

[data-theme="dark"] .cs-panel-subtitle {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .cs-info-item {
    background: var(--color-bg);
}

[data-theme="dark"] .cs-info-item:hover {
    background: var(--color-surface-hover);
}

[data-theme="dark"] .cs-info-text {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .cs-float-panel::after {
    border-left-color: var(--color-surface);
}

/* 深色模式 - 子导航 */
[data-theme="dark"] .nav-child:hover {
    background: var(--color-surface-hover);
}

[data-theme="dark"] .nav-child.active {
    background: rgba(255, 140, 0, 0.15);
}

/* 深色模式过渡动画 */
html {
    transition: background-color var(--duration-normal) var(--ease-out);
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out) !important;
}

/* ==================== 账号中心仪表盘样式 ==================== */

.acc-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-6);
    animation: accFadeIn 0.5s var(--ease-out);
}

@keyframes accFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面头部 */
.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.acc-header-main {
    flex: 1;
}

.acc-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.5px;
}

.acc-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.acc-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.acc-status-badge {
    display: inline-flex;
}

.acc-status-badge .accx-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.acc-status-badge .accx-badge--ok {
    background: var(--color-success-light);
    color: var(--color-success);
}

.acc-status-badge .accx-badge--warn {
    background: var(--color-warning-light);
    color: #B45309;
}

.acc-status-badge .accx-badge--bad {
    background: var(--color-error-light);
    color: var(--color-error);
}

.acc-status-badge .accx-badge--none {
    background: var(--color-surface-hover);
    color: var(--color-text-muted);
}

/* 主要按钮 */
.acc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-bounce);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.25);
}

.acc-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.acc-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* 幽灵按钮 */
.acc-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 8px 14px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.acc-btn-ghost:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.acc-btn-copy:hover {
    color: var(--color-success);
    border-color: var(--color-success);
}

/* 统计卡片网格 */
.acc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

/* 统计卡片 */
.acc-stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.acc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

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

.acc-stat-card:hover::before {
    opacity: 1;
}

/* 统计图标 */
.acc-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: transform var(--duration-normal) var(--ease-bounce);
}

.acc-stat-card:hover .acc-stat-icon {
    transform: scale(1.1);
}

.acc-stat-icon svg {
    width: 28px;
    height: 28px;
}

.acc-stat-icon-user {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    color: #0284C7;
}

.acc-stat-icon-time {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #FFE4CC 100%);
    color: var(--color-primary);
}

/* 统计内容 */
.acc-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.acc-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-1);
    word-break: break-all;
    max-width: 100%;
}

.acc-stat-value-big {
    font-size: var(--text-4xl);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.acc-stat-unit {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-muted);
}

.acc-stat-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.acc-stat-sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-stat-sub-tip {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-2);
    padding: 4px 10px;
    background: var(--color-surface-hover);
    border-radius: var(--radius-full);
}

/* 环形进度图 */
.acc-stat-card-device {
    flex-direction: row;
    gap: var(--space-5);
    padding: var(--space-5);
}

.acc-stat-card-device .acc-stat-content {
    align-items: flex-start;
    text-align: left;
}

.acc-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.acc-ring-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.acc-ring-bg {
    stroke: var(--color-border-light);
}

.acc-ring-fill {
    stroke: var(--color-success);
    transition: stroke-dashoffset 0.8s var(--ease-out),
                stroke 0.3s var(--ease-out);
}

.acc-ring-fill.acc-ring-full {
    stroke: var(--color-primary);
}

.acc-ring-fill.acc-ring-warning {
    stroke: var(--color-warning);
}

.acc-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.acc-ring-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

/* 区块样式 */
.acc-section {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
}

.acc-section:hover {
    box-shadow: var(--shadow-md);
}

.acc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.acc-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
}

.acc-section-title svg {
    color: var(--color-primary);
}

.acc-section-actions {
    display: flex;
    gap: var(--space-2);
}

.acc-section-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.6;
}

.acc-section-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
}

/* 卡密显示框 */
.acc-license-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    text-align: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.acc-license-box:hover {
    border-color: var(--color-primary);
}

.acc-license-code {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 1px;
    user-select: all;
}

/* 激活表单 */
.acc-activate-form {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
}

.acc-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--color-text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.acc-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.acc-input::placeholder {
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.acc-btn-activate {
    white-space: nowrap;
    padding: 12px 24px;
}

/* 响应式 */
@media (max-width: 900px) {
    .acc-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .acc-stat-card-device {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .acc-dashboard {
        padding: var(--space-4);
    }
    
    .acc-header {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .acc-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .acc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .acc-stat-card-device {
        grid-column: span 1;
    }
    
    .acc-activate-form {
        flex-direction: column;
    }
    
    .acc-btn-activate {
        width: 100%;
        justify-content: center;
    }
}

/* 深色模式 - 仪表盘 */
[data-theme="dark"] .acc-stat-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .acc-stat-icon-user {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(56, 189, 248, 0.15) 100%);
}

[data-theme="dark"] .acc-stat-icon-time {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(245, 166, 35, 0.15) 100%);
}

[data-theme="dark"] .acc-section {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .acc-license-box {
    background: var(--color-bg);
    border-color: var(--color-border);
}

[data-theme="dark"] .acc-input {
    background: var(--color-bg);
    border-color: var(--color-border);
}

[data-theme="dark"] .acc-ring-bg {
    stroke: var(--color-border);
}

[data-theme="dark"] .acc-stat-sub-tip {
    background: var(--color-bg);
}

/* ==================== 帮助中心页面（电梯导航） ==================== */
.help-center-page {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* 左侧固定目录 */
.help-toc {
    width: 240px;
    min-width: 240px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-toc-header {
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.toc-icon {
    font-size: 1.25rem;
}

.toc-title {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

.help-toc-list {
    list-style: none;
    padding: var(--space-3) 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.help-toc-list li {
    margin: 0;
}

.toc-link {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    border-left: 3px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.toc-link:hover {
    color: var(--color-primary);
    background: rgba(255, 140, 0, 0.05);
}

.toc-link.active {
    color: var(--color-primary);
    background: rgba(255, 140, 0, 0.1);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.toc-sub {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-sub-link {
    padding-left: var(--space-6);
    font-size: 13px;
}

/* 右侧滚动内容 */
.help-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
    scroll-behavior: smooth;
}

/* 简介区域 */
.help-intro-box {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(245, 166, 35, 0.03) 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.help-intro-box > p {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.help-intro-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.intro-point {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.point-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.intro-point strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.intro-point p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.help-section {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-border);
}

.help-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.help-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    margin-top: var(--space-4);
}

.help-section h3:first-of-type {
    margin-top: 0;
}

/* 快速上手步骤 */
.help-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.help-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--duration-fast) var(--ease-out);
}

.help-step:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.step-content strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.5;
}

/* 广告模式卡片 */
.help-mode-group {
    margin-bottom: var(--space-4);
}

.help-mode-group:last-child {
    margin-bottom: 0;
}

.help-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
}

.help-mode-card {
    padding: var(--space-4);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--duration-fast) var(--ease-out);
}

.help-mode-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.mode-title {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.mode-desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* 帮助表格 */
.help-table-container {
    overflow-x: auto;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.help-table th,
.help-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.help-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text-primary);
}

.help-table td {
    color: var(--color-text-secondary);
}

.help-table tbody tr:hover {
    background: var(--color-bg);
}

/* FAQ */
.help-faq {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    padding: var(--space-4);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.faq-q {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.faq-a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* 重要提示 */
.help-notice {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(245, 166, 35, 0.05) 100%);
    border-color: rgba(255, 140, 0, 0.3);
}

.help-notice h2 {
    color: var(--color-primary);
    border-color: rgba(255, 140, 0, 0.3);
}

.help-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.help-notice li {
    padding-left: var(--space-5);
    position: relative;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.help-notice li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.help-notice li strong {
    color: var(--color-text-primary);
}

/* 深色模式 - 帮助中心 */
[data-theme="dark"] .help-toc {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .help-toc-header {
    border-color: var(--color-border);
}

[data-theme="dark"] .toc-link:hover {
    background: rgba(255, 140, 0, 0.1);
}

[data-theme="dark"] .toc-link.active {
    background: rgba(255, 140, 0, 0.15);
}

[data-theme="dark"] .help-section {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .help-intro-box {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(245, 166, 35, 0.06) 100%);
    border-color: rgba(255, 140, 0, 0.3);
}

[data-theme="dark"] .intro-point {
    background: var(--color-bg);
    border-color: var(--color-border);
}

[data-theme="dark"] .help-step,
[data-theme="dark"] .help-mode-card,
[data-theme="dark"] .faq-item {
    background: var(--color-bg);
    border-color: var(--color-border);
}

[data-theme="dark"] .help-table th {
    background: var(--color-bg);
}

[data-theme="dark"] .help-notice {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.12) 0%, rgba(245, 166, 35, 0.08) 100%);
}

/* 响应式 - 帮助中心 */
@media (max-width: 900px) {
    .help-center-page {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .help-toc {
        width: 100%;
        min-width: unset;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .help-toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-1);
        padding: var(--space-2);
    }
    
    .help-toc-list li {
        flex-shrink: 0;
    }
    
    .toc-link {
        padding: var(--space-1) var(--space-3);
        border-radius: var(--radius-full);
        border-left: none;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        white-space: nowrap;
    }
    
    .toc-link.active {
        background: var(--color-primary);
        color: white;
        border-color: var(--color-primary);
    }
    
    .toc-sub {
        display: none;
    }
    
    .help-content {
        padding: var(--space-4);
        overflow: visible;
        height: auto;
    }
}

@media (max-width: 640px) {
    .help-section {
        padding: var(--space-4);
    }
    
    .help-steps {
        grid-template-columns: 1fr;
    }
    
    .help-modes {
        grid-template-columns: 1fr;
    }
    
    .help-intro-points {
        gap: var(--space-2);
    }
}
