:root {
    --bg: #07111f;
    --panel: rgba(9, 20, 39, 0.86);
    --panel-2: rgba(11, 27, 52, 0.88);
    --line: rgba(104, 223, 255, 0.16);
    --line-strong: rgba(104, 223, 255, 0.32);
    --ink: #e7f5ff;
    --muted: #8ca8c2;
    --primary: #69dfff;
    --accent: #19f0c1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(105, 223, 255, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(110, 123, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #07101e 0%, #050a14 44%, #02060d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(105, 223, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 223, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.45;
}

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

button,
input {
    font: inherit;
}

.home-shell {
    width: min(100% - 16px, 1240px);
    margin: 0 auto;
    padding: 10px 0 30px;
}

.topbar,
.section-head,
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.topbar {
    align-items: center;
    margin-bottom: 14px;
}

.brand {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel,
.search-panel,
.category-card,
.product-card,
.info-card,
.faq-item,
.site-footer {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(9, 20, 39, 0.92), rgba(5, 12, 24, 0.94));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.section-kicker,
.slide-tag,
.product-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-head h2 {
    margin: 10px 0;
    line-height: 1.04;
}

.hero-copy h1 {
    font-size: 34px;
}

.hero-copy p,
.search-copy span,
.product-card p,
.info-card li,
.faq-answer p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
}

.button.primary {
    background: linear-gradient(90deg, rgba(105, 223, 255, 0.24), rgba(25, 240, 193, 0.16));
}

.button.ghost {
    background: rgba(255, 255, 255, 0.02);
}

.hero-slider {
    display: grid;
    gap: 12px;
}

.slide-track {
    position: relative;
    min-height: 220px;
}

.slide-card {
    display: none;
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(105, 223, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(12, 28, 54, 0.96), rgba(7, 17, 31, 0.96));
    border: 1px solid rgba(104, 223, 255, 0.14);
}

.slide-card.is-active {
    display: block;
}

.slide-card h2 {
    margin: 12px 0;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
}

.slider-dots button.is-active {
    background: var(--primary);
}

.search-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    margin-top: 16px;
}

.search-copy {
    display: grid;
    gap: 6px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(104, 223, 255, 0.18);
    background: rgba(5, 12, 24, 0.92);
    color: var(--ink);
}

.section {
    padding-top: 34px;
}

.section-head {
    flex-direction: column;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.category-grid,
.product-grid,
.info-grid,
.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.category-card,
.product-card,
.info-card {
    padding: 18px;
}

.category-card strong,
.product-card h3,
.info-card h3 {
    display: block;
    margin-bottom: 8px;
}

.category-card span {
    color: var(--muted);
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.filter-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

.filter-chip.is-active {
    color: var(--ink);
    background: rgba(105, 223, 255, 0.16);
    border-color: var(--line-strong);
}

.product-card.is-hidden {
    display: none;
}

.card-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(105, 223, 255, 0.08);
    border: 1px solid rgba(105, 223, 255, 0.14);
}

.info-card ol,
.info-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-question {
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 0;
    color: var(--ink);
    text-align: left;
    font-weight: 700;
}

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

.faq-answer p {
    margin: 0;
    padding: 0 18px 18px;
}

.faq-item.is-open .faq-answer {
    max-height: 200px;
}

.site-footer {
    flex-direction: column;
    margin: 34px 0 8px;
    padding: 18px;
}

.footer-links a {
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(105, 223, 255, 0.08);
    text-align: center;
}

.nav-dropdown {
    position: relative;
}

.nav-toggle {
    width: 56px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(90deg, rgba(105, 223, 255, 0.14), rgba(110, 123, 255, 0.14));
}

.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.nav-toggle-icon span {
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    min-width: min(280px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(104, 223, 255, 0.22);
    background: linear-gradient(180deg, rgba(4, 12, 24, 0.99), rgba(3, 8, 18, 0.99));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.nav-dropdown.is-open .nav-links {
    display: flex;
}

.nav-dropdown.is-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-dropdown.is-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.nav-dropdown.is-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(104, 223, 255, 0.12);
    background: rgba(105, 223, 255, 0.05);
}

@media (min-width: 768px) {
    .home-shell {
        width: min(100% - 28px, 1240px);
        padding-top: 18px;
    }

    .hero-panel,
    .search-panel {
        padding: 22px;
    }

    .hero-copy h1 {
        font-size: 48px;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .button {
        width: auto;
        min-width: 160px;
    }

    .category-grid,
    .product-grid,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .search-panel,
    .site-footer,
    .section-head {
        grid-template-columns: unset;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .search-panel {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .hero-panel {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: stretch;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}
