/* ==========================================================================
   壹趣体育赛场 · 共享样式表  /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, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
i { font-style: normal; }

/* ---------- 2. 变量 ---------- */
:root {
  --arena: #0B1B33;
  --panel: #12294A;
  --line: #1E3A63;
  --neon: #B6FF3B;
  --flare: #FF6A1A;
  --cyan: #38E1FF;
  --mist: #F2F6FF;
  --muted: #9FB2CC;
  --void: #050B16;
  --light: #F5F7FB;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --r-card: 24px;
  --r-frame: 28px;
  --r-pill: 999px;

  --shell: 1280px;
  --gutter: 4vw;
  --header-h: 58px;
  --gap-section: clamp(56px, 8vw, 120px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--arena);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(56, 225, 255, .13), transparent 62%),
    radial-gradient(900px 520px at 2% 6%, rgba(255, 106, 26, .11), transparent 64%),
    linear-gradient(180deg, rgba(30, 58, 99, .28) 0, rgba(30, 58, 99, 0) 46%);
  background-repeat: no-repeat;
}

a:hover { color: var(--cyan); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

::selection { background: var(--neon); color: var(--arena); }

#main-content { display: block; scroll-margin-top: 128px; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--neon);
  color: var(--arena);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  transition: top .22s ease;
}
.skip-link:focus { top: 14px; color: var(--arena); }

/* ---------- 5. 容器与栅格 ---------- */
.shell {
  width: min(var(--shell), 92vw);
  margin-inline: auto;
}

.section { padding-block: var(--gap-section); }
.section--tight { padding-block: clamp(36px, 5vw, 68px); }
.section--light {
  background: var(--light);
  color: var(--arena);
  border-radius: clamp(24px, 3vw, 40px);
}
.section--light .section-title,
.section--light .display { color: var(--arena); }
.section--light .lede,
.section--light .prose { color: #33425c; }
.section--light .note-col { color: #4a5a76; border-left-color: #cbd6e6; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.note-col {
  max-width: 34ch;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3.4vw, 46px); }

/* ---------- 6. 排版类 ---------- */
.display {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: .02em;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}
.lede {
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.7;
  color: rgba(242, 246, 255, .78);
}
.prose { max-width: 68ch; }
.prose p { margin-block: 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--mist); font-weight: 700; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--accent {
  background: var(--flare);
  color: #0B1B33;
  box-shadow: 0 10px 26px rgba(255, 106, 26, .26);
}
.btn--accent:hover { color: #0B1B33; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255, 106, 26, .38); }
.btn--neon {
  background: var(--neon);
  color: var(--arena);
  box-shadow: 0 10px 26px rgba(182, 255, 59, .22);
}
.btn--neon:hover { color: var(--arena); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(18, 41, 74, .6);
  border-color: var(--line);
  color: var(--mist);
}
.btn--ghost:hover { color: var(--neon); border-color: rgba(182, 255, 59, .5); }

/* ---------- 8. 头部 · 命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 27, 51, .97) 0%, rgba(11, 27, 51, .9) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cmdbar { position: relative; }

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

/* 品牌 */
.cmdbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--cyan) 46%, var(--flare) 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 246, 255, .2);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: var(--arena);
  transform: skewX(-12deg);
}
.brand-text { display: grid; line-height: 1.12; }
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--mist);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-version {
  display: none;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(56, 225, 255, .35);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
  white-space: nowrap;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 41, 74, .72);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .12em;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform .24s ease, opacity .24s ease;
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航（移动优先：抽屉） */
.cmdbar__nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  padding-inline: 4vw;
  background: var(--void);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: max-height .34s ease, opacity .24s ease, visibility .34s ease, padding .34s ease;
}
.site-header[data-open] .cmdbar__nav {
  max-height: min(76vh, 560px);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  padding-block: 14px 20px;
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-list__item { min-width: 0; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--mist); background: rgba(56, 225, 255, .1); }
.nav-link[aria-current="page"] {
  background: var(--flare);
  color: #0B1B33;
  font-weight: 700;
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .68;
}

