/* ============================================================
   博奥赛场 · 共享站点样式 /assets/site.css
   赛场数据台：墨场底 + 深墨绿 + 炭黑，红黄做功能高亮，荧光青做轨迹
   ============================================================ */

:root {
  --ink: #0B1410;
  --green: #14352A;
  --carbon: #14161A;
  --red: #E23B2E;
  --yellow: #F2C230;
  --cyan: #38E1C8;
  --grey300: #B9C4BF;
  --grey500: #7C8A85;
  --paper: #F4F6F2;
  --white: #FFFFFF;

  --line: rgba(185, 196, 191, 0.18);
  --line-strong: rgba(185, 196, 191, 0.36);
  --tint: rgba(185, 196, 191, 0.07);

  --shell: 1320px;
  --head-h: 56px;
  --radius: 3px;

  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC",
          "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 160ms;
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, dt {
  margin: 0;
}

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

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

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

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

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

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

/* ---------- 中文排版基座 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 620px at 82% -12%, rgba(20, 53, 42, 0.9), transparent 72%),
    radial-gradient(900px 520px at 4% 108%, rgba(226, 59, 46, 0.09), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  color: var(--grey300);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--paper);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-stretch: 90%;
}

h1 { font-size: clamp(40px, 7vw, 112px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.4; }

strong { color: var(--paper); font-weight: 600; }
small { font-size: 12px; }

::selection { background: var(--yellow); color: #14161A; }

/* ---------- 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 3vw, 34px);
}

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

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

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--grey300);
  max-width: 34em;
}

/* ---------- 正文阅读容器 ---------- */
.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.05em; }

.prose p { max-width: 36em; line-height: 1.8; }

.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.8em; }

.prose ul, .prose ol { max-width: 36em; padding-left: 1.15em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }

.prose a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(242, 194, 48, 0.4);
}
.prose a:hover { border-bottom-color: var(--yellow); }

.prose blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 18px;
  color: var(--grey300);
  font-size: 17px;
}

