/* ==========================================================================
   南宫28体育 · 共享外壳 /assets/site.css
   高原夜蓝底 + 奶油纸叠层 + 经幡五色索引
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, pre { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --night: #081826;
  --deep: #0F2A44;
  --cream: #F2E9D8;
  --paper: #F8F3E7;
  --ink: #211A14;
  --blue: #2F6FBF;
  --red: #C84532;
  --green: #2F7D5E;
  --yellow: #E3B23C;
  --cyan: #33C2C8;
  --amber: #F0A23A;

  --ink-soft: rgba(248, 243, 231, 0.74);
  --ink-faint: rgba(248, 243, 231, 0.46);
  --line: rgba(248, 243, 231, 0.14);
  --line-strong: rgba(248, 243, 231, 0.30);

  --ink-on-paper: #211A14;
  --ink-on-paper-soft: rgba(33, 26, 20, 0.76);
  --line-on-paper: rgba(33, 26, 20, 0.18);

  --text-soft: var(--ink-soft);
  --text-strong: var(--paper);
  --link: var(--cyan);

  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --shell: 1200px;
  --gut: clamp(1.1rem, 3vw, 2.4rem);
  --radius: 2px;
  --bar-h: 68px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background:
    radial-gradient(1180px 620px at 78% -8%, rgba(47, 111, 191, 0.20), transparent 68%),
    radial-gradient(900px 520px at 6% 2%, rgba(47, 125, 94, 0.10), transparent 70%),
    var(--night);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.55vw + 14.5px, 17.5px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--paper);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

#main-content:focus { outline: none; }

::selection {
  background: var(--amber);
  color: var(--ink);
}

/* ---------- 4. 工具 ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gut) * 2));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: clamp(1.6rem, 3vw, 2.6rem);
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.page-head {
  padding-block: clamp(2rem, 5vw, 3.6rem) clamp(1.2rem, 3vw, 2rem);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(248, 243, 231, 0.16);
}
.btn--primary:hover {
  background: #d7503b;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(248, 243, 231, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}
.btn--ink:hover { background: #352a20; }

/* ---------- 6. 标签 / 眉标 / 图例 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  white-space: nowrap;
}
.tag--blue   { background: var(--blue);   border-color: var(--blue);   color: var(--paper); }
.tag--red    { background: var(--red);    border-color: var(--red);    color: var(--paper); }
.tag--green  { background: var(--green);  border-color: var(--green);  color: var(--paper); }
.tag--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tag--amber  { background: var(--amber);  border-color: var(--amber);  color: var(--ink); }
.tag--cyan   { background: var(--cyan);   border-color: var(--cyan);   color: var(--night); }
.tag--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.legend__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.45rem;
  vertical-align: middle;
  background: var(--ink-faint);
}
.legend__dot--cyan  { background: var(--cyan); }
.legend__dot--amber { background: var(--amber); }
.legend__dot--green { background: var(--green); }
.legend__dot--red   { background: var(--red); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.breadcrumb__sep { color: rgba(248, 243, 231, 0.28); }

/* ---------- 8. 头部：紧凑命令栏 ---------- */
.skip-link {
  position: fixed;
  top: 0.65rem;
  left: 50%;
  z-index: 200;
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translate(-50%, -200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 24, 38, 0.93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .cmd-bar { background: var(--night); }
}

.cmd-bar__inner {
  width: min(1320px, calc(100% - var(--gut) * 2));
  margin-inline: auto;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
}

.cmd-bar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 38%, var(--amber) 76%, var(--red) 100%);
  transition: width 0.12s linear;
  pointer-events: none;
}

/* 字标 */
.brand {
  order: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding-block: 0.5rem;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--ink-faint);
}
.brand:hover .brand__mark { background: var(--amber); color: var(--ink); }

/* 移动端开关 */
.nav-toggle {
  order: 3;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.2rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(51, 194, 200, 0.1); }
.nav-toggle__label { line-height: 1; }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 4.5px;
  transform: rotate(-45deg);
}

/* 导航 */
.site-nav {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}
.site-nav__list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.68rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(248, 243, 231, 0.72);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(248, 243, 231, 0.34);
}
.site-nav__list a:hover {
  color: var(--paper);
  background: rgba(47, 111, 191, 0.2);
}
.site-nav__list a:hover .site-nav__idx { color: var(--cyan); }

.site-nav__list a[aria-current="page"] {
  color: var(--paper);
  background: rgba(47, 111, 191, 0.16);
}
.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.68rem;
  right: 0.68rem;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 20%,
    var(--paper) 20% 40%,
    var(--red) 40% 60%,
    var(--green) 60% 80%,
    var(--yellow) 80% 100%
  );
}
.site-nav__list a[aria-current="page"] .site-nav__idx { color: var(--amber); }

/* 检索入口 */
.cmd-search {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(51, 194, 200, 0.08);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cmd-search__ico {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.cmd-search:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--night);
}

