:root {
  --ink-900: #0B1A2E;
  --ink-800: #122741;
  --line: #1F3B57;
  --red: #E23B36;
  --red-soft: #FF6B5E;
  --gold: #E8B23A;
  --cyan: #35C2C8;
  --paper: #F4F6F8;
  --muted: #8FA2B8;
  --curtain: #060F1A;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 84px;
  --wrap: 1180px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(6, 15, 26, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:where(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--paper);
}

:where(p) { margin: 0 0 1.1em; }

:where(a) {
  color: var(--paper);
  text-decoration-color: rgba(226, 59, 54, .65);
  text-underline-offset: 3px;
}

:where(a:hover) {
  color: var(--red-soft);
  text-decoration-color: var(--red-soft);
}

:where(ul, ol) { margin: 0 0 1.1em; padding-left: 1.2em; }

:where(button) { font: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============ 通用容器与节奏 ============ */
.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(720px, 100% - 48px);
  margin-inline: auto;
}

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

#main-content {
  display: block;
  padding-top: var(--header-h);
}

/* ============ 页头：透明叠加 → 实色阅读态 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 26, 46, .96) 0%, rgba(11, 26, 46, .84) 62%, rgba(11, 26, 46, 0) 100%);
  transition: background .28s var(--ease), box-shadow .28s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(11, 26, 46, .985);
  box-shadow: 0 1px 0 0 var(--line), 0 10px 30px rgba(6, 15, 26, .5);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

.header-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

/* 竖排计分牌式标识 */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--paper);
}

.brand-cn {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--muted);
}

.brand-plate {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}

/* 计分牌导航 */
.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { margin: 0; }

.nav-link {
  position: relative;
  display: block;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: color .18s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 1px;
  background: var(--red);
  transform: translateY(-50%);
  transition: height .2s var(--ease), background .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 1px;
  background: var(--red-soft);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .22s var(--ease);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::before { height: 10px; background: var(--line); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"]::before { height: 16px; background: var(--red); }
.nav-link[aria-current="page"]::after { transform: scaleX(0); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 两步动线胶囊 */
.pulse { position: relative; }

.pulse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(226, 59, 54, .55);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(226, 59, 54, .20), rgba(232, 178, 58, .14));
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.pulse-btn:hover {
  border-color: var(--red);
  background: linear-gradient(100deg, rgba(226, 59, 54, .34), rgba(232, 178, 58, .18));
}

.pulse-step { font-family: var(--font-mono); font-weight: 600; }
.pulse-arrow { font-size: 12px; color: var(--red-soft); }

.pulse-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  min-width: 208px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pulse-link {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.pulse-link:hover { background: rgba(226, 59, 54, .18); color: #fff; }

/* 汉堡与目录按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 54px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 39, 65, .82);
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle-text {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--muted);
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度光带 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold) 62%, var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 86;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.to-top:hover { border-color: var(--red); color: var(--red-soft); }

/* 移动端底部固定条 */
.dock { display: none; }

.dock-link,
.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-800);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
}

.dock-link:first-child {
  border-color: rgba(226, 59, 54, .6);
  background: rgba(226, 59, 54, .16);
  color: #fff;
}

.dock-btn { padding: 0 16px; color: var(--muted); }

/* ============ 页脚：比分板三段 ============ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--curtain);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold) 58%, rgba(53, 194, 200, .75));
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
}

.footer-inner {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  padding: 56px 0 28px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}

.footer-logo {
  padding-left: 10px;
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--paper);
  text-decoration: none;
}

.footer-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}

.footer-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.board-cell {
  padding: 24px 22px 26px;
  border-left: 1px solid var(--line);
}

.board-cell:first-child { border-left: 0; }

.board-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
}

.board-title::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--red);
}

.board-cell--app .board-title::before { background: var(--cyan); }
.board-cell--user .board-title::before { background: var(--gold); }
.board-cell--info .board-title::before { background: var(--red); }

.board-text {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.board-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--red);
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.board-link:hover { color: var(--red-soft); border-color: var(--red-soft); }

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.info-item {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.info-item--strong {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--paper);
}

.footer-note {
  margin: 20px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.75;
  color: #6B7F95;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.footer-nav-link:hover { color: var(--paper); }

/* ============ 通用按钮 / 标签 / 卡片 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-soft); color: var(--curtain); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--red); color: var(--red-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  color: var(--muted);
}

.tag--red { color: var(--red-soft); border-color: rgba(226, 59, 54, .55); }
.tag--gold { color: var(--gold); border-color: rgba(232, 178, 58, .5); }
.tag--cyan { color: var(--cyan); border-color: rgba(53, 194, 200, .5); }

.card {
  padding: 22px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ============ 面包屑 / 网格 / 图版 ============ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}

.crumbs__link { color: var(--muted); text-decoration: none; }
.crumbs__link:hover { color: var(--paper); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--paper); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.figure { margin: 0; }

.figure__cap {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(53, 194, 200, .10), rgba(11, 26, 46, 0) 55%),
    repeating-linear-gradient(90deg, rgba(31, 59, 87, .55) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(31, 59, 87, .35) 0 1px, transparent 1px 46px),
    var(--ink-800);
  aspect-ratio: 16 / 9;
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(6, 15, 26, 0), rgba(6, 15, 26, .72));
  pointer-events: none;
}

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

/* ============ 6° 斜切语言 ============ */
.slant-rule {
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold) 58%, rgba(53, 194, 200, .7));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.slant-band {
  position: relative;
  padding: 28px 32px 40px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}

/* ============ 响应式：平板与移动 ============ */
@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  .header-inner {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 16px 20px 120px;
    background: var(--curtain);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s linear;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .nav-item + .nav-item { border-top: 1px solid var(--line); }

  .nav-link {
    padding: 15px 14px 15px 18px;
    font-size: 17px;
    border-radius: 0;
  }

  .nav-link::after { display: none; }
  .nav-link:hover::before { height: 14px; background: var(--line); }
  .nav-link[aria-current="page"]::before { height: 22px; }

  .nav-toggle { display: inline-flex; }

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

  .board-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .board-cell:first-child { border-top: 0; }

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

@media (max-width: 860px) {
  .pulse { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  body {
    font-size: 16.5px;
    padding-bottom: 78px;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand { padding-left: 10px; }
  .brand-cn { font-size: 16px; }
  .brand-en { font-size: 9px; letter-spacing: .22em; }
  .brand-plate { font-size: 9.5px; letter-spacing: .06em; }

  .nav-toggle { width: 50px; height: 44px; }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 88;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--curtain);
    border-top: 1px solid var(--line);
  }

  .to-top { right: 14px; bottom: 88px; }

  .wrap,
  .wrap--narrow,
  .footer-inner { width: calc(100% - 32px); }

  .footer-inner { padding-top: 40px; }

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

  .slant-band { padding: 22px 20px 34px; }
}

@media (max-width: 420px) {
  .brand-plate { display: none; }
  .footer-brand { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
