/* ============================================================
   J9体育 · /assets/site.css
   深夜演播室 / 战术板体系 · 共享外壳与基础组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061A14;
  --panel: #0B2B22;
  --panel-2: #124033;
  --panel-3: #0E3428;
  --lime: #C6FF3D;
  --amber: #E8B45A;
  --stone: #8C9B92;
  --cream: #F4EFDF;
  --clay: #C06F52;
  --mist: #6ED7C1;

  --line: rgba(140, 155, 146, .26);
  --line-soft: rgba(140, 155, 146, .14);
  --lime-line: rgba(198, 255, 61, .45);
  --cream-soft: rgba(244, 239, 223, .78);
  --cream-mute: rgba(244, 239, 223, .58);

  --font-cond: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC",
    "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;

  --shell: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --cut: 18px;

  --signal-h: 34px;
  --bar-h: 76px;
  --header-total: calc(var(--signal-h) + var(--bar-h));

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, .9rem + .18vw, 17px);
  line-height: 1.72;
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(140, 155, 146, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 155, 146, .055) 1px, transparent 1px),
    radial-gradient(120% 80% at 88% -10%, rgba(110, 215, 193, .12), transparent 62%),
    radial-gradient(90% 70% at -10% 0%, rgba(198, 255, 61, .07), transparent 58%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-cond);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { line-height: 1.72; }

::selection {
  background: var(--lime);
  color: #04170f;
}

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

#main-content {
  padding-top: var(--header-total);
  scroll-margin-top: var(--header-total);
}

[id] { scroll-margin-top: calc(var(--header-total) + 1rem); }

/* ---------- 4. 容器与跳转 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 300;
  padding: .7rem 1.1rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  color: #04170f;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: top .22s var(--ease);
}

.skip-link:focus { top: .9rem; }

/* ---------- 5. 头部外壳 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  color: var(--cream);
}

.signal-bar {
  height: var(--signal-h);
  display: flex;
  align-items: center;
  background: rgba(6, 26, 20, .8);
  border-bottom: 1px solid rgba(140, 155, 146, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.signal-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.signal-bar__pulse,
.signal-bar__utility {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, .16);
  animation: signal-pulse 2.4s var(--ease) infinite;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.68); }
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--bar-h);
  background: linear-gradient(180deg, rgba(6, 26, 20, .74), rgba(6, 26, 20, .3) 68%, rgba(6, 26, 20, 0));
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.7rem, 2.4vw, 2rem);
  width: 100%;
}

.site-header[data-scrolled="true"] .signal-bar {
  background: rgba(9, 36, 28, .96);
  border-bottom-color: var(--line-soft);
}

.site-header[data-scrolled="true"] .header-main {
  background: rgba(11, 43, 34, .97);
  box-shadow: 0 26px 52px -36px #000, inset 0 -1px 0 var(--lime-line);
}

/* ---------- 6. 品牌锁定 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  transition: opacity .2s var(--ease);
}

.brand:hover { opacity: .88; }

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, .42);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: box-shadow .25s var(--ease);
}

.brand:hover .brand__mark {
  box-shadow: inset 0 0 0 1px var(--lime);
}

.brand__mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--lime);
}

.brand__mark-bar {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 18px;
  height: 3px;
  background: var(--amber);
  transform: skewX(-26deg);
  transform-origin: left center;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: .01em;
  line-height: 1.1;
  color: var(--cream);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

.brand--footer .brand__mark { width: 40px; height: 40px; }
.brand--footer .brand__name { font-size: 1rem; }

/* ---------- 7. 主导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.4rem, 1.2vw, 1rem);
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: .2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__item { flex: 0 0 auto; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .38rem;
  padding: .55rem .68rem .68rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .015em;
  white-space: nowrap;
  color: rgba(244, 239, 223, .82);
  transition: color .2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: .68rem;
  right: .68rem;
  bottom: .34rem;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .26s var(--ease);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
  color: var(--stone);
  transition: color .2s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--lime); }

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__link:hover .site-nav__idx,
.site-nav__link:focus-visible .site-nav__idx { color: var(--amber); }

.site-nav__link[aria-current="page"] { color: var(--lime); }

.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--lime); }

.site-nav__cta { flex: 0 0 auto; }

/* ---------- 8. 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  color: var(--cream);
  background: rgba(18, 64, 51, .62);
  border: 1px solid var(--line);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--lime);
  border-color: var(--lime-line);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 9. 阅读进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--mist));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.site-header[data-scrolled="true"] .scroll-progress { opacity: 1; }

/* ---------- 10. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-line: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .64rem 1.05rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .85rem;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .15s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--lime {
  --btn-bg: var(--lime);
  --btn-fg: #04170f;
  --btn-line: var(--lime);
}

.btn--lime:hover,
.btn--lime:focus-visible {
  --btn-bg: var(--amber);
  --btn-line: var(--amber);
}

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--cream); --btn-line: var(--line); }

.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-fg: var(--lime);
  --btn-line: var(--lime-line);
  background: rgba(198, 255, 61, .08);
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(2.4rem, 5vw, 4rem);
  color: var(--cream);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(110, 215, 193, .1), transparent 58%),
    linear-gradient(180deg, #0A2A21, #05100C 72%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--lime) 0%, var(--lime) 16%,
    transparent 16%, transparent 20%,
    var(--amber) 20%, var(--amber) 32%,
    transparent 32%, transparent 36%,
    var(--mist) 36%, var(--mist) 44%,
    transparent 44%, transparent 48%,
    var(--clay) 48%, var(--clay) 52%,
    transparent 52%
  );
  opacity: .9;
}

.footer-mark {
  position: absolute;
  right: -.5rem;
  bottom: -3rem;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(7rem, 20vw, 15rem);
  line-height: .78;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 255, 61, .13);
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, .72fr)) minmax(0, 1.15fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  align-items: flex-start;
}

.footer-brand__summary {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--cream-soft);
  max-width: 40ch;
}

.footer-brand__note {
  font-family: var(--font-mono);
  font-size: .7rem;
  line-height: 1.85;
  letter-spacing: .06em;
  color: var(--stone);
  max-width: 42ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.footer-col__title {
  font-family: var(--font-cond);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: .7rem;
  position: relative;
  line-height: 1.4;
}

.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 3px;
  height: .95em;
  background: var(--lime);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-col__link {
  display: inline-block;
  font-size: .9rem;
  color: var(--cream-soft);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime-line);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .01em;
  color: var(--amber);
  overflow-wrap: anywhere;
}

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.6rem;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--line-soft);
}

.footer-legal__meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--stone);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
}

.footer-legal__link {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--cream-mute);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-legal__link:hover,
.footer-legal__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime-line);
}

/* ---------- 12. 章节骨架 ---------- */
.section {
  position: relative;
  padding-block: clamp(2.4rem, 5.5vw, 5rem);
}