.surface--paper {
  background: var(--paper);
  color: #3A4A44;
}
.surface--paper h1,
.surface--paper h2,
.surface--paper h3,
.surface--paper h4 { color: #12201A; }
.surface--paper .lede,
.surface--paper .prose { color: #3A4A44; }
.surface--paper .kicker { color: #5C6B64; }
.surface--paper .rule,
.surface--paper .section-head { border-color: rgba(18, 32, 26, 0.16); }
.surface--paper .mono { color: #5C6B64; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { border-color: var(--grey300); background: var(--tint); }
.btn:active { transform: translateY(1px); }

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--red:hover { background: #f04a3c; border-color: #f04a3c; }

.btn--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #14161A;
  font-weight: 600;
}
.btn--yellow:hover { background: #f7cd50; border-color: #f7cd50; }

.btn--line {
  border-color: var(--line-strong);
  color: var(--grey300);
}
.btn--line:hover { color: var(--paper); border-color: var(--grey300); }

.btn--mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  min-height: 34px;
  padding: 0 12px;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--grey300);
  white-space: nowrap;
}
.tag--red { border-color: rgba(226, 59, 46, 0.5); background: rgba(226, 59, 46, 0.12); color: #FF8177; }
.tag--yellow { border-color: rgba(242, 194, 48, 0.5); background: rgba(242, 194, 48, 0.1); color: var(--yellow); }
.tag--cyan { border-color: rgba(56, 225, 200, 0.42); background: rgba(56, 225, 200, 0.08); color: var(--cyan); }

/* ---------- 索引字 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey500);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
  flex: none;
}

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey500);
}
.crumb a { transition: color var(--dur) var(--ease); }
.crumb a:hover { color: var(--yellow); }
.crumb__sep { color: var(--grey500); opacity: 0.55; }
.crumb [aria-current] { color: var(--grey300); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: block;
  padding: clamp(16px, 2vw, 22px);
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03),
              0 18px 36px -30px rgba(0, 0, 0, 0.95);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card--green { background: var(--green); }

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

.grid--cards {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--asym {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: start;
}

/* ---------- 图片容器（页面阶段放图，无图时显示战术板网格） ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 53, 42, 0.92), rgba(11, 20, 16, 0.96)),
    var(--green);
}
.figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 225, 200, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 225, 200, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }

.figure__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 12px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey300);
  background: linear-gradient(transparent, rgba(11, 20, 16, 0.94));
}

/* ---------- 分段控件 / 标签页 ---------- */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(20, 53, 42, 0.55);
}

.seg-btn {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey300);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.seg-btn:hover { color: var(--paper); background: var(--tint); }
.seg-btn[aria-selected="true"] {
  background: var(--yellow);
  color: #14161A;
  box-shadow: inset 0 -2px 0 var(--red);
}

.seg-panel { padding-top: 16px; }
.seg-panel[hidden] { display: none; }

/* ---------- 区块索引刻度 ---------- */
.spy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.spy-link {
  position: relative;
  display: block;
  padding-left: 16px;
  color: var(--grey500);
  transition: color var(--dur) var(--ease);
}
.spy-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  translate: 0 -50%;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}
.spy-link:hover { color: var(--paper); }
.spy-link[aria-current] { color: var(--yellow); }
.spy-link[aria-current]::before { width: 14px; background: var(--yellow); }

/* ---------- 显影 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--yellow);
  color: #14161A;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   头部：56px 紧凑命令栏
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 20, 16, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px -28px rgba(0, 0, 0, 0.95);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--head-h);
  height: var(--head-h);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}

.brand-mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
  flex: none;
}

.brand-domain {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--grey500);
  white-space: nowrap;
}

.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--grey300);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--grey500);
  transition: color var(--dur) var(--ease);
}

.nav-txt { display: inline-block; }

.nav-link:hover { color: var(--paper); background: var(--tint); }
.nav-link:hover .nav-idx { color: var(--yellow); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(242, 194, 48, 0.08);
}
.nav-link[aria-current="page"] .nav-idx { color: var(--yellow); }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 3px;
  height: 16px;
  translate: 0 -50%;
  background: var(--yellow);
}

.nav-link--flag {
  margin-inline: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(226, 59, 46, 0.5);
  color: var(--paper);
}
.nav-link--flag .nav-idx { color: var(--red); }
.nav-link--flag:hover {
  border-color: var(--red);
  background: rgba(226, 59, 46, 0.12);
}
.nav-link--flag:hover .nav-idx { color: #FF8177; }
.nav-link--flag[aria-current="page"] {
  background: rgba(226, 59, 46, 0.14);
  border-color: var(--red);
}
.nav-link--flag[aria-current="page"]::before { background: var(--red); }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper);
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.head-cta:hover { border-color: var(--yellow); color: var(--yellow); }

.head-cta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 225, 200, 0.16);
  flex: none;
}

.head-cta__txt { display: inline-block; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--yellow); color: var(--yellow); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 14px;
  height: 10px;
  flex: none;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: top var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.site-head[data-open] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.site-head[data-open] .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

.nav-toggle-label { display: inline-block; }

.head-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}
.head-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 55%, var(--cyan) 100%);
  transition: transform 100ms linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--carbon);
  border-top: 1px solid var(--line);
  color: var(--grey500);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.foot-col { min-width: 0; }

.foot-col--brand { display: flex; flex-direction: column; align-items: flex-start; }

.foot-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
  margin-bottom: 12px;
}

.foot-line {
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey300);
  max-width: 24em;
}

.foot-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 8px;
  border: 1px solid rgba(56, 225, 200, 0.28);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(56, 225, 200, 0.85);
}

.foot-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey300);
}

.foot-list li + li { margin-top: 9px; }

.foot-link {
  font-size: 14px;
  color: var(--grey300);
  transition: color var(--dur) var(--ease);
}
.foot-link:hover { color: var(--yellow); }
.foot-link[aria-current="page"] { color: var(--yellow); }

.foot-contact { font-size: 13px; line-height: 1.8; }
.foot-contact li { color: var(--grey300); word-break: break-word; }

.foot-key {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--grey500);
  margin-bottom: 2px;
}

.foot-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--grey500);
  max-width: 30em;
}

.foot-icp {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey300);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
}

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

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

  .nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    display: none;
    justify-content: flex-start;
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
    background: #0B1410;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 50px -34px #000;
  }

  .site-head[data-open] .nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(16px, 4vw, 40px) 24px;
  }

  .nav-item { display: block; }

  .nav-link {
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 15px;
  }

  .nav-link:hover { background: transparent; }

  .nav-link[aria-current="page"] { background: transparent; }
  .nav-link[aria-current="page"]::before { left: -8px; height: 20px; }

  .nav-link--flag {
    margin: 12px 0;
    padding: 13px 14px 13px 16px;
    border: 1px solid rgba(226, 59, 46, 0.5);
    border-radius: 2px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .head-cta__txt { display: none; }
  .head-cta { padding: 0 9px; }
  h1 { font-size: clamp(38px, 11vw, 64px); }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-base { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand-domain { display: none; }
  .brand-sep { display: none; }
  .head-inner { gap: 10px; }
  .grid--cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 动效降级 ---------- */
@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;
  }

  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .head-progress i { transition: none; }
}
