/* =========================================================
   球盟会赛场 · 共享样式表  /assets/site.css
   深空蓝数据驾驶舱 · Bento 信息板 · 1px 刻度材质
   ========================================================= */

/* ---------- 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 { padding: 0; list-style: none; }

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

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色板 */
  --bg-deep: #070B14;
  --bg-zone: #0D1424;
  --panel: #141D31;
  --panel-raised: #1B2740;
  --green: #39FF88;
  --orange: #FF7A1A;
  --blue: #3A86FF;
  --silver: #C7CCD6;
  --ink: #E6EAF2;
  --white: #FFFFFF;
  --danger: #FF4D6D;

  --line: rgba(199, 204, 214, 0.14);
  --line-strong: rgba(199, 204, 214, 0.30);
  --green-soft: rgba(57, 255, 136, 0.10);
  --orange-soft: rgba(255, 122, 26, 0.10);
  --blue-soft: rgba(58, 134, 255, 0.12);

  /* 字体 */
  --font-sans: "Inter", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺寸 */
  --shell: 1360px;
  --gutter: 20px;
  --radius: 2px;
  --header-h: 66px;

  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -28px rgba(0, 0, 0, 0.95);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1100px 560px at 84% -14%, rgba(58, 134, 255, 0.16), transparent 62%),
    radial-gradient(820px 460px at 0% 4%, rgba(57, 255, 136, 0.075), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: 0.005em;
}

p { text-wrap: pretty; }

strong, b { color: var(--white); font-weight: 600; }

::selection { background: rgba(57, 255, 136, 0.28); color: var(--white); }

/* 焦点可见 */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--green);
  color: #04140C;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: #04140C;
}

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

/* ---------- 4. 布局 ---------- */
.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.zone { padding-block: clamp(48px, 7vw, 96px); }
.zone--tight { padding-block: clamp(28px, 4vw, 56px); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }

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

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

/* Bento 信息板 */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.b-col-12 { grid-column: span 12; }

@media (min-width: 768px) {
  .b-col-sm-4 { grid-column: span 4; }
  .b-col-sm-6 { grid-column: span 6; }
  .b-col-sm-8 { grid-column: span 8; }
}
@media (min-width: 1080px) {
  .b-col-lg-3 { grid-column: span 3; }
  .b-col-lg-4 { grid-column: span 4; }
  .b-col-lg-5 { grid-column: span 5; }
  .b-col-lg-6 { grid-column: span 6; }
  .b-col-lg-7 { grid-column: span 7; }
  .b-col-lg-8 { grid-column: span 8; }
  .b-col-lg-9 { grid-column: span 9; }
  .b-col-lg-12 { grid-column: span 12; }
}

/* ---------- 5. 排版工具 ---------- */
.t-display {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  font-weight: 250;
  letter-spacing: -0.015em;
  color: var(--white);
}
.t-h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 300;
  color: var(--white);
}
.t-h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 300;
  color: var(--white);
}
.t-h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--white);
}
.t-body { font-size: 1rem; line-height: 1.8; color: var(--ink); }
.t-caption { font-size: 0.75rem; line-height: 1.55; color: var(--silver); }
.t-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(199, 204, 214, 0.5);
}

/* ---------- 6. 控件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  min-height: 38px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--accent {
  color: var(--green);
  border-color: rgba(57, 255, 136, 0.5);
  background: var(--green-soft);
}
.btn--accent:hover {
  color: #04140C;
  background: var(--green);
  border-color: var(--green);
}

.btn--ghost { color: var(--silver); }
.btn--ghost:hover {
  color: var(--white);
  border-color: var(--green);
  background: rgba(20, 29, 49, 0.8);
}

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--green);
  border: 1px solid rgba(57, 255, 136, 0.4);
  background: var(--green-soft);
  border-radius: var(--radius);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--silver);
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(20, 29, 49, 0.6);
  border-radius: var(--radius);
}
.status-chip__dot,
.dot-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.16);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
.dot-live { margin-right: 8px; vertical-align: middle; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.16); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(57, 255, 136, 0.04); }
}

/* ---------- 7. 卡片 / 标签 / 数据 ---------- */
.panel,
.b-cell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.panel { padding: 22px; }
.b-cell { padding: 20px; }

.panel:hover,
.b-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 136, 0.38);
  background: var(--panel-raised);
}

.plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.55);
  border-radius: var(--radius);
}
.plate--green {
  color: var(--green);
  border-color: rgba(57, 255, 136, 0.42);
  background: var(--green-soft);
}
.plate--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.42);
  background: var(--orange-soft);
}
.plate--blue {
  color: var(--blue);
  border-color: rgba(58, 134, 255, 0.42);
  background: var(--blue-soft);
}

.metric { display: grid; gap: 6px; }
.metric__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.metric__value--green { color: var(--green); }
.metric__value--orange { color: var(--orange); }
.metric__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.data-row:last-child { border-bottom: 0; }
.data-row__key { font-size: 13px; color: var(--silver); }
.data-row__val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white);
  text-align: right;
}
.data-row__val--green { color: var(--green); }
.data-row__val--orange { color: var(--orange); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head__kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.section-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 300;
  color: var(--white);
}
.section-head__desc {
  margin: 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}

