/* ==========================================================================
   1号娱乐主站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 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, dl, dt, dd,
figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --c-ink:      #0B1A2B;
  --c-layer:    #12283F;
  --c-cyan:     #35E0D0;
  --c-coral:    #FF5A5F;
  --c-gold:     #D8B778;
  --c-stone:    #6E7A85;
  --c-moss:     #4C7A6A;
  --c-clay:     #B0603E;
  --c-violet:   #2A1F3D;
  --c-paper:    #F2EEE6;

  --c-deep:     #06121e;
  --c-line:     rgba(216, 183, 120, .30);
  --c-line-soft:rgba(242, 238, 230, .10);
  --c-text-sub: #A9BAC6;

  /* 排版 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
                  "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body:    "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
                  "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace,
                  SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif:   "Songti SC", "Source Han Serif SC", "Noto Serif SC",
                  SimSun, Georgia, serif;

  /* 尺度 */
  --rail-w: 84px;
  --bar-h: 64px;
  --shell: min(1180px, 100% - clamp(1.5rem, 5vw, 4rem));
  --ease: cubic-bezier(.22, .61, .36, 1);
  --angle-a: -2.5deg;
  --angle-b: 6deg;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  background-color: var(--c-ink);
  background-image:
    radial-gradient(1200px 620px at 84% -12%, rgba(53, 224, 208, .11), transparent 62%),
    radial-gradient(880px 600px at 4% 108%, rgba(255, 90, 95, .10), transparent 60%),
    radial-gradient(600px 400px at 60% 40%, rgba(42, 31, 61, .55), transparent 70%);
  background-attachment: fixed;
  color: var(--c-paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

#main-content { scroll-margin-top: calc(var(--bar-h) + 1.25rem); display: block; }

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: .65rem;
  left: 50%;
  z-index: 400;
  transform: translate(-50%, -240%);
  padding: .55rem 1.15rem;
  background: var(--c-cyan);
  color: #04141c;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 2px;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   5. 头部外壳
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

/* ---------- 5.1 左侧品牌轨道 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .9rem .35rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #12283F 0%, #0B1A2B 58%, #0d2133 100%);
  border-right: 1px solid var(--c-line);
  box-shadow: inset -1px 0 0 rgba(53, 224, 208, .10);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 183, 120, .35) transparent;
}
.rail::-webkit-scrollbar { width: 3px; }
.rail::-webkit-scrollbar-thumb { background: rgba(216, 183, 120, .35); }

.rail__brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--c-gold);
  background: linear-gradient(150deg, #16304a, #0b1a2b);
  box-shadow: 4px 4px 0 rgba(42, 31, 61, .65), inset 0 0 18px rgba(53, 224, 208, .12);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.rail__brand:hover { transform: translate(-1px, -1px); border-color: var(--c-cyan); }
.rail__mark {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: -.04em;
  line-height: 1;
}

.rail__nav { width: 100%; flex: 1 1 auto; }
.rail__list { display: flex; flex-direction: column; gap: .15rem; width: 100%; }
.rail__item { width: 100%; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  width: 100%;
  padding: .8rem .3rem;
  color: #9FB2C0;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 2px;
  background: var(--c-cyan);
  box-shadow: 0 0 10px rgba(53, 224, 208, .7);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .24s var(--ease);
}
.rail__link:hover { color: var(--c-paper); background: rgba(53, 224, 208, .07); }
.rail__link[aria-current="page"] {
  color: var(--c-cyan);
  background: linear-gradient(90deg, rgba(53, 224, 208, .16), rgba(53, 224, 208, 0));
}
.rail__link[aria-current="page"]::before { transform: scaleY(1); }

.rail__idx {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--c-gold);
  opacity: .8;
  line-height: 1;
}
.rail__link[aria-current="page"] .rail__idx { color: var(--c-cyan); opacity: 1; }

.rail__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
}

.rail__foot {
  margin-top: auto;
  width: 100%;
  padding-top: .85rem;
  border-top: 1px solid rgba(216, 183, 120, .20);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--c-stone);
}
.rail__round { color: var(--c-gold); }
.rail__chan { writing-mode: vertical-rl; color: var(--c-moss); font-size: .6rem; }

/* ---------- 5.2 紧凑命令栏 ---------- */
.command-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  z-index: 124;
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.6rem);
  padding-inline: clamp(.9rem, 2.4vw, 2rem);
  background: linear-gradient(180deg, rgba(8, 20, 34, .97), rgba(11, 26, 43, .86));
  border-bottom: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.command__loc {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  flex: 0 0 auto;
  white-space: nowrap;
}
.command__idx {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--c-gold);
  letter-spacing: .1em;
  padding: .12rem .38rem;
  border: 1px solid rgba(216, 183, 120, .35);
  border-radius: 2px;
}
.command__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.01em;
  color: var(--c-paper);
}

