/* ====== 基础样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    min-height: 100vh;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #00d4ff;
    --accent-secondary: #ff6b6b;
    --border-color: #2a2a2a;
    --success: #4ade80;
    --warning: #fbbf24;
}

/* 浅色主题 */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border-color: #d0d0d0;
    --accent: #00aacc;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .product-card {
    border: 2px solid #b0b0b0;
}

[data-theme="light"] .product-card-gold {
    border: 2px solid #e6b800;
    box-shadow: 0 0 15px rgba(230, 184, 0, 0.25);
}

[data-theme="light"] .product-card-cyan {
    border: 2px solid #00aacc;
}

[data-theme="light"] .btn-primary {
    background: #00aacc;
    color: #ffffff;
}

[data-theme="light"] .btn-gold {
    background: linear-gradient(135deg, #e6b800, #cca300);
    color: #ffffff;
}

[data-theme="light"] .btn-outline {
    border: 2px solid #888888;
    color: #333333;
}

[data-theme="light"] .compare-item .item-label .effect-title {
    color: #00aacc;
}

[data-theme="light"] .item-value {
    font-weight: 700;
}

[data-theme="light"] .item-value.success {
    color: #22c55e;
}

[data-theme="light"] .item-value.warning {
    color: #eab308;
}

[data-theme="light"] .compare-section-title {
    color: #333333;
}

[data-theme="light"] .compare-row {
    border: 1px solid #d0d0d0;
    background: #fafafa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* ====== 导航栏 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}


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

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

[data-theme="light"] .nav-links a {
    color: #555;
}

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

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    margin-left: 12px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ====== 英雄区 ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    flex: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffcc00, #ffa500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

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

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

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

/* ====== 商品展示区 ====== */
.products {
    padding: 80px 40px;
    background: var(--bg-secondary);
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    width: 400px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card.featured {
    border-color: var(--accent);
}

.product-card-gold {
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.product-card-gold:hover {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.product-card-cyan {
    border: 2px solid #00d4ff;
}

.product-card-cyan:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.product-badge-gold {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-original {
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    padding: 20px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.product-subtitle {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ====== 对比总览区 ====== */
.compare {
    padding: 80px 40px;
    background: var(--bg-primary);
}

.compare-table {
    max-width: 800px;
    margin: 0 auto;
}

.compare-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.compare-row {
    display: flex;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.compare-item {
    flex: 1;
    padding: 20px;
    text-align: left;
    border-right: 1px solid var(--border-color);
}

.compare-item:last-child {
    border-right: none;
}

.compare-item .item-label {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 8px;
}

.item-text {
    font-size: 14px;
    color: #888888;
    line-height: 1.8;
    text-align: center;
    margin-top: 8px;
}

.item-text .sep {
    color: #ff6b6b;
    margin: 0 8px;
}

.item-text.mobile-only {
    display: none;
}

.item-text.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .item-text.mobile-only {
        display: block;
    }
    .item-text.desktop-only {
        display: none;
    }
}

.item-value {
    font-size: 32px;
    font-weight: 700;
    margin-top: 12px;
    text-align: center;
}

.item-value.success {
    color: var(--success);
}

.item-value.warning {
    color: var(--warning);
}

.item-note {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    text-align: center;
}

.item-text .tps {
    display: inline;
}

@media (max-width: 768px) {
    .item-text .tps {
        display: none;
    }
}

.cer-explain {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cer-label {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    margin-right: 4px;
}

.effect-title {
    color: #00d4d4;
    font-weight: 600;
}

.compare-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.compare-actions .btn {
    min-width: 200px;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-copy p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ====== 移动端适配 ====== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        justify-content: space-between;
    }
    
    .nav-brand {
        display: none;
    }
    
    .nav-links {
        gap: 16px;
        flex: 1;
        justify-content: flex-start;
    }
    
    .nav-links a {
        display: block;
        font-size: 16px;
    }
    
    .theme-toggle {
        display: block;
        margin-left: auto;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .hero {
        padding: 80px 20px 40px;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .products {
        padding: 60px 20px;
    }
    
    .products-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        width: 100%;
        max-width: 400px;
    }
    
    .compare {
        padding: 60px 20px;
    }
    
    .compare-row {
        flex-direction: row;
    }
    
    .compare-item {
        flex: 1;
        min-width: 0;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }
    
    .compare-item:last-child {
        border-right: none;
    }
    
    .compare-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
