/* ================================
   谟知中转 - 全局样式
   ================================ */

:root {
    --bg-primary: #fdfbf7;
    --bg-secondary: #f7f2e9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(148, 163, 184, 0.3);
    --border-hover: rgba(148, 163, 184, 0.5);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-cyan: #4f46e5;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-pink: #db2777;
    --accent-green: #059669;
    --accent-orange: #d97706;
    --accent-red: #dc2626;
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.12);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 粒子背景 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ================================
   文字工具类
   ================================ */

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

/* ================================
   按钮样式
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn-glow {
    background: var(--gradient-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3), 0 4px 16px rgba(79, 70, 229, 0.2);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-glow);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.5), 0 8px 24px rgba(79, 70, 229, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(79, 70, 229, 0.06);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* ================================
   导航栏
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* ================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    top: auto;
    bottom: -100px;
    left: -150px;
    right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* 终端演示 */
.hero-terminal {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    max-width: 640px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

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

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-orange); }
.dot.green { background: var(--accent-green); }

.terminal-title {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
}

.terminal-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.terminal-copy:hover {
    color: var(--text-primary);
}

.terminal-body {
    padding: 20px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.prompt {
    color: var(--accent-green);
    font-weight: 700;
}

.command {
    color: var(--text-primary);
    font-weight: 500;
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

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

.terminal-output {
    padding-left: 20px;
    border-left: 2px solid var(--border-hover);
}

.output-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.output-line.success {
    color: var(--accent-green);
}

.output-label {
    color: var(--text-muted);
    min-width: 56px;
}

.output-value {
    color: var(--text-primary);
}

.status-ok {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ================================
   Stats Bar
   ================================ */

.stats-bar {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.04), transparent);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.stat-content {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.stat-label {
    width: 100%;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-color);
}

/* ================================
   Section 通用样式
   ================================ */

.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================
   Models Section
   ================================ */

.models-section {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

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

.model-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: var(--shadow-card), 0 12px 40px rgba(79, 70, 229, 0.08);
}

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

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

.model-card.featured {
    border-color: rgba(79, 70, 229, 0.2);
}

.models-tags-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.model-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: default;
}

.model-tag-item.claude {
    background: rgba(217, 119, 87, 0.1);
    color: #D97757;
}

.model-tag-item.claude::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D97757;
}

.model-tag-item.gpt {
    background: rgba(16, 163, 127, 0.1);
    color: #10A37F;
}

.model-tag-item.gpt::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10A37F;
}

.model-tag-item.gemini {
    background: rgba(66, 133, 244, 0.1);
    color: #4285F4;
}

.model-tag-item.gemini::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4285F4;
}

.model-tag-item.deepseek {
    background: rgba(77, 107, 250, 0.1);
    color: #4D6BFA;
}

.model-tag-item.deepseek::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4D6BFA;
}

.model-tag-item.mistral {
    background: rgba(255, 112, 0, 0.1);
    color: #FF7000;
}

.model-tag-item.mistral::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF7000;
}

.model-tag-item.more {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.model-tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.model-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.model-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.model-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.04);
}

.model-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.model-status.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.model-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.model-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ================================
   Compare Section
   ================================ */

.compare-section {
    background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.03), transparent);
}

.compare-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.compare-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-width: 280px;
    text-align: center;
    position: relative;
}

.compare-card.ours {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.1);
}

.compare-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.compare-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 100px;
    transition: width 1.5s ease-out;
}

.compare-card.official .bar-fill {
    background: #cbd5e1;
}

.compare-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.compare-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.compare-detail .highlight {
    color: var(--accent-cyan);
    font-weight: 700;
}

.compare-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
}

.compare-arrow {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.savings-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.saving-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 16px;
}

