/* ============================================================
   完美赛场 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 命令栏 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

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

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

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 品牌色板 */
  --ink: #0B1410;
  --panel: #14161A;
  --moss: #1E3A2E;
  --lime: #C6FF3D;
  --orange: #FF7A1F;
  --warm: #F4F1E9;
  --mist: #9FB3A6;
  --mist-dim: #6C8177;
  --line: #2A3A33;
  --lime-deep: #7FA826;
  --night: #1B2530;

  /* 字体族 */
  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;

  /* 尺寸 */
  --bar: 64px;
  --rail: 96px;
  --maxw: 1280px;
  --pad: clamp(16px, 3vw, 40px);
  --gap: clamp(12px, 2vw, 28px);
  --radius-a: 4px;
  --radius-b: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(42, 58, 51, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 58, 51, 0.16) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--lime); color: var(--ink); }

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

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: inline-block;
  padding: 10px 20px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- 5. 命令栏 ---------- */
.cmdbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bar);
  background: rgba(11, 20, 16, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.cmdbar.is-scrolled {
  border-bottom-color: var(--moss);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: 100%;
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.cmdbar__meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.cmdbar__meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 100%);
  transition: width 0.1s linear;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 4px 0;
}

.brand__mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex: 0 0 auto;
}

.brand__mark span {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--lime);
}

.brand__mark span:nth-child(1) { height: 40%; opacity: 0.6; }
.brand__mark span:nth-child(2) { height: 100%; }
.brand__mark span:nth-child(3) { height: 64%; opacity: 0.78; }
.brand__mark span:nth-child(4) { height: 84%; background: var(--orange); }

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

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.07em;
  color: var(--warm);
}

.brand__sub {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav__item { flex: 0 0 auto; }

.nav__link {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--mist-dim);
  transition: color 0.18s var(--ease);
}

.nav__label { display: inline-block; }

.nav__link:hover {
  color: var(--warm);
  background: var(--moss);
}

.nav__link:hover .nav__idx { color: var(--lime); }

.nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}

.nav__link[aria-current="page"] .nav__idx { color: rgba(11, 20, 16, 0.55); }

.nav__link[aria-current="page"]:hover {
  color: var(--ink);
  background: var(--lime);
}

.nav__link[aria-current="page"]:focus-visible { outline-color: var(--warm); }

/* 右侧状态区 */
.cmdbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.season-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--mist);
  white-space: nowrap;
}

.season-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 31, 0.16);
  flex: 0 0 auto;
}

.shift-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mist-dim);
  white-space: nowrap;
}

/* 移动端开关按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--warm);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4.25px) rotate(-45deg);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--warm); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--warm);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--orange { background: var(--orange); color: #140A03; }
.btn--orange:hover { background: var(--warm); color: var(--ink); }

.btn--sm {
  padding: 8px 15px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ---------- 7. 通用排版组件 ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--warm);
}

.h-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.24;
  letter-spacing: 0.005em;
  color: var(--warm);
}

.lede {
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--lime);
  flex: 0 0 auto;
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--warm);
}

.prose p + p { margin-top: 1.1em; }

.prose strong { color: var(--lime); font-weight: 700; }

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

.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--lime);
}

/* ---------- 8. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: clamp(56px, 8vw, 128px) 0; }

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

.grid-12 > * { grid-column: span var(--col-span, 12); }

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.crumbs a { color: var(--mist); transition: color 0.18s var(--ease); }
.crumbs a:hover { color: var(--lime); }

.crumbs__sep {
  width: 14px;
  height: 1px;
  background: var(--line);
  flex: 0 0 auto;
}

.crumbs [aria-current="page"] { color: var(--warm); }

/* ---------- 10. 卡片 / 标签 / 统计 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-a) var(--radius-b) var(--radius-a) var(--radius-b);
}

.card--panel {
  background: var(--panel);
  border-color: #22262C;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--mist);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.chip:hover { border-color: var(--lime); color: var(--warm); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.chip[aria-pressed="true"]:focus-visible { outline-color: var(--warm); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--mist);
}

/* ---------- 11. 图片容器（页面阶段复用） ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-a) var(--radius-b) var(--radius-a) var(--radius-b);
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(198, 255, 61, 0.1), transparent 62%),
    linear-gradient(158deg, var(--night) 0%, var(--ink) 100%);
}

.figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.86);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(27, 37, 48, 0.18) 0%, rgba(11, 20, 16, 0.66) 100%);
}

.figure__caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: 18px 20px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(11, 20, 16, 0.88), rgba(11, 20, 16, 0));
}

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

/* ---------- 12. 动效基元 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}

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

[data-filter-item].is-filtered-out { display: none; }

[data-filter-item].is-fresh {
  animation: filterIn 0.18s var(--ease) both;
}

@keyframes filterIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 13. 页脚 ---------- */
.sitefoot {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  padding-top: clamp(48px, 7vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.sitefoot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent 24px
  );
  opacity: 0.7;
}

