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

:root {
    --primary: #4a9eff;
    --primary-dark: #2d7cd4;
    --bg-dark: #0a0e1a;
    --bg-section: #0f1525;
    --bg-card: #1a2238;
    --text: #e8eaf0;
    --text-muted: #8892a8;
    --border: #2a3454;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
    height: 48px;
    filter: invert(1);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 50%, #0d1b3e 0%, #060b18 100%);
    overflow: hidden;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 24px;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 32px;
    filter: invert(1) drop-shadow(0 0 30px rgba(74, 158, 255, 0.4));
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-slogan {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 44px;
    font-weight: 500;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

.hero-btn {
    display: inline-block;
    padding: 14px 42px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sections */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* About */
.about {
    padding: 100px 0;
    background: var(--bg-section);
}

.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.mission {
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.mission h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.mission p {
    color: var(--text);
    font-size: 16px;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Products */
.products {
    position: relative;
    padding: 100px 0;
    background: var(--bg-section);
    overflow: hidden;
}

.products-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.products .container {
    position: relative;
    z-index: 1;
}

.product-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.product-intro h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.product-intro p {
    color: var(--text-muted);
    font-size: 15px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.product-gallery img:hover {
    transform: scale(1.03);
}

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

.product-qrcode img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.product-qrcode p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
}

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

.footer-contact p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .hero-slogan {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
    }
}
