/* ==========================================================================
   小鸟体育 · 共享基础样式 /assets/site.css
   语言：战术板 + 电子记分牌 —— 粗边框、硬阴影、网格刻度、等宽数字
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --xb-green: #1FBF75;
  --xb-green-deep: #0B5D3B;
  --xb-cyan: #2BC4D9;
  --xb-orange: #FF5A36;
  --xb-lime: #D7FF4F;
  --xb-bg: #101416;
  --xb-panel: #1A2124;
  --xb-line: #3C4A4E;
  --xb-ink: #F2F7F5;
  --xb-muted: #9AA8A3;

  --xb-font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --xb-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --xb-font-num: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --xb-max: 1320px;
  --xb-gap: clamp(16px, 2vw, 24px);
  --xb-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
  --xb-shadow-sm: 4px 4px 0 rgba(0, 0, 0, .5);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body,
h1, h2, h3, h4, h5, p,
figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--xb-cyan); text-underline-offset: 3px; }
a:hover { color: var(--xb-lime); }

table { border-collapse: collapse; width: 100%; }

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--xb-bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(60, 74, 78, .16) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(60, 74, 78, .16) 0 1px, transparent 1px 48px),
    radial-gradient(1100px 560px at 86% -12%, rgba(31, 191, 117, .15), transparent 72%),
    radial-gradient(840px 460px at -6% 4%, rgba(43, 196, 217, .11), transparent 70%);
  color: var(--xb-ink);
  font-family: var(--xb-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: .01em; }

p { text-wrap: pretty; }

::selection {
  background: var(--xb-green);
  color: #08120E;
}

/* ---------- 4. 无障碍 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--xb-lime);
  color: #08120E;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #08120E;
  box-shadow: var(--xb-shadow-sm);
  transition: top .18s ease;
}

.skip-link:focus { top: 12px; color: #08120E; }

:focus-visible {
  outline: 2px solid var(--xb-cyan);
  outline-offset: 2px;
}

.xb-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;
}

/* ---------- 5. 布局容器与栅格 ---------- */
.xb-container {
  width: 100%;
  max-width: var(--xb-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.xb-section { padding-block: clamp(40px, 6vw, 88px); }

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

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

.xb-split {
  display: grid;
  gap: var(--xb-gap);
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  align-items: start;
}

.xb-split--wide {
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
}

/* ---------- 6. 文字工具 ---------- */
.xb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--xb-font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xb-green);
}

.xb-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--xb-green);
}

.xb-display {
  font-family: var(--xb-font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.015em;
}

.xb-num {
  font-family: var(--xb-font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

.xb-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--xb-muted);
}

/* ---------- 7. 按钮 ---------- */
.xb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--xb-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease,
              background-color .16s ease, color .16s ease, border-color .16s ease;
}

.xb-btn--primary {
  background: var(--xb-green);
  color: #08120E;
  border-color: #08120E;
  box-shadow: 6px 6px 0 rgba(11, 93, 59, .95);
}

.xb-btn--primary:hover {
  background: var(--xb-lime);
  color: #08120E;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(11, 93, 59, .95);
}

.xb-btn--ghost {
  background: transparent;
  color: var(--xb-ink);
  border-color: var(--xb-line);
}

.xb-btn--ghost:hover {
  color: var(--xb-cyan);
  border-color: var(--xb-cyan);
  background: rgba(43, 196, 217, .1);
}

.xb-btn--accent {
  background: var(--xb-orange);
  color: #180603;
  border-color: #08120E;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .55);
}

.xb-btn--accent:hover {
  background: #FF7A5C;
  color: #180603;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55);
}

.xb-btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
}

.xb-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .6);
}

/* ---------- 8. 标签 ---------- */
.xb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
  color: var(--xb-cyan);
  background: rgba(43, 196, 217, .1);
  border: 1px solid var(--xb-line);
}

.xb-tag--lime {
  color: #08120E;
  background: var(--xb-lime);
  border-color: #08120E;
}

.xb-tag--cyan {
  color: #06232A;
  background: var(--xb-cyan);
  border-color: #06232A;
}

.xb-tag--orange {
  color: #2A0A03;
  background: var(--xb-orange);
  border-color: #2A0A03;
}

/* ---------- 9. 卡片 ---------- */
.xb-card {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--xb-panel);
  border: 2px solid var(--xb-line);
  box-shadow: var(--xb-shadow);
}

.xb-card--accent { border-left: 6px solid var(--xb-green); }

/* ---------- 10. 面包屑 ---------- */
.xb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px 0;
  font-size: 12px;
  color: var(--xb-muted);
}

