/* ============================================================
   简约大气设计系统 · 双主题
   全平台去水印 API
   ============================================================ */

/* ---------- 设计 Token：浅色模式 ---------- */
:root {
    /* 背景层级 */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-muted: #f1f5f9;
    --bg-input: #f8fafc;
    --bg-overlay: rgba(15, 23, 42, 0.45);

    /* 毛玻璃 */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-blur: 16px;
    --glass-blur-strong: 24px;

    /* 文字层级 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;

    /* 边框与分割线 */
    --border-default: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-subtle: #f1f5f9;

    /* 主色调 - 深邃蓝 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-active: #1e40af;
    --primary-soft: rgba(37, 99, 235, 0.08);

    /* 强调色 - 琥珀金（点缀用） */
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.1);

    /* 语义色 */
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);

    /* 阴影 - 轻盈简约 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --shadow-nav: 0 1px 0 0 var(--border-subtle);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* 动效 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Consolas', 'Monaco', 'Cascadia Code', monospace;

    /* 容器 */
    --container-max: 1120px;
}

/* ---------- 设计 Token：深色模式 ---------- */
[data-theme="dark"] {
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    --bg-muted: #1e293b;
    --bg-input: #0f172a;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    /* 毛玻璃 */
    --glass-bg: rgba(30, 41, 59, 0.68);
    --glass-bg-strong: rgba(30, 41, 59, 0.84);
    --glass-border: rgba(148, 163, 184, 0.16);
    --glass-blur: 16px;
    --glass-blur-strong: 24px;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;

    --border-default: #334155;
    --border-strong: #475569;
    --border-subtle: #1e293b;

    --primary-50: #1e3a5f;
    --primary-100: #1e3a5f;
    --primary-200: #1d4ed8;
    --primary-500: #3b82f6;
    --primary-600: #60a5fa;
    --primary-700: #93c5fd;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-active: #1d4ed8;
    --primary-soft: rgba(59, 130, 246, 0.15);

    --accent-500: #f59e0b;
    --accent-600: #fbbf24;
    --accent-soft: rgba(245, 158, 11, 0.15);

    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.15);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.15);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.15);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-nav: 0 1px 0 0 var(--border-subtle);
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: background-color var(--transition-base), color var(--transition-base);
    position: relative;
}

/* 背景光晕层：为毛玻璃提供层次感 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 800px 500px at 15% -10%, var(--primary-soft) 0%, transparent 55%),
        radial-gradient(ellipse 700px 400px at 90% 10%, var(--accent-soft) 0%, transparent 50%),
        radial-gradient(ellipse 600px 600px at 50% 110%, var(--primary-soft) 0%, transparent 60%);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-hover); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* 选中文字 */
::selection {
    background: var(--primary-soft);
    color: var(--primary-700);
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: var(--space-3);
}

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo::before {
    content: '';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-sm);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 16px;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
    background: var(--bg-muted);
}

.nav-links a:not(.btn).active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}

/* 确保导航栏内的主按钮文字颜色不被覆盖 */
.nav-links .btn-primary {
    color: var(--text-on-primary);
}
.nav-links .btn-primary:hover {
    color: var(--text-on-primary);
}

.nav-user {
    color: var(--text-tertiary);
    font-size: 13px;
    padding: 6px 12px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 20px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-surface);
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--border-strong);
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    background: var(--primary-active);
    border-color: var(--primary-active);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero-wrap {
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 62%);
    pointer-events: none;
    animation: pulseSoft 6s ease-in-out infinite;
}

.hero {
    text-align: center;
    padding: var(--space-12) var(--space-4) var(--space-16);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    line-height: 1.25;
}

.hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto var(--space-5);
    font-weight: 400;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-4);
}

.hero-badge {
    padding: 6px 14px;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   卡片
   ============================================================ */
.soft-card,
.parse-box,
.auth-card,
.admin-section,
.doc-section,
.feature-card,
.platform-item,
.pricing-card,
.stat-card,
.result-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

/* ============================================================
   解析区
   ============================================================ */
.parse-section {
    max-width: 720px;
    margin: -56px auto var(--space-10);
    padding: 0 var(--space-4);
    position: relative;
    z-index: 2;
}

.parse-box {
    padding: var(--space-6);
}

.parse-input-group {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.parse-input-group input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all var(--transition-fast);
}

.parse-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: var(--bg-surface);
}