/* ---------- 9. 页脚：奶油纸叠层 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid rgba(33, 26, 20, 0.2);
}

.foot-ribbon {
  display: flex;
  height: 6px;
}
.foot-ribbon span { flex: 1 1 auto; }
.foot-ribbon span:nth-child(1) { background: var(--blue); }
.foot-ribbon span:nth-child(2) { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(33, 26, 20, 0.12); }
.foot-ribbon span:nth-child(3) { background: var(--red); }
.foot-ribbon span:nth-child(4) { background: var(--green); }
.foot-ribbon span:nth-child(5) { background: var(--yellow); }

.site-foot__inner {
  width: min(var(--shell), calc(100% - var(--gut) * 2));
  margin-inline: auto;
  padding-block: clamp(2.2rem, 5vw, 3.4rem) 1.6rem;
}

.foot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-on-paper);
}
.foot-mark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.18;
  color: var(--ink);
}
.foot-tag {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  color: rgba(33, 26, 20, 0.55);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.3fr;
  gap: clamp(1.6rem, 3.4vw, 3rem);
  padding-block: clamp(1.7rem, 3.6vw, 2.6rem);
}

.foot-col__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: rgba(33, 26, 20, 0.55);
}
.foot-col__title::before {
  content: "";
  display: block;
  width: 15px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--red);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.foot-links a {
  display: inline-block;
  padding: 0.22rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}

.foot-dl {
  display: grid;
  gap: 0.6rem;
}
.foot-dl > div {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}
.foot-dl dt {
  padding-top: 0.24em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(33, 26, 20, 0.5);
}
.foot-dl dd {
  font-size: 0.92rem;
  line-height: 1.65;
}
.foot-dl__val {
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius);
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.copy-btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.copy-btn[data-copied] {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.foot-note {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(33, 26, 20, 0.72);
}
.foot-meta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(33, 26, 20, 0.55);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-on-paper);
  font-size: 0.8rem;
  color: rgba(33, 26, 20, 0.62);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
}
.foot-legal a {
  color: rgba(33, 26, 20, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.foot-legal a:hover,
.foot-legal a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- 10. 容器组件 ---------- */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--paper {
  --text-soft: var(--ink-on-paper-soft);
  --text-strong: var(--ink);
  --link: var(--red);
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(33, 26, 20, 0.16);
  box-shadow: 7px 7px 0 rgba(8, 24, 38, 0.45);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.35rem;
  background: rgba(15, 42, 68, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
}
.card__body {
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(47, 111, 191, 0.26), rgba(8, 24, 38, 0.55)),
    var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--plot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(248, 243, 231, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(248, 243, 231, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.7;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(8, 24, 38, 0.9));
}

/* ---------- 12. 网格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.grid-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

/* ---------- 13. 标签页 ---------- */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line);
}
.tabs__btn {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}
.tabs__btn:hover {
  color: var(--paper);
  background: rgba(51, 194, 200, 0.1);
}
.tabs__btn[aria-selected="true"] {
  color: var(--paper);
  background: rgba(51, 194, 200, 0.14);
}
.tabs__btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}
.tabs__panel {
  padding-top: 0.3rem;
  animation: tabFade 0.22s ease both;
}
.tabs__panel[hidden] { display: none; }

@keyframes tabFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 14. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--amber);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 0.2rem 1.1rem;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- 15. 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-soft);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2,
.prose h3,
.prose h4 {
  color: var(--text-strong);
  margin-top: 2em;
  line-height: 1.45;
}
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.prose strong { color: var(--text-strong); font-weight: 700; }
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--amber);
  color: var(--text-strong);
  font-family: var(--font-display);
}
.prose code {
  padding: 0.1em 0.35em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(248, 243, 231, 0.1);
  border-radius: 1px;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .cmd-bar__inner {
    flex-wrap: wrap;
    padding-block: 0.55rem;
    row-gap: 0.55rem;
  }
  .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; order: 3; }
  .cmd-search { order: 2; margin-left: 0; }

  .site-nav {
    order: 4;
    flex: 1 0 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.22s ease;
  }
  .site-nav[data-open] {
    max-height: 72vh;
    opacity: 1;
    overflow-y: auto;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.25rem;
  }
  .site-nav__list a {
    padding: 0.8rem 0.6rem 0.8rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav__list a[aria-current="page"] { background: rgba(47, 111, 191, 0.14); }
  .site-nav__list a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--blue) 0 20%,
      var(--paper) 20% 40%,
      var(--red) 40% 60%,
      var(--green) 60% 80%,
      var(--yellow) 80% 100%
    );
  }
  .cmd-search {
    margin-top: 0.5rem;
    align-self: stretch;
    justify-content: center;
    padding: 0.72rem;
  }
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .grid-2,
  .grid-3,
  .grid-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --bar-h: 62px; }
  .brand__mark { width: 32px; height: 32px; font-size: 0.82rem; }
  .brand__name { font-size: 0.98rem; letter-spacing: 0.06em; }
  .brand__sub { font-size: 0.55rem; letter-spacing: 0.22em; }
  .cmd-search { font-size: 0.74rem; letter-spacing: 0.06em; }
  .foot-dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .foot-dl dt { padding-top: 0; }
  .foot-head { gap: 0.3rem; }
  .foot-tag { letter-spacing: 0.2em; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .cmd-search { padding: 0.6rem 0.7rem; }
  .btn { width: 100%; }
}

/* ---------- 17. 减少运动 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cmd-bar__progress { transition: none; }
}
