/* 小火箭官网 — 深色双栏手册，强调色改为琥珀，圆角与光晕相对参考稿偏移 */
:root {
    color-scheme: dark;
    --bg: #14110e;
    --bg-head: #0e0c0a;
    --bg-deep: #0a0908;
    --bg-panel: #221c16;
    --bg-panel-2: #2c241c;
    --border: #3d342a;
    --accent: #f0b429;
    --accent-dark: #b45309;
    --accent-wash: rgba(240, 180, 41, 0.12);
    --rose: #fb7185;
    --sky: #7dd3fc;
    --text: #faf6ef;
    --text-muted: #b3a394;
    --shadow-card: 0 18px 36px -16px rgba(8, 6, 4, 0.85), 0 2px 0 rgba(240, 180, 41, 0.08);
    --shadow-btn: 0 4px 0 #9a3412, 0 14px 28px -10px rgba(240, 180, 41, 0.35);
    --r-card: 10px;
    --r-btn: 10px;
    --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 80;
    opacity: 0.12;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wrap {
    width: min(1200px, 100% - 32px);
    margin: 0 auto;
}

.site-header {
    height: 64px;
    background: rgba(14, 12, 10, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(240, 180, 41, 0.28);
}

.brand-name {
    font-weight: 800;
    font-size: 17px;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
}

.primary-nav a {
    font-size: 14px;
    font-weight: 550;
    color: var(--text-muted);
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--accent);
}

.header-btn {
    background: var(--accent);
    color: #1a1408 !important;
    padding: 8px 16px;
    border-radius: var(--r-btn);
    font-weight: 750;
    font-size: 13px;
    box-shadow: 0 0 14px rgba(240, 180, 41, 0.28);
}

.header-btn:hover {
    background: #ffd56a;
    transform: translateY(-1px);
}

.hero {
    padding: 52px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    gap: 36px;
    align-items: center;
}

.eyebrow {
    font-size: 12.5px;
    font-weight: 750;
    color: var(--accent);
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.eyebrow-bar {
    width: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
}

.hero-title {
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -0.4px;
    margin-bottom: 16px;
}

.ht-key {
    background: linear-gradient(135deg, #f0b429 0%, #fb923c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lede {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--r-btn);
    font-weight: 800;
    font-size: 14px;
}

.btn-primary {
    background: var(--accent);
    color: #1a1408;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-panel-2);
}

.get-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 18px;
}

.fact {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 7px;
}

.fact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.fact-dot--rose {
    background: var(--rose);
    box-shadow: 0 0 8px var(--rose);
}

.fact-dot--sky {
    background: var(--sky);
    box-shadow: 0 0 8px var(--sky);
}

.devices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.device {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.device:hover {
    color: var(--accent);
    background: var(--accent-wash);
}

.device svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.stage-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.stage-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #fb7185);
}

.stage-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stage-badge {
    background: var(--accent-wash);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 750;
    display: inline-block;
    margin-bottom: 12px;
}

.stage-lead {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.stage-table,
.download-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.stage-table td,
.download-spec-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.stage-table td:first-child,
.download-spec-table td:first-child {
    color: var(--text-muted);
    font-weight: 650;
    width: 110px;
}

.section {
    padding: 54px 0;
    border-top: 1px solid var(--border);
}

.kicker {
    font-size: 12px;
    font-weight: 750;
    color: var(--accent);
    letter-spacing: 0.4px;
}

.section h2 {
    font-size: 26px;
    font-weight: 850;
    margin: 8px 0 12px;
}

.home-section-lede {
    color: var(--text-muted);
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.config-tabs {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-btn {
    text-align: left;
    background: transparent;
    border: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    border-left: 3px solid transparent;
}

.tab-btn:hover {
    background: var(--bg-panel-2);
    color: var(--text);
}

.tab-btn.active {
    background: var(--bg-panel-2);
    color: var(--accent);
    border-left-color: var(--accent);
}

.tab-panel {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    min-width: 0;
}

.panel-badge {
    background: var(--accent-wash);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 750;
    display: inline-block;
    margin-bottom: 12px;
}

.tab-panel h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.tab-panel p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.tab-panel pre {
    background: #0c0a08;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3eadf;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.home-reference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 32px;
}

.home-reference {
    border-top: 2px solid var(--rose);
    padding-top: 20px;
}

.home-reference h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-reference p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.device-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.device-card svg {
    width: 34px;
    height: 34px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.device-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.device-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.text-link {
    font-size: 13px;
    font-weight: 750;
    color: var(--accent);
}

.home-verification {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 32px;
}

.verification-facts {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.verification-facts img {
    border-radius: 10px;
    border: 1px solid var(--border);
}

.verification-facts dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
}

.verification-facts dt {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.verification-facts dd {
    font-size: 14px;
    font-weight: 750;
}

.faq-wrap h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.faq-item {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.faq-item summary {
    padding: 14px 16px;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 16px 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.art-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.art-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.art-meta {
    font-size: 12px;
    font-weight: 750;
    color: var(--accent);
    margin-bottom: 8px;
}

.art-card h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 8px;
}

.art-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.download-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px;
    max-width: 820px;
    margin: 40px auto;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.download-card h1 {
    font-size: 32px;
    font-weight: 850;
    margin: 8px 0 12px;
}

.download-card .lede {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 8px;
}

.download-spec-table {
    margin: 22px 0 28px;
    text-align: left;
}

.download-spec-table td {
    border-bottom-color: var(--border);
    font-size: 14px;
}

.download-note {
    font-size: 13px;
    color: var(--text-muted);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-grid .device-card {
    flex-direction: column;
}

.step-no {
    font-size: 20px;
    font-weight: 850;
    color: var(--accent);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-head);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 860px) {
    .hero-grid,
    .config-tabs,
    .home-reference-grid,
    .device-grid,
    .articles-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }
    .verification-facts {
        flex-direction: column;
        align-items: flex-start;
    }
    .verification-facts dl,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-sub {
        display: none;
    }
}