.section-head {
  display: grid;
  gap: .6rem;
  max-width: 62ch;
  margin-bottom: clamp(1.3rem, 3vw, 2.2rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  transform: skewX(-28deg);
}

.title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: var(--cream-soft);
}

.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--cream-soft);
}

.prose p { font-size: .96rem; }

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

/* ---------- 13. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  background: linear-gradient(180deg, var(--panel), var(--panel-3));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  transition: box-shadow .24s var(--ease), background-color .24s var(--ease);
}

.panel:hover { box-shadow: inset 0 0 0 1px var(--lime-line); }

.panel__edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--lime), rgba(198, 255, 61, 0));
}

/* ---------- 14. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .58rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(110, 215, 193, .08);
  border: 1px solid rgba(110, 215, 193, .38);
  border-radius: 2px;
}

.tag--lime {
  color: var(--lime);
  background: rgba(198, 255, 61, .08);
  border-color: rgba(198, 255, 61, .38);
}

.tag--amber {
  color: var(--amber);
  background: rgba(232, 180, 90, .09);
  border-color: rgba(232, 180, 90, .4);
}

.tag--clay {
  color: #E4A88F;
  background: rgba(192, 111, 82, .12);
  border-color: rgba(192, 111, 82, .45);
}

/* ---------- 15. 比分卡 ---------- */
.score-card {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  transition: box-shadow .24s var(--ease);
}

.score-card:hover { box-shadow: inset 0 0 0 1px var(--lime-line); }

.score-card__meta {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

.score-card__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.score-card__side {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .95rem;
  color: var(--cream);
}

.score-card__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--amber);
}

