:root {
    --bg: #f6f4ff;
    --paper: #ffffff;
    --ink: #2b2442;
    --muted: #6d648f;
    --line: #ddd9f3;
    --brand: #6c7bff;
    --brand-dark: #4e58d4;
    --accent: #f07ab5;
    --soft: #eef0ff;
    --danger: #b91c1c;
    --success: #166534;
    --shadow: 0 20px 60px rgba(108, 123, 255, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(145, 208, 255, 0.34), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 188, 222, 0.3), transparent 30%),
        radial-gradient(circle at bottom center, rgba(199, 181, 255, 0.26), transparent 34%),
        linear-gradient(180deg, #f5f8ff 0%, #fbf4ff 48%, #f7f2ff 100%);
    background-attachment: fixed;
}
body.menu-open {
    overflow: hidden;
}
a { color: inherit; text-decoration: none; }
pre, textarea { font-family: inherit; white-space: pre-wrap; }
.site-nav a,
.btn-primary,
.btn-secondary,
input,
select,
textarea,
.product-card,
.feature-card,
.notice-card,
.contact-panel,
.detail-card {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(221, 217, 243, 0.92);
    transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
}
.site-header.is-hidden {
    transform: translateY(calc(-100% - 10px));
    opacity: 0;
    pointer-events: none;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand strong {
    display: block;
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand) 0%, #8d73ff 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.brand small, .hero-copy, .site-footer p, .site-footer pre, .notice-card p, .feature-card p, .contact-panel p, .rich-text p {
    color: var(--muted);
}
.rich-text {
    line-height: 1.8;
}
.rich-text h1, .rich-text h2, .rich-text h3 {
    margin: 0.6em 0 0.3em;
}
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { padding: 8px 0; font-weight: 600; }
.site-nav a.active {
    color: var(--brand-dark);
}
.site-nav a:hover { color: var(--brand-dark); }
.site-nav-head,
.site-nav-foot,
.site-nav-close,
.site-nav-service,
.site-nav-phone,
.site-nav-qr {
    display: none;
}
.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    color: var(--brand-dark);
    font: inherit;
    font-weight: 700;
}
.header-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.header-menu-toggle strong {
    font-size: 14px;
}
.header-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.header-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.header-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}
.header-menu-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav-overlay {
    display: none;
}
.header-phone {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.hero { padding: 72px 0 36px; }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.hero h1, .page-banner h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.hero-copy { max-width: 680px; font-size: 18px; line-height: 1.7; }
.home-hero {
    position: relative;
    overflow: clip;
    padding-top: 84px;
}
.home-hero-shell {
    position: relative;
    padding: 32px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 30px 80px rgba(108, 123, 255, 0.12);
    backdrop-filter: blur(14px);
}
.home-hero-copy {
    position: relative;
    z-index: 1;
}
.home-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}
.home-glow-a {
    width: 240px;
    height: 240px;
    top: -48px;
    right: 18%;
    background: radial-gradient(circle, rgba(151, 215, 255, 0.5), transparent 68%);
}
.home-glow-b {
    width: 280px;
    height: 280px;
    right: 2%;
    bottom: -70px;
    background: radial-gradient(circle, rgba(240, 179, 255, 0.42), transparent 72%);
}
.home-glass-panel {
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.home-glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 52%);
    pointer-events: none;
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.hero-metric-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(221, 217, 243, 0.9);
    box-shadow: 0 14px 34px rgba(108, 123, 255, 0.1);
}
.hero-metric-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--brand-dark);
}
.hero-metric-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}
.hero-panel, .detail-card, .contact-panel, .notice-card, .feature-card, .product-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(221, 217, 243, 0.88);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.detail-card:hover,
.contact-panel:hover,
.notice-card:hover,
.feature-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(108, 123, 255, 0.16);
}
.hero-panel {
    padding: 26px;
    background: linear-gradient(145deg, rgba(145, 208, 255, 0.22), rgba(255, 200, 229, 0.22) 52%, rgba(255, 255, 255, 0.96));
}
.hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 18px;
    border: 1px solid var(--line);
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -140%;
    width: 52%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: skewX(-18deg);
    transition: left 0.45s ease;
}
.btn-primary:hover::after,
.btn-secondary:hover::after {
    left: 155%;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tags span, .badge, .eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}
.hero-tags span, .eyebrow { background: rgba(108, 123, 255, 0.12); color: var(--brand-dark); }
.badge { background: rgba(240, 122, 181, 0.14); color: var(--accent); }
.hero-tags span {
    box-shadow: inset 0 0 0 1px rgba(108, 123, 255, 0.06);
}
.hero-tags span:hover {
    transform: translateY(-2px);
    background: rgba(108, 123, 255, 0.18);
}

.section { padding: 34px 0; }
.section.subtle { padding-bottom: 72px; }
.home-section {
    position: relative;
}
.home-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.section-head h2 { margin: 0; font-size: 32px; }

