/* ============================================================
   必赢亚州赛场 — 共享样式表 /assets/site.css
   框架式导航 · 战术板配色 · 档案式排版
   ============================================================ */

:root {
  --ink-green: #0B211B;
  --field-green: #12362B;
  --cream: #F4ECDD;
  --paper: #FBF6EC;
  --lime: #C8FF4D;
  --sand: #D8B36A;
  --sage: #93A89D;
  --charcoal: #101613;
  --track: #2E5A4C;
  --amber: #D98B3A;

  --font-display: 'Barlow Condensed', '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, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 104px;
  --gutter: 24px;
  --maxw: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body { margin: 0; }

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

button { font: inherit; color: inherit; }

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

a { color: inherit; }

/* ---------- base ---------- */
body {
  min-height: 100vh;
  padding-top: var(--header-h);
  background-color: var(--ink-green);
  background-image:
    linear-gradient(to right, rgba(46, 90, 76, .22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 90, 76, .22) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 排版辅助 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
}

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

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.8;
  max-width: 62ch;
  color: var(--cream);
}

.prose { max-width: 70ch; }

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

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 1.7em 0 .6em;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1em;
}

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 9px;
  height: 1px;
  background: var(--lime);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink-green);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- header 框架 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--ink-green);
  border-bottom: 1px solid var(--track);
  box-shadow: 0 10px 30px rgba(6, 20, 16, .55);
}

.scoreline {
  max-height: 40px;
  overflow: hidden;
  background: var(--field-green);
  border-bottom: 1px solid rgba(216, 179, 106, .28);
  transition: max-height .26s var(--ease), opacity .2s var(--ease);
}

.site-header[data-collapsed="true"] .scoreline {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.scoreline__inner {
  max-width: var(--maxw);
  height: 40px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

.scoreline__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}

.scoreline__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, .16);
}

.scoreline__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.scoreline__list li { display: flex; }

.scoreline__link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: var(--sage);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.scoreline__link:hover {
  color: var(--cream);
  background: rgba(200, 255, 77, .08);
}

.scoreline__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  background: var(--lime);
  color: var(--ink-green);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}

.scoreline__cta:hover { background: var(--sand); }

/* ---------- nav rail ---------- */
.nav-rail {
  max-width: var(--maxw);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--field-green);
  color: var(--lime);
  font-size: 1rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px var(--track);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--cream);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--track);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 -5px 0 var(--lime), 0 5px 0 var(--lime);
}

.nav-toggle.is-open .nav-toggle__bar {
  background: var(--sand);
  box-shadow: 0 -5px 0 var(--sand), 0 5px 0 var(--sand);
}

.site-nav { margin-left: auto; }

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

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--cream);
  font-size: .94rem;
  line-height: 1;
  text-decoration: none;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}

.site-nav__link:hover {
  color: var(--lime);
  background: rgba(200, 255, 77, .08);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--sand);
  background: rgba(200, 255, 77, .1);
}

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--sand));
  pointer-events: none;
  will-change: transform;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  background: var(--field-green);
  border-top: 2px solid var(--lime);
  color: var(--cream);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 36px 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(46, 90, 76, .9);
}

.footer__brand,
.footer__col { min-width: 0; }

.footer__mark {
  display: inline-block;
  padding-left: 12px;
  border-left: 3px solid var(--lime);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--cream);
  text-decoration: none;
}

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

.footer__pitch {
  margin-top: 14px;
  max-width: 32ch;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--sage);
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--sand);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .95rem;
  color: var(--cream);
  text-decoration: none;
  transition: color .16s var(--ease), transform .16s var(--ease);
}

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

.footer__contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(46, 90, 76, .7);
}

.footer__contact-key {
  flex: 0 0 38px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: .86rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.footer__note {
  margin-top: 24px;
  padding: 14px 16px;
  max-width: 80ch;
  border-left: 2px solid var(--sand);
  background: rgba(11, 33, 27, .55);
  font-size: .86rem;
  line-height: 1.7;
  color: var(--sage);
}

.footer__bottom {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--sage);
}