/* ---------- 16. 网格与堆栈 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

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

.stack {
  display: grid;
  gap: clamp(.8rem, 2vw, 1.2rem);
}

/* ---------- 17. 横向轨道 ---------- */
.rail {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--lime-line) transparent;
  padding-bottom: .6rem;
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: var(--line-soft); }
.rail::-webkit-scrollbar-thumb { background: var(--lime-line); }

.rail__item {
  flex: 0 0 clamp(180px, 26vw, 250px);
  scroll-snap-align: start;
}

/* ---------- 18. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--stone);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: .45rem; }

.breadcrumb__item a {
  color: var(--cream-mute);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.breadcrumb__item a:hover,
.breadcrumb__item a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime-line);
}

.breadcrumb__sep {
  color: rgba(140, 155, 146, .5);
  transform: skewX(-18deg);
}

/* ---------- 19. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  background: linear-gradient(160deg, var(--panel-2), var(--ink));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  overflow: hidden;
  transition: box-shadow .24s var(--ease);
}

.figure:hover { box-shadow: inset 0 0 0 1px var(--lime-line); }

.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 20% 110%, rgba(198, 255, 61, .16), transparent 60%),
    radial-gradient(70% 80% at 90% 0%, rgba(110, 215, 193, .18), transparent 62%),
    linear-gradient(155deg, #0E3428, #05120E);
}

.figure__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 155, 146, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 155, 146, .12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .55;
  pointer-events: none;
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 16, 12, .78));
  pointer-events: none;
}

.figure__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.06) brightness(.92);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }

.figure__caption {
  padding: .7rem .95rem;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--stone);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 20. 旁注与折叠 ---------- */
.note {
  padding-left: .95rem;
  border-left: 2px solid var(--clay);
  font-size: .86rem;
  line-height: 1.72;
  color: var(--cream-mute);
}

.details {
  border: 1px solid var(--line);
  background: rgba(11, 43, 34, .62);
  padding: .85rem 1.05rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.details:hover { border-color: var(--lime-line); }

.details[open] {
  background: rgba(18, 64, 51, .7);
  border-color: var(--lime-line);
}

.details__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: .98rem;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
}

.details__summary::-webkit-details-marker { display: none; }

.details__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--lime);
  transition: transform .2s var(--ease);
}

.details[open] .details__summary::after { transform: rotate(45deg); }

.details__body {
  padding-top: .8rem;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--cream-soft);
}

/* ---------- 21. 工具类 ---------- */
.u-bleed-top { margin-top: calc(var(--header-total) * -1); }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-total);
    left: 0;
    right: 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: 0;
    padding-inline: var(--gutter);
    overflow: hidden;
    visibility: hidden;
    background: rgba(8, 32, 26, .985);
    border-bottom: 1px solid var(--lime-line);
    box-shadow: 0 40px 70px -40px #000;
    transition: max-height .34s var(--ease), padding .34s var(--ease),
      visibility .34s var(--ease);
  }

  .site-nav[data-open="true"] {
    max-height: calc(100vh - var(--header-total));
    overflow-y: auto;
    visibility: visible;
    padding-top: .9rem;
    padding-bottom: 1.4rem;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .site-nav__item { border-bottom: 1px solid var(--line-soft); }

  .site-nav__link {
    width: 100%;
    padding: .95rem .2rem 1.05rem;
    font-size: 1.02rem;
  }

  .site-nav__link::after {
    left: .2rem;
    right: auto;
    width: calc(100% - .4rem);
    bottom: .55rem;
  }

  .site-nav__cta {
    margin-top: 1.1rem;
    width: 100%;
    padding-block: .85rem;
  }

  body.nav-open { overflow: hidden; }
}

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

@media (max-width: 720px) {
  :root {
    --signal-h: 30px;
    --bar-h: 64px;
    --cut: 14px;
  }

  .brand__mark { width: 40px; height: 40px; }
  .brand__tagline { display: none; }
  .brand__name { font-size: 1rem; }

  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .rail__item { flex-basis: 78%; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-mark { font-size: 8rem; bottom: -1.6rem; }
}

@media (max-width: 520px) {
  .signal-bar__utility { display: none; }
  .signal-bar__pulse { font-size: .6rem; letter-spacing: .12em; }
  .footer-brand__summary { font-size: .88rem; }
}

/* ---------- 23. 无障碍与降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .signal-dot { animation: none; opacity: .9; }
  .scroll-progress { transition: none; }
}
