:root {
    --bg: #07111c;
    --bg-soft: #0b1826;
    --panel: #102131;
    --line: rgba(201, 164, 91, 0.28);
    --text: #e8e4d8;
    --muted: #9aa6b2;
    --gold: #c9a45b;
    --teal: #3ecfc0;
    --white: #f7f4ea;
    --radius: 20px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 520px at 88% -8%, rgba(62, 207, 192, 0.08), transparent 55%),
        var(--bg);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 {
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--white);
}
p { margin: 0 0 1rem; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 17, 28, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}
.brand-mark {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 91, 0.42);
    background: #08131d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.brand strong { display: block; font-size: 15px; letter-spacing: 0.06em; }
.brand small { display: block; color: var(--gold); font-size: 12px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a {
    position: relative;
    padding: 6px 0;
}
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
}
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    margin: 0 auto;
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #1a1408; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { background: rgba(201, 164, 91, 0.08); }
.btn-disabled {
    background: #1a2a3a;
    color: #7d8b97;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.06);
}
.text-link { color: var(--gold); font-size: 14px; }

.hero {
    padding: 84px 0 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    letter-spacing: 0.18em;
    font-size: 12px;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 0 0 18px; }
.hero h1 em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: var(--gold);
    font-size: 0.58em;
}
.lead { font-size: 18px; color: var(--muted); max-width: 40rem; }
.hero-note {
    max-width: 38rem;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.hero-visual {
    background:
        linear-gradient(180deg, rgba(62, 207, 192, 0.08), transparent 40%),
        var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
.flow {
    display: grid;
    gap: 10px;
}
.flow-node, .flow-hub {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
}
.flow-node {
    background: #0b1824;
    color: var(--muted);
    font-size: 13px;
}
.flow-hub {
    background: rgba(201, 164, 91, 0.1);
    border-color: var(--line);
    color: var(--white);
}
.flow-hub strong { display: block; color: var(--gold); font-size: 13px; letter-spacing: 0.08em; }
.flow-arrow { color: var(--teal); font-size: 12px; letter-spacing: 0.16em; text-align: center; }
.provider-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 6px 10px;
}
.code-panel {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #08141f;
    border: 1px solid rgba(62, 207, 192, 0.18);
    color: #d7efe9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    overflow: auto;
}
.code-panel code { font: inherit; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 56px;
}
.stats article {
    background: var(--bg-soft);
    padding: 22px 20px;
}
.stats strong {
    display: block;
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: 28px;
    color: var(--gold);
}
.stats span { display: block; color: var(--white); font-size: 14px; margin: 6px 0 4px; }
.stats em { font-style: normal; color: var(--muted); font-size: 13px; }

.page-hero { padding: 72px 0 28px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2, .prose h2 { margin: 0 0 12px; font-size: 28px; }
.section-cta { margin-top: 28px; }

.partners {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: var(--bg-soft);
}
.partners-label {
    margin: 0 0 14px;
    color: var(--teal);
    letter-spacing: 0.18em;
    font-size: 12px;
}
.partner-names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.partner-name {
    color: rgba(232, 228, 216, 0.62);
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.partner-name:hover {
    color: var(--white);
    text-shadow: 0 8px 20px rgba(201, 164, 91, 0.22);
}
.partner-name.is-openai {
    font-family: "Avenir Next", "Helvetica Neue", sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.partner-name.is-claude {
    font-family: Palatino, "Palatino Linotype", "Songti SC", serif;
    font-style: italic;
    font-size: 26px;
    font-weight: 600;
}
.partner-name.is-gemini {
    font-family: "Helvetica Neue", "PingFang SC", sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.partner-name.is-qwen {
    font-family: "Songti SC", "STSong", serif;
    font-weight: 600;
    font-size: 20px;
}
.partner-name.is-deepseek {
    font-family: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.partner-name.is-kimi {
    font-family: Optima, "Avenir Next", sans-serif;
    font-weight: 700;
}
.partner-name.is-glm {
    font-family: "Helvetica Neue", "Avenir Next", sans-serif;
    font-weight: 600;
    letter-spacing: 0.2em;
}
.partner-name.is-doubao {
    font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.card-grid, .split-grid, .portal-grid, .step-grid, .chip-grid {
    display: grid;
    gap: 16px;
}
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-grid, .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .panel, .portal, .facts, .contact-form, .contact-panel, .step {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px;
}
.card, .panel, .portal, .step { transition: transform 0.2s ease, border-color 0.2s ease; }
.card:hover, .panel:hover, .portal:hover, .step:hover {
    transform: translateY(-2px);
    border-color: var(--line);
}
.card h3, .panel h3, .portal h3, .step h3 { margin: 0 0 10px; font-size: 18px; }
.card p, .panel p, .portal p, .muted, .step p { color: var(--muted); }
.portal .btn { margin-top: 12px; }
.step-index {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--teal);
    letter-spacing: 0.16em;
    font-size: 12px;
}
.protocol {
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    background: var(--panel);
}
.protocol strong { display: block; color: var(--white); margin-bottom: 4px; }
.protocol span { color: var(--muted); font-size: 13px; }

.company-band {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}
.company-band blockquote {
    margin: 0;
    padding: 28px;
    border-left: 2px solid var(--gold);
    color: var(--white);
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: 20px;
    line-height: 1.6;
}

.cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(201, 164, 91, 0.12), rgba(62, 207, 192, 0.06));
}
.cta-band h2 { margin: 0 0 8px; font-size: 26px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-wrap { padding-top: 0; }
.cta-actions { margin: 0; }
.product-cta { margin-top: 8px; }

.contact-panel h2 { margin-top: 0; font-size: 22px; }
.contact-panel .btn { margin: 10px 0 14px; }

.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}
.facts h2 { margin-top: 0; font-size: 18px; }
.facts dl { margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.facts a { color: var(--gold); }

.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0b1824;
    color: var(--muted);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

.prose { max-width: 720px; }
.prose p { color: var(--muted); }
.stack { display: grid; gap: 28px; }

.site-footer {
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.footer-label { color: var(--gold); font-size: 12px; letter-spacing: 0.12em; }
.site-footer a, .disabled-link {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
}
.disabled-link { opacity: 0.7; }
.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 960px) {
    .hero-layout, .hero-meta, .card-grid, .split-grid, .portal-grid, .step-grid, .chip-grid,
    .company-band, .about-grid, .contact-grid, .footer-grid, .stats, .cta-band {
        grid-template-columns: 1fr;
    }
    .partner-names { justify-content: flex-start; gap: 10px 22px; }
    .partner-name { font-size: 18px; }
    .partner-name.is-claude { font-size: 22px; }
    .cta-band { display: grid; }
    .header-inner { flex-wrap: wrap; padding: 12px 0; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-cta { display: none; }
    .nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        gap: 4px;
        padding-bottom: 8px;
    }
    .site-header.is-open .nav { display: flex; }
}