.footer__to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--track);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.footer__to-top::before {
  content: "↑";
  font-size: .95rem;
}

.footer__to-top:hover {
  background: var(--lime);
  color: var(--ink-green);
  border-color: var(--lime);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}

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

.btn--signal {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-green);
}

.btn--signal:hover {
  background: var(--sand);
  border-color: var(--sand);
}

.btn--ghost {
  background: transparent;
  border-color: var(--track);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--sand {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink-green);
}

.btn--sand:hover {
  background: var(--lime);
  border-color: var(--lime);
}

/* ---------- 版式容器 ---------- */
.content-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
}

.breadcrumb__item { color: var(--sage); }

.breadcrumb__item a {
  color: var(--cream);
  text-decoration: none;
}

.breadcrumb__item a:hover { color: var(--lime); }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--track);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--track);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--cream);
}

.section-head__note {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- 非对称双栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px;
  align-items: start;
}

.split__aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.split__main { min-width: 0; }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--field-green);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(46, 90, 76, .9);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.panel--paper {
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(16, 22, 19, .14);
}

.panel--signal {
  background: var(--lime);
  color: var(--ink-green);
  box-shadow: none;
}

.panel a { text-decoration-thickness: 1px; }

/* ---------- 网格与数据块 ---------- */
.grid {
  display: grid;
  gap: 16px;
}

.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)); }

.data-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(11, 33, 27, .6);
  box-shadow: inset 0 0 0 1px rgba(46, 90, 76, .9);
}

.data-block__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.data-block__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- 标签 / 筛选 ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(216, 179, 106, .12);
  box-shadow: inset 0 0 0 1px rgba(216, 179, 106, .4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

button.tag { cursor: pointer; }

button.tag[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink-green);
  box-shadow: none;
}

/* ---------- 图片容器 ---------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--field-green);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(46, 90, 76, .9);
}

.figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.55) contrast(1.05) brightness(.92);
}

.figure--wide .figure__img { aspect-ratio: 21 / 9; }

.figure__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 255, 77, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 255, 77, .16) 1px, transparent 1px);
  background-size: 12.5% 25%;
  mix-blend-mode: screen;
}

.figure__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- 纸面分区 ---------- */
.surface-paper {
  background: var(--paper);
  color: var(--charcoal);
}

.surface-paper .lede { color: var(--charcoal); }

.surface-paper a { color: var(--field-green); }

.surface-paper .eyebrow { color: #7A6A46; }

.surface-paper .eyebrow::before { background: var(--sand); }

.surface-paper .prose li::before { background: var(--sand); }

/* ---------- 节奏工具 ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.divider {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--track);
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 6px 12px 18px;
    background: var(--field-green);
    border-top: 1px solid var(--track);
    border-bottom: 2px solid var(--lime);
    box-shadow: 0 24px 40px rgba(6, 20, 16, .6);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

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

  .site-nav__link {
    justify-content: space-between;
    min-height: 52px;
    padding: 0 14px;
    font-size: 1rem;
    border-top: none;
    border-bottom: 1px solid rgba(46, 90, 76, .7);
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: rgba(46, 90, 76, .7);
    box-shadow: inset 3px 0 0 var(--lime);
    background: rgba(200, 255, 77, .1);
  }

  .scoreline__list { display: none; }

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

  .split__aside { position: static; }

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

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

@media (max-width: 720px) {
  :root {
    --header-h: 100px;
    --gutter: 18px;
  }

  .nav-rail { height: 60px; gap: 12px; }

  .brand__tagline { display: none; }

  .brand__name { font-size: 1.32rem; }

  .scoreline__inner { font-size: .68rem; gap: 12px; }

  .footer__inner { padding-top: 40px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .panel { padding: 18px; }

  .section-head { align-items: flex-start; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
