/* ==========================================================
   宝威赛场 · 共享样式表 /assets/site.css
   夜间球场底色 · 荧光青柠数据层 · 暖纸阅读面
   ========================================================== */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, 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: #071A14;
  --ink-deep: #05120E;
  --turf: #0C2A20;
  --turf-soft: #123528;
  --paper: #F3EBDD;
  --paper-ink: #1E2A24;
  --lime: #C6FF4A;
  --orange: #FF8A3D;
  --haze: #A8B8C8;
  --white: #F7FBF8;
  --teal: #126B5A;
  --coral: #FF5A5F;

  --line: rgba(168, 184, 200, .18);
  --line-strong: rgba(168, 184, 200, .34);
  --lime-soft: rgba(198, 255, 74, .10);
  --lime-line: rgba(198, 255, 74, .50);
  --orange-line: rgba(255, 138, 61, .45);

  --font-display: system-ui, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --shell: 1320px;
  --gutter: 24px;
  --pill: 999px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(1180px 620px at 84% -12%, rgba(198, 255, 74, .075), transparent 62%),
    radial-gradient(920px 540px at 4% 6%, rgba(18, 107, 90, .26), transparent 68%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

p { text-wrap: pretty; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

::selection { background: var(--lime); color: #0A2118; }

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

.section--paper :focus-visible,
.card--paper :focus-visible { outline-color: var(--teal); }

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

.section { padding-block: clamp(48px, 7vw, 88px); }

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section--paper .stat__label { color: #5C6B62; }
.section--paper .tag { border-color: rgba(30, 42, 36, .22); color: #4A5A50; }
.section--paper .figure { border-color: rgba(30, 42, 36, .16); }

#main-content { display: block; outline: none; }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 999;
  padding: 11px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--lime);
  color: #0A2118;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  transition: top .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 0; outline-offset: -4px; }

/* ---------- 6. 页头骨架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(5, 18, 14, .97) 0%, rgba(7, 26, 20, .93) 66%, rgba(7, 26, 20, .86) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}

/* 6.1 公告条 */
.announce {
  background: var(--turf);
  border-bottom: 1px solid var(--line);
}

.announce[data-collapsed="true"] { display: none; }

.announce__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
}

.announce__badge {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--orange);
  color: #20120A;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
}

.announce__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--paper);
}

.announce__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(198, 255, 74, .16);
}

.announce__link {
  flex: 0 0 auto;
  color: var(--lime);
  border-bottom: 1px solid var(--lime-line);
  padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.announce__link:hover { color: var(--white); border-color: var(--white); }

.announce__close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--haze);
  font-size: 11px;
  line-height: 1;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.announce__close:hover {
  background: var(--haze);
  border-color: var(--haze);
  color: var(--ink);
}

/* 6.2 主栏 */
.header-bar { position: relative; }

.header-bar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 6.3 品牌浮岛 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--lime) 0%, var(--teal) 100%);
  box-shadow: inset 0 0 0 1px rgba(7, 26, 20, .35);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  background: rgba(7, 26, 20, .85);
}

.brand__mark::before { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.brand__mark::after { width: 100%; height: 2px; left: 0; top: 50%; transform: translateY(-50%); opacity: .55; }

.brand__text { display: flex; flex-direction: column; line-height: 1.06; }

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--haze);
}

/* 6.4 悬浮胶囊导航 */
.nav-pill {
  position: relative;
  z-index: 5;
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(12, 42, 32, .88);
  box-shadow: inset 0 1px 0 rgba(247, 251, 248, .06), 0 8px 24px rgba(0, 0, 0, .28);
}

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

.nav-pill__link {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--haze);
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.nav-pill__link:hover { color: var(--white); background: rgba(247, 251, 248, .07); }

