/* aideploy.com.cn 外壳样式（2026-10-01 改版）。
   方向：机房工单感——暖灰纸面 + 石墨深色区 + 铜橙只做点睛；小圆角、细发丝线、等宽体只给命令。
   token 分层借鉴 design-md 库里企业基础设施一类的结构，数值为本站自有。 */
:root {
  --canvas: #F4F3EF; --surface: #FFFFFF; --surface-2: #ECEAE4;
  --ink: #15181C; --ink-2: #3D434B; --muted: #646B75;
  --line: #DCD9D1; --line-strong: #C4C0B6;
  --dark: #14171B; --dark-2: #1C2026; --dark-line: rgba(244, 243, 239, .14);
  --on-dark: #F1EFEA; --on-dark-2: #B9BDC4;
  --accent: #C2410C; --accent-hover: #A8370A; --accent-bright: #FF8A4C; --accent-soft: #FBE9DF;
  --ok: #1F7A4D;
  --r-s: 4px; --r: 6px; --r-l: 10px;
  --shadow: 0 1px 2px rgba(21, 24, 28, .05), 0 8px 24px -12px rgba(21, 24, 28, .18);
  --shadow-lift: 0 2px 4px rgba(21, 24, 28, .06), 0 24px 48px -20px rgba(21, 24, 28, .45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", Menlo, monospace;
  --shell: 1160px; --gut: clamp(20px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas) !important; color: var(--ink); font-family: var(--font) !important; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); color: var(--ink); letter-spacing: -.01em; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }
