:root {
    color-scheme: dark;
    --bg: #0b090c;
    --surface: #161218;
    --surface-2: #1d1820;
    --text: #efe9df;
    --muted: #a89d90;
    --dim: #786f64;
    --line: #352c2b;
    --line-soft: rgba(53, 44, 43, 0.65);
    --accent: #d6a24a;
    --accent-2: #d97a58;
    --accent-soft: rgba(214, 162, 74, 0.12);
    --accent-border: rgba(214, 162, 74, 0.4);
    --green: #93a86a;
    --nav-bg: rgba(11, 9, 12, 0.9);
    --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1100px 620px at 12% -8%, rgba(214, 162, 74, 0.15), transparent 62%),
        radial-gradient(900px 520px at 100% 0, rgba(217, 122, 88, 0.10), transparent 58%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

a { color: inherit; }

/* ================= 导航 ================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(16px);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 22px -8px rgba(214, 162, 74, 0.7);
    flex: none;
}

.logo-text {
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-text span {
    color: var(--dim);
    font-weight: 500;
    margin-left: 0.55rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.55rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: #fff; }

.nav-links .nav-cta {
    color: var(--accent);
    border: 1px solid var(--accent-border);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.nav-links .nav-cta:hover {
    background: var(--accent);
    color: #170f06;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: none;
}

.back-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.34rem 0.7rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--accent);
    border-color: var(--accent-border);
}

.tool-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: none;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    color: var(--accent);
    border-color: var(--accent-border);
}

html[data-lang="zh"] .lang-zh,
html[data-lang="en"] .lang-en {
    color: var(--accent);
    font-weight: 700;
}

/* ================= Hero ================= */
.case-hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 8.4rem 2rem 4.6rem;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
}

.product-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1.8rem;
}

.product-crumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-crumb a:hover { color: var(--accent); }
.product-crumb i { font-style: normal; color: var(--line); }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.7rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

h1 em {
    font-style: normal;
    background: linear-gradient(92deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: 44em;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    padding: 4px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.meta-card {
    background: linear-gradient(180deg, var(--surface-2), #110e12);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.3rem 1.4rem 1.05rem;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    box-shadow: 0 34px 90px -48px #000;
}

.meta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(154, 168, 194, 0.2);
    margin-bottom: 0.35rem;
}

.meta-head .mono {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.meta-badge {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    color: var(--green);
    border: 1px solid rgba(147, 168, 106, 0.4);
    border-radius: 100px;
    padding: 0.12rem 0.55rem;
    background: rgba(147, 168, 106, 0.06);
}

.meta-row {
    display: grid;
    grid-template-columns: 5.4em 1fr;
    gap: 0.8rem;
    align-items: baseline;
    padding: 0.54rem 0;
    border-bottom: 1px dashed rgba(154, 168, 194, 0.12);
    font-size: 0.66rem;
    line-height: 1.55;
}

.meta-row:last-child { border-bottom: none; }

.meta-row span {
    color: var(--dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-row b {
    color: #fff;
    font-weight: 500;
}

/* ================= 通用 section ================= */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 4.4rem 2rem;
}

.divider { border-top: 1px solid var(--line-soft); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
    font-family: 'JetBrains Mono', monospace;
}

.kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

h2 {
    font-size: clamp(1.85rem, 3.1vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.section-sub {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 700px;
    margin-bottom: 2.2rem;
}

/* ================= 制片流程 ================= */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.phase-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.phase-num {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    background: var(--accent-soft);
    color: #efcb85;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
}

.phase-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.phase-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.72;
    margin: 0;
}

/* ================= 截图 ================= */
.figure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1.2rem;
}

.figure-grid .case-figure { margin: 0; }

.case-figure { margin: 0 0 2.2rem; }

.case-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #120f14;
    box-shadow: 0 34px 90px -48px #000;
}

.case-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--dim);
    line-height: 1.7;
    max-width: 70em;
}

.case-figure figcaption strong { color: var(--text); font-weight: 600; }

/* ================= 工程问题 ================= */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.problem-card {
    background: linear-gradient(180deg, rgba(21, 29, 47, 0.92), rgba(17, 23, 38, 0.92));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.45rem 1.55rem;
}

.problem-tag {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.65rem;
}

.problem-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.problem-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.72;
    margin: 0;
}

/* ================= 本地部署 ================= */
.onprem-copy { max-width: 820px; }

.onprem-copy p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.85;
    margin-bottom: 1.15rem;
}

.onprem-copy strong { color: var(--text); font-weight: 600; }

blockquote {
    margin: 1.8rem 0 2rem;
    padding: 1.15rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: rgba(214, 162, 74, 0.08);
    border-radius: 0 12px 12px 0;
    color: #efe4d2;
    font-size: 0.93rem;
    line-height: 1.8;
}

blockquote p { margin: 0; color: inherit; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.1rem;
    font-size: 0.85rem;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}

.spec-table th {
    width: 9.5em;
    color: var(--dim);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.spec-table td { color: var(--text); }

/* ================= CTA / 页脚 ================= */
.cta-band {
    margin-top: 1rem;
    padding: 1.8rem 2rem;
    border: 1px solid rgba(214, 162, 74, 0.32);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(214, 162, 74, 0.14), rgba(217, 122, 88, 0.06));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

#contact { scroll-margin-top: 96px; }

.cta-band h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.cta-band p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}

.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
    padding: 0.75rem 1.45rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.84rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #170f06;
    box-shadow: 0 12px 32px -14px rgba(214, 162, 74, 0.75);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

footer {
    border-top: 1px solid var(--line-soft);
    padding: 2.6rem 2rem;
    text-align: center;
    color: var(--dim);
    font-size: 0.74rem;
    line-height: 1.9;
}

.footer-brand {
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

footer a {
    color: var(--dim);
    text-decoration: none;
}

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

/* ================= 响应式 ================= */
@media (max-width: 980px) {
    .case-hero {
        grid-template-columns: 1fr;
        padding-top: 10.2rem;
        gap: 2.2rem;
    }

    .meta-card { max-width: 520px; }

    .nav-inner {
        height: auto;
        padding: 0.75rem 1rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.5rem;
    }

    .logo-text span { display: none; }

    .nav-tools { gap: 0.45rem; }
    .nav-tools .tool-btn { min-height: 38px; }
    .back-link { font-size: 0.6rem; }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0.35rem 0.2rem;
        text-align: center;
        line-height: 1.3;
    }

    .nav-links .nav-cta { padding: 0.35rem 0.2rem; }

    html { scroll-padding-top: 176px; }
    #contact { scroll-margin-top: 176px; }

    .phase-grid,
    .problem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .case-hero { padding: 10.2rem 1.2rem 3rem; }
    .section { padding: 3rem 1.2rem; }
    .product-crumb { margin-bottom: 1.4rem; }
    h1 { font-size: clamp(1.85rem, 8.4vw, 2.7rem); }
    .lede { font-size: 0.94rem; }
    .meta-card { padding: 1.1rem 1.2rem; }
    .phase-card { grid-template-columns: 2rem minmax(0, 1fr); padding: 1.2rem; }
    .phase-num { width: 1.9rem; height: 1.9rem; }
    .problem-card { padding: 1.2rem; }
    .figure-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .cta-band { padding: 1.4rem; gap: 1.2rem; }
    .btn { padding: 0.7rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
