/* =========================================================
   小组赛竞猜看 · 共享样式 /assets/site.css
   夜间转播室 · 技术蓝图 · 左侧轨道导航
   ========================================================= */

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

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

body {
  margin: 0;
  min-height: 100%;
}

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #070E1B;
  --ink-800: #0E1A2E;
  --ink-700: #0A1424;
  --ink-600: #12203A;
  --line: #1B2A44;
  --violet: #2E3350;
  --cyan: #2FE3D2;
  --cyan-dim: #1A7F7A;
  --gold: #F2B457;
  --text: #E8EEF7;
  --muted: #9AA9BF;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.09);

  --font-head: "Inter Tight", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 232px;
  --rail-w-min: 88px;
  --radius: 10px;
  --pad-x: 20px;
  --grid-size: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --pad-x: 32px; --grid-size: 72px; }
}

@media (min-width: 1024px) {
  :root { --pad-x: 44px; --grid-size: 88px; }
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(27, 42, 68, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 68, 0.42) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: -1px -1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 88% 4%, rgba(47, 227, 210, 0.10), transparent 70%),
    radial-gradient(560px 420px at 4% 94%, rgba(242, 180, 87, 0.07), transparent 70%);
}

#main-content {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 60vh;
  padding-bottom: 8px;
}

::selection {
  background: rgba(47, 227, 210, 0.28);
  color: #fff;
}

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

/* ---------- 4. 通用容器与网格 ---------- */
.gkk-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.gkk-grid {
  display: grid;
  gap: 20px;
}

.gkk-grid--12 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 900px) {
  .gkk-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .gkk-col-4 { grid-column: span 4; }
  .gkk-col-5 { grid-column: span 5; }
  .gkk-col-6 { grid-column: span 6; }
  .gkk-col-7 { grid-column: span 7; }
  .gkk-col-8 { grid-column: span 8; }
  .gkk-col-12 { grid-column: span 12; }
}

/* ---------- 5. 按钮 ---------- */
.gkk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.gkk-btn:hover {
  border-color: var(--cyan-dim);
  background: rgba(47, 227, 210, 0.10);
  color: #fff;
}

.gkk-btn--primary {
  background: linear-gradient(120deg, var(--cyan), #23C5BA);
  border-color: transparent;
  color: #04121A;
  font-weight: 700;
}

.gkk-btn--primary:hover {
  background: linear-gradient(120deg, #63F1E4, var(--cyan));
  color: #04121A;
  transform: translateY(-1px);
}

.gkk-btn--ghost {
  background: transparent;
}

.gkk-btn--link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: underline dashed rgba(154, 169, 191, 0.6);
  text-underline-offset: 4px;
}

.gkk-btn--link:hover {
  background: none;
  color: var(--cyan);
  transform: none;
}

.gkk-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(47, 227, 210, 0.5);
}

.gkk-link:hover {
  color: #8BF4E9;
  border-bottom-color: var(--cyan);
}

/* ---------- 6. 标签 / 索引 / 数字 ---------- */
.gkk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gkk-tag--cyan {
  color: var(--cyan);
  border-color: rgba(47, 227, 210, 0.42);
  background: rgba(47, 227, 210, 0.10);
}

.gkk-tag--gold {
  color: var(--gold);
  border-color: rgba(242, 180, 87, 0.42);
  background: rgba(242, 180, 87, 0.10);
}

.gkk-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* ---------- 7. 面板 / 玻璃层 ---------- */
.gkk-panel {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.gkk-glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gkk-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.gkk-panel__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.gkk-panel__body {
  color: var(--muted);
  font-size: 15px;
}

.gkk-panel__body p + p { margin-top: 12px; }

/* ---------- 8. 章节 ---------- */
.gkk-section {
  position: relative;
  padding: 52px 0 44px;
  border-top: 1px solid var(--line);
}

.gkk-section:first-of-type {
  border-top: 0;
  padding-top: 32px;
}

.gkk-section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  max-width: 72ch;
}

.gkk-section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.gkk-section__num::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 9px;
  background: var(--line);
  transition: background 0.24s var(--ease), width 0.24s var(--ease);
}

.gkk-section[data-state="current"] .gkk-section__num::after {
  width: 60px;
  background: var(--cyan);
}