.parse-input-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.parse-btn {
    padding: 12px 24px;
    white-space: nowrap;
    min-height: 44px;
}

.detect-hint {
    margin-top: var(--space-3);
    padding: 10px 14px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--primary-700);
    font-weight: 500;
}

[data-theme="dark"] .detect-hint {
    color: var(--primary-700);
    border-color: var(--primary-500);
}

.detect-hint strong {
    color: inherit;
    font-weight: 600;
}

/* ============================================================
   结果区
   ============================================================ */
.result-area { margin-top: var(--space-5); display: none; }
.result-area.show { display: block; }

.result-card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.result-block {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-subtle);
}

.result-block:first-of-type {
    margin-top: var(--space-3);
    padding-top: 0;
    border-top: none;
}

.result-block-primary {
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-2);
    border: 1px solid var(--border-default);
}

.result-block-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.result-cover img {
    max-width: 100%;
    max-height: 320px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--bg-muted);
}

.result-caption {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 400;
    color: var(--text-secondary);
}

.result-empty {
    color: var(--text-muted);
    font-size: 14px;
    padding: var(--space-3) 0;
    font-weight: 400;
}

.result-meta {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.result-meta .tag,
.tag {
    background: var(--bg-muted);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.result-video video {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    background: #000;
    object-fit: contain;
}

.result-video-direct .result-video-poster {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--bg-muted);
    display: block;
}

.result-video-placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-default);
}

.btn-download-video {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--text-on-primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-download-video:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.result-hint {
    display: block;
    width: 100%;
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-2);
}

.result-images img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-default);
    aspect-ratio: 1;
}

.result-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}

.result-actions a {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.result-actions a:hover {
    background: var(--primary-hover);
    color: var(--text-on-primary);
}

.btn-copy-caption {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--text-on-primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-copy-caption:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ============================================================
   平台 & 特性
   ============================================================ */
.section-head {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-head h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-2);
}

.section-head p {
    color: var(--text-tertiary);
    font-weight: 400;
    font-size: 14px;
}

.platforms-section {
    padding: var(--space-6) var(--space-4) var(--space-12);
}

.intro-section {
    padding: var(--space-10) var(--space-4) 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.intro-banner {
    padding: var(--space-10) var(--space-8);
    text-align: center;
}

.intro-banner h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

.intro-banner p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    max-width: 640px;
    margin: 0 auto var(--space-5);
    line-height: 1.7;
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.intro-tag {
    padding: 6px 14px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-700);
}

[data-theme="dark"] .intro-tag {
    color: var(--primary-700);
    border-color: var(--primary-500);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.step-card {
    padding: var(--space-6) var(--space-5);
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-on-primary);
    margin-bottom: var(--space-3);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.step-card p {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}

.scene-card {
    padding: var(--space-6) var(--space-5);
}

.scene-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.scene-card p {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-6);
    flex-wrap: wrap;
}

.cta-band-alt {
    background: var(--glass-bg-strong);
}

.cta-band-text h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.cta-band-text p {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.cta-band-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-3);
    max-width: 900px;
    margin: 0 auto;
}

.platform-item {
    padding: var(--space-5) var(--space-2);
    text-align: center;
    transition: all var(--transition-fast);
    border-radius: var(--radius-lg);
}

.platform-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.platform-icon { font-size: 1.75rem; margin-bottom: var(--space-2); }
.platform-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.features-section {
    padding: var(--space-12) var(--space-4);
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card { padding: var(--space-6); }
.feature-card h3 {
    margin-bottom: var(--space-2);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}
.feature-card p {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: var(--space-4); }

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select,
.log-filter {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.log-filter:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: var(--bg-surface);
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: var(--space-2);
    accent-color: var(--primary);
}

.remember-row { margin-bottom: var(--space-3); }
.remember-label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-tertiary);
    cursor: pointer;
    font-weight: 400;
}

