/* ==========================================================================
   火博体育 · 官方中文站  /assets/site.css
   结构：reset → 变量 → 中文排版 → 侧轨页头 → 抽屉 → 页脚 → 通用组件 → 响应式
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: 0;
  background-color: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .38;
  background-image: linear-gradient(to right, rgba(36, 53, 45, .6) 1px, transparent 1px);
  background-size: 96px 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, p, figure, address, blockquote { margin: 0; }

address { font-style: normal; }

table { border-collapse: collapse; }

:root {
  --ink: #06090A;
  --panel: #0D1F19;
  --panel-2: #17402F;
  --line: #24352D;
  --orange: #FF6A13;
  --red: #E4323F;
  --blue: #2E8BFF;
  --lime: #C6F24E;
  --white: #F3F6F2;
  --muted: #8FA39A;
  --dim: #5E7C6C;

  --rail-w: 96px;
  --pad: clamp(1.125rem, 3vw, 3.5rem);
  --maxw: 1520px;
  --gap: clamp(1rem, 1.8vw, 1.75rem);

  --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: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, .7, .24, 1);
  --shadow-hard: 6px 6px 0 0 var(--panel-2);
  --shadow-deep: 12px 12px 0 0 rgba(3, 5, 6, .72);
}

/* ---------- 中文排版 ---------- */

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }

.display {
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: -.03em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--orange);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 44ch;
}

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

.prose { max-width: 46ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.125rem; margin: 1.6em 0 .5em; font-weight: 700; }
.prose ul { margin-bottom: 1.1em; }
.prose ul li { position: relative; padding-left: 1.1rem; margin-bottom: .45em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}
.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(46, 139, 255, .45);
}
.prose strong { color: var(--white); font-weight: 700; }

/* ---------- 焦点与跳转 ---------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(6, 9, 10, .85);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-160%);
  padding: .8rem 1.35rem;
  background: var(--orange);
  color: #06090A;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .06em;
  border: 2px solid #06090A;
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 页头外壳 ---------- */

.site-header { position: relative; z-index: 120; }

/* 移动端品牌状态条 */
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 140;
  align-items: center;
  gap: 1rem;
  padding: .7rem 5.5rem .7rem 1rem;
  background: var(--ink);
  border-bottom: 2px solid var(--line);
}

.mobile-bar__brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }

.mobile-bar__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--orange);
  color: #06090A;
  font-weight: 900;
  font-size: .9375rem;
  line-height: 1;
  box-shadow: 3px 3px 0 0 var(--panel-2);
}

.mobile-bar__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mobile-bar__text strong { font-size: .9375rem; font-weight: 800; letter-spacing: .06em; }
.mobile-bar__text em { font-style: normal; font-size: .6875rem; letter-spacing: .12em; color: var(--dim); }

.mobile-bar__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 抽屉按钮 */
.nav-toggle {
  display: none;
  position: fixed;
  top: .7rem;
  right: .75rem;
  z-index: 150;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 64px;
  min-height: 46px;
  padding: .5rem .7rem;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); }

.nav-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 160ms var(--ease), width 220ms var(--ease);
}
.nav-toggle__bars span:nth-child(2) { width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* ---------- 侧轨导航 ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: var(--rail-w);
  padding: 1rem .55rem 1.1rem;
  background: var(--panel);
  border-right: 2px solid var(--line);
  overflow: hidden;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--orange);
  color: #06090A;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 3px 3px 0 0 var(--panel-2);
}

.rail__name { font-size: .75rem; font-weight: 800; letter-spacing: .1em; color: var(--white); }
.rail__sub { font-size: .5625rem; letter-spacing: .1em; color: var(--dim); }

.rail__list { display: flex; flex-direction: column; gap: 2px; margin-top: .25rem; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  min-height: 44px;
  padding: .6rem .15rem;
  border: 2px solid transparent;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.rail__link:hover {
  color: var(--white);
  background: rgba(23, 64, 47, .6);
  border-left-color: var(--panel-2);
}
.rail__link[aria-current="page"] {
  color: var(--white);
  background: var(--panel-2);
  border-left-color: var(--orange);
}
.rail__link[aria-current="page"] .rail__idx { color: var(--orange); }
.rail__link[aria-current="page"] .rail__label { font-weight: 700; }

.rail__idx {
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .12em;
  color: var(--dim);
  transition: color 160ms var(--ease);
}
.rail__label { display: block; line-height: 1.3; }

.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: .45rem; }

.rail__cta {
  font-size: .6875rem;
  line-height: 1.35;
  letter-spacing: .04em;
  padding: .5rem .35rem;
  white-space: normal;
}