.gkk-section__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.gkk-section__lead {
  max-width: 38ch;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 9. 面包屑 ---------- */
.gkk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.gkk-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.gkk-breadcrumb__sep { color: var(--violet); }

.gkk-breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 10. 图片容器 ---------- */
.gkk-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-700) 58%, var(--ink-600));
  aspect-ratio: 16 / 9;
}

.gkk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.gkk-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(120% 80% at 82% 8%, rgba(47, 227, 210, 0.14), transparent 62%);
}

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

.gkk-media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(7, 14, 27, 0.94), rgba(7, 14, 27, 0));
}

/* ---------- 11. 标签页 ---------- */
.gkk-tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  overflow: hidden;
}

.gkk-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.gkk-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.gkk-tab:hover {
  color: var(--text);
  border-color: var(--line);
}

.gkk-tab[aria-selected="true"] {
  color: var(--cyan);
  border-color: rgba(47, 227, 210, 0.45);
  background: rgba(47, 227, 210, 0.12);
}

.gkk-tabpanel {
  padding: 18px 20px;
  color: var(--muted);
  font-size: 15px;
}

.gkk-tabpanel[hidden] { display: none; }

/* ---------- 12. 折叠面板 ---------- */
.gkk-acc { border-top: 1px solid var(--line); }

.gkk-acc__item { border-bottom: 1px solid var(--line); }

.gkk-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.gkk-acc__btn::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
}

.gkk-acc__btn:hover { color: var(--cyan); }

.gkk-acc__btn[aria-expanded="true"]::after { content: "\2013"; }

.gkk-acc__panel {
  padding: 0 4px 18px;
  color: var(--muted);
  font-size: 15px;
}

.gkk-acc__panel[hidden] { display: none; }

/* ---------- 13. 复制按钮 ---------- */
.gkk-copy {
  appearance: none;
  padding: 4px 9px;
  border: 1px solid rgba(47, 227, 210, 0.35);
  border-radius: 6px;
  background: rgba(47, 227, 210, 0.10);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.gkk-copy:hover { background: rgba(47, 227, 210, 0.2); }

.gkk-copy[data-copied] {
  color: var(--gold);
  border-color: rgba(242, 180, 87, 0.5);
  background: rgba(242, 180, 87, 0.14);
}

/* ---------- 14. 显现 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}

html[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   15. 头部 · 左侧轨道
   ========================================================= */
.gkk-skip {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.gkk-skip:focus { top: 0; }

.gkk-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: rgba(27, 42, 68, 0.55);
  pointer-events: none;
}

.gkk-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: transform 0.12s linear;
}

.gkk-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0B1526 0%, var(--ink-800) 58%, var(--ink-700) 100%);
  overflow-y: auto;
  transition: width 0.24s var(--ease), padding 0.24s var(--ease);
}

.gkk-rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gkk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.gkk-brand__mark {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--cyan-dim);
  border-radius: 7px;
  background: rgba(47, 227, 210, 0.08);
}

.gkk-brand__mark i {
  display: block;
  height: 40%;
  border-radius: 1px;
  background: var(--cyan);
}

.gkk-brand__mark i:nth-child(2) { height: 70%; }
.gkk-brand__mark i:nth-child(3) { height: 100%; background: var(--gold); }

.gkk-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gkk-brand__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.gkk-brand__domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.gkk-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.gkk-status__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 227, 210, 0.16);
}

.gkk-status__text { display: block; }

.gkk-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.gkk-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gkk-nav__item { display: block; }

.gkk-nav__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.gkk-nav__link:hover {
  color: var(--text);
  background: var(--glass);
  border-color: var(--line);
}

.gkk-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(47, 227, 210, 0.35);
  background: linear-gradient(90deg, rgba(47, 227, 210, 0.16), rgba(47, 227, 210, 0));
}

.gkk-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet);
}

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

.gkk-nav__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gkk-nav__tick {
  width: 16px;
  height: 2px;
  background: var(--line);
  transform: scaleX(0.55);
  transform-origin: 100% 50%;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.gkk-nav__link:hover .gkk-nav__tick { background: var(--cyan-dim); }

.gkk-nav__link[aria-current="page"] .gkk-nav__tick {
  background: var(--cyan);
  transform: scaleX(1);
}

.gkk-rail__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gkk-rail__foot .gkk-btn {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gkk-rail__collapse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.gkk-rail__collapse:hover {
  color: var(--cyan);
  border-color: var(--cyan-dim);
}

.gkk-rail__collapse-icon {
  font-family: var(--font-mono);
  color: var(--cyan);
  transition: transform 0.24s var(--ease);
}

.gkk-rail__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.gkk-navtoggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.gkk-navtoggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.gkk-navtoggle__bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
}

.gkk-navtoggle[aria-expanded="true"] .gkk-navtoggle__bars i:nth-child(2) { opacity: 0.35; }

.gkk-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 9, 18, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s var(--ease);
}

