/* ============================================================
   天行赛场 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dt, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. CSS 变量 ---------- */
:root {
  --bg: #06131A;
  --bg-deep: #030D12;
  --bg-lift: #0A1E28;
  --pulse: #00E08A;
  --pulse-soft: rgba(0, 224, 138, .16);
  --data: #1E6BFF;
  --data-soft: rgba(30, 107, 255, .18);
  --volt: #E8FF3A;
  --teal: #0B3B3C;
  --wine: #5A1730;
  --indigo: #2B1B5A;
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .16);
  --glass-strong: rgba(255, 255, 255, .14);
  --ink: #E6F1F5;
  --ink-dark: #0B1A21;
  --muted: #9FB6BF;
  --amber: #FFB020;
  --radius: 2px;
  --pill: 999px;
  --shell: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --head-h: 72px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .48);
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(30, 107, 255, .22), transparent 62%),
    radial-gradient(900px 480px at 96% 4%, rgba(0, 224, 138, .14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }
p { color: var(--ink); }
strong { font-weight: 700; }
::selection { background: var(--volt); color: #1A2000; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: .4rem;
  transform: translate(-50%, -180%);
  z-index: 200;
  padding: .6rem 1.1rem;
  background: var(--volt);
  color: #1A2000;
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 5. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page { padding-top: calc(var(--head-h) + clamp(1.5rem, 4vw, 3rem)); padding-bottom: clamp(3rem, 8vw, 6rem); }
.page-head { max-width: 78ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.page-title { margin-bottom: .7rem; }
.page-lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 68ch; }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: clamp(.8rem, 2vw, 1.4rem); }

/* ---------- 6. 头部外壳 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 14px;
  transition: padding-top .3s ease;
}
.site-header[data-scrolled="true"] { padding-top: 6px; }
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 19, 26, .94) 0%, rgba(6, 19, 26, .72) 62%, rgba(6, 19, 26, 0) 100%);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"]::after {
  background: rgba(5, 16, 22, .95);
  border-bottom-color: var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- 7. 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  padding: .2rem;
  border-radius: var(--radius);
}
.brand--stack { padding: 0; margin-bottom: .9rem; }
.brand-mark { width: 44px; height: 24px; overflow: visible; flex: none; }
.brand-mark__line {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  animation: brandPulse 6s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: 26; opacity: .68; }
}
.brand-name {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- 8. 悬浮胶囊导航 ---------- */
.nav-capsule {
  display: flex;
  align-items: center;
  padding: .35rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding .25s ease, background .25s ease;
}
.site-header[data-scrolled="true"] .nav-capsule { padding: .22rem; background: rgba(255, 255, 255, .05); }
.site-header[data-scrolled="true"] .brand-name { font-size: 1rem; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .82rem;
  border-radius: var(--pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .09); }
.nav-link[aria-current="page"] {
  color: #04231A;
  background: var(--pulse);
  font-weight: 700;
}

/* ---------- 9. 头部工具区 ---------- */
.header-tools { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  background: var(--glass);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tool-btn:hover { border-color: var(--pulse); color: var(--pulse); }
.tool-btn__key {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--glass-line);
  border-radius: 3px;
  padding: .08rem .32rem;
}
.tool-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .74rem;
  color: var(--volt);
  min-width: 1ch;
}
.tool-btn[aria-pressed="true"] {
  border-color: var(--volt);
  color: var(--volt);
  box-shadow: 0 0 0 1px rgba(232, 255, 58, .32);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  background: var(--glass);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: background .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- 10. 滚动进度轨 ---------- */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .06);
}
.scroll-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--data) 0%, var(--pulse) 68%, var(--volt) 100%);
  transition: width .12s linear;
}

