/* 小火箭官网 — 门户骨架，配色与圆角相对参考稿作了偏移 */
:root {
    color-scheme: light;
    --bg: #f3f7f6;
    --surface: #ffffff;
    --surface-soft: #e6f4f1;
    --text: #12211e;
    --muted: #4b635c;
    --line: #d7e6e1;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-light: #5eead4;
    --accent: #0284c7;
    --shadow: 0 14px 36px rgba(18, 33, 30, 0.07);
    --radius: 12px;
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1140px, 100% - 32px);
    margin-inline: auto;
}

.site-header {
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(243, 247, 246, 0.9);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
}

.nav {
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 68px;
    display: flex;
}

.brand {
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    display: inline-flex;
}

.brand-mark {
    object-fit: cover;
    border-radius: 9px;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.16);
}

.nav-links {
    color: var(--muted);
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 560;
    display: flex;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-btn {
    background: var(--brand);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 9px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.24);
}

.nav-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.hero {
    padding: 60px 0 44px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: stretch;
    gap: 28px;
    display: grid;
}

.hero-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(15, 118, 110, 0.09), rgba(2, 132, 199, 0.08)), var(--surface);
    box-shadow: var(--shadow);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    color: var(--brand);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.4px;
}

h1 {
    font-size: clamp(32px, 4.2vw, 46px);
    line-height: 1.25;
    margin-top: 12px;
    font-weight: 800;
    color: var(--text);
}

.hero p {
    color: var(--muted);
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.7;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    display: flex;
}

.button {
    border: 1px solid var(--line);
    min-height: 46px;
    color: var(--text);
    background: var(--surface);
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    padding: 0 18px;
    font-weight: 750;
    display: inline-flex;
}

.button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(18, 33, 30, 0.1);
}

.stats {
    gap: 12px;
    display: grid;
}

.stat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(18, 33, 30, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat:hover {
    transform: translateX(3px);
    border-color: var(--brand-light);
}

.stat strong {
    font-size: 24px;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 6px;
}

.stat span {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.stat p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.section {
    padding: 40px 0 50px;
}

.section-head {
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    display: flex;
}

.section-head h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.section-head p {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 15px;
}

.post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    display: grid;
}

.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    display: flex;
    box-shadow: 0 8px 22px rgba(18, 33, 30, 0.04);
}

.post-card:hover {
    border-color: var(--brand-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.meta {
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    display: flex;
}

.badge {
    background: var(--surface-soft);
    min-height: 24px;
    color: var(--brand-dark);
    border-radius: 999px;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 750;
    display: inline-flex;
}

.post-card h3 {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.4;
}

.post-card p {
    color: var(--muted);
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.post-card .read-more {
    color: var(--brand);
    margin-top: auto;
    padding-top: 16px;
    font-weight: 750;
    font-size: 14px;
    display: inline-flex;
}

.home-explainer {
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-explainer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    display: grid;
}

.home-explainer-grid > div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px;
    box-shadow: 0 4px 12px rgba(18, 33, 30, 0.03);
}

.home-explainer-grid strong {
    font-size: 17px;
    font-weight: 750;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

.home-explainer-grid p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.term-list {
    flex-wrap: wrap;
    gap: 10px;
    display: flex;
}

.term-list a {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 15px;
    font-weight: 650;
    font-size: 14px;
}

.term-list a:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

.download-hero {
    max-width: 820px;
    margin: 36px auto 26px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.download-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.download-hero p.subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.version-table {
    width: 100%;
    margin: 20px 0 28px 0;
    border-collapse: collapse;
    text-align: left;
}

.version-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.version-table td:first-child {
    font-weight: 750;
    color: var(--muted);
    width: 120px;
}

.version-table td:last-child {
    color: var(--text);
}

.download-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 30px 0;
    font-size: 14px;
    background: var(--surface);
}

.footer-row {
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    display: flex;
}

@media (max-width: 860px) {
    .hero-grid, .post-grid, .home-explainer-grid {
        grid-template-columns: 1fr;
    }
    .hero-panel {
        padding: 26px;
    }
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }
    .nav-links {
        width: 100%;
        padding-bottom: 4px;
        overflow-x: auto;
    }
    .section-head, .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-hero {
        padding: 22px;
    }
}