/* ---------- 16. 桌面轨道：内容偏移与收起态 ---------- */
@media (min-width: 1024px) {
  #main-content { margin-left: var(--rail-w); transition: margin-left 0.24s var(--ease); }

  html[data-rail="collapsed"] .gkk-header {
    width: var(--rail-w-min);
    padding-left: 12px;
    padding-right: 12px;
  }

  html[data-rail="collapsed"] #main-content { margin-left: var(--rail-w-min); }

  html[data-rail="collapsed"] .gkk-brand__text,
  html[data-rail="collapsed"] .gkk-status,
  html[data-rail="collapsed"] .gkk-nav__label,
  html[data-rail="collapsed"] .gkk-nav__tick,
  html[data-rail="collapsed"] .gkk-rail__note { display: none; }

  html[data-rail="collapsed"] .gkk-rail__top { justify-content: center; }
  html[data-rail="collapsed"] .gkk-nav__link {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 12px 0;
  }

  html[data-rail="collapsed"] .gkk-rail__foot .gkk-btn {
    padding: 10px 6px;
    font-size: 11.5px;
  }

  html[data-rail="collapsed"] .gkk-rail__collapse {
    justify-content: center;
    padding: 8px 6px;
  }

  html[data-rail="collapsed"] .gkk-rail__collapse-text { display: none; }
  html[data-rail="collapsed"] .gkk-rail__collapse-icon { transform: rotate(180deg); }
}

/* ---------- 17. 平板 / 移动：顶部条 + 抽屉 ---------- */
@media (max-width: 1023px) {
  .gkk-header {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 20, 36, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: visible;
  }

  .gkk-rail__top {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .gkk-brand__name { font-size: 16px; }
  .gkk-brand__domain { display: none; }
  .gkk-status { display: none; }

  .gkk-navtoggle { display: inline-flex; }

  .gkk-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    z-index: 80;
    padding: 20px 18px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0B1526, var(--ink-700));
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(-102%);
    transition: transform 0.26s var(--ease);
    overflow-y: auto;
  }

  .gkk-nav[data-open] { transform: translateX(0); }

  .gkk-nav__link { font-size: 15.5px; padding: 12px 10px; }

  .gkk-scrim { display: block; }
  .gkk-scrim[data-open] { opacity: 1; visibility: visible; }

  .gkk-rail__collapse { display: none; }
}

/* =========================================================
   18. 页脚
   ========================================================= */
.gkk-footer {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-700) 0%, var(--ink-900) 100%);
  transition: margin-left 0.24s var(--ease);
}

@media (min-width: 1024px) {
  .gkk-footer { margin-left: var(--rail-w); }
  html[data-rail="collapsed"] .gkk-footer { margin-left: var(--rail-w-min); }
}

.gkk-footer__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px var(--pad-x) 26px;
}

.gkk-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 26px;
}

@media (min-width: 640px) {
  .gkk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .gkk-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px 30px;
  }
}

.gkk-footer__brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.gkk-footer__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.gkk-footer__summary {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.gkk-footer__brand .gkk-tag { justify-self: start; }

.gkk-footer__col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.gkk-footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.gkk-footer__list {
  display: grid;
  gap: 8px;
}

.gkk-footer__link {
  display: inline-block;
  color: var(--text);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.gkk-footer__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(47, 227, 210, 0.5);
}

.gkk-footer__contact {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.gkk-footer__contact .gkk-footer__title { border-bottom: 0; padding-bottom: 0; }

.gkk-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 26px;
}

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

@media (min-width: 1100px) {
  .gkk-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gkk-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
}

.gkk-contact__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.gkk-contact__val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  word-break: break-word;
}

.gkk-contact__note {
  max-width: 72ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.gkk-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gkk-filing {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.gkk-footer__legal {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 19. 减弱动效 ---------- */
@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;
  }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .gkk-progress__bar { transition: none; }
}