.command__stats {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2.4vw, 2rem);
  margin-inline: auto;
}
.command__stat { display: inline-flex; align-items: baseline; gap: .34rem; }
.command__num {
  font-family: var(--font-mono);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--c-cyan);
}
.command__key { font-size: .72rem; letter-spacing: .06em; color: var(--c-stone); }

.command__tools {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.latency {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .34rem .7rem;
  border: 1px solid rgba(76, 122, 106, .72);
  background: rgba(76, 122, 106, .13);
  border-radius: 2px;
  font-size: .72rem;
  letter-spacing: .05em;
  color: #CDE7DE;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.latency:hover { border-color: var(--c-cyan); background: rgba(53, 224, 208, .12); }
.latency__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  animation: dot-pulse 2.8s var(--ease) infinite;
}
.latency__dot--alert { background: var(--c-coral); animation-name: dot-alert; }
.latency__chan {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--c-gold);
  padding-left: .5rem;
  border-left: 1px solid rgba(216, 183, 120, .38);
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 224, 208, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(53, 224, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 208, 0); }
}
@keyframes dot-alert {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 95, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 90, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

.command__search {
  display: inline-flex;
  align-items: center;
  padding: .42rem .82rem;
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.command__search:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(53, 224, 208, .1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .42rem .72rem;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-paper);
  font-size: .74rem;
  letter-spacing: .1em;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--c-cyan);
  transition: background .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--c-cyan);
  transition: transform .24s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold) 62%, var(--c-coral));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(4, 10, 18, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
@media (min-width: 901px) { .nav-scrim { display: none; } }

/* ==========================================================================
   6. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 9vw, 7rem);
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 1.6rem;
  background-image:
    radial-gradient(720px 320px at 88% 0%, rgba(255, 90, 95, .11), transparent 66%),
    radial-gradient(560px 300px at 6% 100%, rgba(53, 224, 208, .08), transparent 64%),
    linear-gradient(180deg, rgba(18, 40, 63, .58), #08131f 58%);
  border-top: 1px solid var(--c-line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(120px, 22vw, 320px);
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), rgba(53, 224, 208, 0));
}

.footer__grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.footer__brandcol { min-width: 0; }
.footer__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border: 1px solid var(--c-gold);
  background: linear-gradient(150deg, #16304a, #0b1a2b);
  box-shadow: 4px 4px 0 rgba(42, 31, 61, .65);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}
.footer__brandname {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--c-paper);
}
.footer__domain {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--c-cyan);
  margin-top: .3rem;
  word-break: break-all;
}
.footer__blurb {
  margin-top: .9rem;
  max-width: 30ch;
  font-size: .8rem;
  line-height: 1.85;
  color: var(--c-stone);
}

.footer__col { min-width: 0; }
.footer__head {
  margin-bottom: 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px dashed rgba(216, 183, 120, .34);
  font-family: var(--font-serif);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--c-gold);
}
.footer__list li + li { margin-top: .5rem; }
.footer__list a {
  display: inline-block;
  font-size: .86rem;
  color: var(--c-text-sub);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer__list a::before {
  content: "—";
  margin-right: .45rem;
  color: var(--c-stone);
  transition: color .2s var(--ease);
}
.footer__list a:hover { color: var(--c-cyan); padding-left: .3rem; }
.footer__list a:hover::before { color: var(--c-cyan); }

.footer__list--plain li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--c-stone);
}
.footer__val {
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--c-paper);
  word-break: break-word;
}
.footer__note {
  margin-top: .9rem;
  font-size: .76rem;
  line-height: 1.8;
  color: var(--c-stone);
}
.footer__cta {
  display: inline-flex;
  align-items: center;
  margin-top: .9rem;
  padding: .45rem .9rem;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-size: .78rem;
  letter-spacing: .1em;
  border-radius: 2px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.footer__cta:hover { background: rgba(216, 183, 120, .14); border-color: var(--c-cyan); color: var(--c-cyan); }

.footer__base {
  width: var(--shell);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(216, 183, 120, .22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.4rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--c-stone);
}
.footer__legal { color: var(--c-gold); }
.footer__meta { color: var(--c-text-sub); }
.footer__copy { margin-left: auto; }

/* ==========================================================================
   7. 通用布局与组件
   ========================================================================== */
.wrap { width: var(--shell); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - clamp(1.5rem, 5vw, 4rem)); margin-inline: auto; }

.section { padding-block: clamp(2.6rem, 6vw, 5rem); }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .8rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--c-line-soft);
}

.kicker {
  font-family: var(--font-serif);
  font-size: .78rem;
  letter-spacing: .26em;
  color: var(--c-gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
}

.lede {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #C6D3DD;
}

.figure-num {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.05em;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--c-cyan);
  text-shadow: 0 0 32px rgba(53, 224, 208, .28);
}
.figure-num--gold { color: var(--c-gold); text-shadow: 0 0 32px rgba(216, 183, 120, .22); }
.figure-num--coral { color: var(--c-coral); text-shadow: 0 0 32px rgba(255, 90, 95, .25); }

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.4rem);
}
.metric { min-width: 0; }
.metric__label {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-serif);
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--c-stone);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--c-line), transparent);
}

/* 面包屑 */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--c-stone);
}
.crumb a { color: var(--c-text-sub); transition: color .2s var(--ease); }
.crumb a:hover { color: var(--c-cyan); }
.crumb__sep { color: rgba(216, 183, 120, .55); }
.crumb [aria-current="page"] { color: var(--c-gold); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem 1.15rem;
  border-radius: 2px;
  border: 1px solid var(--c-line);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-paper);
  transition: color .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #04141c;
}
.btn--solid:hover { background: #5AECE0; border-color: #5AECE0; }
.btn--ghost:hover { color: var(--c-cyan); border-color: var(--c-cyan); background: rgba(53, 224, 208, .1); }

/* 标签与贴纸 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--c-gold);
  background: rgba(216, 183, 120, .07);
}
.tag--cyan { color: var(--c-cyan); border-color: rgba(53, 224, 208, .45); background: rgba(53, 224, 208, .08); }
.tag--coral { color: var(--c-coral); border-color: rgba(255, 90, 95, .45); background: rgba(255, 90, 95, .08); }
.tag--moss { color: #9DD0BF; border-color: rgba(76, 122, 106, .6); background: rgba(76, 122, 106, .12); }
.tag--clay { color: #E0A083; border-color: rgba(176, 96, 62, .55); background: rgba(176, 96, 62, .12); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: .32rem .7rem;
  border: 1px solid var(--c-line-soft);
  border-radius: 999px;
  font-size: .76rem;
  color: var(--c-text-sub);
  background: rgba(18, 40, 63, .6);
}

/* 纸张叠层卡片 / 面板 */
.paper {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
  background: linear-gradient(160deg, #16304a, #102338);
  border: 1px solid var(--c-line);
  box-shadow: 6px 6px 0 rgba(42, 31, 61, .6), 12px 12px 0 rgba(216, 183, 120, .08);
}
.paper::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, rgba(216, 183, 120, .55) 0 50%, transparent 50%);
  opacity: .7;
}

.card {
  position: relative;
  padding: clamp(.95rem, 2vw, 1.4rem);
  background: rgba(18, 40, 63, .72);
  border: 1px solid var(--c-line-soft);
  border-left: 2px solid rgba(53, 224, 208, .5);
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-left-color: var(--c-cyan);
  background: rgba(20, 45, 70, .86);
}

.panel {
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background: rgba(11, 26, 43, .78);
  border: 1px solid var(--c-line-soft);
}

/* 斜切分区 */
.slant {
  position: relative;
  padding: clamp(2.4rem, 6vw, 4.5rem) 0;
  background-image:
    linear-gradient(180deg, rgba(42, 31, 61, 0), rgba(42, 31, 61, .55)),
    linear-gradient(160deg, #12283F, #0e2033);
  clip-path: polygon(0 clamp(14px, 3vw, 34px), 100% 0,
                     100% calc(100% - clamp(14px, 3vw, 34px)), 0 100%);
}
.slant--flip {
  clip-path: polygon(0 0, 100% clamp(14px, 3vw, 34px),
                     100% 100%, 0 calc(100% - clamp(14px, 3vw, 34px)));
}

/* 横向滚动轨道 */
.track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .4rem .4rem 1.2rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 183, 120, .4) transparent;
}
.track::-webkit-scrollbar { height: 5px; }
.track::-webkit-scrollbar-thumb { background: rgba(216, 183, 120, .4); }
.track__item {
  flex: 0 0 min(300px, 76vw);
  scroll-snap-align: start;
}

