/* ====== 基础样式和CSS重置 ====== */
:root {
    /* 主色调 */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* 辅助色 */
    --secondary-50: #f0fdfa;
    --secondary-100: #ccfbf1;
    --secondary-200: #99f6e4;
    --secondary-300: #5eead4;
    --secondary-400: #2dd4bf;
    --secondary-500: #14b8a6;
    --secondary-600: #0d9488;
    --secondary-700: #0f766e;
    --secondary-800: #115e59;
    --secondary-900: #134e4a;
    
    /* 中性色 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-primary-dark: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* 间距 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* 字体 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', monospace;
    
    /* 过渡 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms 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: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-20) 0;
}

/* ====== 排版 ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

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

a:hover {
    color: var(--primary-700);
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* ====== 导航栏 ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-text span {
    color: var(--primary-600);
}

.nav-links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ====== 英雄区域 ====== */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234f46e5' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
}

.stat {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-1);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* ====== 功能特色 ====== */
.features {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    height: 100%;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.feature-desc {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ====== 使用指南 ====== */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
    align-items: start;
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.step:hover {
    transform: translateX(8px);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

/* ====== 支持格式 ====== */
.resources {
    background: var(--gray-50);
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.resource-tag {
    background: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all var(--transition);
}

.resource-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--primary-50);
}

.resource-tag i {
    color: var(--primary-600);
}

/* ====== 下载区域 ====== */
.download {
    background: var(--gradient-primary-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.download .section-title {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.download-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition);
}

.download-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.download-option h3 {
    color: white;
    margin-bottom: var(--space-2);
}

.download-option p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
}

.download-option .btn {
    width: 100%;
    background: white;
    color: var(--primary-600);
}

.download-option .btn:hover {
    background: var(--gray-100);
}

/* ====== 页脚 ====== */
footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-column h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--space-4);
}

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

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-about p {
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary-600);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ====== 语言切换器 ====== */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--gray-400);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    display: none;
    z-index: 100;
    overflow: hidden;
    margin-top: var(--space-2);
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color var(--transition);
    color: var(--gray-700);
    font-size: 0.875rem;
}

.lang-option:hover {
    background: var(--gray-100);
}

.lang-option.active {
    color: var(--primary-600);
    font-weight: 600;
}

.lang-option .check-icon {
    opacity: 0;
    transition: opacity var(--transition);
}

.lang-option.active .check-icon {
    opacity: 1;
}

/* ====== 模态框 ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: var(--space-4);
    backdrop-filter: blur(4px);
}

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

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-2xl);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--space-8);
}

/* ====== 响应式设计 ====== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    section {
        padding: var(--space-12) 0;
    }
    
    .feature-card {
        padding: var(--space-6);
    }
    
    .step {
        padding: var(--space-6);
    }
}

/* ====== 移动端菜单 ====== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    padding: var(--space-8);
    transition: right var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.mobile-nav-link {
    padding: var(--space-3) 0;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: color var(--transition);
}

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

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ====== 广告区域 ====== */
.ad-section {
    padding: var(--space-8) 0;
}

.ad-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 120px;
}

.ad-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
}

.ad-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.ad-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    z-index: 1;
}

.ad-subtext {
    color: var(--gray-600);
    z-index: 1;
}

.ad-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.ad-tag {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: var(--primary-600);
    color: white;
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    z-index: 3;
}

/* ====== Cookie同意弹窗 ====== */
.cookie-consent {
    position: fixed;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--space-8));
    max-width: 500px;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
}

.cookie-consent.active {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-content {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    margin-bottom: var(--space-1);
    color: var(--gray-900);
}

.cookie-text p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.cookie-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.cookie-actions .btn {
    flex: 1;
}

/* ====== 加载动画 ====== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ====== 版本更新页面特定样式 ====== */
.changelog-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: var(--gray-50);
}

.changelog-page .container {
    max-width: 900px;
}

.changelog-page .section-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.changelog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.changelog-filter-btn {
    padding: 0.5rem 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    color: var(--gray-700);
}

.changelog-filter-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.changelog-filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-600);
}

.changelog-search-container {
    margin-bottom: 2rem;
}

.changelog-search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: all var(--transition);
    display: block;
    margin: 0 auto;
}

.changelog-search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.changelog-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.changelog-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.changelog-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.changelog-item-version {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.changelog-item-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.changelog-item-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.changelog-item-badge-major {
    background: var(--error);
    color: white;
}

.changelog-item-badge-minor {
    background: var(--warning);
    color: var(--gray-900);
}

.changelog-item-badge-patch {
    background: var(--success);
    color: white;
}

.changelog-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.changelog-item-tag i {
    font-size: 0.75rem;
}

.changelog-item-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.changelog-item-changes {
    margin-bottom: 1.5rem;
}

.changelog-change-type {
    margin-bottom: 1rem;
}

.changelog-change-type-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.changelog-change-list {
    list-style: none;
    padding-left: 0;
}

.changelog-change-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.changelog-change-item i {
    color: var(--primary-500);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.changelog-item-latest {
    border-left: 4px solid var(--primary-500);
}

.changelog-load-more {
    text-align: center;
    margin-top: 2rem;
}

.changelog-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.changelog-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* ====== 隐私政策页面特定样式 ====== */
.privacy-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: var(--gray-50);
}

.privacy-page .container {
    max-width: 800px;
}

.privacy-page .section-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.privacy-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.privacy-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    color: var(--primary-700);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-100);
}

.privacy-section h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.privacy-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-note {
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.privacy-note p:last-child {
    margin-bottom: 0;
}

.privacy-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.privacy-contact-info {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
}

.privacy-contact-info h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.privacy-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.privacy-contact-item i {
    color: var(--primary-500);
    width: 24px;
}

/* ====== 404错误页面特定样式 ====== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--gray-50);
}

.error-page .container {
    max-width: 600px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.error-icon {
    font-size: 8rem;
    color: var(--primary-300);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.error-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.error-message {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-code {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--gray-700);
    display: inline-block;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-search-container {
    margin-bottom: 3rem;
}

.error-search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.error-search-input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition);
}

.error-search-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.error-search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    cursor: pointer;
    transition: all var(--transition);
}

.error-search-btn:hover {
    background: var(--gradient-primary-dark);
}

.error-quick-links {
    margin-top: 3rem;
}

.error-quick-links h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

.error-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.error-quick-link {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--gray-700);
}

.error-quick-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-600);
}

.error-quick-link i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-500);
}

.error-quick-link h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.error-quick-link p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ====== 响应式调整 ====== */
@media (max-width: 768px) {
    .changelog-page, .privacy-page, .error-page {
        padding-top: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .changelog-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .changelog-filters {
        gap: 0.5rem;
    }
    
    .changelog-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .privacy-content {
        padding: 2rem;
    }
    
    .privacy-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .privacy-actions {
        flex-direction: column;
    }
    
    .privacy-actions .btn {
        width: 100%;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
    }
    
    .error-quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .error-icon {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
    
    .error-message {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .changelog-page, .privacy-page, .error-page {
        padding-top: 90px;
    }
    
    .error-icon {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-content {
        padding: 0 1rem;
    }
    
    .privacy-content {
        padding: 1.5rem;
    }
}

/* 打印优化 */
@media print {
    .privacy-actions, .privacy-contact-info {
        display: none;
    }
    
    .privacy-content {
        box-shadow: none;
        padding: 0;
    }
    
    .changelog-page, .privacy-page {
        padding-top: 0;
    }
}

/* ====== 工具类 ====== */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }