/* =========================================================
   HAHA赛场 · /assets/site.css
   夜灯战术板：炭黑底 / 墨绿承载 / 柠黄锚点 / 青为状态
   ========================================================= */

:root {
  --ink-0: #0B120E;
  --ink-1: #0F2A22;
  --ink-2: #14201B;
  --paper: #F2F5EF;
  --white: #FFFFFF;
  --lime: #D7F94A;
  --cyan: #35E0D0;
  --red: #FF4D3D;
  --orange: #FF9A2E;
  --muted: #8FA39A;

  --line: rgba(242, 245, 239, .16);
  --line-strong: rgba(242, 245, 239, .34);
  --line-lime: rgba(215, 249, 74, .55);

  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--2: .75rem;
  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.9375rem;
  --step-4: 2.4375rem;
  --step-5: 3.0625rem;
  --step-6: 3.8125rem;

  --maxw: 1240px;
  --gap: 20px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-hard: 3px 3px 0 0 rgba(0, 0, 0, .55);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-0);
  background-image:
    radial-gradient(90% 62% at 88% -8%, rgba(53, 224, 208, .08), transparent 62%),
    radial-gradient(72% 52% at -6% 4%, rgba(215, 249, 74, .05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#main-content { display: block; }

img, svg { max-width: 100%; }
button { font: inherit; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .14s var(--ease);
}
a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--white);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
h4 { font-size: var(--step-0); letter-spacing: 0; }

p { margin: 0 0 1.05em; max-width: 34em; }
ul, ol { margin: 0 0 1em; padding-left: 1.1em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 600; color: var(--white); }
small { font-size: var(--step--2); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}
::selection { background: var(--lime); color: var(--ink-0); }

.sr-only {
  position: absolute;
  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;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 400;
  display: inline-block;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink-0);
  border: 1px solid var(--ink-0);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: top .16s var(--ease);
}
.skip-link:focus { top: 8px; color: var(--ink-0); text-decoration: none; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transition: width .1s linear;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(40px, 6vw, 84px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 44px); }

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: none;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--lime); }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 48px);
}

/* ---------- grid ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s var(--ease), background .14s var(--ease),
              color .14s var(--ease), box-shadow .14s var(--ease),
              border-color .14s var(--ease);
}
.btn:hover {
  transform: translate(-1px, -1px);
  background: var(--ink-1);
  color: var(--white);
  box-shadow: var(--shadow-hard);
  text-decoration: none;
}
.btn:active { transform: translate(1px, 1px); box-shadow: none; }

.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-0);
  font-weight: 700;
}
.btn--primary:hover { background: var(--lime); color: var(--ink-0); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--cyan); }
.btn--ghost:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink-0); }

.btn--sm { padding: 7px 11px; font-size: var(--step--2); }

/* =========================================================
   头部
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 18, 14, .95);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--pad);
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: clamp(4px, 1vw, 12px);
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--white);
  white-space: nowrap;
}
.brand-mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  background: var(--lime);
  transform: translateY(-1px) rotate(-8deg);
}
.brand:hover .brand-mark { color: var(--lime); }

.brand-sub {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* 命令栏 */
.command-bar { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { display: flex; align-items: center; position: relative; }
.nav-item + .nav-item::before {
  content: "/";
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: rgba(143, 163, 154, .5);
  margin: 0 clamp(7px, 1.1vw, 13px);
  pointer-events: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .05em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: color .14s var(--ease);
}
.nav-link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .14s var(--ease), box-shadow .14s var(--ease);
}
.nav-link:hover { color: var(--lime); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::before { background: var(--lime); box-shadow: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 0;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background .16s var(--ease);
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .16s var(--ease);
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* 吸顶快捷条 */
.quick-strip {
  background: var(--ink-1);
  border-top: 1px solid var(--line);
}
.quick-strip-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad);
  min-height: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quick-strip-inner::-webkit-scrollbar { display: none; }
.quick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}
.quick-item:hover { color: var(--lime); text-decoration: none; }
.quick-key { color: var(--lime); font-weight: 700; }
.quick-sep { color: var(--line-strong); }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-1);
  border-top: 1px solid var(--line-strong);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--lime) 0 18%,
    var(--cyan) 18% 34%,
    var(--orange) 34% 40%,
    transparent 40%);
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--pad) clamp(20px, 3vw, 32px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.9fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -.02em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}
.footer-brand:hover { color: var(--lime); text-decoration: none; }