/* 蜜罐字段 */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-6) var(--space-4);
    background: var(--bg-base);
}

.auth-card {
    padding: var(--space-8) var(--space-6);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-xl);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: var(--space-2);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.auth-sub, .auth-footer {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: var(--space-5);
    font-weight: 400;
}

.auth-footer a { font-weight: 500; }

/* ============================================================
   用户中心 / 后台
   ============================================================ */
.dashboard-page,
.admin-page {
    padding: var(--space-6) 0 var(--space-12);
}

.dashboard-page h1,
.admin-page h1 {
    margin-bottom: var(--space-6);
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.stat-card {
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--primary);
}

.stat-value-sm {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    line-height: 1.35;
    word-break: break-word;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: var(--space-1);
    font-weight: 400;
}

.admin-section {
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-xl);
}

.admin-section h2 {
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upgrade-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-md);
}

.upgrade-banner strong {
    font-weight: 600;
    color: var(--text-on-primary);
    display: block;
    margin-bottom: var(--space-1);
}

.upgrade-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 0;
    font-weight: 400;
}

.upgrade-banner .btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-on-primary);
}

.upgrade-banner .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-on-primary);
}

.api-key-box {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    background: var(--bg-input);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-top: var(--space-3);
    border: 1px solid var(--border-default);
}

.api-key-box code {
    flex: 1;
    word-break: break-all;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    min-width: 0;
    font-family: var(--font-mono);
}

.quick-links { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pwd-form { max-width: 100%; }
.form-msg { display: block; margin-top: var(--space-3); font-size: 13px; font-weight: 500; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--danger); }
.text-muted { color: var(--text-tertiary); font-size: 13px; font-weight: 400; }

/* 后台分段 Tab */
.admin-tabs {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-6);
    padding: var(--space-1);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
}

.admin-tab {
    flex: 1;
    min-width: max-content;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
}

.admin-tab.active {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-sm);
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.plan-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.plan-regular {
    background: var(--bg-muted);
    color: var(--text-tertiary);
    border: 1px solid var(--border-default);
}

.plan-premium {
    background: var(--accent-soft);
    color: var(--accent-600);
    border: 1px solid var(--accent-500);
}

.settings-form { max-width: 100%; }

/* 表格 */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}

.data-table th,
.data-table td {
    padding: var(--space-3) var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 400;
}

.data-table th {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
    background: var(--bg-muted);
}

.data-table th:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.data-table th:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.data-table code {
    font-size: 11px;
    background: var(--bg-input);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    font-family: var(--font-mono);
    font-weight: 400;
}

.url-cell {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-success { color: var(--success); font-weight: 500; }
.status-failed { color: var(--danger); font-weight: 500; }

.platform-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.platform-stat {
    background: var(--bg-muted);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    gap: var(--space-2);
    align-items: center;
    border: 1px solid var(--border-default);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.platform-count {
    color: var(--primary);
    font-weight: 600;
}

/* 解析记录 */
.log-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.log-filter { width: auto; min-width: 120px; }
.log-summary {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-left: auto;
    font-weight: 400;
}
.log-time { white-space: nowrap; font-size: 12px; }
.log-pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}
.page-info { color: var(--text-tertiary); font-size: 13px; font-weight: 400; }

/* ============================================================
   文档
   ============================================================ */
.docs-page {
    padding: var(--space-6) var(--space-4) var(--space-12);
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.docs-page h1 {
    margin-bottom: var(--space-2);
    font-weight: 700;
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.docs-page > p {
    color: var(--text-tertiary);
    margin-bottom: var(--space-8);
    font-weight: 400;
}

.doc-section {
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-xl);
}

.doc-section h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: 600;
}

.doc-section h3 {
    font-size: 0.95rem;
    margin: var(--space-4) 0 var(--space-2);
    font-weight: 600;
}
.doc-section p, .doc-section li {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 14px;
}
.doc-section ol { padding-left: var(--space-5); line-height: 2; }

.method-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-right: var(--space-2);
}

