/* ============ 字体 ============ */
@font-face {
    font-family: "Red Hat Display";
    src: url("../fonts/RedHatDisplay-VF.woff2") format("woff2-variations");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Red Hat Text";
    src: url("../fonts/RedHatText-VF.woff2") format("woff2-variations");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Mono";
    src: url("../fonts/pt-mono-regular-2.ttf") format("truetype");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* 品牌色 */
    --brand-red: #ee0000;

    /* 导航深灰 */
    --nav-bg: #1f1f1f;
    --nav-text: rgba(255, 255, 255, 0.85);
    --nav-text-hover: #ffffff;

    /* Hero 青色 */
    --hero-bg: #4d9ba3;
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255, 255, 255, 0.9);

    /* 浅色正文 */
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --text: #151515;
    --text-light: #4d4d4d;
    --text-muted: #6a6e73;
    --border: #d2d2d2;
    --border-light: #ebebeb;

    /* 链接与强调 */
    --link: #0066cc;
    --link-hover: #004080;
    --accent: #0066cc;
    --accent-light: #e7f1fa;

    /* 代码块 */
    --code-bg: #1f1f1f;
    --code-text: #e0e0e0;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* 字体 */
    --font-display: "Red Hat Display", -apple-system, BlinkMacSystemFont,
                    "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                    "Microsoft YaHei", "微软雅黑", sans-serif;
    --font-sans: "Red Hat Text", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "微软雅黑", sans-serif;
    --font-mono: "Red Hat Mono", "SFMono-Regular", Consolas,
                 "Liberation Mono", Menlo, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #151515;
}

pre {
    position: relative;
    background: var(--code-bg);
    color: var(--code-text);
    padding: 16px 18px;
    padding-top: 40px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    font-family: var(--font-mono);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}

/* ============ 复制按钮 ============ */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copy-btn.copied {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

/* ============ Header ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    border-top: 3px solid var(--brand-red);
    padding: 14px 0;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--nav-text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--nav-text-hover);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--nav-text-hover);
    font-weight: 600;
}

.nav-links a.gh {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
}

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

/* ============ Hero ============ */
.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    padding: 72px 0 80px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: start;
}

.hero h1 {
    font-size: 54px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--hero-text);
    line-height: 1.1;
}

.hero .slogan {
    font-size: 22px;
    color: var(--hero-text);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.hero .hero-desc {
    font-size: 16px;
    color: var(--hero-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    color: var(--text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.hero-card h3 {
    font-size: 21px;
    font-weight: 500;
    color: var(--link);
    margin-bottom: 12px;
    line-height: 1.35;
}

.hero-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.65;
    flex-grow: 1;
}

.hero-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--link);
    font-weight: 500;
    font-size: 15px;
    align-self: flex-end;
}

.hero-card-link:hover {
    text-decoration: none;
    color: var(--link-hover);
}

.hero-card-link .arrow {
    font-size: 20px;
    transition: transform 0.2s;
    line-height: 1;
}

.hero-card-link:hover .arrow {
    transform: translateX(4px);
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    line-height: 1.4;
    height: 48px;
}

.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

.btn-primary {
    background: var(--link);
    color: #fff;
}

.btn-primary:hover {
    background: var(--link-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--link);
    color: var(--link);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-hero {
    background: transparent;
    color: #fff;
    border: 1px solid #ffffff;
    padding: 12px 32px;
    font-weight: 600;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 12px 32px;
    font-weight: 500;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ============ Section ============ */
section {
    padding: 72px 0;
}

section.alt {
    background: var(--bg-alt);
}

h2 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

section > .container > h2 {
    text-align: left;
}

.section-sub {
    text-align: left;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.35;
}

/* ============ Intro ============ */
.intro {
    padding: 80px 0 72px;
}

.intro h2 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: -0.8px;
}

.intro-lead {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.7;
}

.intro p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
}

.intro p code {
    color: var(--text);
    background: #f0f0f0;
}

/* ============ 版本徽章 ============ */
.version-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    margin-left: 8px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--link);
    border: 1px solid rgba(0, 102, 204, 0.2);
    vertical-align: middle;
    text-decoration: none;
}

.version-badge:hover {
    background: rgba(0, 102, 204, 0.12);
    text-decoration: none;
}

.version-badge:empty {
    display: none;
}

/* ============ 下载区 ============ */
.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 32px 0 0;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: all 0.2s;
    text-align: center;
}

.download-card:hover {
    border-color: var(--link);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.download-card .dl-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
}

.download-card strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.download-card .dl-meta {
    color: var(--text-muted);
    font-size: 12px;
}

.more-link {
    margin-top: 24px;
}

/* ============ Features ============ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: all 0.25s;
}

.feature .icon {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--link);
    font-size: 20px;
    margin-bottom: 0;
}

.feature h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 17px;
}

.feature p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.65;
}

/* ============ Steps ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.step {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hero-bg);
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.step h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.step p {
    color: var(--text-light);
    font-size: 15px;
}

.start-examples {
    max-width: 760px;
}

.start-examples h3 {
    margin-bottom: 16px;
    margin-top: 32px;
    font-size: 18px;
}

.start-examples h3:first-child {
    margin-top: 0;
}

.start-hint {
    margin-top: 16px;
    color: var(--text-muted);
}

/* ============ Commands ============ */
.commands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-width: 0;
}

.command-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: all 0.25s;
}

.command-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-hover);
}

.command-card h3 {
    font-family: var(--font-mono);
    color: var(--link);
    margin-bottom: 8px;
    font-size: 17px;
}

.command-card > p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 14px;
}