.saving-model {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.saving-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saving-bar {
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: width 1.5s ease-out;
}

.saving-bar.official-bar {
    background: #e2e8f0;
    color: var(--text-secondary);
}

.saving-bar.ours-bar {
    background: var(--gradient-primary);
    color: #fff;
}

/* ================================
   Channels Section
   ================================ */

.channels-section {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.channels-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.channels-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.channels-table th {
    background: rgba(253, 251, 247, 0.95);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.channels-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.channel-row:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.channel-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.channel-badge {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.hot-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.vip-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.model-chip {
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.rate {
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ================================
   Advantages Section
   ================================ */

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

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

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: var(--shadow-card), 0 12px 40px rgba(79, 70, 229, 0.08);
}

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

.advantage-card:hover .advantage-icon {
    transform: scale(1.08) rotate(-4deg);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-size: 1.25rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.advantage-card:nth-child(2) .advantage-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.advantage-card:nth-child(3) .advantage-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.advantage-card:nth-child(4) .advantage-icon {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.advantage-card:nth-child(5) .advantage-icon {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.advantage-card:nth-child(6) .advantage-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
}

.advantage-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================
   Quick Start Section
   ================================ */

.quickstart-section {
    background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.03), transparent);
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.step-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-cyan);
    opacity: 0.4;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

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

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.25rem;
    padding: 0 8px;
    opacity: 0.5;
}

.connector-line {
    display: none;
}

/* 代码示例 */
.code-examples {
    max-width: 800px;
    margin: 0 auto;
}

.code-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: -1px;
    padding: 0 4px;
}

.code-tab {
    padding: 10px 20px;
    background: rgba(245, 242, 237, 0.8);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.code-tab:hover {
    color: var(--text-secondary);
}

.code-tab.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-cyan);
    border-color: var(--border-hover);
}

.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

.code-block {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.copy-code-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.copy-code-btn:hover {
    color: var(--text-primary);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
}

.code-block code {
    color: var(--text-primary);
}

.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: var(--accent-purple); }
.code-block .string { color: var(--accent-green); }

/* ================================
   Pricing Section
   ================================ */

.pricing-section {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 100px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-cyan);
}

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

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

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.pricing-card.popular {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.08);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 8px;
}

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

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-price .period {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--accent-green);
    font-size: 0.875rem;
}

/* 按量充值 */
.payg-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.payg-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.payg-header p {
    color: var(--text-secondary);
}

.payg-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tier-item {
    display: grid;
    grid-template-columns: 100px 40px 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.tier-item:hover {
    border-color: var(--border-hover);
    background: rgba(0, 0, 0, 0.03);
}

.tier-item.recommended {
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.05);
}

.tier-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 2px 10px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 100px;
}

.tier-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-arrow {
    text-align: center;
    color: var(--text-muted);
}

.tier-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.tier-rate {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.payg-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.payg-note i {
    color: var(--accent-orange);
    margin-top: 2px;
}

/* ================================
   Tools Section
   ================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-size: 1.25rem;
    margin: 0 auto 14px;
}

.tool-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================================
   FAQ Section
   ================================ */

.faq-section {
    background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.03), transparent);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.5);
}

.faq-item.active {
    border-color: rgba(79, 70, 229, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================
   CTA Section
   ================================ */

.cta-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-item i {
    color: var(--accent-green);
}

/* ================================
   Footer
   ================================ */

.footer {
    position: relative;
    z-index: 1;
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-primary), #fffef9);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-cyan);
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.06);
}

.footer-links h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ================================
   动画
   ================================ */

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

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

.reveal.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   响应式设计
   ================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-item {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 8px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding: 8px 0;
    }
    
    .connector-line {
        display: block;
        width: 2px;
        height: 24px;
        background: var(--accent-cyan);
        opacity: 0.3;
    }
    
    .compare-grid {
        flex-direction: column;
    }
    
    .compare-arrow {
        transform: rotate(90deg);
    }
    
    .saving-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tier-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }
    
    .tier-arrow {
        transform: rotate(90deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .code-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .channels-table-wrapper {
        margin: 0 -24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 选中文本颜色 */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--text-primary);
}