.method-get {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid var(--success);
}
.method-post {
    background: var(--primary-soft);
    color: var(--primary-700);
    border: 1px solid var(--primary);
}

[data-theme="dark"] .method-post {
    color: var(--primary-700);
}

.code-block {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.55;
    margin: var(--space-3) 0;
    position: relative;
    font-weight: 400;
    color: var(--text-secondary);
}

.code-block .copy-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3) 0;
    font-size: 13px;
}

.param-table th,
.param-table td {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-default);
    text-align: left;
    font-weight: 400;
}

.param-table th {
    background: var(--bg-muted);
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ============================================================
   价格
   ============================================================ */
.pricing-section {
    padding: var(--space-6) var(--space-4) var(--space-12);
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-8) var(--space-6);
    position: relative;
    border-radius: var(--radius-xl);
}

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

.pricing-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-muted);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-default);
}

.pricing-badge.premium {
    background: var(--accent-soft);
    border: 1px solid var(--accent-500);
    color: var(--accent-600);
}

.pricing-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.pricing-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin: var(--space-3) 0 var(--space-5);
    color: var(--primary);
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.pricing-features { list-style: none; margin-bottom: var(--space-5); }

.pricing-features li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 600;
}

.pricing-faq { margin-top: var(--space-10); }
.pricing-faq h2 {
    margin-bottom: var(--space-4);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.15rem;
    text-align: center;
}
.faq-item { margin-bottom: var(--space-4); }
.faq-item h4 {
    margin-bottom: var(--space-1);
    font-weight: 600;
    color: var(--text-primary);
}
.faq-item p {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
}

/* ============================================================
   杂项
   ============================================================ */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-default);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

.error-msg {
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-top: var(--space-3);
    font-size: 14px;
    font-weight: 500;
}

.result-warning {
    color: var(--accent-600);
    margin-top: var(--space-3);
    font-size: 14px;
    font-weight: 500;
    padding: var(--space-3) var(--space-4);
    background: var(--warning-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-500);
}

.footer {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 400;
    margin-top: var(--space-6);
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
}

.footer a { font-weight: 500; }

/* ============================================================
   微信购买弹窗
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-4);
}

.modal-overlay.show { display: flex; }

.modal-panel {
    width: 100%;
    max-width: 400px;
    padding: var(--space-8) var(--space-6) var(--space-6);
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-panel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    text-align: center;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
    margin-bottom: var(--space-5);
}

.modal-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: var(--space-3);
}

.modal-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-tertiary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 400;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.wechat-copy-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.wechat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    width: 100%;
}

.wechat-copy-box code {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    min-width: 0;
    font-family: var(--font-mono);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--glass-bg-strong);
        backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%);
        -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%);
        padding: var(--space-3) var(--space-4) var(--space-4);
        border-top: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
        gap: var(--space-1);
    }

    .nav-links.open { display: flex; }

    .nav-links a,
    .nav-links .btn {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        color: var(--text-secondary);
    }

    /* 移动端主按钮文字保持白色 */
    .nav-links .btn-primary,
    .nav-links .btn-primary:hover {
        color: var(--text-on-primary);
    }

    .navbar { position: sticky; }
    .navbar .container { position: relative; }

    .parse-section { margin-top: -40px; }
    .parse-input-group { flex-direction: column; }
    .parse-btn { width: 100%; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .upgrade-banner { flex-direction: column; text-align: left; }

    .admin-tabs { border-radius: var(--radius-lg); }
    .admin-tab { flex: none; padding: 8px 14px; }

    .data-table { font-size: 12px; min-width: 480px; }
    .data-table th, .data-table td { padding: var(--space-2); }

    .data-table .btn-sm {
        margin: 2px 0;
        padding: 5px 10px;
        font-size: 11px;
    }

    .admin-section .btn-sm { margin-bottom: var(--space-1); }

    .result-images { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: 1fr; }

    .cta-band { flex-direction: column; text-align: left; }
    .cta-band-actions { width: 100%; justify-content: flex-start; }
    .cta-band-actions .btn { flex: 1; min-width: 120px; }

    .steps-grid { grid-template-columns: 1fr; }

    .api-key-box .btn { flex: 1; }
    .log-summary { width: 100%; margin-left: 0; margin-top: var(--space-1); }
    .log-filter { flex: 1; min-width: 0; }

    .intro-banner { padding: var(--space-6) var(--space-5); }
}

