/* ==========================================================================
   XBET 赛事站 · 共享样式表 /assets/site.css
   基调：夜场墨绿战术室 · 荧光青入口 · 信号橙数据点 · 锐利直角与精密细线
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: #E9F2ED;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  background-color: #061B16;
  background-image:
    repeating-linear-gradient(to right, rgba(43, 76, 65, 0.34) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(43, 76, 65, 0.22) 0 1px, transparent 1px 64px);
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }

:root {
  --ink: #061B16;
  --ink-2: #0B2A22;
  --panel: #123B30;
  --line: #2B4C41;
  --cyan: #25F4D0;
  --ice: #A9FFEA;
  --orange: #FF6B2C;
  --orange-soft: #FFA26B;
  --paper: #E9F2ED;
  --muted: #8EA69C;

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

  --rail: 1280px;
  --pad: clamp(14px, 3vw, 32px);
  --header-h: 56px;
  --quick-h: 34px;
  --gap: clamp(16px, 2.4vw, 32px);
}

::selection { background: #25F4D0; color: #061B16; }

:focus-visible {
  outline: 2px solid #A9FFEA;
  outline-offset: 3px;
}

#main-content { display: block; }
#main-content:focus { outline: none; }

/* --------------------------------------------------------------------------
   1. 排版基础
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--paper);
}

p { line-height: 1.8; }

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.18;
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.9;
  color: var(--paper);
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

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

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

/* --------------------------------------------------------------------------
   2. 跳转链接
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--cyan);
  transition: top 0.16s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. 头部命令栏
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--rail);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--pad);
}

/* 品牌令牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 2px;
  transition: opacity 0.14s ease;
}
.brand:hover { opacity: 0.85; }

.brand-mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--cyan);
  background: var(--ink-2);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--cyan);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--paper);
}
.brand-sub {
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.brand--footer { padding: 0; }
.brand--footer .brand-mark { width: 26px; height: 26px; }
.brand--footer .brand-name { font-size: 1.22rem; }
.brand--footer .brand-sub { font-size: 0.64rem; }

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 9px 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}
.nav-link:hover {
  color: var(--paper);
  border-bottom-color: var(--line);
}
.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(37, 244, 208, 0.08);
}
.nav-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.72;
}
.nav-link[aria-current="page"] .nav-index {
  color: var(--orange);
  opacity: 1;
}

/* 状态灯 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.16);
}
.status-text {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  background: var(--ink-2);
  color: var(--ice);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bar {
  position: relative;
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.nav-toggle-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.site-header[data-open="true"] .nav-toggle {
  border-color: var(--cyan);
  color: var(--cyan);
}
.site-header[data-open="true"] .nav-toggle-bar {
  box-shadow: none;
  transform: rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(90deg);
}

/* 快捷索引带 */
.header-quick {
  display: flex;
  align-items: center;
  height: var(--quick-h);
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  transition: height 0.18s ease, opacity 0.18s ease, border-top-width 0.18s ease;
}
.quick-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--rail);
  height: var(--quick-h);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.command-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.command-hint::before {
  content: "—";
  color: var(--line);
}
.command-hint span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--ice);
  opacity: 0.85;
}
.quick-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  flex: 0 0 auto;
}
.quick-link {
  padding: 2px 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ice);
  border-bottom: 1px solid var(--line);
  transition: color 0.14s ease, border-color 0.14s ease;
}
.quick-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.quick-links .quick-link:first-child {
  color: var(--orange-soft);
  border-bottom-color: rgba(255, 107, 44, 0.45);
}
.quick-links .quick-link:first-child:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* 滚动进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width 0.1s linear;
}

/* 收窄状态 */
.site-header[data-condensed="true"] .header-quick {
  height: 0;
  opacity: 0;
  border-top-width: 0;
}