/* ---------- 11. 搜索浮层 ---------- */
.search-deck {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--head-h) + 18px) var(--gutter) var(--gutter);
  background: rgba(3, 10, 14, .76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.search-deck__inner {
  width: min(660px, 100%);
  background: linear-gradient(160deg, #0A2430 0%, #061720 100%);
  border: 1px solid var(--glass-line);
  border-top: 2px solid var(--pulse);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: var(--shadow);
}
.search-deck__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}
.search-label {
  font-size: .78rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--pulse);
}
.search-close {
  font-size: .82rem;
  color: var(--muted);
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  padding: .24rem .7rem;
  transition: color .2s ease, border-color .2s ease;
}
.search-close:hover { color: var(--ink); border-color: var(--pulse); }
.search-input {
  width: 100%;
  padding: .78rem .9rem;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1rem;
}
.search-input::placeholder { color: rgba(159, 182, 191, .7); }
.search-hint { margin: .6rem 0 .9rem; font-size: .84rem; color: var(--muted); }
.search-results { display: flex; flex-direction: column; gap: .3rem; max-height: 46vh; overflow-y: auto; }
.search-link {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .62rem .8rem;
  border-left: 2px solid var(--data);
  background: rgba(255, 255, 255, .04);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.search-link:hover { background: rgba(255, 255, 255, .09); border-left-color: var(--pulse); transform: translateX(3px); }
.search-link__name { font-weight: 700; font-size: .96rem; }
.search-link__desc { font-size: .8rem; color: var(--muted); }

/* ---------- 12. 收藏抽屉 ---------- */
.fav-dock {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--gutter);
  width: min(330px, calc(100vw - 2 * var(--gutter)));
  background: rgba(8, 26, 34, .97);
  border: 1px solid var(--glass-line);
  border-top: 2px solid var(--volt);
  border-radius: var(--radius);
  padding: .95rem;
  box-shadow: var(--shadow);
  z-index: 140;
}
.fav-dock__title {
  font-size: .76rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--volt);
  margin-bottom: .6rem;
}
.fav-list { display: flex; flex-direction: column; gap: .3rem; }
.fav-item { border-left: 2px solid rgba(232, 255, 58, .5); padding-left: .55rem; }
.fav-link {
  display: block;
  font-size: .88rem;
  color: var(--ink);
  transition: color .2s ease;
}
.fav-link:hover { color: var(--volt); }
.fav-link--static { color: var(--muted); }
.fav-empty { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, rgba(3, 13, 18, 0) 0%, #041016 24%, #030C11 100%);
  border-top: 1px solid var(--glass-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  padding-block: clamp(2.5rem, 6vw, 3.8rem) clamp(1.6rem, 4vw, 2.4rem);
}
.footer-col { min-width: 0; }
.footer-title {
  font-size: .76rem;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--pulse);
  margin-bottom: .9rem;
}
.footer-list { display: flex; flex-direction: column; gap: .12rem; }
.footer-link {
  display: inline-block;
  padding: .22rem 0;
  font-size: .92rem;
  color: var(--muted);
  transition: color .2s ease, transform .2s ease;
}
.footer-link:hover { color: var(--ink); transform: translateX(3px); }
.footer-note { font-size: .9rem; color: var(--muted); line-height: 1.75; max-width: 42ch; }
.footer-note--small { font-size: .84rem; margin-top: .7rem; max-width: 36ch; }
.footer-refresh {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .9rem;
  font-size: .84rem;
  color: var(--ink);
}
.pulse-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: .55rem;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 0 rgba(0, 224, 138, .55);
  animation: dotPulse 6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 224, 138, .5); }
  50% { box-shadow: 0 0 0 7px rgba(0, 224, 138, 0); }
}
.footer-contact dt {
  font-size: .74rem;
  letter-spacing: .1em;
  color: rgba(159, 182, 191, .8);
  margin-top: .7rem;
}
.footer-contact dd {
  margin-top: .1rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  color: var(--ink);
  word-break: break-word;
}
.footer-contact dd:first-of-type { margin-top: 0; }
.footer-contact .footer-value--text { font-family: var(--font-sans); font-size: .9rem; line-height: 1.6; }
.footer-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--glass-line);
  font-size: .83rem;
  color: var(--muted);
}
.footer-copy { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.footer-sign { color: rgba(159, 182, 191, .8); }
.footer-pulse {
  position: relative;
  height: 46px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(0, 224, 138, .05) 0%, rgba(0, 224, 138, 0) 100%);
}
.footer-pulse__svg { width: 200%; height: 100%; }
.footer-pulse__line {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .42;
  animation: footerScan 9s linear infinite;
}
@keyframes footerScan {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 14. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .74rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pulse); color: #04231A; border-color: var(--pulse); }
.btn--primary:hover { background: #34EFA6; border-color: #34EFA6; }
.btn--blue { background: var(--data); color: #FFFFFF; border-color: var(--data); }
.btn--blue:hover { background: #4585FF; border-color: #4585FF; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--glass-line); }
.btn--ghost:hover { border-color: var(--pulse); color: var(--pulse); }
.btn--volt { background: var(--volt); color: #1A2000; border-color: var(--volt); }
.btn--volt:hover { background: #F2FF77; border-color: #F2FF77; }
.btn--sm { padding: .48rem .85rem; font-size: .84rem; }

/* ---------- 15. 编号章节 ---------- */
.section { position: relative; padding-block: clamp(2.2rem, 6vw, 4rem); }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .07); }
.section-head { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.03em;
  color: rgba(230, 241, 245, .14);
  margin-bottom: .5rem;
  transition: color .5s ease;
}
.section.is-active .section-index { color: var(--pulse); }
.section-title { margin-bottom: .5rem; }
.section-lead { color: var(--muted); max-width: 66ch; font-size: 1rem; }

/* ---------- 16. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-left: 2px solid var(--data);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.panel:hover,
.panel:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .26);
  border-left-color: var(--pulse);
  background: rgba(255, 255, 255, .1);
}
.panel--pulse { border-left-color: var(--pulse); }
.panel--data { border-left-color: var(--data); }
.panel--volt { border-left-color: var(--volt); }
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .7rem;
}
.panel__title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.panel__meta {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ---------- 17. 珠宝色分区 ---------- */
.zone {
  position: relative;
  padding: clamp(1.6rem, 5vw, 3rem);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 72px);
}
.zone--teal { background: linear-gradient(158deg, var(--teal) 0%, #06131A 74%); }
.zone--wine { background: linear-gradient(158deg, var(--wine) 0%, #06131A 76%); }
.zone--indigo { background: linear-gradient(158deg, var(--indigo) 0%, #06131A 76%); }

/* ---------- 18. 读数、数据条、标签 ---------- */
.datum { display: flex; flex-direction: column; gap: .2rem; }
.datum__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--pulse);
}
.datum__label { font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.meter {
  display: block;
  height: 6px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--data) 0%, var(--pulse) 100%);
  transition: width .4s ease;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .04);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}
.chip--pulse { color: var(--pulse); border-color: rgba(0, 224, 138, .45); background: var(--pulse-soft); }
.chip--data { color: #9CC0FF; border-color: rgba(30, 107, 255, .5); background: var(--data-soft); }
.chip--amber { color: var(--amber); border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .12); }
.chip--volt { color: var(--volt); border-color: rgba(232, 255, 58, .5); background: rgba(232, 255, 58, .1); }

/* ---------- 19. 面包屑 ---------- */
.breadcrumb { margin-bottom: 1.1rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); }
.breadcrumb__item { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: rgba(159, 182, 191, .55); }
.breadcrumb__item a { color: var(--muted); transition: color .2s ease; }
.breadcrumb__item a:hover { color: var(--pulse); }
.breadcrumb__item[aria-current="page"] { color: var(--ink); }

/* ---------- 20. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--teal) 0%, #08202A 46%, var(--bg) 100%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(0, 224, 138, .14) 0%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 64px);
}
.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame__tag {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  z-index: 2;
  padding: .2rem .6rem;
  border-radius: var(--pill);
  background: rgba(6, 19, 26, .8);
  border: 1px solid var(--glass-line);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--pulse);
}
.media-frame__cap { margin-top: .5rem; font-size: .82rem; color: var(--muted); }

/* ---------- 21. 斜切分隔 ---------- */
.slant-rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--data) 0%, var(--pulse) 55%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  margin-block: clamp(1.6rem, 4vw, 2.6rem);
}

/* ---------- 22. 显现动效 ---------- */
[data-reveal] { transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-reveal-ready { opacity: 0; transform: translateY(14px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1080px) {
  .tool-btn__key { display: none; }
  .nav-link { padding: .46rem .64rem; font-size: .85rem; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-capsule {
    position: fixed;
    top: calc(var(--head-h) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    border-radius: 14px;
    background: rgba(8, 26, 34, .97);
    border-color: var(--glass-line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--head-h) - 36px);
    overflow-y: auto;
  }
  .nav-capsule[data-open="true"] { display: flex; }
  .site-header[data-scrolled="true"] .nav-capsule { padding: .7rem; background: rgba(8, 26, 34, .97); }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link { padding: .72rem .85rem; border-radius: 8px; font-size: 1rem; justify-content: space-between; }
  .nav-link:hover { background: rgba(255, 255, 255, .07); }
  .grid--2, .grid--3, .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-deck { padding-top: calc(var(--head-h) + 12px); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 36px; height: 20px; }
  .tool-btn__label { display: none; }
  .tool-btn { padding: .48rem .62rem; }
  .nav-toggle__text { display: none; }
  .search-results { max-height: 52vh; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .fav-dock { right: var(--gutter); left: var(--gutter); width: auto; }
}

/* ---------- 24. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .brand-mark__line { animation: none; stroke-dashoffset: 0; }
  .pulse-dot { animation: none; box-shadow: 0 0 0 0 rgba(0, 224, 138, .5); }
  .footer-pulse__line { animation: none; }
  [data-reveal], [data-reveal].is-reveal-ready { opacity: 1; transform: none; }
  .panel:hover, .panel:focus-within { transform: none; }
  .btn:hover { transform: none; }
}