.sitefoot__inner {
  display: grid;
  grid-template-columns: 1.35fr 1.65fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* 页脚品牌 */
.footbrand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footbrand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--warm);
}

.footbrand__tag {
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.footbrand__closing {
  max-width: 20em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm);
  opacity: 0.86;
}

.footbrand .btn { margin-top: 6px; }

/* 页脚栏目 */
.footnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footnav__group { min-width: 0; }

.footnav__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.footnav__item { display: block; }

.footnav__link {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--warm);
  opacity: 0.86;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.footnav__link:hover {
  color: var(--lime);
  opacity: 1;
  transform: translateX(3px);
}

/* 联络台 */
.footcontact { min-width: 0; }

.footcontact__title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.footcontact__list { display: block; }

.footcontact__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(42, 58, 51, 0.9);
}

.footcontact__row:last-child { border-bottom: 0; }

.footcontact__k {
  flex: 0 0 34px;
  padding-top: 2px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--mist-dim);
}

.footcontact__v {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--warm);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 页脚底栏 */
.sitefoot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  width: 100%;
  max-width: var(--maxw);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: 20px var(--pad) clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footlegal { color: var(--mist); }

.footmeta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--mist-dim);
}

.footnote { margin-left: auto; color: var(--mist-dim); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 8px 7px; font-size: 12.5px; }
  .nav__idx { display: none; }
  .shift-note { display: none; }
}

@media (max-width: 980px) {
  .cmdbar__inner { gap: 10px; }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  .cmdbar__meta {
    order: 4;
    margin-left: 8px;
  }

  .cmdbar__meta .season-tag,
  .cmdbar__meta .shift-note { display: none; }

  .nav {
    position: fixed;
    top: var(--bar);
    left: 0;
    right: 0;
    order: 2;
    display: none;
    max-height: calc(100vh - var(--bar));
    overflow-y: auto;
    padding: 10px var(--pad) 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  }

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

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

  .nav__item { width: 100%; }

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

  .nav__idx {
    display: inline-block;
    width: 24px;
    font-size: 11px;
  }

  .nav__link[aria-current="page"] {
    padding-left: 12px;
    border-bottom-color: var(--lime);
  }

  .sitefoot__inner { grid-template-columns: 1fr 1fr; }
  .footcontact { grid-column: 1 / -1; }

  .footnote { margin-left: 0; }

  .grid-12 > * { grid-column: span 12; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .brand__sub { display: none; }

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

  .sitefoot__inner { grid-template-columns: 1fr; gap: 32px; }

  .footcontact { grid-column: auto; }

  .sitefoot__base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .footnav { grid-template-columns: 1fr; }

  .nav-toggle__label { display: none; }

  .btn--sm { padding: 8px 12px; font-size: 11.5px; }
}

/* ---------- 15. 可访问性 / 减弱动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-filter-item].is-fresh { animation: none !important; }

  .cmdbar__meter > span { transition: none !important; }
}