.xb-breadcrumb a {
  color: var(--xb-muted);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

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

.xb-breadcrumb__sep { color: var(--xb-line); }

.xb-breadcrumb [aria-current="page"] {
  color: var(--xb-ink);
  font-weight: 600;
}

/* ---------- 11. 图片容器 ---------- */
.xb-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--xb-panel);
  border: 2px solid var(--xb-line);
  box-shadow: var(--xb-shadow-sm);
}

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

.xb-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 196, 217, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 196, 217, .18) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .75;
}

.xb-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(16, 20, 22, .78) 100%);
}

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

.xb-media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--xb-ink);
  background: rgba(16, 20, 22, .86);
  border-top: 2px solid var(--xb-line);
}

/* ---------- 12. 可访问标签页 ---------- */
.xb-tabs { width: 100%; }

.xb-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  list-style: none;
  border-bottom: 2px solid var(--xb-line);
}

.xb-tabs__tab {
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--xb-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--xb-muted);
  background: var(--xb-panel);
  border: 2px solid var(--xb-line);
  border-radius: 0;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease,
              background-color .18s ease, box-shadow .18s ease;
}

.xb-tabs__tab:hover {
  color: var(--xb-ink);
  border-color: var(--xb-cyan);
}

.xb-tabs__tab[aria-selected="true"] {
  background: var(--xb-green);
  color: #08120E;
  border-color: #08120E;
  box-shadow: 4px 4px 0 rgba(43, 196, 217, .9);
}

.xb-tabs__panel { outline-offset: 4px; }

.xb-tabs__panel[hidden] { display: none !important; }

/* ---------- 13. 滚动显现协议 ---------- */
.xb-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

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

/* ---------- 14. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* 上层：深草绿条带 */
.xb-topbar {
  background: var(--xb-green-deep);
  border-bottom: 2px solid rgba(0, 0, 0, .45);
  color: var(--xb-ink);
}

.xb-topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--xb-max);
  margin-inline: auto;
  padding: 4px clamp(16px, 3vw, 32px);
  font-size: 12px;
  line-height: 1.5;
}

.xb-topbar__brand {
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--xb-lime);
  white-space: nowrap;
}

.xb-topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: rgba(242, 247, 245, .88);
  letter-spacing: .02em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xb-pulse {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--xb-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 90, 54, .7);
  animation: xb-pulse 1.2s ease-out infinite;
}

@keyframes xb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 54, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 90, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}

.xb-topbar__utils {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.xb-topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--xb-ink);
  text-decoration: none;
  border: 1px solid rgba(242, 247, 245, .38);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.xb-topbar__link:hover {
  background: var(--xb-lime);
  color: #08120E;
  border-color: var(--xb-lime);
}

/* 下层：黑底栏目索引 */
.xb-navbar {
  background: rgba(16, 20, 22, .97);
  border-bottom: 2px solid var(--xb-line);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease;
}

.site-header[data-scrolled] .xb-navbar {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}

.xb-navbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--xb-max);
  margin-inline: auto;
  padding: 0 clamp(16px, 3vw, 32px);
  min-height: 76px;
}

/* 品牌标记 */
.xb-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--xb-ink);
  text-decoration: none;
}

.xb-brand:hover { color: var(--xb-ink); }

.xb-brand__mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--xb-green);
  border: 2px solid var(--xb-ink);
  box-shadow: 4px 4px 0 var(--xb-cyan);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  transition: box-shadow .18s ease, background-color .18s ease;
}

.xb-brand:hover .xb-brand__mark {
  background: var(--xb-lime);
  box-shadow: 5px 5px 0 var(--xb-cyan);
}

.xb-brand__mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--xb-bg);
  box-shadow: 0 -7px 0 var(--xb-bg), 0 7px 0 var(--xb-bg);
}

.xb-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.xb-brand__name {
  font-family: var(--xb-font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--xb-ink);
}

.xb-brand__tag {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--xb-muted);
}

/* 导航 */
.xb-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.xb-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xb-nav__item { display: block; }

.xb-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--xb-ink);
  text-decoration: none;
  border: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.xb-nav__link:hover {
  color: var(--xb-lime);
  background: var(--xb-panel);
  border-color: var(--xb-line);
}

.xb-nav__link[aria-current="page"] {
  color: var(--xb-green);
  font-weight: 700;
}

.xb-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 3px;
  background: var(--xb-green);
}

