/* 基础样式 */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #252535;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent: #00d4aa;
    --accent-dark: #00a884;
    --accent-glow: rgba(0, 212, 170, 0.3);
    --border: #2a2a3a;
    --gradient-1: linear-gradient(135deg, #00d4aa 0%, #00a884 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

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

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

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient-1);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tag {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-1);
    color: #000;
}

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

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 通用区域标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* 产品特点 */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 20px;
}

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

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

/* 产品方案 */
.products {
    padding: 100px 0;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-1);
    border-color: var(--accent);
    color: #000;
}

.product-content {
    display: none;
}

.product-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

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

.product-header {
    margin-bottom: 32px;
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-badge.badge-12v {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.product-header h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.specs-list {
    display: grid;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

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

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

/* 产品图片展示 */
.product-gallery {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
}

.gallery-main {
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-primary);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--accent);
}

/* 案例展示 */
.case-section {
    margin-top: 48px;
}

.case-section h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.case-section h4 i {
    color: var(--accent);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.case-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.case-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.case-item span {
    display: block;
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 兼容品牌 */
.compatibility {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.brand-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.brand-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.1);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 16px;
}

.brand-card h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.brand-card ul {
    list-style: none;
}

.brand-card li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 16px;
}

.brand-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* 安装指南 */
.install-guide {
    padding: 100px 0;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

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

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    padding: 8px 16px;
    background: var(--gradient-1);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
}

.step-content h4 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

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

/* 视频教程 */
.video-tutorials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 24px;
}

.video-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 常见问题 */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s;
}

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

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

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

.faq-answer p {
    padding: 0 24px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer img {
    margin: 0 24px 20px;
    max-width: calc(100% - 48px);
    border-radius: 8px;
    cursor: zoom-in;
}

/* 底部 */
.footer {
    padding: 80px 0 40px;
    background: #050508;
    border-top: 1px solid var(--border);
}

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

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h5 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

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

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

.footer-qrcode {
    text-align: center;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    margin-bottom: 12px;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.store-link {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-link:hover {
    background: var(--gradient-1);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* 悬浮客服按钮 */
.chat-float {
    position: fixed;
    right: 24px;
    bottom: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--gradient-1);
    border-radius: 50px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 999;
    transition: all 0.3s;
}

.chat-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.chat-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* 灯箱 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: var(--accent);
    color: #000;
}

/* 响应式 */
@media (max-width: 1024px) {
    .features-grid,
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .install-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .features-grid,
    .brand-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .install-steps {
        grid-template-columns: 1fr;
    }
    
    .product-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stores {
        flex-direction: column;
        width: 100%;
    }
    
    .chat-float {
        right: 16px;
        bottom: 80px;
        padding: 12px 16px;
    }
    
    .chat-float span {
        display: none;
    }
}