/* 编号条款 */
.rule-list { counter-reset: rule; }
.rule-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.rule-item__no {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--c-gold);
  padding-top: .18rem;
}
.rule-item__body {
  font-size: .875rem;
  line-height: 1.95;
  color: #C6D3DD;
}
.rule-item__body strong { color: var(--c-paper); }

/* 折叠档案 */
.fold {
  border: 1px solid var(--c-line-soft);
  background: rgba(18, 40, 63, .5);
  margin-bottom: .7rem;
}
.fold > summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-size: .86rem;
  letter-spacing: .04em;
  color: var(--c-text-sub);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--c-cyan);
  font-size: .95rem;
}
.fold[open] > summary { color: var(--c-paper); border-bottom: 1px solid var(--c-line-soft); }
.fold[open] > summary::before { content: "−"; }
.fold__body {
  padding: 1rem;
  font-size: .875rem;
  line-height: 1.9;
  color: var(--c-text-sub);
}

/* 标签页 */
.tabs { margin-block: clamp(1.4rem, 3vw, 2.4rem); }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--c-line-soft);
}
.tabs__tab {
  padding: .42rem .9rem;
  border: 1px solid var(--c-line-soft);
  border-radius: 2px;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--c-text-sub);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tabs__tab:hover { color: var(--c-paper); border-color: var(--c-line); }
.tabs__tab[aria-selected="true"] {
  color: #04141c;
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  font-weight: 600;
}
.tabs__panel { padding-top: 1.3rem; }
.tabs__panel[hidden] { display: none; }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-line);
  background: linear-gradient(150deg, #132a41, #0b1a2b);
  box-shadow: 8px 8px 0 rgba(42, 31, 61, .55);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06) brightness(.92);
}
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square   { aspect-ratio: 1 / 1; }
.media-frame--panorama { aspect-ratio: 21 / 9; }
.media-frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .32rem .68rem;
  background: rgba(11, 26, 43, .88);
  border-top: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--c-gold);
}

/* 表格 */
.table {
  width: 100%;
  font-size: .85rem;
  border: 1px solid var(--c-line-soft);
}
.table th,
.table td {
  padding: .7rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line-soft);
  vertical-align: top;
}
.table th {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--c-gold);
  background: rgba(18, 40, 63, .7);
}
.table td { color: var(--c-text-sub); }
.table tbody tr:hover td { background: rgba(53, 224, 208, .05); }

/* 进出场 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   8. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .command__stats { gap: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { padding-left: 0; }

  .rail {
    width: min(284px, 84vw);
    transform: translateX(-104%);
    transition: transform .3s var(--ease);
    box-shadow: 28px 0 70px rgba(0, 0, 0, .6);
    align-items: stretch;
    padding: 1rem 0 1.2rem;
  }
  .site-header[data-open] .rail { transform: none; }
  .site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

  .rail__brand { margin-left: 1rem; }
  .rail__nav { padding-inline: .5rem; }
  .rail__list { gap: .1rem; }
  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: .85rem;
    padding: .74rem .9rem;
  }
  .rail__link::before {
    left: 0;
    top: 18%;
    bottom: 18%;
  }
  .rail__text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: .1em;
    font-size: .95rem;
  }
  .rail__foot {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
    padding: .9rem 1rem 0;
  }
  .rail__chan { writing-mode: horizontal-tb; }

  .command-bar { left: 0; }
  .nav-toggle { display: inline-flex; }
  .command__stats { display: none; }
  .footer__copy { margin-left: 0; }
}

@media (max-width: 640px) {
  .command__search { display: none; }
  .latency__chan { display: none; }
  .command__name { font-size: .88rem; }
  .footer__grid { width: min(100% - 2rem, 1180px); grid-template-columns: 1fr; }
  .footer__base { width: min(100% - 2rem, 1180px); }
  .rule-item { grid-template-columns: 2.6rem 1fr; gap: .7rem; }
}

@media (max-width: 420px) {
  .latency__label { display: none; }
}

/* ==========================================================================
   9. 可访问性偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-progress { transition: none !important; }
}
