/* ==================== 全局变量 ==================== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1e2844;
    --border-color: #2a3450;
    --text-primary: #f0f4ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ==================== 亮色主题 ==================== */
:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-dark: #6d28d9;
    --accent-glow: rgba(124, 58, 237, 0.25);
    --gradient-hero: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
}

:root[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.85);
}

:root[data-theme="light"] .code-window {
    background: #f8fafc;
}

:root[data-theme="light"] .code-window-header {
    background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .code-window-body {
    color: #475569;
}

:root[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .auth-page::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
}

:root[data-theme="light"] .qrcode-refresh {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}

:root[data-theme="light"] .hero-preview {
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .cta-box::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

/* 主题切换按钮 */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(20deg);
}

/* 主题切换平滑过渡 */
body, .navbar, .feature-card, .tech-item, .auth-card, .auth-input,
.btn, .footer, .cta-box, .stats, .code-window, .workflow-step {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==================== 重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ==================== 容器 ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.navbar .logo .accent-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    height: auto;
}

/* 验证码发送按钮 */
#sendCodeBtn {
    height: 48px;
    border-radius: var(--radius);
}
#sendCodeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

/* ==================== Hero 区 ==================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* 品牌口号 */
.hero p.hero-slogan {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    max-width: none;
    margin: -6px auto 22px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-preview {
    margin-top: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
}

.code-window {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.code-window-header .dot-r { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.code-window-header .dot-y { width: 12px; height: 12px; border-radius: 50%; background: #febc2e; }
.code-window-header .dot-g { width: 12px; height: 12px; border-radius: 50%; background: #28c840; }
.code-window-header .filename {
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Consolas', 'Monaco', monospace;
}

.code-window-body {
    padding: 24px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: left;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-window-body .keyword { color: #c792ea; }
.code-window-body .string { color: #c3e88d; }
.code-window-body .class-name { color: #82aaff; }
.code-window-body .comment { color: #546e7a; }
.code-window-body .type { color: #ffcb6b; }
.code-window-body .ai-comment {
    color: var(--accent-light);
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==================== 统计区 ==================== */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== 区块标题 ==================== */
.section {
    padding: 90px 0;
}

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ==================== 功能卡片 ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-card .feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-card .feature-link:hover {
    gap: 10px;
    color: var(--accent);
}

/* ==================== 技术栈 ==================== */
.tech-section {
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow);
}

.tech-item .tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tech-item .tech-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== 定价区 ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.pricing-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

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

.pricing-header {
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 28px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent);
}

/* ==================== 工作流 ==================== */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.workflow-step .step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
}

.workflow-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== CTA 区 ==================== */
.cta-section {
    padding: 90px 0;
    text-align: center;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-box .hero-actions {
    position: relative;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==================== 登录/注册页 ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(26, 32, 53, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.auth-logo .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-tabs {
    display: flex;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 32px;
    position: relative;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 1;
    position: relative;
    border: none;
    background: transparent;
}

.auth-tab.active {
    color: white;
    background: var(--gradient-1);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.auth-form-group {
    margin-bottom: 22px;
}

.auth-form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.auth-input-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.auth-input-wrapper .toggle-password:hover {
    color: var(--text-secondary);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.88rem;
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-checkbox-wrapper input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-forgot {
    color: var(--accent-light);
    font-weight: 500;
}

.auth-forgot:hover {
    color: var(--accent);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-social {
    display: flex;
    gap: 12px;
}

.auth-social-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.auth-social-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

.auth-social-btn .social-icon {
    font-size: 1.3rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-light);
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--accent);
}

/* ==================== 微信扫码 ==================== */
.wechat-qrcode-section {
    text-align: center;
}

.wechat-qrcode-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.wechat-qrcode-section .wechat-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.qrcode-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.qrcode-box .qrcode-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.qrcode-box .qrcode-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #07c160;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 3px solid white;
}

.qrcode-refresh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 12px;
    cursor: pointer;
}

.qrcode-refresh.show {
    display: flex;
}

.qrcode-refresh .refresh-icon {
    font-size: 2rem;
}

.qrcode-refresh p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wechat-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wechat-status .scan-icon {
    color: #07c160;
    font-size: 1.1rem;
}

/* ==================== 表单提示 ==================== */
.form-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 8px;
}

.form-message.show {
    display: flex;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* ==================== 文档详情页 ==================== */
.docs-wrapper {
    padding: 100px 0 60px;
    min-height: calc(100vh - 200px);
}

.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* ---- 移动端侧栏切换按钮 ---- */
.docs-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    position: sticky;
    top: 76px;
    z-index: 20;
    margin-bottom: 16px;
}
.docs-sidebar-toggle .toggle-icon { font-size: 1.2rem; }

/* ---- 遮罩 ---- */
.docs-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 39;
}

/* ---- 侧栏 ---- */
.docs-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.docs-sidebar-inner {
    padding: 24px 20px;
}

.docs-sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.docs-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* ---- 导航组 ---- */
.docs-nav-group {
    margin-bottom: 4px;
}

.docs-nav-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background .2s;
}
.docs-nav-group-title:hover {
    background: var(--bg-card-hover);
}
.docs-nav-group-title.active {
    color: var(--accent);
}
.docs-nav-group-title .nav-icon { font-size: 1rem; }
.docs-nav-group-title .nav-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform .2s;
}

.docs-nav-sub {
    list-style: none;
    margin: 0;
    padding: 4px 0 4px 24px;
    display: none;
}
.docs-nav-sub.open {
    display: block;
}

.docs-nav-sub li { margin: 0; }

.docs-nav-link {
    display: block;
    padding: 7px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
    transition: all .2s;
}
.docs-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.docs-nav-link.active {
    color: var(--accent);
    background: rgba(59,130,246,.1);
    font-weight: 600;
}

/* ---- 内容区 ---- */
.docs-content {
    min-width: 0;
}

.docs-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}
.docs-section:first-child { padding-top: 0; }
.docs-section:last-child { border-bottom: none; }

.docs-section h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.docs-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 32px 0 16px;
}
.docs-section h2:first-child { margin-top: 0; }
.docs-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 10px;
}
.docs-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
}
.docs-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}
.docs-section .section-lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.docs-section ul,
.docs-section ol {
    padding-left: 22px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}
.docs-section ul li,
.docs-section ol li {
    margin-bottom: 6px;
}
.docs-section strong {
    color: var(--text-primary);
}

/* ---- 信息卡片 ---- */
.docs-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 20px 0;
}
.docs-info-card h4 { margin-top: 0; }
.docs-info-card ul,
.docs-info-card p {
    margin-bottom: 0;
}

/* ---- 步骤列表 ---- */
.docs-steps {
    margin: 24px 0;
}
.docs-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.docs-step:last-child { margin-bottom: 0; }
.docs-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.docs-step .step-body h4 {
    margin-bottom: 4px;
}
.docs-step .step-body p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---- 技术架构列表 ---- */
.docs-tech-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
}
.docs-tech-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
}
.docs-tech-item .tech-badge { font-size: 1.2rem; flex-shrink: 0; }
.docs-tech-item .tech-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 90px;
    font-size: 0.95rem;
}
.docs-tech-item .tech-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ---- FAQ 列表 ---- */
.docs-faq-list {
    margin: 16px 0;
}
.docs-faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}
.docs-faq-item:last-child { border-bottom: none; }
.docs-faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 6px;
}
.docs-faq-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---- 表格 ---- */
.docs-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.docs-table th,
.docs-table td {
    padding: 12px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.docs-table th {
    background: var(--bg-card);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.docs-table td {
    color: var(--text-secondary);
    background: var(--bg-app);
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td:first-child,
.docs-table th:first-child {
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-green { background: rgba(16,185,129,.15); color: #10b981; }
.badge-yellow { background: rgba(245,158,11,.15); color: #f59e0b; }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .pricing-card { padding: 28px 20px; }
    .pricing-price { font-size: 2.2rem; }
    .docs-layout { gap: 28px; }
    .docs-sidebar-inner { padding: 20px 16px; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }
    .hero p.hero-slogan { font-size: 1.15rem; letter-spacing: 0.06em; }
    .section-header h2 { font-size: 1.7rem; }
    .features-grid { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.6rem; }
    .auth-card { padding: 28px 24px; }
    .section { padding: 60px 0; }
    .hero { padding: 110px 0 60px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin: 0 auto; }
    .pricing-card { padding: 32px 24px; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .pricing-price { font-size: 2.6rem; }

    /* 文档页移动端 */
    .docs-wrapper { padding: 80px 0 40px; }
    .docs-layout { grid-template-columns: 1fr; gap: 0; }
    .docs-sidebar-toggle { display: flex; }
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 40;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border-color);
        transform: translateX(-100%);
        transition: transform .3s ease;
    }
    .docs-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.3);
    }
    .docs-sidebar-overlay.show {
        display: block;
    }
    .docs-section h1 { font-size: 1.6rem; }
    .docs-section h2 { font-size: 1.3rem; }
    .docs-section h3 { font-size: 1.1rem; }
    .docs-section { padding: 28px 0; }
    .docs-step { gap: 12px; }
    .docs-tech-item { flex-wrap: wrap; gap: 8px; }
    .docs-tech-item .tech-label { min-width: auto; }
}