.rail__note {
  font-size: .5625rem;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--dim);
  text-align: center;
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: rgba(143, 163, 154, .08);
  pointer-events: none;
}
.rail__progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 100ms linear;
}

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(6, 9, 10, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.rail-scrim[data-visible] { opacity: 1; pointer-events: auto; }

@media (min-width: 901px) {
  body { padding-left: var(--rail-w); }
  .rail-scrim { display: none; }
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  background: var(--panel);
  border-top: 2px solid var(--orange);
  padding: clamp(2rem, 4vw, 3.25rem) var(--pad) 1.35rem;
}

.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer__brand-line { font-size: 1.0625rem; font-weight: 800; letter-spacing: .04em; }
.footer__tagline { margin-top: .35rem; font-size: .8125rem; letter-spacing: .14em; color: var(--orange); }
.footer__trust { margin-top: .9rem; font-size: .875rem; line-height: 1.7; color: var(--muted); max-width: 36ch; }
.footer__batch { margin-top: .6rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--dim); }

.footer__col-title {
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
}

.footer__links { display: flex; flex-direction: column; gap: .35rem; }

.footer__links a {
  display: inline-block;
  padding: .2rem 0;
  font-size: .9375rem;
  color: rgba(243, 246, 242, .84);
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.footer__links a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .95rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.footer__contact-item { display: flex; align-items: baseline; gap: .6rem; font-size: .8125rem; }

.footer__k {
  flex: none;
  min-width: 2.7em;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .1em;
  color: var(--dim);
}

.footer__v { color: var(--muted); word-break: break-all; }

.footer__status {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.1rem 0;
}

.status-chip {
  display: inline-block;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  background: rgba(23, 64, 47, .4);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.status-chip--blue { color: var(--blue); border-color: rgba(46, 139, 255, .45); }
.status-chip--red { color: var(--red); border-color: rgba(228, 50, 63, .45); }
.status-chip--lime { color: var(--lime); border-color: rgba(198, 242, 78, .4); }

.footer__legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-size: .75rem;
  line-height: 1.7;
  color: var(--dim);
}

.footer__legal-note { max-width: 52ch; }

.footer__legal-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-family: var(--font-mono); letter-spacing: .04em; }

.footer__sep { color: var(--line); }

/* ---------- 容器与区块 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--tight { max-width: 1080px; }

.section { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem); }

.band { position: relative; }
.band--panel { background: var(--panel); }
.band--turf { background: var(--panel-2); }
.band--edge { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

.rule { height: 2px; margin: 0; border: 0; background: var(--line); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .75rem 1.25rem;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { border-color: var(--orange); color: var(--orange); }

.btn--solid { background: var(--orange); border-color: var(--orange); color: #06090A; }
.btn--solid:hover { background: #ff8038; border-color: #06090A; color: #06090A; }

.btn--ghost { background: transparent; }

.btn--block { width: 100%; }

/* ---------- 面包屑 ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: 1.1rem 0 .35rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--dim);
}
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.crumbs a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ---------- 章节索引条 ---------- */

.index-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
  padding-top: .85rem;
  border-top: 2px solid var(--line);
}
.index-bar__no { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em; color: var(--orange); }
.index-bar__title { font-size: clamp(1.25rem, 2.4vw, 1.875rem); font-weight: 800; letter-spacing: -.01em; }
.index-bar__meta { margin-left: auto; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- 栅格 ---------- */

.grid { display: grid; gap: var(--gap); }

@media (min-width: 768px) {
  .grid--3-9 { grid-template-columns: 3fr 9fr; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; }
  .grid--8-4 { grid-template-columns: 8fr 4fr; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--4-5-3 { grid-template-columns: 4fr 5fr 3fr; }
}

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
}

.card--hard {
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.card--lift {
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.card--lift:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow-hard);
}

/* ---------- 数据统计 ---------- */

.stat { display: flex; flex-direction: column; gap: .2rem; }

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--white);
}
.stat__value--orange { color: var(--orange); }
.stat__value--blue { color: var(--blue); }
.stat__value--lime { color: var(--lime); }
.stat__value--red { color: var(--red); }

.stat__label { font-size: .75rem; letter-spacing: .1em; color: var(--muted); }

.stat__unit {
  margin-left: .25rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- 表格 ---------- */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--panel-2); }

.data-table { width: 100%; min-width: 520px; font-size: .9375rem; }