/* 右侧动作区 */
.cmdbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex: none;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.live-status__text { display: none; }
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(182, 255, 59, .7);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--neon);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.62); opacity: .75; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- 9. 头部 · 收藏快捷带 ---------- */
.subbar {
  background: rgba(5, 11, 22, .72);
  border-top: 1px solid rgba(30, 58, 99, .8);
}
.subbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  min-height: 42px;
  padding-block: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.subbar__entry {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px dashed rgba(56, 225, 255, .5);
  border-radius: var(--r-pill);
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: .04em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.subbar__entry:hover {
  background: rgba(56, 225, 255, .12);
  border-style: solid;
  border-color: var(--cyan);
  color: var(--cyan);
}
.subbar__recent { display: none; align-items: center; gap: 9px; }
.subbar__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(159, 178, 204, .75);
}
.subbar__list { display: flex; flex-wrap: wrap; gap: 7px; }
.subbar__chip {
  display: inline-flex;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 41, 74, .62);
  font-size: 12px;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.subbar__chip:hover {
  color: var(--neon);
  border-color: rgba(182, 255, 59, .5);
  background: rgba(182, 255, 59, .1);
}
.subbar__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(159, 178, 204, .8);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  padding: clamp(44px, 6vw, 76px) 0 26px;
  background: var(--void);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flare) 0%, var(--neon) 46%, var(--cyan) 78%, rgba(30, 58, 99, 0) 100%);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(30, 58, 99, .75);
}
.footer__brand-line {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--mist);
}
.footer__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 44px);
  padding: 32px 0;
}
.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__links { display: grid; gap: 9px; }
.footer__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s ease, transform .2s ease;
}
.footer__link:hover { color: var(--neon); transform: translateX(4px); }
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(30, 58, 99, .75);
  font-size: 13.5px;
  color: var(--muted);
}
.footer__contact-item { white-space: nowrap; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 58, 99, .75);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(159, 178, 204, .82);
}
.footer__legal-links { display: flex; gap: 18px; margin-left: auto; }
.footer__legal-link { color: var(--muted); transition: color .2s ease; }
.footer__legal-link:hover { color: var(--neon); }

/* ---------- 11. 通用组件 ---------- */
.panel {
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(18, 41, 74, .55);
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(158deg, rgba(18, 41, 74, .96) 0%, rgba(11, 27, 51, .96) 100%);
  transition: border-color .24s ease, transform .24s ease;
}
.card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, .16), rgba(56, 225, 255, 0) 68%);
  pointer-events: none;
}
.card:hover { border-color: rgba(56, 225, 255, .45); transform: translateY(-2px); }
.card__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.card__status {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__body { margin-top: 14px; font-size: 15.5px; color: rgba(242, 246, 255, .78); }

.stat { display: grid; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--neon);
}
.stat__label {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 41, 74, .62);
  color: var(--mist);
  font-size: 14px;
  letter-spacing: .03em;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.chip:hover { color: var(--cyan); border-color: rgba(56, 225, 255, .55); }
.chip[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--arena);
  font-weight: 700;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.breadcrumbs {
  padding-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.breadcrumbs__item a:hover { color: var(--cyan); }

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  background:
    linear-gradient(140deg, rgba(18, 41, 74, .95), rgba(5, 11, 22, .95));
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 99, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 99, .55) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
  pointer-events: none;
}
.media-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(5, 11, 22, .9), rgba(5, 11, 22, 0));
}

/* 斜切装饰带 */
.divider-slant {
  height: clamp(46px, 7vw, 96px);
  margin-block: clamp(24px, 4vw, 56px);
  background: linear-gradient(100deg,
    rgba(255, 106, 26, .24) 0%,
    rgba(182, 255, 59, .17) 42%,
    rgba(56, 225, 255, .2) 72%,
    rgba(30, 58, 99, 0) 100%);
  clip-path: polygon(0 68%, 100% 0, 100% 34%, 0 100%);
}

/* 章节跟随目录 */
.toc {
  position: sticky;
  top: 140px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.toc__title {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc__list { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc__link {
  display: block;
  margin-left: -1px;
  padding: 8px 0 8px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.toc__link:hover { color: var(--mist); }
.toc__link[aria-current="true"] {
  color: var(--neon);
  border-left-color: var(--neon);
}

/* ---------- 12. 滚动进度与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--flare) 0%, var(--neon) 52%, var(--cyan) 100%);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid rgba(182, 255, 59, .5);
  border-radius: var(--r-pill);
  background: rgba(5, 11, 22, .92);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease, background-color .2s ease, color .2s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--neon); color: var(--arena); }
.to-top__glyph { font-size: 14px; line-height: 1; }

/* ---------- 13. 进入视口显现 ---------- */
html[data-js] .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .34s ease, transform .34s ease;
}
html[data-js] .reveal[data-shown] { opacity: 1; transform: none; }

/* ---------- 14. 断点 ---------- */
@media (max-width: 900px) {
  .grid--7-5,
  .grid--8-4,
  .grid--5-7,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; top: auto; }
}

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

@media (min-width: 900px) {
  .live-status__text { display: inline; }
}

@media (min-width: 1025px) {
  :root { --header-h: 66px; }
  .cmdbar__inner { gap: 20px; }
  .brand-version { display: inline-flex; }
  .nav-toggle { display: none; }
  .cmdbar__nav {
    position: static;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-link {
    padding: 9px 14px;
    border-radius: var(--r-pill);
    font-size: 14.5px;
  }
  .cmdbar__actions { margin-left: auto; gap: 14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 5vw; }
  .brand-name { font-size: 14px; }
  .brand-sub { letter-spacing: .2em; }
  .cmdbar__actions .btn { padding: 9px 14px; font-size: 12.5px; }
  .subbar__inner { font-size: 12px; }
  .footer__contact-item { white-space: normal; }
  .footer__legal-links { margin-left: 0; }
}

/* ---------- 15. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .live-dot::after { display: none; }
  html[data-js] .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .footer__link:hover { transform: none; }
}
