:root {
    --bg: #0b1220;
    --bg-soft: #0f1b2e;
    --panel: rgba(15, 27, 46, 0.82);
    --panel-soft: rgba(18, 40, 69, 0.72);
    --text: #e7eefc;
    --muted: rgba(231, 238, 252, 0.68);
    --line: rgba(255, 255, 255, 0.12);
    --brand: #6d5efc;
    --brand-dark: #4fa3ff;
    --accent: #2dd4bf;
    --max: 1180px;
    --radius: 18px;
    --shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 15% 5%, rgba(109, 94, 252, 0.18), transparent 56%),
        radial-gradient(900px 500px at 86% 14%, rgba(79, 163, 255, 0.18), transparent 60%),
        linear-gradient(180deg, #071022, var(--bg) 42%, #071022);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 20;
    padding-top: 10px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 27, 46, 0.74);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .95), rgba(79, 163, 255, .95));
    color: #fff;
    font-weight: 800;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong { font-size: 0.95rem; }
.brand-copy small { color: var(--muted); font-size: 0.78rem; }

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.nav a.active,
.nav a:hover {
    background: rgba(109, 94, 252, 0.14);
    border-color: rgba(109, 94, 252, 0.55);
    color: #fff;
}

.hero {
    padding: 14px 0 0;
}

.hero-cover {
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-narrow {
    padding: 30px 22px;
    color: #fff;
    max-width: 760px;
}

.eyebrow,
.mini-pill,
.tag,
.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.84rem;
}

h1, h2, h3, h4 { margin: 0; }

h1 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.08;
    margin-top: 14px;
    letter-spacing: -.02em;
}

h2 { font-size: 1.7rem; }

p {
    color: var(--muted);
    line-height: 1.75;
}

.hero p {
    max-width: 720px;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-note {
    margin-top: 14px;
    color: rgba(231, 238, 252, 0.58);
    font-size: 0.86rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    background: rgba(79, 163, 255, 0.16);
    color: #fff;
    border-color: rgba(79, 163, 255, 0.55);
}

.text-link {
    color: var(--brand-dark);
    font-weight: 700;
}

.stats-grid,
.stats-strip,
.bullet-grid,
.product-grid,
.gallery-grid,
.attrs-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.stats-grid,
.stats-strip,
.footer-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.metric-card,
.feature-card,
.bullet-card,
.product-card,
.filter-panel,
.detail-panel,
.form-card,
.info-block,
.attr-item,
.footer-card,
.detail-cover {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-card,
.stat-card {
    padding: 24px 20px;
}

.metric-card strong,
.stat-card strong {
    display: block;
    font-size: 2rem;
    color: #fff;
}

.metric-card span,
.stat-card span {
    color: var(--muted);
}

.section { padding: 18px 0; }
.page-top { padding-top: 38px; }
.alt-bg,
.alt-surface { background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255,255,255,0)); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.card-grid.two-col,
.bullet-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.proof-card .simple-list {
    margin-top: 12px;
}

.proof-card .simple-list li {
    line-height: 1.7;
}

.feature-card,
.product-card {
    overflow: hidden;
}

.feature-card img,
.product-card img,
.detail-cover {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body,
.detail-panel,
.form-card,
.info-block,
.bullet-card,
.footer-card {
    padding: 20px;
}

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

.product-card h3 {
    font-size: 1rem;
    min-height: 48px;
    margin-top: 8px;
}

.product-card p {
    min-height: 72px;
    font-size: 0.94rem;
}

.product-card-inline {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag { color: var(--text); }

.simple-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.simple-list li + li { margin-top: 8px; }

.filter-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.18);
    font: inherit;
    color: var(--text);
}

.field-action { justify-content: end; }

.price-line {
    margin-top: 16px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
}

.gallery-grid img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.attrs-grid { grid-template-columns: repeat(2, 1fr); }

.attr-item { padding: 14px 16px; }
.attr-item span { display: block; font-size: 0.85rem; color: var(--muted); }

.detail-layout,
.inquiry-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.ai-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.ai-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.field-span-2 {
    grid-column: span 2;
}

#ai-result-panel h3 {
    margin-bottom: 12px;
}

#ai-products .ai-product-item,
#ai-next-steps .ai-step-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    margin-top: 12px;
}

#ai-products .ai-product-item strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

#ai-products .ai-product-item p,
#ai-next-steps .ai-step-item {
    margin: 0;
    color: var(--muted);
}

.api-tip {
    margin-top: 16px;
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 40px;
    padding: 28px 0 44px;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer code {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .nav-wrap,
    .detail-layout,
    .inquiry-layout,
    .ai-panel,
    .card-grid.two-col,
    .bullet-grid,
    .bullet-grid-2,
    .bullet-grid-3,
    .footer-grid,
    .stats-strip,
    .product-card-inline {
        grid-template-columns: 1fr;
        display: grid;
    }

    .nav-wrap { justify-content: center; }
    .stats-grid, .gallery-grid, .attrs-grid, .ai-form-grid { grid-template-columns: 1fr; }
    .product-grid, .filter-panel { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .field-span-2 { grid-column: span 1; }
}
