/* ==========================================================================
   K1娱乐赛事 · 共享样式 /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, figure, blockquote, dl, dd, fieldset { margin: 0; }

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

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ---------- 2. tokens ---------- */
:root {
  /* 色板 */
  --void: #070B1A;
  --deep: #0C1533;
  --galaxy: #241B4D;
  --haze: #3B2E73;
  --star: #8C93B8;
  --fog: #F2F4FF;
  --cyan: #38F2D0;
  --orange: #FF6A2B;
  --warn: #FFC857;
  --grid-line: rgba(140, 147, 184, 0.18);

  /* 结构 */
  --edge: 2px solid var(--haze);
  --hard: 6px 6px 0 rgba(7, 11, 26, 0.85);
  --hard-cyan: 6px 6px 0 rgba(56, 242, 208, 0.18);
  --radius: 4px;
  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 48px);

  /* 字体 */
  --font-display: "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, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
}

/* ---------- 3. base ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 620px at 10% -12%, rgba(56, 242, 208, 0.10), transparent 62%),
    radial-gradient(900px 520px at 94% 2%, rgba(255, 106, 43, 0.09), transparent 64%),
    repeating-linear-gradient(90deg, rgba(140, 147, 184, 0.055) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(140, 147, 184, 0.055) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, #070B1A 0%, #0C1533 44%, #070B1A 100%);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--cyan);
  color: var(--void);
}

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

/* ---------- 4. 排版工具 ---------- */
.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--maxw));
  margin-inline: auto;
  position: relative;
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.editorial {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  line-height: 1.45;
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: var(--star);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--haze), rgba(59, 46, 115, 0.1));
  margin-block: clamp(20px, 3vw, 34px);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: var(--edge);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--void);
  box-shadow: var(--hard);
}

.btn--primary:hover {
  background: #FF8047;
  border-color: #FF8047;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(7, 11, 26, 0.9);
}

.btn--ghost {
  background: rgba(36, 27, 77, 0.55);
  border-color: var(--haze);
  color: var(--fog);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: var(--hard-cyan);
}

.btn--mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ---------- 6. 容器与卡片 ---------- */
.panel {
  background: linear-gradient(160deg, rgba(36, 27, 77, 0.86), rgba(12, 21, 51, 0.92));
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  padding: clamp(18px, 2.4vw, 30px);
}

.card {
  position: relative;
  background: rgba(36, 27, 77, 0.55);
  border: var(--edge);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 26px);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  border-color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}

.card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card__body {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--star);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(56, 242, 208, 0.4);
  border-radius: 2px;
  background: rgba(56, 242, 208, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: var(--edge);
  border-radius: 999px;
  background: rgba(12, 21, 51, 0.7);
  color: var(--star);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.chip:hover { color: var(--fog); border-color: var(--cyan); }

.chip[aria-pressed="true"] {
  background: rgba(56, 242, 208, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: var(--edge);
}

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--star);
}

/* ---------- 7. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

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

.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

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

.grid--thirds { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { margin-bottom: clamp(18px, 2.4vw, 30px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--star);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb__link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.breadcrumb__sep { color: var(--haze); }

/* ---------- 9. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #241B4D 0%, #0C1533 55%, #3B2E73 100%);
  isolation: isolate;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(56, 242, 208, 0.10) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 78% 22%, rgba(255, 106, 43, 0.22), transparent 58%);
  opacity: 0.8;
}

.media img,
.media picture,
.media svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fog);
  background: linear-gradient(180deg, rgba(7, 11, 26, 0), rgba(7, 11, 26, 0.9));
}

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--banner { aspect-ratio: 21 / 9; }

/* ---------- 10. 滚动显现（JS 协议） ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.24s ease var(--reveal-delay, 0ms),
              transform 0.24s ease var(--reveal-delay, 0ms);
}

.has-reveal [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -120px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--void);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0.98), rgba(12, 21, 51, 0.98));
  border-bottom: 2px solid var(--haze);
  transition: box-shadow 0.18s ease;
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 30px);
  padding-block: 16px;
  transition: padding-block 0.18s ease;
}

.site-header[data-scrolled="true"] .site-header__inner { padding-block: 9px; }

.site-header[data-scrolled="true"] .brand__suffix { display: none; }

/* 品牌簇 */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fog);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--galaxy);
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(56, 242, 208, 0.18);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand__suffix {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--star);
  white-space: nowrap;
}