.nav-pill__link[aria-current="page"] {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 6.5 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--lime { background: var(--lime); color: #0A2118; border-color: var(--lime); }
.btn--lime:hover { background: #D9FF7A; box-shadow: 0 0 0 4px rgba(198, 255, 74, .16); }

.btn--ghost { color: var(--lime); border-color: var(--lime-line); background: rgba(198, 255, 74, .06); }
.btn--ghost:hover { background: rgba(198, 255, 74, .15); border-color: var(--lime); }

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

/* 6.6 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(12, 42, 32, .85);
  color: var(--white);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), top .22s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 6.7 联赛轨道条 */
.track-bar {
  border-top: 1px solid var(--line);
  background: rgba(12, 42, 32, .55);
}

.track-bar__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 6px var(--gutter);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-bar__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--haze);
  white-space: nowrap;
}

.track-chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 2px;
}

.track-chip-row::-webkit-scrollbar { display: none; }

.track-chip {
  flex: 0 0 auto;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(7, 26, 20, .45);
  color: var(--haze);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.track-chip:hover { color: var(--white); border-color: var(--line-strong); }

.track-chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #0A2118;
  font-weight: 700;
}

.track-bar__jump {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--orange);
  border-bottom: 1px solid var(--orange-line);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.track-bar__jump:hover { color: var(--paper); border-color: var(--paper); }

/* 6.8 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--lime) 100%);
  box-shadow: 0 0 12px rgba(198, 255, 74, .55);
  pointer-events: none;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--turf);
  color: var(--haze);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 184, 200, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 184, 200, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 18%, transparent 76%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px var(--gutter) 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand .brand__name { font-size: 18px; }

.footer__line {
  margin-top: 15px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper);
  max-width: 26ch;
}

.footer__contact {
  margin-top: 22px;
  display: grid;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.footer__contact li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.65;
}

.footer__k {
  flex: 0 0 auto;
  min-width: 2.6em;
  color: rgba(168, 184, 200, .6);
  letter-spacing: .12em;
}

.footer__col-title {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer__links { display: grid; gap: 10px; }

.footer__links a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer__links a:hover { color: var(--lime); border-color: var(--lime-line); }

.footer__bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
}

.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.footer__legal a { color: var(--paper); transition: color .18s var(--ease); }
.footer__legal a:hover { color: var(--lime); }
.footer__sep { color: rgba(168, 184, 200, .38); }

.footer__icp { margin-left: auto; color: var(--haze); }
.footer__copy { color: var(--haze); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
}

.breadcrumbs a { color: var(--haze); transition: color .18s var(--ease); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs__sep { color: rgba(168, 184, 200, .4); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 9. 通用卡片 / 标签 / 数据 ---------- */
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(12, 42, 32, .72);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.card:hover { border-color: var(--line-strong); }

.card--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: rgba(30, 42, 36, .14);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--haze);
  white-space: nowrap;
}

.tag--lime { color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }
.tag--orange { color: var(--orange); border-color: var(--orange-line); background: rgba(255, 138, 61, .09); }

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

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
}

.stat__num--orange { color: var(--orange); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--haze);
}

/* ---------- 10. 图片容器基础 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(140deg, var(--turf-soft) 0%, #08201A 100%);
  isolation: isolate;
}

.figure img,
.figure svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

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

.figure__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(7, 26, 20, 0) 38%, rgba(7, 26, 20, .72) 100%);
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-pill__link { padding: 8px 11px; font-size: 13px; }
  .header-actions .btn { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 1000px) {
  .header-bar__inner {
    justify-content: space-between;
    gap: 12px;
    padding-block: 11px;
  }

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

  .nav-pill {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    margin: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 20px;
    border-color: var(--line-strong);
    background: #0B2720;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
  }

  .nav-pill[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-pill__list { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav-pill__link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 15px;
  }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  body { font-size: 16px; }

  .announce__inner { flex-wrap: nowrap; gap: 10px; font-size: 11px; }
  .announce__text { white-space: normal; line-height: 1.45; }
  .announce__link { display: none; }

  .track-bar__label { display: none; }

  .footer__inner { padding-top: 44px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }

  .header-actions__cta { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 16px; }

  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { gap: 10px 16px; }
  .footer__icp { margin-left: 0; width: 100%; order: 3; }
  .footer__copy { order: 4; }
}

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