/* ==========================================================================
   乐鱼体育 · 共享外壳 Site Kit
   夜场轨道导航 / 海报式页脚 / 深海蓝 + 荧光青 + 射手金橙 + 电光紫
   ========================================================================== */

/* 01 — Reset
   ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

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

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

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

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

/* 02 — 变量
   ---------------------------------------------------------------------- */
:root {
  --deep: #061A2B;
  --night: #0C2942;
  --cyan: #35F2D0;
  --gold: #FFB13B;
  --violet: #A77BFF;
  --cream: #F4EFE3;
  --mist: #9BB0C4;
  --ink: #080D12;
  --alert: #FF5D3A;
  --pale: #D7F8F0;

  --rail-w: 264px;
  --bar-h: 62px;
  --content-max: 1120px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);

  --line: rgba(53, 242, 208, 0.22);
  --line-soft: rgba(155, 176, 196, 0.18);
  --paper-line: rgba(8, 13, 18, 0.16);

  --font-display: "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 03 — 基础排版
   ---------------------------------------------------------------------- */
body {
  background-color: var(--deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* 04 — 跳至主要内容
   ---------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 300;
  padding: 0.65rem 1.1rem;
  background: var(--cyan);
  color: #04222B;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* 05 — 页头：桌面左侧固定轨道
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 100;
  display: flex;
  background:
    linear-gradient(180deg, #08202F 0%, var(--deep) 44%, var(--night) 100%);
  border-right: 1px solid var(--line);
  color: var(--cream);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -1px;
  width: 44px;
  height: 180px;
  background: linear-gradient(180deg, rgba(53, 242, 208, 0.16), rgba(53, 242, 208, 0));
  clip-path: polygon(100% 0, 100% 100%, 0 88%, 0 12%);
  pointer-events: none;
}

.rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  padding: 1.6rem 1.15rem 1.25rem;
  min-height: 100%;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: rgba(53, 242, 208, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 74% 100%, 0 100%);
  transition: background var(--ease), color var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  background: var(--cyan);
  color: #04222B;
}

.brand__type { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  line-height: 1.4;
}

/* 移动端菜单按钮（桌面隐藏） */
.nav-toggle { display: none; }

/* 导航 */
.nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  counter-reset: navi;
}

.nav__item { counter-increment: navi; }

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.65rem;
  border-left: 2px solid transparent;
  color: rgba(244, 239, 227, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.nav__link::before {
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(155, 176, 196, 0.72);
  transition: color var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--cyan);
  background: rgba(53, 242, 208, 0.07);
  border-left-color: rgba(53, 242, 208, 0.55);
  transform: translateX(2px);
}

.nav__link[aria-current="page"] {
  background: var(--cyan);
  border-left-color: var(--gold);
  color: #04222B;
  font-weight: 700;
}

.nav__link[aria-current="page"]::before { color: rgba(4, 34, 43, 0.62); }

.nav__aside {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.nav__note {
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--mist);
}

.nav__cta { width: 100%; }

/* 轨道底部状态 */
.rail__foot {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

.rail__signal {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.rail__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 208, 0.18);
  animation: railPulse 2.4s ease-in-out infinite;
}

.rail__copy {
  margin-top: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(155, 176, 196, 0.76);
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 242, 208, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(53, 242, 208, 0.05); }
}

/* 竖向滚动进度 */
.scroll-meter {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: rgba(53, 242, 208, 0.12);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  transition: transform 120ms linear;
}

/* 06 — 页脚
   ---------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 0;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, var(--deep) 0%, #071320 55%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  color: var(--cream);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(52%, 520px);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 62%, transparent);
  opacity: 0.85;
}

.footer-shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: rgba(53, 242, 208, 0.09);
  border: 1px solid rgba(53, 242, 208, 0.55);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 74% 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.footer-brand__line {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(244, 239, 227, 0.72);
  max-width: 24em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.85rem);
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-link {
  display: inline-block;
  font-size: 0.89rem;
  color: rgba(244, 239, 227, 0.78);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 208, 0.55);
}

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

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.5;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: rgba(155, 176, 196, 0.85);
}

.footer-contact__value {
  font-size: 0.85rem;
  color: rgba(244, 239, 227, 0.86);
  word-break: break-word;
}

.footer-wordmark {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(53, 242, 208, 0.22);
  text-stroke: 1px rgba(53, 242, 208, 0.22);
  user-select: none;
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem 1.5rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: rgba(155, 176, 196, 0.9);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-note {
  max-width: 54ch;
  line-height: 1.7;
}

/* 07 — 通用按钮
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.66rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn--cyan {
  background: var(--cyan);
  color: #04222B;
  box-shadow: 0 8px 20px -14px rgba(53, 242, 208, 0.9);
}

.btn--cyan:hover,
.btn--cyan:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -14px rgba(53, 242, 208, 0.95);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 227, 0.3);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: rgba(53, 242, 208, 0.7);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: #2A1600;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(255, 177, 59, 0.9);
}

/* 08 — 布局容器与网格
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.75rem, 6.5vw, 5.25rem); }

.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }

.section--paper {
  background: var(--cream);
  color: var(--ink);
}

.section--paper .lede { color: rgba(8, 13, 18, 0.76); }
.section--paper .eyebrow { color: #0B6B5E; }
.section--paper .note { color: #46586A; border-left-color: var(--paper-line); }
.section--paper .rule { background: var(--paper-line); }
.section--paper .h-section { color: var(--ink); }

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 1rem);
}

/* 09 — 标题与正文
   ---------------------------------------------------------------------- */
.h-display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  max-width: 36em;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.8);
}