/* 同步状态 */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(56, 242, 208, 0.35);
  border-radius: 999px;
  background: rgba(56, 242, 208, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sync-status__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dot-pulse 2s ease-out infinite;
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 242, 208, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(56, 242, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 242, 208, 0); }
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.3vw, 18px);
}

.nav__item { display: block; }

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  color: var(--fog);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--star);
  opacity: 0.85;
}

.nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav__link[aria-current="page"] .nav__index {
  color: var(--orange);
  opacity: 1;
}

.header-cta {
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 18px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 44px;
  border: var(--edge);
  border-radius: var(--radius);
  background: rgba(36, 27, 77, 0.7);
  transition: border-color 0.16s ease;
}

.nav-toggle:hover { border-color: var(--cyan); }

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--fog);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 阅读进度线 */
.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 12px rgba(56, 242, 208, 0.6);
  transition: width 0.1s linear;
}

.site-header__progress[data-filled="false"] { box-shadow: none; }

/* 悬浮星图 */
.starmap {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(12px, 2vw, 26px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.starmap__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  background: rgba(12, 21, 51, 0.94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  box-shadow: 0 0 0 0 rgba(56, 242, 208, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.starmap__toggle:hover {
  transform: translateY(-2px);
  background: rgba(36, 27, 77, 0.96);
  box-shadow: 4px 6px 0 rgba(56, 242, 208, 0.24);
}

.starmap__toggle[aria-expanded="true"] {
  background: rgba(56, 242, 208, 0.16);
}

.starmap__glyph { font-size: 14px; line-height: 1; }

.starmap__label { line-height: 1; }

.starmap__panel {
  width: min(78vw, 282px);
  padding: 16px;
  border: var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #241B4D, #070B1A);
  box-shadow: var(--hard);
}

.starmap__panel[hidden] { display: none; }

.starmap__title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.starmap__list { display: grid; gap: 2px; }

.starmap__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--grid-line);
  color: var(--fog);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.starmap__link:hover {
  color: var(--cyan);
  background: rgba(56, 242, 208, 0.08);
}

.starmap__link .mono {
  font-size: 11px;
  color: var(--star);
}

.starmap__foot {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--star);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  background: linear-gradient(180deg, #0C1533 0%, #070B1A 100%);
  border-top: 2px solid var(--haze);
}

.footer__beam {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--galaxy) 45%, var(--orange) 100%);
  opacity: 0.85;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(26px, 4vw, 46px);
  border-bottom: 2px solid rgba(59, 46, 115, 0.6);
}

.footer__brandline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  max-width: 36ch;
  color: var(--fog);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px);
  padding-block: clamp(28px, 4vw, 54px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer__brandname {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.footer__note {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--star);
}

.footer__stamp {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.85;
}

.footer__list { display: grid; gap: 2px; }

.footer__link {
  display: inline-block;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: var(--star);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer__link:hover {
  color: var(--fog);
  border-bottom-color: var(--cyan);
}

.footer__items { display: grid; gap: 6px; }

.footer__items li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--star);
  word-break: break-word;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px 26px;
  border-top: 2px solid rgba(59, 46, 115, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--star);
}

.footer__legalnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legalnav .footer__link { font-size: 12px; letter-spacing: 0.1em; padding: 2px 0; }

.footer__legal { color: var(--star); }

.footer__meta { color: var(--star); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 22px;
    background: linear-gradient(180deg, #0C1533 0%, #070B1A 100%);
    border-bottom: 2px solid var(--haze);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  .nav[data-open="true"] { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item { border-bottom: 1px solid var(--grid-line); }

  .nav__link {
    width: 100%;
    padding: 14px 2px;
    font-size: 17px;
    border-bottom: 0;
  }

  .nav__link[aria-current="page"] { border-bottom: 0; }

  .nav__index { font-size: 11px; }

  .header-cta {
    margin-top: 16px;
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
  }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 12px;
  }

  .brand__suffix { display: none; }

  .sync-status {
    order: 5;
    flex-basis: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 5px 10px;
    white-space: normal;
    text-align: center;
  }

  .nav-toggle { order: 4; }

  .footer__top { align-items: flex-start; }
}

@media (max-width: 720px) {
  .grid--halves { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand__mark { width: 40px; height: 40px; font-size: 15px; }
  .starmap__label { display: none; }
  .starmap__toggle { padding: 11px 13px; }
}

/* ==========================================================================
   无障碍与降级
   ========================================================================== */
@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;
  }

  .sync-status__dot { animation: none; box-shadow: none; }

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