.data-table th,
.data-table td {
  padding: .7rem .75rem;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: rgba(23, 64, 47, .42);
  border-bottom: 2px solid var(--line);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.data-table tbody tr { transition: background-color 140ms var(--ease); }
.data-table tbody tr:hover { background: rgba(46, 139, 255, .07); }
.data-table td.num { color: var(--white); }

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: .22rem .5rem;
  border: 1px solid var(--line);
  background: rgba(13, 31, 25, .85);
  color: var(--muted);
  font-size: .6875rem;
  letter-spacing: .1em;
  white-space: nowrap;
}
.tag--orange { color: var(--orange); border-color: rgba(255, 106, 19, .5); }
.tag--red { color: var(--red); border-color: rgba(228, 50, 63, .5); }
.tag--blue { color: var(--blue); border-color: rgba(46, 139, 255, .5); }
.tag--lime { color: var(--lime); border-color: rgba(198, 242, 78, .45); }

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--line);
  background-color: var(--panel-2);
  background-image:
    linear-gradient(to right, rgba(143, 163, 154, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 154, .16) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .4rem .6rem;
  background: rgba(6, 9, 10, .84);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
}

/* ---------- 主题筛选 ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  min-height: 36px;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.filter-btn:hover { color: var(--white); border-color: var(--muted); }
.filter-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #06090A;
  font-weight: 700;
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}

[data-filter-item][hidden] { display: none !important; }

/* ---------- 分段控件 ---------- */

.segment {
  display: inline-flex;
  border: 2px solid var(--line);
  background: var(--panel);
}

.segment__btn {
  min-height: 38px;
  padding: .5rem .85rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.segment__btn:last-child { border-right: 0; }
.segment__btn:hover { color: var(--white); }
.segment__btn[aria-selected="true"],
.segment__btn[data-active] {
  background: var(--orange);
  color: #06090A;
  font-weight: 700;
}

/* ---------- 时间线 ---------- */

.timeline { position: relative; padding-left: 1.6rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .6rem;
  bottom: .6rem;
  width: 2px;
  background: var(--panel-2);
}

.timeline__item { position: relative; padding-bottom: 1.5rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: .5rem;
  width: 12px;
  height: 12px;
  background: var(--panel-2);
  border: 2px solid var(--ink);
}
.timeline__item[data-state="active"]::before { background: var(--orange); }
.timeline__item[data-state="extra"]::before { background: var(--red); }

/* ---------- 折叠区块 ---------- */

.collapse { border: 1px solid var(--line); background: var(--panel); }
.collapse + .collapse { border-top: 0; }

.collapse__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 48px;
  padding: .9rem 1rem;
  text-align: left;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: color 150ms var(--ease);
}
.collapse__head:hover { color: var(--orange); }

.collapse__sign {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--orange);
}

.collapse__body {
  padding: 0 1rem 1.1rem;
  font-size: .9375rem;
  color: var(--muted);
}
.collapse__body[hidden] { display: none; }

/* ---------- 横向滚动数据卡 ---------- */

.scroll-x {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 82%);
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; }

@media (min-width: 901px) {
  .scroll-x {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow: visible;
  }
}

/* ---------- 显现动画 ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 复制按钮反馈 ---------- */

[data-copy] {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
[data-copy]:hover { color: var(--orange); border-color: var(--orange); }
[data-copy].is-copied { color: var(--lime); border-color: var(--lime); }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body::before { display: none; }

  .mobile-bar { display: flex; }
  .nav-toggle { display: inline-flex; }

  .rail {
    width: min(86vw, 320px);
    padding: 1.25rem 1rem 1.5rem;
    transform: translateX(-104%);
    border-right: 2px solid var(--orange);
    box-shadow: 14px 0 0 0 rgba(3, 5, 6, .6);
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 340ms var(--ease);
  }
  .rail[data-open] { transform: translateX(0); }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: .65rem;
    padding-bottom: 1rem;
    text-align: left;
  }
  .rail__name { font-size: .9375rem; }
  .rail__sub { font-size: .625rem; }

  .rail__list { margin-top: .5rem; gap: 3px; }

  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: .8rem;
    padding: .8rem .8rem;
    font-size: .9375rem;
  }
  .rail__idx { font-size: .625rem; }

  .rail__cta { font-size: .8125rem; padding: .65rem .75rem; }
  .rail__note { text-align: left; padding-left: .2rem; }
  .rail__progress { display: none; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__trust { max-width: none; }
}

@media (max-width: 620px) {
  .mobile-bar { padding-right: 4.75rem; }
  .mobile-bar__tag { display: none; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__status { gap: .4rem; }
  .status-chip { font-size: .625rem; }
  .footer__legal { flex-direction: column; align-items: flex-start; }

  .index-bar__meta { margin-left: 0; width: 100%; }
  .filter-count { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }

  .card--lift:hover { transform: none; }
  .rail__progress > span { transition: none; }
}