.feature-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.feature-card, .product-card, .notice-card, .contact-panel, .detail-card { padding: 24px; }
.home-lift-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(108, 123, 255, 0.16);
}
.page-home [data-tilt-card] {
    transform-style: preserve-3d;
    will-change: transform;
}
.product-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin-bottom: 16px;
    background: #fff;
}
.feature-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--soft);
    margin-bottom: 14px;
}
.spec-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--muted);
}
.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    font-weight: 700;
}
.product-foot strong, .price-box strong { font-size: 28px; color: var(--brand-dark); }
.page-banner { padding: 52px 0 10px; }
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.category-tabs a {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}
.category-tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.detail-grid { align-items: start; }
.price-box {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(145, 208, 255, 0.24), rgba(240, 122, 181, 0.14));
    margin-bottom: 18px;
}
.product-hero-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--line);
    margin-bottom: 18px;
    background: #fff;
}
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.product-gallery-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table th, .spec-table td {
    text-align: left;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.spec-table th { width: 120px; color: var(--muted); font-weight: 600; }
.related-box { margin-top: 22px; }
.related-box a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}
.consult-card {
    display: grid;
    gap: 16px;
}
.consult-qr-box {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(221, 217, 243, 0.9);
    background: linear-gradient(145deg, rgba(145, 208, 255, 0.18), rgba(240, 122, 181, 0.12), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 40px rgba(108, 123, 255, 0.1);
}
.consult-qr-box.empty {
    background: rgba(255, 255, 255, 0.78);
}
.consult-qr-box strong {
    display: block;
    font-size: 18px;
}
.consult-qr-box p {
    margin: 8px 0 14px;
    color: var(--muted);
    line-height: 1.7;
}
.consult-qr-box img {
    width: min(100%, 220px);
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px;
}
.consult-note {
    display: inline-flex;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(108, 123, 255, 0.1);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
}
.consult-actions {
    display: grid;
    gap: 12px;
}
.consult-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.consult-link.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, #8d73ff 100%);
    box-shadow: 0 14px 30px rgba(108, 123, 255, 0.2);
}
.consult-link.secondary {
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--line);
}
.consult-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(108, 123, 255, 0.16);
}

.stack-form { display: grid; gap: 12px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(108, 123, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(108, 123, 255, 0.12);
}
button { cursor: pointer; border: 0; }
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: var(--paper); border: 1px solid var(--line); }
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(108, 123, 255, 0.18);
}
.page-home [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.page-home [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    background: rgba(251, 248, 255, 0.7);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}
.friend-links {
    display: grid;
    gap: 8px;
}
.friend-links a {
    color: var(--muted);
}
.footer-qr img,
.qr-box img {
    width: 138px;
    height: 138px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}
.qr-box {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}
.narrow { width: min(860px, calc(100% - 32px)); }
.test-ip-box {
    padding: 18px;
    margin-top: 16px;
    border-radius: 18px;
    background: var(--soft);
}

.flash-wrap { padding-top: 20px; }
.alert {
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
}
.alert.success { background: rgba(22, 101, 52, 0.12); color: var(--success); border-color: rgba(22, 101, 52, 0.18); }
.alert.danger { background: rgba(185, 28, 28, 0.1); color: var(--danger); border-color: rgba(185, 28, 28, 0.18); }

.install-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.install-shell { width: min(720px, 100%); }
.install-card {
    padding: 28px;
    background: var(--paper);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.install-form { display: grid; gap: 12px; }
.install-form label { font-weight: 700; }

@media (max-width: 1024px) {
    .hero-grid, .split-grid, .footer-grid, .feature-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    .page-home .header-phone {
        display: none;
    }
    .header-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .home-hero-shell {
        padding: 22px;
    }
    .hero-metrics {
        grid-template-columns: 1fr;
    }
    .header-inner {
        min-height: auto;
        padding: 16px 0;
        align-items: center;
        flex-direction: row;
    }
    .brand {
        min-width: 0;
        flex: 1;
    }
    .brand small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 40;
        display: flex;
        width: min(84vw, 320px);
        height: 100vh;
        padding: 88px 16px 24px;
        flex-direction: column;
        gap: 10px;
        border-left: 1px solid rgba(221, 217, 243, 0.92);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: -18px 0 40px rgba(108, 123, 255, 0.14);
        backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(108%);
        transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.2s ease;
    }
    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }
    .site-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
        padding: 0 6px 8px;
    }
    .site-nav-head strong {
        font-size: 16px;
        color: var(--ink);
    }
    .site-nav-close {
        position: relative;
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(108, 123, 255, 0.08);
        border: 1px solid rgba(221, 217, 243, 0.9);
    }
    .site-nav-close span {
        position: absolute;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: var(--brand-dark);
    }
    .site-nav-close span:first-child {
        transform: rotate(45deg);
    }
    .site-nav-close span:last-child {
        transform: rotate(-45deg);
    }
    .site-nav a {
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(108, 123, 255, 0.06);
    }
    .site-nav a.active {
        background: linear-gradient(135deg, rgba(108, 123, 255, 0.16), rgba(141, 115, 255, 0.14));
        box-shadow: inset 0 0 0 1px rgba(108, 123, 255, 0.16);
    }
    .site-nav-foot {
        display: grid;
        gap: 12px;
        margin-top: auto;
        padding: 14px 6px 0;
    }
    .site-nav-service {
        display: inline-flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: linear-gradient(135deg, #39c36a 0%, #1f9d5b 100%);
        color: #fff;
        font-weight: 700;
        box-shadow: 0 16px 30px rgba(31, 157, 91, 0.22);
    }
    .site-nav-phone {
        display: inline-flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid rgba(221, 217, 243, 0.92);
        color: var(--brand-dark);
        font-weight: 700;
    }
    .site-nav-qr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
        background: linear-gradient(145deg, rgba(145, 208, 255, 0.16), rgba(240, 122, 181, 0.12), rgba(255, 255, 255, 0.92));
        border: 1px solid rgba(221, 217, 243, 0.92);
        text-align: center;
    }
    .site-nav-qr strong {
        color: var(--ink);
        font-size: 14px;
    }
    .site-nav-qr img {
        width: min(100%, 168px);
        aspect-ratio: 1;
        margin: 0 auto;
        object-fit: cover;
        border-radius: 18px;
        background: #fff;
        border: 1px solid var(--line);
        padding: 8px;
    }
    .site-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: block;
        border: 0;
        padding: 0;
        background: rgba(36, 31, 58, 0.18);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }
    .site-nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .header-phone {
        order: 4;
        width: 100%;
        text-align: center;
    }
}