.command-card pre {
    padding: 14px;
    padding-top: 14px;
    font-size: 13px;
}

/* ============ Docs links ============ */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.doc-link {
    display: block;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: all 0.25s;
}

.doc-link:hover {
    border-color: var(--link);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.doc-link strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
}

.doc-link span {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============ CTA ============ */
.cta {
    text-align: center;
    padding: 72px 0;
}

.cta h2 {
    text-align: center;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 16px;
}

/* ============ Footer ============ */
footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

footer a {
    color: var(--text-muted);
}

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

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ============ 通用表格 ============ */
.table-wrap {
    overflow-x: auto;
    margin: 0 0 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
}

.table-wrap th,
.table-wrap td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.table-wrap th {
    background: var(--bg-alt);
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
    position: sticky;
    top: 0;
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap tbody tr:hover {
    background: var(--bg-alt);
}

.table-wrap td code {
    white-space: nowrap;
}

/* ============ Prism 集成 ============ */
pre[class*="language-"],
code[class*="language-"] {
    background: none;
    text-shadow: none;
    font-family: var(--font-mono);
    font-size: inherit;
    line-height: inherit;
}

pre[class*="language-"] {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 16px 18px;
    padding-top: 40px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

code[class*="language-"] {
    color: var(--code-text);
    white-space: pre;
}

/* ============================================================
   文档页
   ============================================================ */
.docs-page {
    --sidebar-w: 240px;
    --header-h: 64px;
    --content-max: 760px;
}

.docs-page .docs-menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    line-height: 1;
    margin-right: 12px;
}

.docs-layout {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.docs-sidebar {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding: 16px 0 0 0;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.docs-sidebar .nav-group {
    display: block;
    margin-bottom: 20px;
}

.docs-sidebar .nav-group-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    padding: 0 10px;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.docs-sidebar .docs-nav-list {
    display: block;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.docs-sidebar .docs-nav-list li {
    display: block;
    margin: 2px 0;
}

.docs-sidebar .docs-nav-list a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1.5;
}

.docs-sidebar .docs-nav-list a:hover {
    background: var(--bg-alt);
    color: var(--link);
    text-decoration: none;
}

.docs-sidebar .docs-nav-list a.active {
    background: var(--accent-light);
    color: var(--link);
    font-weight: 600;
}

.docs-content {
    flex: 1;
    min-width: 0;
    padding: 40px 0 120px;
    font-size: 15px;
    line-height: 1.75;
}

.docs-content h1 {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.docs-content .lead {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.7;
}

.docs-content h2 {
    font-size: 26px;
    font-weight: 500;
    margin: 48px 0 16px;
    letter-spacing: -0.3px;
    scroll-margin-top: 20px;
}

.docs-content h2:first-of-type {
    margin-top: 0;
}

.docs-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 32px 0 10px;
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.docs-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.docs-content p {
    margin-bottom: 14px;
}

.docs-content ul,
.docs-content ol {
    margin: 0 0 14px 22px;
}

.docs-content li {
    margin-bottom: 5px;
}

/* ============ 提示框 ============ */
.callout {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--accent-light);
    margin: 0 0 18px;
    font-size: 14px;
}

.callout .co-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.7;
}

.callout p {
    margin: 0;
}

.callout.warn {
    background: #fff7e6;
}

.callout.danger {
    background: #fce8e8;
}

.callout.tip {
    background: #f0f7f0;
}

/* ============ 返回顶部 ============ */
.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    height: 44px;
    border-radius: 999px;
    background: var(--hero-bg);
    padding-left: 22px;
    padding-right: 22px;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(77, 155, 163, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    z-index: 90;
    font-family: inherit;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: #3e7d85;
    transform: translateY(-2px);
}

/* ============ 移动端遮罩 ============ */
.docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
}

.docs-overlay.show {
    display: block;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .docs-layout {
        gap: 28px;
    }

    .docs-sidebar {
        width: 190px;
        min-width: 190px;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .docs-page .docs-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .docs-layout {
        padding: 0 20px;
        gap: 0;
    }

    .docs-sidebar {
        position: fixed;
        top: var(--header-h);
        left: 0;
        bottom: 0;
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        background: var(--bg);
        border-right: 1px solid var(--border-light);
        padding: 24px 16px 48px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 99;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
        max-height: none;
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
        padding: 24px 0 100px;
        max-width: 100%;
    }

    .docs-content h1 {
        font-size: 28px;
    }

    .docs-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .slogan {
        font-size: 18px;
    }

    .hero .hero-desc {
        font-size: 15px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a:not(.gh) {
        display: none;
    }

    h2 {
        font-size: 28px;
    }

    .intro h2 {
        font-size: 30px;
    }

    .intro-lead {
        font-size: 16px;
    }

    section {
        padding: 56px 0;
    }

    .commands {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .command-card {
        padding: 16px 14px;
    }

    .command-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .command-card > p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .command-card pre {
        padding: 12px;
        font-size: 12px;
        overflow-x: auto;
    }

    .command-card pre code {
        font-size: 12px;
        white-space: pre;
    }

    .table-wrap {
        border-radius: 8px;
    }

    .table-wrap th,
    .table-wrap td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-card {
        padding: 24px;
    }

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

    .command-card {
        padding: 14px 12px;
    }

    .command-card pre {
        padding: 10px;
        font-size: 11.5px;
    }

    .docs-content h1 {
        font-size: 24px;
    }

    .docs-content th,
    .docs-content td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .back-top {
        right: 16px;
        bottom: 16px;
    }
}

/* ============ 文档侧边栏 nav 重置 ============ */
.docs-sidebar nav {
    display: block;
    width: 100%;
}