/* --------------------------------------------------------------------------
   4. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  opacity: 0.45;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 36px, transparent 36px 72px);
}
.footer-inner {
  width: 100%;
  max-width: var(--rail);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--pad) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.25fr;
  gap: clamp(20px, 3vw, 44px);
}
.footer-brand { min-width: 0; }
.footer-col { min-width: 0; }
.footer-col:nth-child(2) { padding-top: clamp(10px, 2vw, 26px); }
.footer-col--contact { padding-top: clamp(4px, 1vw, 14px); }

.footer-tagline {
  max-width: 30ch;
  margin: 16px 0 18px;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--muted);
}
.footer-fixed {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-fixed-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ice);
  border: 1px solid var(--line);
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.footer-fixed-link:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}
.footer-fixed li:first-child .footer-fixed-link {
  color: var(--orange-soft);
  border-color: rgba(255, 107, 44, 0.5);
}
.footer-fixed li:first-child .footer-fixed-link:hover {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.footer-heading {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ice);
}
.footer-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 2px; }
.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}
.footer-contact-label {
  flex: 0 0 auto;
  min-width: 34px;
  padding-top: 3px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer-contact-note {
  max-width: 34ch;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 52px);
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.footer-icp { color: var(--ice); }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.footer-legal-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(12px, 2vw, 26px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--ink-2);
  color: var(--ice);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.14s ease, color 0.14s ease;
}
.to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  color: var(--orange);
}
.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* --------------------------------------------------------------------------
   5. 版面容器与章节
   -------------------------------------------------------------------------- */
.container,
.shell {
  width: 100%;
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.kicker::before {
  content: "—";
  color: var(--line);
}

/* --------------------------------------------------------------------------
   6. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--ice);
  border-color: var(--ice);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ice);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(37, 244, 208, 0.07);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 0.75rem;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. 面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: block;
  padding: 16px 0 0;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-list li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb-list a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.breadcrumb-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.breadcrumb-list [aria-current="page"] { color: var(--ice); }

/* --------------------------------------------------------------------------
   8. 档案卡 / 标签
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  display: block;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.panel:hover,
.panel:focus-within { border-color: rgba(37, 244, 208, 0.55); }
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.panel-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
}
.panel-body + .panel-body { margin-top: 0.8em; }
.panel-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(37, 244, 208, 0.45);
}
.tag--orange {
  color: var(--orange-soft);
  border-color: rgba(255, 107, 44, 0.45);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   9. 网格与图像容器
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--split-reverse { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.media-figure { margin: 0; }
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.media > img,
.media > svg,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media-caption {
  position: relative;
  margin-top: 10px;
  padding-left: 14px;
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.media-caption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   10. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-link { padding: 7px 7px 6px; font-size: 0.79rem; }
  .nav-index { display: none; }
  .header-status { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
    transition: max-height 0.22s ease, opacity 0.16s ease, visibility 0.16s ease;
  }
  .site-header[data-open="true"] .site-nav {
    max-height: 78vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 18px;
  }
  .nav-link {
    display: flex;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .nav-index { display: inline; font-size: 0.66rem; }
  .nav-link:hover { border-left-color: var(--line); }
  .nav-link[aria-current="page"] {
    border-left-color: var(--cyan);
    border-bottom-color: var(--line);
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:nth-child(2),
  .footer-col--contact { padding-top: 0; }
}

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

@media (max-width: 720px) {
  .command-hint { display: none; }
  .quick-rail { justify-content: flex-end; }
  .quick-link { font-size: 0.66rem; letter-spacing: 0.1em; }
}

@media (max-width: 640px) {
  :root { --quick-h: 30px; }
  body { font-size: 0.97rem; line-height: 1.78; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-tagline { max-width: 100%; }
  .footer-base { justify-content: flex-start; }
  .media--tall { aspect-ratio: 4 / 3; }
  .to-top { padding: 9px 12px; font-size: 0.66rem; }
}

@media (max-width: 400px) {
  .brand-sub { letter-spacing: 0.2em; }
  .nav-toggle-label { display: none; }
}

/* --------------------------------------------------------------------------
   11. 动效降级
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