/* 移动菜单按钮 */
.xb-nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  margin-left: auto;
  background: var(--xb-panel);
  color: var(--xb-ink);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--xb-line);
  border-radius: 0;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.xb-nav__toggle:hover {
  color: var(--xb-cyan);
  border-color: var(--xb-cyan);
}

.xb-nav__toggle[aria-expanded="true"] {
  background: var(--xb-green);
  color: #08120E;
  border-color: #08120E;
}

.xb-nav__toggle-bars {
  position: relative;
  width: 20px;
  height: 2px;
  flex: none;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.xb-nav__toggle-label { letter-spacing: .06em; }

/* 滚动进度 */
.xb-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--xb-green) 0 55%, var(--xb-cyan) 78%, var(--xb-lime) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--xb-panel);
  border-top: 2px solid var(--xb-line);
  color: var(--xb-ink);
}

.site-footer__strip {
  display: grid;
  grid-template-columns: 34fr 24fr 14fr 28fr;
  height: 8px;
}

.site-footer__strip span:nth-child(1) { background: var(--xb-green); }
.site-footer__strip span:nth-child(2) { background: var(--xb-cyan); }
.site-footer__strip span:nth-child(3) { background: var(--xb-lime); }
.site-footer__strip span:nth-child(4) { background: var(--xb-orange); }

.site-footer__inner {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns:
    minmax(220px, 1.6fr)
    repeat(3, minmax(110px, 1fr))
    minmax(230px, 1.5fr);
  max-width: var(--xb-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 3vw, 32px) clamp(24px, 3vw, 40px);
}

.site-footer__name {
  font-family: var(--xb-font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.site-footer__summary {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--xb-muted);
}

.site-footer__col { min-width: 0; }

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--xb-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--xb-cyan);
}

.site-footer__heading::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--xb-cyan);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--xb-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}

.site-footer__link:hover {
  color: var(--xb-lime);
  border-color: var(--xb-lime);
}

.site-footer__contact { min-width: 0; }

.site-footer__meta { margin-bottom: 10px; }

.site-footer__meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--xb-muted);
  margin-bottom: 2px;
}

.site-footer__meta-value {
  display: block;
  font-family: var(--xb-font-num);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.5;
  color: var(--xb-ink);
  word-break: break-all;
}

.site-footer__address {
  font-size: 13px;
  line-height: 1.8;
  color: var(--xb-muted);
  margin-bottom: 6px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--xb-max);
  margin-inline: auto;
  padding: 16px clamp(16px, 3vw, 32px) clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(60, 74, 78, .65);
  font-size: 12px;
  color: var(--xb-muted);
}

.site-footer__legal-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer__legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--xb-muted);
  text-decoration: none;
}

.site-footer__legal-links a:hover { color: var(--xb-cyan); }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .xb-nav__link { padding: 0 10px; font-size: 14px; }
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .xb-split,
  .xb-split--wide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 112px; }

  .xb-navbar__inner { min-height: 64px; gap: 12px; }

  .xb-nav__toggle { display: inline-flex; }

  .xb-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px clamp(16px, 3vw, 32px) 20px;
    background: var(--xb-panel);
    border-top: 2px solid var(--xb-line);
    border-bottom: 2px solid var(--xb-line);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .6);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }

  .xb-nav[data-open] { display: flex; }

  .xb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .xb-nav__item { width: 100%; }

  .xb-nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    font-size: 16px;
    border-bottom: 1px solid rgba(60, 74, 78, .55);
  }

  .xb-nav__link[aria-current="page"] {
    color: var(--xb-green);
    background: rgba(31, 191, 117, .12);
    box-shadow: inset 4px 0 0 var(--xb-green);
  }

  .xb-nav__link[aria-current="page"]::after { display: none; }
}

@media (max-width: 860px) {
  .xb-topbar__status { display: none; }
  .xb-topbar__utils { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --xb-shadow: 5px 5px 0 rgba(0, 0, 0, .55); }

  .xb-topbar__brand { font-size: 11px; letter-spacing: .02em; }
  .xb-topbar__link { font-size: 12px; padding: 0 9px; }
  .xb-brand__tag { display: none; }
  .xb-brand__mark { width: 34px; height: 34px; }
  .xb-brand__name { font-size: 18px; }

  .xb-grid--12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .xb-media { aspect-ratio: 4 / 3; }
  .xb-media--wide { aspect-ratio: 16 / 9; }

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__strip { grid-template-columns: repeat(4, 1fr); }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }

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

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

  html { scroll-behavior: auto; }

  .xb-pulse {
    animation: none;
    box-shadow: 0 0 0 3px rgba(255, 90, 54, .25);
  }

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