/* ==========================================================================
   BSPORT 体育入口 — 站点共享样式  /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, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
:root { color-scheme: dark; }

/* 2 · 设计令牌
   ---------------------------------------------------------------------- */
:root {
  /* 色彩：近单色体系 */
  --ink:        #06110D;
  --ink-deep:   #040C09;
  --panel:      #0B1712;
  --district:   #123328;
  --line:       #1F5C4A;
  --moss:       #2C4A40;
  --sage:       #93B5A7;
  --paper:      #F6E8C7;
  --mint:       #BDFFEC;
  --cyan:       #33F2C4;
  --amber:      #F2A93B;

  /* 透明阶：建立同色层次 */
  --line-faint:  rgba(31, 92, 74, .22);
  --line-soft:   rgba(31, 92, 74, .45);
  --cyan-dim:    rgba(51, 242, 196, .10);
  --cyan-mid:    rgba(51, 242, 196, .36);
  --amber-dim:   rgba(242, 169, 59, .14);

  /* 字体 */
  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo,
                  Consolas, "Liberation Mono", monospace;

  /* 字号跨度 */
  --step--1: clamp(.72rem, .69rem + .16vw, .80rem);
  --step-0:  clamp(1rem, .96rem + .20vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.05rem + .55vw, 1.40rem);
  --step-2:  clamp(1.50rem, 1.25rem + 1.20vw, 2.10rem);
  --step-3:  clamp(2.00rem, 1.40rem + 2.60vw, 3.40rem);
  --step-4:  clamp(2.60rem, 1.60rem + 4.60vw, 5.00rem);

  /* 形状与节奏 */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shell: min(1240px, 100% - 2.5rem);
  --gutter: clamp(1rem, 2.6vw, 2.25rem);
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* 3 · 基础排版
   ---------------------------------------------------------------------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(51, 242, 196, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 242, 196, .022) 1px, transparent 1px),
    radial-gradient(1200px 620px at 84% -8%, rgba(51, 242, 196, .075), transparent 62%),
    radial-gradient(900px 520px at 0% 6%, rgba(242, 169, 59, .048), transparent 60%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  background-position: 0 0, 0 0, center, center;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.85;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

a { text-decoration-thickness: 1px; text-underline-offset: .28em; }

strong { color: var(--mint); font-weight: 700; }

::selection { background: rgba(51, 242, 196, .28); color: #04120D; }

:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 4 · 通用工具
   ---------------------------------------------------------------------- */
.wrap {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(31, 92, 74, 0));
  margin: 0;
}

/* 5 · SKIP LINK
   ---------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: .65rem;
  left: .65rem;
  z-index: 300;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-s);
  background: var(--cyan);
  color: #04120D;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 14px 34px -14px rgba(51, 242, 196, .9);
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* 6 · 头部外壳
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 17, 13, .90);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 22px 46px -38px rgba(0, 0, 0, .95);
}

.site-header[data-open="true"] {
  background: rgba(6, 17, 13, .985);
}

/* 顶部阅读进度 */
.site-header__progress {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: rgba(51, 242, 196, .09);
  overflow: hidden;
  pointer-events: none;
}

.site-header__progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--mint) 55%, var(--amber) 100%);
  box-shadow: 0 0 14px rgba(51, 242, 196, .65);
  transition: width .12s linear;
}

/* 命令栏 */
.cmdbar { border-bottom: 1px solid var(--line-faint); }

.cmdbar__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.4vw, 1.4rem);
  min-height: 64px;
  padding-block: .45rem;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  flex: 0 0 auto;
  padding: .25rem .1rem;
  border-radius: var(--radius-s);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(155deg, var(--district), #08130F 72%);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.brand__mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(51, 242, 196, .16),
    0 0 14px rgba(51, 242, 196, .85);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: .85;
}

.brand:hover .brand__mark {
  border-color: var(--cyan-mid);
  box-shadow: 0 0 0 1px rgba(51, 242, 196, .18);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.03rem;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--paper);
}

.brand__descriptor {
  font-family: var(--font-mono);
  font-size: .60rem;
  line-height: 1.3;
  letter-spacing: .16em;
  color: var(--sage);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  width: 100%;
  padding-block: .15rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.site-nav__list > li {
  flex: 0 0 auto;
  display: flex;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: .42em;
  white-space: nowrap;
  padding: .46rem .62rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-size: .82rem;
  line-height: 1.25;
  color: var(--sage);
  text-decoration: none;
  transition:
    color .2s var(--ease),
    background-color .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease);
}

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

.site-nav__link:hover {
  color: var(--mint);
  background: var(--cyan-dim);
  border-color: var(--line-faint);
}

.site-nav__link:hover .site-nav__idx { color: var(--cyan); }

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(51, 242, 196, .09);
  border-color: rgba(51, 242, 196, .40);
  box-shadow: inset 0 -2px 0 0 var(--cyan);
}

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

