:root {
    /* 背景色系 - 浅色模式 */
    --bg-primary: #F5F0E6;
    --bg-secondary: #F8F4EB;
    --bg-tertiary: #FDFBF7;
    --bg-accent: #EDE8DC;
    
    /* 强调色系 */
    --accent-primary: #C0392B;
    --accent-secondary: #B7950B;
    --accent-dark: #2D3436;
    
    /* 中性色系 - 浅色模式 */
    --text-primary: #2D3436;
    --text-secondary: #4A4A4A;
    --text-tertiary: #888888;
    --border-light: #E0D9CB;
    --border-dark: #C4BBAF;
    
    /* 玻璃拟态色系 - 浅色模式 */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: rgba(192, 57, 43, 0.1);
    --glass-blur: 20px;
    --glass-highlight: rgba(255, 255, 255, 0.5);
}

/* 深色模式 */
body.dark-mode {
    /* 背景色系 - 深色模式 */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f0f23;
    --bg-accent: #1f1f3a;
    
    /* 中性色系 - 深色模式 */
    --text-primary: #F5F0E6;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    --border-light: #374151;
    --border-dark: #4B5563;
    
    /* 玻璃拟态色系 - 深色模式 */
    --glass-bg: rgba(30, 30, 50, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-highlight: rgba(255, 255, 255, 0.1);
}

:root {
    /* 字体系统 */
    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    
    /* 圆角系统 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* 文字大小 */
    --text-hero: 3.5rem;
    --text-subheading: 1.5rem;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: normal;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 8px 32px var(--glass-shadow),
        inset 0 1px 0 var(--glass-highlight);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(192, 57, 43, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-nav {
    background: rgba(245, 240, 230, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(245, 240, 230, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.retro-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transform: rotate(-2deg);
}

.retro-border {
    border: 2px solid var(--border-dark);
    position: relative;
}

.retro-border::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: var(--accent-secondary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
}

.retro-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    margin: var(--space-lg) auto;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    padding: var(--space-md) var(--space-xl);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-xl);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-primary);
    font-weight: normal;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: var(--space-3xl);
}

.hero-content h1 {
    font-size: var(--text-hero);
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-lg);
}

.hero-subtitle {
    font-size: var(--text-subheading);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.features {
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: var(--space-2xl) auto 0;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.products-hero {
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

.products-hero .glass {
    display: inline-block;
    padding: var(--space-3xl);
    text-align: center;
}

.products-hero h1 {
    font-size: 2.5rem;
    margin: var(--space-xl) 0 var(--space-md);
}

.products-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.products-comparison {
    padding: var(--space-2xl) var(--space-xl);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    text-align: center;
}

.product-card.featured {
    border: 2px solid var(--accent-primary);
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-secondary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.recommended {
    background: var(--accent-primary);
}

.product-card h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.product-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin: var(--space-lg) 0;
}

.product-features {
    list-style: none;
    margin: var(--space-xl) 0;
    text-align: left;
}

.product-features li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.specs-hero {
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

.specs-hero .glass {
    display: inline-block;
    padding: var(--space-3xl);
    text-align: center;
}

.specs-hero h1 {
    font-size: 2.5rem;
    margin: var(--space-xl) 0 var(--space-md);
}

.specs-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.specs-content {
    padding: var(--space-2xl) var(--space-xl);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.spec-category h3 {
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent-primary);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.spec-label {
    color: var(--text-secondary);
}

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

.about-hero {
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

.about-hero .glass {
    display: inline-block;
    padding: var(--space-3xl);
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin: var(--space-xl) 0 var(--space-md);
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.about-story {
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about-timeline {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.about-timeline h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.timeline {
    max-width: 800px;
    margin: var(--space-2xl) auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: var(--space-xl);
    position: relative;
    text-align: left;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.footer {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    :root {
        --space-xl: 24px;
        --space-2xl: 32px;
        --space-3xl: 48px;
        --space-4xl: 64px;
        --text-hero: 2rem;
        --text-subheading: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content {
        padding: var(--space-xl);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

/* 主题切换按钮 */
.theme-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

/* 粒子效果容器 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}

/* 鼠标跟踪光晕 */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* 视差滚动背景 */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(192, 57, 43, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(183, 149, 11, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* 3D卡片效果 */
.glass-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card:hover {
    transform: translateY(-4px) rotateX(2deg);
}

/* 涟漪效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 进度条 */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.3s ease;
}

/* 内容需要在粒子之上 */
body > *:not(.particles-container):not(.parallax-bg):not(.mouse-glow):not(.progress-container) {
    position: relative;
    z-index: 2;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card.featured {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}