.prose {
  max-width: 36em;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(244, 239, 227, 0.86);
}

.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--cream); font-weight: 700; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 242, 208, 0.4);
}

.prose a:hover,
.prose a:focus-visible { border-bottom-color: var(--cyan); }

.section--paper .prose { color: rgba(8, 13, 18, 0.82); }
.section--paper .prose strong { color: var(--ink); }
.section--paper .prose a { color: #0B6B5E; border-bottom-color: rgba(11, 107, 94, 0.4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.note {
  padding-left: 0.8rem;
  border-left: 2px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mist);
}

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

/* 10 — 面包屑
   ---------------------------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mist);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.breadcrumb__item:not(:first-child)::before {
  content: "/";
  color: rgba(155, 176, 196, 0.5);
}

.breadcrumb__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 208, 0.5);
}

.breadcrumb__current { color: var(--cream); }

/* 11 — 专题研究板卡片
   ---------------------------------------------------------------------- */
.panel {
  position: relative;
  padding: 1.3rem 1.35rem;
  background: rgba(12, 41, 66, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  box-shadow: 0 16px 30px -26px rgba(8, 13, 18, 0.95);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.panel:hover,
.panel:focus-within {
  transform: translateY(-3px);
  border-color: rgba(53, 242, 208, 0.48);
  box-shadow: 0 22px 36px -26px rgba(8, 13, 18, 1);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.panel__body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(244, 239, 227, 0.78);
}

.section--paper .panel {
  background: #FBF7EE;
  border-color: var(--paper-line);
  box-shadow: 0 16px 30px -28px rgba(8, 13, 18, 0.6);
}

.section--paper .panel__head { border-bottom-color: var(--paper-line); }
.section--paper .panel__body { color: rgba(8, 13, 18, 0.76); }

/* 12 — 标签
   ---------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(53, 242, 208, 0.45);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.tag--gold {
  border-color: rgba(255, 177, 59, 0.55);
  color: var(--gold);
}

.tag--violet {
  border-color: rgba(167, 123, 255, 0.55);
  color: var(--violet);
}

.section--paper .tag { color: #0B6B5E; border-color: rgba(11, 107, 94, 0.45); }

/* 13 — 数据点
   ---------------------------------------------------------------------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.section--paper .stat__label { color: #5A6B7A; }

/* 14 — 图片容器基础规则（页面阶段放置 img）
   ---------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background:
    linear-gradient(140deg, var(--night) 0%, var(--deep) 58%, #10324C 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-6deg, rgba(53, 242, 208, 0.06) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

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

.media__caption {
  margin-top: 0.55rem;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--mist);
}

.section--paper .media { border-color: var(--paper-line); }
.section--paper .media__caption { color: #5A6B7A; }

/* 15 — 延伸阅读链接
   ---------------------------------------------------------------------- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(53, 242, 208, 0.35);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  transition: border-color var(--ease), gap var(--ease);
}

.link-more::after { content: "→"; }

.link-more:hover,
.link-more:focus-visible {
  border-bottom-color: var(--cyan);
  gap: 0.65rem;
}

.section--paper .link-more { color: #0B6B5E; border-bottom-color: rgba(11, 107, 94, 0.4); }

/* 16 — 进入视口显现（JS 协议）
   ---------------------------------------------------------------------- */
[data-reveal] { opacity: 1; transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 17 — 平板
   ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --rail-w: 232px; }

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

/* 18 — 移动端：顶部条 + 抽屉导航
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  body { padding-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: var(--bar-h);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 26, 43, 0.97);
    backdrop-filter: blur(6px);
  }

  .site-header::after { display: none; }

  .rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--bar-h);
    padding: 0.55rem var(--gutter);
  }

  .brand {
    padding-bottom: 0;
    border-bottom: 0;
    gap: 0.55rem;
  }

  .brand__mark { width: 38px; height: 38px; font-size: 0.7rem; }
  .brand__name { font-size: 1.15rem; }
  .brand__sub { font-size: 0.62rem; letter-spacing: 0.1em; }

  .rail__foot { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(53, 242, 208, 0.4);
    border-radius: 2px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(53, 242, 208, 0.1);
    border-color: var(--cyan);
  }

  .nav-toggle__bars {
    position: relative;
    display: block;
    width: 16px;
    height: 10px;
  }

  .nav-toggle__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--ease), opacity var(--ease);
  }

  .nav-toggle__bar:nth-child(1) { top: 0; }
  .nav-toggle__bar:nth-child(2) { bottom: 0; }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    z-index: 99;
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: linear-gradient(180deg, #08202F 0%, var(--deep) 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(8, 13, 18, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .nav__link {
    padding: 0.72rem 0.75rem;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    transform: none;
    border-left-color: transparent;
  }

  .nav__aside {
    margin-top: 1.15rem;
    padding-top: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav__note { max-width: 22em; }
  .nav__cta { width: auto; flex: none; }

  .scroll-meter {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }

  .scroll-meter__bar {
    transform: scaleX(var(--progress, 0));
    transform-origin: left center;
  }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }

  .footer-wordmark {
    font-size: clamp(2.2rem, 15vw, 4.5rem);
    white-space: normal;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .nav__list { grid-template-columns: 1fr; }

  .nav__aside { flex-direction: column; align-items: stretch; }
  .nav__cta { width: 100%; }

  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .panel { padding: 1.1rem 1.1rem; }
}

/* 19 — 降低动效偏好
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .panel:hover,
  .panel:focus-within,
  .btn:hover,
  .btn:focus-visible,
  .nav__link:hover {
    transform: none !important;
  }

  .scroll-meter__bar { transition: none; }
}