/* 操作区 */
.cmdbar__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.status {
  display: none;
  align-items: center;
  gap: .42rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--sage);
  white-space: nowrap;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(51, 242, 196, .9);
  animation: status-pulse 2.8s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .32; }
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .52rem .72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(18, 51, 40, .42);
  color: var(--sage);
  transition:
    color .2s var(--ease),
    border-color .2s var(--ease),
    background-color .2s var(--ease);
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan-mid);
  background: rgba(51, 242, 196, .08);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

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

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
}

.site-header[data-open="true"] .nav-toggle {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(51, 242, 196, .10);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 联赛快捷索引带 */
.route-strip {
  background: rgba(11, 23, 18, .74);
  border-top: 1px solid var(--line-faint);
}

.route-strip__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 36px;
}

.route-strip__label {
  display: none;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .26em;
  color: var(--moss);
  white-space: nowrap;
}

.route-strip__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-block: .3rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.route-strip__list::-webkit-scrollbar { display: none; }

.route-strip__list > li {
  flex: 0 0 auto;
  display: flex;
}

.route-strip__item {
  display: inline-flex;
  align-items: center;
  gap: .38em;
  white-space: nowrap;
  padding: .24rem .66rem;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--sage);
  text-decoration: none;
  transition:
    color .2s var(--ease),
    border-color .2s var(--ease),
    background-color .2s var(--ease);
}

.route-strip__item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--moss);
  transition: background-color .2s var(--ease);
}

.route-strip__item:hover {
  color: var(--mint);
  border-color: var(--cyan-mid);
  background: rgba(51, 242, 196, .07);
}

.route-strip__item:hover::before { background: var(--cyan); }

/* 7 · 按钮
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .74rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color .22s var(--ease),
    color .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    transform .22s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04120D;
  box-shadow: 0 12px 28px -16px rgba(51, 242, 196, .95);
}

.btn--primary:hover {
  background: var(--mint);
  box-shadow: 0 16px 32px -14px rgba(51, 242, 196, .95);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(18, 51, 40, .38);
  border-color: var(--line);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(51, 242, 196, .08);
}

.btn--amber {
  background: var(--amber);
  color: #1A1005;
  box-shadow: 0 12px 28px -16px rgba(242, 169, 59, .9);
}

.btn--amber:hover { transform: translateY(-1px); }

.btn--sm {
  padding: .54rem .92rem;
  font-size: .78rem;
}

/* 8 · 面包屑
   ---------------------------------------------------------------------- */
.breadcrumb {
  width: var(--shell);
  margin-inline: auto;
  padding-block: 1.15rem .25rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--moss);
}

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

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--sage);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumb__link:hover { color: var(--cyan); }

.breadcrumb__item[aria-current="page"] { color: var(--paper); }

/* 9 · 章节骨架
   ---------------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 5.5vw, 4.75rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(51, 242, 196, .7);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--paper);
}

.lede {
  max-width: 58ch;
  font-size: var(--step-1);
  line-height: 1.72;
  color: var(--sage);
}

/* 10 · 网格
   ---------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

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

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

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

/* 11 · 数据卡片
   ---------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-m);
  background: linear-gradient(165deg, rgba(18, 51, 40, .55), rgba(11, 23, 18, .92));
  transition:
    border-color .24s var(--ease),
    background-color .24s var(--ease),
    box-shadow .24s var(--ease);
}

.card:hover {
  border-color: var(--cyan-mid);
  background: linear-gradient(165deg, rgba(18, 51, 40, .72), rgba(11, 23, 18, .96));
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, .95);
}

.card__label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
}

.card__title {
  margin-top: .55rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.28;
  color: var(--paper);
}

/* 12 · 状态胶囊
   ---------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  padding: .22rem .68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 51, 40, .48);
  font-size: .70rem;
  letter-spacing: .08em;
  color: var(--sage);
  white-space: nowrap;
}

.pill--cyan {
  color: var(--cyan);
  border-color: var(--cyan-mid);
  background: var(--cyan-dim);
}

.pill--live {
  color: var(--amber);
  border-color: rgba(242, 169, 59, .45);
  background: var(--amber-dim);
}

/* 13 · 图片容器基础规则（页面阶段放置占位图使用）
   ---------------------------------------------------------------------- */
.media-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, var(--district), #08130F 80%);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.70) contrast(1.06) brightness(.90);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 17, 13, 0) 42%, rgba(6, 17, 13, .78) 100%),
    repeating-linear-gradient(0deg, rgba(51, 242, 196, .05) 0 1px, transparent 1px 3px);
}

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

.media-frame--empty {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.media-frame--empty::before {
  content: attr(data-placeholder);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--moss);
  z-index: 1;
}

.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: .85rem 1.05rem;
  font-family: var(--font-mono);
  font-size: .70rem;
  letter-spacing: .09em;
  color: var(--sage);
}