.footer-tagline {
  margin: 12px 0 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact {
  margin: 18px 0 0;
  max-width: 24em;
  font-size: var(--step--1);
  line-height: 1.95;
  color: var(--muted);
}
.footer-contact b { color: var(--paper); font-weight: 600; font-family: var(--font-mono); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.footer-col-title {
  margin: 0 0 12px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links li { margin: 0; }
.footer-links a {
  display: inline-block;
  font-size: .9375rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
.footer-links a:hover { color: var(--lime); border-bottom-color: var(--lime); text-decoration: none; }

.footer-meta {
  display: grid;
  gap: 8px;
  padding-top: clamp(18px, 2.5vw, 28px);
}
.footer-service { margin: 0; max-width: none; font-size: var(--step--1); color: var(--paper); }
.footer-legal {
  margin: 0; max-width: none;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .1em;
  color: var(--muted);
}
.footer-region { margin: 0; max-width: none; font-size: var(--step--2); color: rgba(143, 163, 154, .82); }

/* =========================================================
   通用组件
   ========================================================= */
.breadcrumb {
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(143, 163, 154, .45); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.prose { max-width: 34em; }
.prose p { max-width: none; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li::marker { color: var(--lime); }
.prose a { text-decoration: underline; text-underline-offset: .2em; }

.panel {
  background: var(--ink-1);
  border: 1px solid var(--line-strong);
  padding: clamp(18px, 2.4vw, 28px);
}
.panel--card { background: var(--ink-2); box-shadow: var(--shadow-hard); }
.panel--flat { background: transparent; border-color: var(--line); }
.panel--lime-edge { border-left: 3px solid var(--lime); }

.panel-title { margin: 0 0 10px; font-size: var(--step-1); }
.panel-note {
  margin: 0;
  max-width: 34em;
  font-size: var(--step--1);
  line-height: 1.8;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink-0); font-weight: 700; }
.tag--cyan { background: rgba(53, 224, 208, .08); border-color: rgba(53, 224, 208, .5); color: var(--cyan); }
.tag--red { background: rgba(255, 77, 61, .1); border-color: rgba(255, 77, 61, .55); color: var(--red); font-weight: 700; }
.tag--orange { background: rgba(255, 154, 46, .09); border-color: rgba(255, 154, 46, .5); color: var(--orange); }
.tag--tilt { transform: rotate(-1.5deg); }

.sticker {
  display: inline-block;
  padding: 5px 10px;
  background: var(--lime);
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
}
.sticker--cyan { background: var(--cyan); }
.sticker--red { background: var(--red); color: var(--white); transform: rotate(1.5deg); }

.stat { display: grid; gap: 4px; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lime);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), rgba(53, 224, 208, .5) 60%, rgba(242, 245, 239, .12));
}
.timeline-item { position: relative; margin: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: .62em;
  width: 11px;
  height: 11px;
  background: var(--ink-0);
  border: 2px solid var(--lime);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.timeline-item:hover::before {
  transform: scale(1.15);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 224, 208, .18);
}
.timeline-time {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--2);
  letter-spacing: .1em;
  color: var(--muted);
}

.accordion { display: grid; gap: 10px; }
.accordion-item {
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  transition: border-color .14s var(--ease);
}
.accordion-item[open] { border-color: var(--line-lime); }
.accordion-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--paper);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--lime);
}
.accordion-item[open] summary::after { content: "–"; }
.accordion-item summary:hover { background: var(--ink-1); color: var(--white); }
.accordion-item[open] summary { background: var(--ink-1); border-bottom: 1px solid var(--line); }
.accordion-index {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .1em;
  color: var(--muted);
}
.accordion-body { padding: 14px 16px 18px; font-size: .9375rem; color: var(--paper); }
.accordion-body p { max-width: 34em; }
.accordion-body p:last-child { margin-bottom: 0; }

/* 图像容器基础规则 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 16 / 10;
  background-color: var(--ink-1);
  background-image:
    linear-gradient(135deg, rgba(15, 42, 34, .95), rgba(20, 32, 27, .95)),
    repeating-linear-gradient(-45deg, rgba(215, 249, 74, .14) 0 1px, transparent 1px 9px);
}
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 14, .12) 0%, rgba(15, 42, 34, .68) 100%);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--cut { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 28px)); }

.media-frame { position: relative; }
.media-frame::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--line-lime);
  pointer-events: none;
  z-index: 0;
}
.media-frame .media { position: relative; z-index: 1; }

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .08em;
  color: var(--muted);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .brand-sub { display: none; }
  .nav-link { font-size: var(--step--2); }
}

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

  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .command-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0 var(--pad) 14px;
    background: var(--ink-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 12px 0 rgba(0, 0, 0, .35);
  }
  .command-bar[data-open] { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item + .nav-item::before { display: none; }
  .nav-link {
    width: 100%;
    padding: 14px 2px;
    font-size: var(--step-0);
    letter-spacing: .04em;
  }
  .nav-link::before { width: 8px; height: 8px; }

  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-6, .span-7, .span-8, .span-9, .span-10 { grid-column: span 12; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
}

@media (max-width: 700px) {
  .header-actions .btn--primary { padding: 9px 11px; font-size: var(--step--2); letter-spacing: .05em; }
  .quick-strip-inner { min-height: 32px; }
  .quick-item { font-size: 11px; }
}

@media (max-width: 600px) {
  .grid-12 > * { grid-column: span 12 !important; }
  .panel { padding: 16px; }
}

@media (max-width: 460px) {
  .header-actions .btn--primary { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .brand-mark { font-size: 1.05rem; }
}

/* =========================================================
   动效降级
   ========================================================= */
@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;
  }
  .scroll-progress-fill { transition: none; }
  .btn:hover { transform: none; }
  .timeline-item:hover::before { transform: none; }
}