@media (min-width: 769px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .container { padding: 0 var(--space-6); }
}

@media (max-width: 380px) {
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   动效系统 · 简约而不简单
   ============================================================ */

/* ---------- 关键帧 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

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

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

@keyframes badgePop {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- 滚动渐入（由 IntersectionObserver 触发） ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 错落延迟，让同组元素依次入场 */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---------- Hero 入场动效 ---------- */
.hero-wrap .hero h1,
.hero-wrap .hero > p,
.hero-wrap .hero-badges {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-wrap .hero h1 { animation-delay: 0.1s; }
.hero-wrap .hero > p { animation-delay: 0.25s; }
.hero-wrap .hero-badges { animation-delay: 0.4s; }

.hero-badge {
    opacity: 0;
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-badge:nth-child(1) { animation-delay: 0.5s; }
.hero-badge:nth-child(2) { animation-delay: 0.62s; }
.hero-badge:nth-child(3) { animation-delay: 0.74s; }

/* ---------- 解析框聚焦光晕 ---------- */
.parse-box {
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.parse-box:focus-within {
    box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-lg);
}

.parse-input-group input:focus {
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- 按钮：光泽划过 + 悬浮 ---------- */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: -1;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -6px var(--primary-soft);
}
.btn-primary:active { transform: translateY(0); }

/* 深色模式：加深按钮背景，保证白字对比度 ≥ 4.5:1 */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-download-video,
[data-theme="dark"] .btn-copy-caption {
    background: #2563eb;
    border-color: #2563eb;
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-download-video:hover,
[data-theme="dark"] .btn-copy-caption:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
[data-theme="dark"] .btn-primary:active {
    background: #1e40af;
    border-color: #1e40af;
}

/* ---------- 卡片悬浮微动效 ---------- */
.soft-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover,
.step-card:hover,
.scene-card:hover,
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

/* 步骤卡片：序号微放大 */
.step-card { position: relative; }
.step-num {
    transition: transform var(--transition-base), color var(--transition-base);
}
.step-card:hover .step-num {
    transform: scale(1.08);
}

/* ---------- 导航栏滚动响应 ---------- */
.navbar {
    transition: background-color var(--transition-base),
                box-shadow var(--transition-base),
                backdrop-filter var(--transition-base);
}
.navbar.scrolled {
    background: var(--glass-bg-strong);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(200%);
}

/* ---------- 主题切换全局过渡 ---------- */
html[data-theme] body,
html[data-theme] .navbar,
html[data-theme] .soft-card,
html[data-theme] .parse-box,
html[data-theme] .btn,
html[data-theme] input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- 主题切换按钮图标过渡 ---------- */
.theme-toggle {
    transition: transform var(--transition-base), background-color var(--transition-fast);
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); }
.theme-toggle:active { transform: rotate(20deg) scale(0.95); }

/* ---------- 链接下划线生长 ---------- */
.nav-links a:not(.btn):not(.theme-toggle) {
    position: relative;
}
.nav-links a:not(.btn):not(.theme-toggle)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width var(--transition-base);
}
.nav-links a:not(.btn):not(.theme-toggle):hover::after,
.nav-links a:not(.btn):not(.theme-toggle).active::after {
    width: 70%;
}

/* ---------- CTA 条带悬浮 ---------- */
.cta-band {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cta-band:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- 徽章呼吸 ---------- */
.hero-badge {
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}
.hero-badge:hover {
    transform: translateY(-2px);
}

/* ---------- 加载骨架微动效 ---------- */
@keyframes skeletonGlow {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-muted) 25%,
        var(--bg-surface-hover) 37%,
        var(--bg-muted) 63%);
    background-size: 200% 100%;
    animation: skeletonGlow 1.4s ease infinite;
}

/* ---------- 无障碍：尊重减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