/* ---------- 8. 图片容器（页面阶段使用） ---------- */
.figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel) 0%, #0F1729 100%);
  overflow: hidden;
}
.figure__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
img.figure__media { filter: saturate(0.92) contrast(1.03); }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--portrait .figure__media { aspect-ratio: 4 / 5; }

.figure__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--silver);
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.6);
}

/* ---------- 9. 正文容器 / 面包屑 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 300;
  color: var(--white);
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
}
.prose ul, .prose ol {
  padding-left: 1.3em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  color: var(--green);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.prose a { color: var(--blue); border-bottom: 1px solid rgba(58, 134, 255, 0.35); }
.prose a:hover { color: var(--green); border-bottom-color: rgba(57, 255, 136, 0.5); }

.breadcrumbs {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(199, 204, 214, 0.6);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/";
  color: rgba(199, 204, 214, 0.32);
}
.breadcrumbs a { color: var(--silver); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs [aria-current="page"] { color: var(--green); }

/* ---------- 10. 页头 · 紧凑命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 11, 20, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.96);
  border-bottom-color: var(--line-strong);
}

.command-bar {
  position: relative;
  width: min(var(--shell), 100% - 2 * var(--gutter));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 26px);
  padding-block: 8px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.brand__mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(57, 255, 136, 0.55);
  border-radius: var(--radius);
  background: rgba(57, 255, 136, 0.06);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 6px;
  height: 6px;
  background: var(--orange);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(199, 204, 214, 0.55);
}
.brand:hover .brand__name { color: var(--green); }

/* 导航 */
.nav { flex: 0 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;
  font-size: 13px;
  line-height: 1.4;
  color: var(--silver);
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(199, 204, 214, 0.45);
  transition: color 0.18s var(--ease);
}
.nav__link:hover {
  color: var(--white);
  background: var(--panel);
  border-color: var(--line);
}
.nav__link:hover .nav__index { color: var(--blue); }

.nav__link[aria-current="page"] {
  color: var(--white);
  background: var(--green-soft);
  border-color: rgba(57, 255, 136, 0.45);
}
.nav__link[aria-current="page"] .nav__index { color: var(--green); }

.site-header.is-commanding .nav__link {
  animation: nav-pulse 0.9s var(--ease) 1;
}
@keyframes nav-pulse {
  0% { border-color: transparent; }
  45% { border-color: rgba(58, 134, 255, 0.75); }
  100% { border-color: transparent; }
}

/* 右侧元信息 */
.command-bar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}
.command-hint {
  display: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(199, 204, 214, 0.5);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(20, 29, 49, 0.7);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { color: var(--green); border-color: rgba(57, 255, 136, 0.45); }
.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(4px) 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(-4px) rotate(-45deg);
}

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--bg-zone);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(199, 204, 214, 0.22) 0 1px,
    transparent 1px 48px
  );
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  padding-block: clamp(48px, 6vw, 76px) clamp(36px, 4vw, 56px);
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
    gap: 32px;
  }
}

.footer-brand__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}
.footer-brand__desc {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
}
.footer-brand__meta {
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(199, 204, 214, 0.65);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col__idx { color: var(--green); }

.footer-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--silver);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-list a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}
.footer-list a:hover {
  color: var(--green);
  transform: translateX(2px);
}
.footer-list a:hover::before {
  width: 16px;
  background: var(--green);
}

.footer-col__hint,
.footer-col__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(199, 204, 214, 0.55);
}
.footer-col__note { max-width: 40ch; }

.contact-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
.contact-list__key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(199, 204, 214, 0.5);
}
.contact-list__value {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.site-footer__base {
  border-top: 1px solid var(--line);
}
.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px;
}
.footer-copy,
.footer-route-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(199, 204, 214, 0.6);
}
.footer-route-note { color: rgba(199, 204, 214, 0.42); }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1280px) {
  .command-hint { display: none; }
}

@media (max-width: 1120px) {
  .brand__tagline { display: none; }
}

@media (max-width: 1024px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    z-index: 70;
    padding: 10px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--bg-zone);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 28px 52px -28px rgba(0, 0, 0, 0.95);
  }
  .site-header[data-open] .nav { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 10px;
    font-size: 15px;
    color: var(--ink);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__link::after {
    content: "";
    margin-left: auto;
    width: 6px;
    height: 6px;
    background: rgba(199, 204, 214, 0.25);
  }
  .nav__link[aria-current="page"] {
    background: var(--green-soft);
    border-bottom-color: rgba(57, 255, 136, 0.4);
  }
  .nav__link[aria-current="page"]::after { background: var(--green); }

  .nav-toggle { display: inline-flex; }
  .command-hint { display: none; }
}

@media (max-width: 900px) {
  .status-chip { display: none; }
}

@media (max-width: 560px) {
  .command-bar__meta { gap: 8px; }
  .btn { padding: 8px 12px; font-size: 12px; }
  .nav-toggle__text { display: none; }
  .site-footer__base-inner { justify-content: flex-start; }
}

/* ---------- 13. 降低动效偏好 ---------- */
@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;
  }
  .panel:hover,
  .b-cell:hover,
  .btn:hover,
  .footer-list a:hover { transform: none; }
}