/* 14 · 滚动显现协议
   ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* 15 · 页脚
   ---------------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #071410 0%, #040C09 62%, #030A07 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -46% -12% auto -12%;
  height: 74%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 60% at 26% 0%, rgba(51, 242, 196, .13), transparent 70%),
    radial-gradient(48% 52% at 88% 8%, rgba(242, 169, 59, .08), transparent 72%);
}

.footer__inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--paper);
}

.footer__wordmark span {
  color: var(--cyan);
  margin-left: .12em;
}

.footer__tagline {
  margin-top: .95rem;
  max-width: 30ch;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--sage);
}

.footer__scale {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1.4rem;
}

.footer__scale span {
  display: block;
  height: 3px;
  width: 18px;
  border-radius: 2px;
  background: var(--line);
}

.footer__scale span:nth-child(1) { width: 46px; background: var(--cyan); }
.footer__scale span:nth-child(2) { width: 14px; background: var(--amber); }
.footer__scale span:nth-child(3) { width: 26px; background: var(--line); }
.footer__scale span:nth-child(4) { width: 8px;  background: var(--moss); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1.9rem 2rem;
}

.footer__title {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin-bottom: .85rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line-faint);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  color: var(--mint);
}

.footer__title span {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
  color: var(--cyan);
}

.footer__links {
  display: grid;
  gap: .1rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  width: fit-content;
  padding: .3rem 0;
  font-size: .86rem;
  color: var(--sage);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer__link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width .22s var(--ease);
}

.footer__link:hover { color: var(--mint); }
.footer__link:hover::before { width: 10px; }

.footer__contact {
  display: grid;
  gap: .7rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-faint);
}

.footer__contact-kicker {
  font-family: var(--font-mono);
  font-size: .60rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--moss);
}

.footer__contact-body { display: grid; gap: .35rem; }

.footer__contact-line {
  font-family: var(--font-mono);
  font-size: .80rem;
  line-height: 1.9;
  letter-spacing: .015em;
  color: var(--paper);
  word-break: break-word;
}

.footer__note {
  margin-top: .5rem;
  max-width: 62ch;
  font-size: .74rem;
  line-height: 1.8;
  color: var(--moss);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.3rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-faint);
}

.footer__legal-copy {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--moss);
}

.footer__legal-sep {
  display: none;
  width: 1px;
  height: 11px;
  background: var(--line-faint);
}

/* 16 · 响应式：头部断点
   ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav__idx { display: none; }
  .site-nav__link { font-size: .80rem; padding: .46rem .54rem; }
}

@media (min-width: 720px) {
  .route-strip__label { display: inline; }
}

@media (min-width: 1120px) {
  .status { display: inline-flex; }
}

@media (min-width: 900px) {
  .footer__top { grid-template-columns: minmax(250px, 1fr) minmax(0, 1.85fr); gap: clamp(2rem, 5vw, 4.5rem); }
  .footer__contact { grid-template-columns: auto minmax(0, 1fr); gap: .7rem 2.4rem; align-items: start; }
}

@media (min-width: 640px) {
  .footer__legal-sep { display: inline-block; }
}

/* 移动端与平板：命令栏转为抽屉 */
@media (max-width: 960px) {
  .site-header { position: sticky; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: .7rem clamp(.9rem, 4vw, 1.5rem) 1rem;
    max-height: 74vh;
    overflow-y: auto;
    background: rgba(7, 18, 13, .99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 64px -30px rgba(0, 0, 0, .98);
    -webkit-overflow-scrolling: touch;
  }

  .site-header[data-open="true"] .site-nav { display: flex; }

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

  .site-nav__list > li { display: block; }

  .site-nav__link {
    display: flex;
    justify-content: flex-start;
    padding: .8rem .7rem;
    font-size: .95rem;
    border-radius: 10px;
    border-bottom: 1px solid var(--line-faint);
  }

  .site-nav__idx { display: inline; font-size: .64rem; }

  .site-nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 0 var(--cyan);
  }

  .status { display: none; }

  .brand__descriptor { font-size: .56rem; letter-spacing: .12em; }
}

@media (max-width: 620px) {
  .cmdbar__inner { min-height: 58px; gap: .4rem; }
  .brand__mark { width: 27px; height: 27px; border-radius: 8px; }
  .brand__name { font-size: .95rem; }
  .brand__descriptor { display: none; }
  .btn--sm { padding: .5rem .8rem; font-size: .74rem; }
  .nav-toggle { padding: .48rem .6rem; }
  .nav-toggle__label { font-size: .62rem; letter-spacing: .1em; }
  .footer__wordmark { font-size: 1.7rem; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-frame--tall { aspect-ratio: 4 / 5; }
}

@media (max-width: 380px) {
  .nav-toggle__label { display: none; }
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
}

/* 17 · 减少动态
   ---------------------------------------------------------------------- */
@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;
  }

  .status__dot { animation: none; opacity: 1; }

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

  .btn--primary:hover,
  .btn--amber:hover { transform: none; }
}

/* 18 · 打印
   ---------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .skip-link, .route-strip, .nav-toggle { display: none !important; }
  .site-footer { border-top: 1px solid #999; background: #fff; color: #111; }
  .footer__wordmark, .footer__title, .footer__contact-line, .footer__link { color: #111; }
}
