/* ==========================================================================
   9博体育赛场 — 共享站级样式 /assets/site.css
   深夜复盘室：深墨绿底、精密网格、锐利直角、等宽数字
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { border-radius: 0; }

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

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .02em;
  color: var(--sand);
}

h1 { font-size: clamp(34px, 5.6vw, 68px); letter-spacing: .01em; }
h2 { font-size: clamp(26px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; }
h4 { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.35; letter-spacing: .04em; }

strong { font-weight: 700; color: var(--sand); }

/* 2. 变量
   ========================================================================== */
:root {
  /* 品牌色 */
  --ink: #071A16;        /* 深墨绿 · 主背景 */
  --ink-2: #111518;      /* 炭黑 · 档案条带与页脚 */
  --teal: #0B3B36;       /* 深蓝绿 · 卡片分区 */
  --wine: #5A1F2B;       /* 酒红 · 专题分区 */
  --sand: #F3F0E4;       /* 浅砂白 · 正文 */
  --lime: #D8FF3E;       /* 荧光青柠 · 焦点 */
  --amber: #FFB347;      /* 暖琥珀 · 统计 */
  --home: #7DD3FC;       /* 冷蓝 · 主队 */
  --away: #FF8A4C;       /* 暖橙 · 客队 */
  --mist: #9FB6AD;       /* 雾绿灰 · 辅助与网格 */

  --line: rgba(159, 182, 173, .22);
  --line-mid: rgba(159, 182, 173, .42);
  --mist-soft: rgba(159, 182, 173, .14);
  --text-dim: rgba(243, 240, 228, .74);
  --text-faint: rgba(243, 240, 228, .52);

  /* 字体：无远程加载，全部为本机字体回退栈 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace;

  /* 尺度 */
  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --focus: var(--lime);
}

/* 3. 焦点态
   ========================================================================== */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}

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

/* 4. 布局工具
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 112px); }

.prose {
  max-width: 66ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.prose a { color: var(--lime); text-decoration: none; border-bottom: 1px solid rgba(216, 255, 62, .4); }
.prose a:hover { border-bottom-color: var(--lime); }

.bleed-top { margin-top: calc(-1 * var(--header-h)); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}

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

/* 5. 按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--line-mid);
  border-radius: 0;
  background: transparent;
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}

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

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.btn--lime:hover { background: #E6FF74; border-color: #E6FF74; }

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--amber:hover { background: #FFC470; border-color: #FFC470; }

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

.btn--block { width: 100%; }

/* 6. 标签
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: var(--mist-soft);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--home { color: var(--home); border-color: rgba(125, 211, 252, .45); background: rgba(125, 211, 252, .1); }
.tag--away { color: var(--away); border-color: rgba(255, 138, 76, .45); background: rgba(255, 138, 76, .1); }
.tag--lime { color: var(--lime); border-color: rgba(216, 255, 62, .45); background: rgba(216, 255, 62, .1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 179, 71, .45); background: rgba(255, 179, 71, .1); }

/* 7. 面包屑
   ========================================================================== */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
}

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-inline: 10px;
  color: rgba(159, 182, 173, .4);
}

.breadcrumb a { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--sand); }

/* 8. 卡片与网格
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--teal);
  border: 1px solid var(--line);
  color: var(--sand);
}

.card--ink { background: var(--ink-2); }
.card--teal { background: var(--teal); }
.card--wine { background: var(--wine); }
.card--sand { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.card--sand h1, .card--sand h2, .card--sand h3, .card--sand h4 { color: var(--ink); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.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)); }

/* 9. 图片容器基础规则（页面阶段放入 <img alt="">）
   ========================================================================== */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--ink-2) 58%, var(--wine) 100%);
  border: 1px solid var(--line);
  border-radius: 0;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(to right, rgba(159, 182, 173, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 182, 173, .16) 1px, transparent 1px);
  background-size: 52px 52px;
}

.media > img,
.media > picture > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 8px 14px;
  background: rgba(7, 26, 22, .82);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

/* 10. Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease);
}

.site-header[data-state="solid"] {
  background: rgba(7, 26, 22, .97);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  height: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.16;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--sand);
  white-space: nowrap;
}

.brand__desc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line-mid);
  background: rgba(7, 26, 22, .45);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 16px;
}

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: rgba(243, 240, 228, .78);
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--sand); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--lime); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__cta {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: .1em;
  white-space: nowrap;
}

/* 阅读进度 */
.site-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.site-header__progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--amber) 100%);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  will-change: transform;
}

/* 11. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--lime) 0 20%,
    var(--home) 20% 34%,
    var(--away) 34% 48%,
    rgba(159, 182, 173, .25) 48% 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 76px);
}

.footer-lead { min-width: 0; }

.brand--footer { margin-bottom: 20px; }

.footer-summary {
  max-width: 40ch;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.footer-version {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-faint);
}

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

.footer-title {
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.footer-list li {
  padding-block: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-list a {
  color: var(--sand);
  text-decoration: none;
  transition: color .2s var(--ease);
  border-bottom: 1px solid transparent;
}

.footer-list a:hover { color: var(--lime); border-bottom-color: rgba(216, 255, 62, .5); }

.footer-list--contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(159, 182, 173, .12);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--text-dim);
  word-break: break-word;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 18px;
}

.footer-legal li { display: inline-flex; align-items: center; }

.footer-legal li + li::before {
  content: "";
  width: 1px;
  height: 11px;
  margin-inline: 12px;
  background: var(--line-mid);
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-faint);
  text-decoration: none;
  transition: color .2s var(--ease);
}

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

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-faint);
}

/* 12. 页面主体与入场
   ========================================================================== */
#main-content {
  display: block;
  padding-top: var(--header-h);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

[data-reveal][data-reveal-ready="true"] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 79;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px var(--gutter) 26px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }

  .site-nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

  .site-nav__item { display: block; }

  .site-nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    letter-spacing: .1em;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__link::after {
    left: 0;
    right: auto;
    bottom: -1px;
    width: 28px;
    height: 2px;
  }

  .site-nav__cta {
    margin-top: 18px;
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-lead { grid-column: 1 / -1; }
}

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

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  body { font-size: 16px; }

  .brand__mark { width: 30px; height: 30px; font-size: 19px; }
  .brand__name { font-size: 17px; letter-spacing: .1em; }
  .brand__desc { font-size: 9px; letter-spacing: .12em; }

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

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 8px 0; }
}

/* 14. 降低动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal][data-reveal-ready="true"],
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .btn:active { transform: none; }
}