.shell-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.eyebrow.on-dark { color: var(--accent-bright); }
.h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 600; }
.lede { margin: 0; max-width: 46em; color: var(--ink-2); font-size: 17px; }
.lede.on-dark { color: var(--on-dark-2); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(241, 239, 234, .08); color: var(--on-dark); border-color: rgba(241, 239, 234, .4); }
.btn-ghost-light:hover { background: rgba(241, 239, 234, .16); border-color: var(--on-dark); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: rgba(241, 239, 234, .35); }
.btn-ghost-dark:hover { border-color: var(--on-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 243, 239, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { flex: none; border-radius: 7px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-sub { font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.home .site-header.is-overlay { position: fixed; left: 0; right: 0; }
.home .site-header.is-overlay:not(.is-stuck) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.home .site-header.is-overlay:not(.is-stuck) .brand, .home .site-header.is-overlay:not(.is-stuck) .site-nav a { color: var(--on-dark); }
.home .site-header.is-overlay:not(.is-stuck) .brand-sub { color: var(--on-dark-2); border-left-color: rgba(241, 239, 234, .3); }
.home .site-header.is-overlay:not(.is-stuck) .logo-mark rect:first-child { fill: #2A2F37; }

/* hero */
.hero { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); padding: clamp(104px, 13vh, 136px) 0 clamp(48px, 7vh, 80px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 23, 27, .95) 0%, rgba(20, 23, 27, .86) 42%, rgba(20, 23, 27, .58) 100%), linear-gradient(0deg, rgba(20, 23, 27, .7), rgba(20, 23, 27, 0) 40%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 0 0 22px; color: #fff; font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.16; letter-spacing: -.02em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent-bright); }
.hero-sub { margin: 0 0 30px; max-width: 30em; color: var(--on-dark-2); font-size: 18px; }
.hero-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.link-light { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(241, 239, 234, .5); padding-bottom: 2px; font-weight: 600; font-size: 15px; }
.link-light:hover { border-bottom-color: var(--accent-bright); color: #fff; }

/* cards + form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.hero-form { color: var(--ink); box-shadow: var(--shadow-lift); border-color: transparent; border-top: 3px solid var(--accent); }
.hero-form h2, .diag-card h2 { margin: 0 0 4px; font-size: 21px; font-weight: 650; }
.card-intro { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.dform { display: grid; gap: 16px; }
.dform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.dform legend { padding: 0; margin-bottom: 10px; font-weight: 650; font-size: 15.5px; }
.dform legend span { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--muted); }
.dform-steps { display: none; list-style: none; margin: 0 0 4px; padding: 0; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dform.is-wizard .dform-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.dform-steps li { padding-top: 8px; border-top: 3px solid var(--line); }
.dform-steps li.on { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
.dform.is-wizard .dform-step:not(.is-current) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-size: 14.5px; transition: border-color .15s, background .15s, color .15s; }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: #7A2A08; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.field em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--font); appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233D434B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .16); }
.field .is-bad, .chips.is-bad .chip span { border-color: #B42318; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.consent.is-bad { color: #B42318; }
.dform-error { margin: 0; padding: 10px 12px; border-radius: var(--r); background: #FDECEA; color: #8A1C12; font-size: 14px; }
.dform-actions { display: flex; gap: 10px; }
.dform-actions .btn-accent { flex: 1; }
.dform-foot { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.dform-foot a { color: var(--ink); font-weight: 600; }
.dform-done { text-align: center; padding: 18px 0 6px; display: grid; gap: 10px; justify-items: center; }
.dform-done[hidden] { display: none; }
.dform-done h3 { margin: 4px 0 0; font-size: 22px; }
.dform-done p { margin: 0; color: var(--ink-2); max-width: 26em; }
.dform-id { font-size: 13.5px; color: var(--muted) !important; }
.dform-id code { font-family: var(--mono); color: var(--ink); background: var(--surface-2); padding: 2px 8px; border-radius: var(--r-s); }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tight { padding: clamp(32px, 5vw, 56px) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section.dark .h2 { color: #fff; }
.section-more { margin: 32px 0 0; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { padding: 22px 24px 4px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step-n { font: 600 13px/1 var(--mono); color: var(--accent); }
.steps h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 650; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.tile { background: var(--surface); padding: 26px 26px 28px; transition: background .2s; }
.tile:hover { background: #FBFAF7; }
.tile-ic { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); }
.tile h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 650; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tut-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.tut-grid > * { min-width: 0; }
.tut-feature pre { max-width: 100%; }
.tut-feature { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--dark); color: var(--on-dark-2); border-radius: var(--r-l); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.tut-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tut-feature h3 { margin: 0; color: #fff; font-size: 23px; line-height: 1.3; font-weight: 600; }
.tut-feature p { margin: 0; font-size: 15px; }
.tut-feature .link { color: var(--accent-bright); align-self: flex-start; margin-top: auto; }
.tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--accent-bright); border: 1px solid rgba(255, 138, 76, .45); border-radius: 999px; padding: 3px 12px; }
.tut-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tut-list:empty { display: none; }
.tut-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; transition: border-color .2s, transform .2s; }
.tut-list a:hover { border-color: var(--accent); transform: translateY(-1px); }
.tut-list h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 650; color: var(--ink); }
.tut-list p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tut-list .tag { align-self: flex-start; color: var(--accent); border-color: rgba(194, 65, 12, .35); }
.tracks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.tracks li + li { border-top: 1px solid var(--line); }
.tracks a, .tracks div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 20px; text-decoration: none; }
.tracks a:hover { background: #FBFAF7; }
.tracks strong { font-size: 16px; font-weight: 650; }
.tracks span { grid-column: 1; color: var(--muted); font-size: 14px; }
.tracks em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; }
.tracks em.live { color: var(--ok); border-color: rgba(31, 122, 77, .4); background: #EDF7F1; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.bounds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); counter-reset: b; }
.bounds li { counter-increment: b; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--dark-line); color: var(--on-dark); font-size: 16px; }
.bounds li::before { content: "0" counter(b); font: 600 13px/1.9 var(--mono); color: var(--accent-bright); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* 帮你部署 card */
.deploy-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin: 48px 0 0; padding: clamp(24px, 4vw, 36px); background: var(--dark); color: var(--on-dark-2); border-radius: var(--r-l); border-left: 4px solid var(--accent); }
.section .deploy-cta { margin-top: 0; }
.cta-wrap { padding-bottom: clamp(48px, 7vw, 88px); }
.cta-wrap .deploy-cta { margin-top: 0; }
main > article.mx-auto { padding-bottom: 40px !important; }
.post { padding-bottom: 40px !important; }
.deploy-cta h2 { margin: 0 0 6px !important; color: #fff !important; font-size: 23px !important; font-weight: 600; border: 0 !important; padding: 0 !important; }
.deploy-cta p { margin: 0; max-width: 34em; font-size: 15.5px; color: var(--on-dark-2); }
.deploy-cta .eyebrow { color: var(--accent-bright); margin-bottom: 8px; }
.deploy-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* page head + inner pages */
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.page-head p { margin: 0 0 18px; }
.page-head p:last-child { margin-bottom: 0; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.diag-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.diag-side h2 { margin: 0 0 10px; font-size: 17px; }
.diag-side h2:not(:first-child) { margin-top: 28px; }
.diag-side p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini-steps li::before { content: counter(m); grid-row: span 2; font: 600 13px/1.9 var(--mono); color: var(--accent); }
.mini-steps span { color: var(--muted); font-size: 14px; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope h2 { margin: 0 0 14px; font-size: 20px; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; }
.ticks li, .crosses li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 4px; top: 24px; width: 13px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.archive-nav { display: flex; gap: 20px; margin: 20px 0; }
.archive-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 0 22px; margin-top: 14px; }
.archive-box summary { cursor: pointer; padding: 16px 0; font-weight: 650; }
.archive { list-style: none; margin: 0; padding: 0 0 16px; columns: 2; column-gap: 40px; }
.archive li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.archive a { text-decoration: none; color: var(--ink-2); }
.archive a:hover { color: var(--accent); }

/* article: new tutorials (.post/.prose) and legacy mirrored pages (.article-prose) */
.post { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.post h1, main > article > h1 { margin: 10px 0 14px !important; font-size: clamp(28px, 4vw, 40px) !important; line-height: 1.25 !important; font-weight: 600 !important; color: var(--ink) !important; letter-spacing: -.015em; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.post-meta span { padding-left: 14px; border-left: 1px solid var(--line-strong); }
.post-lead { margin: 0 0 24px; font-size: 18px; color: var(--ink-2); }
.note { margin: 0 0 32px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); }
.note strong { display: block; margin-bottom: 4px; }
.note p { margin: 0; color: var(--ink-2); font-size: 15px; }
.prose, .article-prose { font-size: 16.5px; line-height: 1.8; color: var(--ink); }
.prose h2, .article-prose h2 { margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 24px; line-height: 1.35; font-weight: 650; scroll-margin-top: 84px; }
.prose h3, .article-prose h3 { margin: 28px 0 10px; font-size: 18.5px; font-weight: 650; }
.prose p, .article-prose p { margin: 0 0 16px; }
.prose ul, .prose ol, .article-prose ul, .article-prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li, .article-prose li { margin: 6px 0; }
.prose a, .article-prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code, .article-prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-s); overflow-wrap: anywhere; }
.code, .article-prose pre { position: relative; margin: 0 0 18px; padding: 16px 18px; background: var(--dark); color: #E6E3DC; border-radius: var(--r); overflow-x: auto; font: 400 14px/1.65 var(--mono); }
.code code, .article-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.code.mini { margin: 6px 0 4px; background: #0D0F12; font-size: 13px; border: 1px solid var(--dark-line); }
.src { display: inline-block; margin-right: 14px; font-size: 13.5px; color: var(--muted) !important; text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.src:hover { color: var(--accent) !important; }
.table-wrap, .article-prose table { display: block; overflow-x: auto; margin: 0 0 18px; }
.prose table, .article-prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
.prose th, .prose td, .article-prose th, .article-prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.prose th, .article-prose th { background: var(--surface-2); font-weight: 650; }
.sources li { font-size: 15px; }
/* legacy shell fixes: mirrored pages keep their old utility CSS; these bring them onto the new tokens */
main > article.mx-auto { max-width: 780px !important; padding-left: var(--gut) !important; padding-right: var(--gut) !important; }
main > article > p.text-xs { color: var(--accent) !important; letter-spacing: .06em; }
main > article > p.text-base { color: var(--ink-2) !important; font-size: 18px; }
main > section.mx-auto { max-width: var(--shell) !important; padding: clamp(32px, 5vw, 56px) var(--gut) clamp(48px, 7vw, 88px) !important; }
main > section.mx-auto > h1 { margin: 0 !important; font-size: clamp(30px, 4vw, 44px) !important; font-weight: 600 !important; color: var(--ink) !important; }
main > section.mx-auto > p { color: var(--ink-2) !important; }
main > section.mx-auto > div { margin-top: 28px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
main > section.mx-auto > div > article { margin: 0 !important; background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; padding: 18px 20px !important; transition: border-color .15s, transform .15s; }
main > section.mx-auto > div > article:hover { border-color: var(--line-strong) !important; transform: translateY(-1px); }
main > section.mx-auto > div > article > span { color: var(--accent) !important; font-family: var(--mono); }
main > section.mx-auto > div > article h3 { margin: 6px 0 0 !important; font-size: 16.5px !important; line-height: 1.5 !important; font-weight: 600 !important; }
main > section.mx-auto > div > article h3 a { color: var(--ink) !important; text-decoration: none; }
main > section.mx-auto > div > article h3 a:hover { color: var(--accent) !important; }
/* 存量列表卡片的摘要含未核实数据，改写完成前不在列表里外露 */
main > section.mx-auto > div > article > p { display: none !important; }

/* footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); margin-top: 0; padding: 56px 0 28px; font-size: 14.5px; }
.site-footer .brand { color: #fff; }
.site-footer .logo-mark rect:first-child { fill: #2A2F37; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 14px 0 0; max-width: 26em; }
.site-footer h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; color: #fff; font-weight: 600; }
.foot-grid > div:not(.foot-brand) a { display: block; padding: 5px 0; color: var(--on-dark-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-bright); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 13px; color: #8E949D; }

@media (max-width: 960px) {
  .hero-grid, .split, .split-even, .faq-wrap, .tut-grid, .diag-grid, .scope { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 96px; }
}
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .site-header .bar { gap: 12px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; }
  .site-nav a { font-size: 14.5px; padding: 2px 0 6px; white-space: nowrap; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 34px; }
  .tut-grid { grid-template-columns: minmax(0, 1fr); }
  .grid2, .tiles, .steps, .archive { grid-template-columns: 1fr; columns: 1; }
  .steps li, .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .steps { border-top: 0; }
  .deploy-cta-actions, .deploy-cta .btn { width: 100%; }
  .deploy-cta-actions .btn { flex: 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  main > section.mx-auto > div { grid-template-columns: 1fr; }
  .tracks a, .tracks div { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
