/* =========================================================
   半岛体体育 · 共享站点样式 /assets/site.css
   夜间球场看台：深墨绿基底 + 荧光绿数据 + 琥珀入口
   ========================================================= */

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

:root {
  --bg: #07110D;
  --panel: #0E1A15;
  --raise: #16241E;
  --lime: #C6FF3D;
  --amber: #FFA630;
  --ice: #4FC3F7;
  --card-red: #E8452F;
  --card-yellow: #FFD23F;
  --text: #E8F3EC;
  --muted: #8FA79B;
  --line: #2C3B34;
  --dim: #3E5148;

  --rail: 88px;
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 14px;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --font-num: ui-monospace, "JetBrains Mono", "DIN Alternate", "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(18px, 3.2vw, 44px);
  --maxw: 1320px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 440px at 80% -8%, rgba(198, 255, 61, 0.10), transparent 70%),
    radial-gradient(620px 400px at 4% 104%, rgba(255, 166, 48, 0.08), transparent 72%),
    linear-gradient(180deg, #07110D 0%, #061009 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--lime);
  color: #08130A;
  font: 700 14px/1 var(--font-display);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}
.skip:focus { transform: translateY(0); }

/* ---------- 移动顶栏 ---------- */
.topbar { display: none; }

.topbar__toggle {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 36, 30, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.topbar__toggle:hover { border-color: var(--lime); color: var(--lime); }

.bars { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.bars::before, .bars::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease;
}
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.topbar__toggle[aria-expanded="true"] .bars { background: transparent; }
.topbar__toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.topbar__toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.topbar__brand {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.topbar__cta {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--amber);
  color: #1A1000;
  font: 700 12.5px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease;
}
.topbar__cta:hover { background: #FFB855; }

/* ---------- 侧边轨道导航 ---------- */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 80;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 8px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0B1712 0%, #07110D 62%, #061009 100%);
  border-right: 1px solid var(--line);
}
.rail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background: radial-gradient(120% 100% at 50% 130%, rgba(198, 255, 61, 0.16), transparent 70%);
  pointer-events: none;
}

.rail__mark {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.rail__glyph {
  width: 13px; height: 13px;
  background: var(--lime);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(198, 255, 61, 0.6);
}
.rail__word {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text);
  transition: color 180ms ease;
}
.rail__mark:hover .rail__word { color: var(--lime); }

.rail__nav {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 12px;
  border-radius: 12px;
  color: #7E978A;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 200ms ease;
}
.rail__link:hover { color: var(--text); background: rgba(198, 255, 61, 0.05); }
.rail__link:hover::before { transform: scaleY(1); }
.rail__link[aria-current="page"] { color: var(--lime); background: rgba(198, 255, 61, 0.09); }
.rail__link[aria-current="page"]::before { transform: scaleY(1); }

.rail__idx {
  font: 700 10px/1 var(--font-num);
  letter-spacing: 0.14em;
  color: var(--dim);
  transition: color 180ms ease;
}
.rail__link:hover .rail__idx,
.rail__link[aria-current="page"] .rail__idx { color: var(--lime); }

.rail__label {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.rail__foot {
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 4px;
}
.rail__foot-label {
  font: 700 9.5px/1 var(--font-num);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail__mail {
  margin: 0;
  font: 600 10px/1.5 var(--font-num);
  letter-spacing: 0.02em;
  color: var(--muted);
  word-break: break-all;
}
.rail__meter {
  display: flex;
  align-items: flex-end;
  width: 3px;
  height: 62px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rail__meter i {
  display: block;
  width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: var(--lime);
  border-radius: 3px;
  transition: height 140ms linear;
}

.nav-scrim { display: none; }

@media (max-height: 820px) {
  .rail__label { font-size: 10.5px; letter-spacing: 0.04em; }
  .rail__idx { font-size: 9px; }
  .rail__link { padding: 8px 4px 10px; }
  .rail__meter { height: 44px; }
}

/* ---------- 主内容骨架 ---------- */
.shell { min-height: 60vh; }
@media (min-width: 861px) {
  .shell { padding-inline-start: var(--rail); }
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(36px, 5.5vw, 80px); }

.prose { max-width: 36em; }
.prose p { color: #CBDCD3; }
.prose h2, .prose h3 { margin-top: 1.4em; }

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

/* ---------- 通用文本与数字 ---------- */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 12px/1 var(--font-num);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 11.5px/1.5 var(--font-num);
  letter-spacing: 0.1em;
  background: rgba(198, 255, 61, 0.12);
  color: var(--lime);
}
.tag--amber { background: rgba(255, 166, 48, 0.14); color: var(--amber); }
.tag--ice { background: rgba(79, 195, 247, 0.14); color: var(--ice); }
.tag--red { background: rgba(232, 69, 47, 0.18); color: #FF7A66; }
.tag--yellow { background: rgba(255, 210, 63, 0.14); color: var(--card-yellow); }

.stat { display: grid; gap: 6px; }
.stat__num {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(42px, 7.6vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--lime);
}
.stat__unit {
  margin-inline-start: 0.35em;
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stat__label {
  font: 700 11.5px/1.4 var(--font-num);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn--amber { background: var(--amber); color: #1A1000; box-shadow: 0 12px 28px -18px rgba(255, 166, 48, 0.95); }
.btn--amber:hover { background: #FFB855; transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: #0B1400; }
.btn--lime:hover { background: #D6FF6E; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); background: rgba(22, 36, 30, 0.5); color: var(--text); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

/* ---------- 面板与 Bento ---------- */
.panel {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.panel--raise { background: var(--raise); }
.panel--focus { background: linear-gradient(158deg, #13221B 0%, #0C1712 62%); border-color: #24382E; }
.panel--cut { border-radius: var(--r-md) var(--r-md) var(--r-md) 5px; }
.panel--interactive:hover,
.panel--interactive:focus-within { border-color: var(--lime); transform: translateY(-2px); }

.tile { display: block; text-decoration: none; color: inherit; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.bento > * { min-width: 0; }

.col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: span 12; }

@media (min-width: 621px) and (max-width: 860px) {
  .col-3, .col-4, .col-5, .col-6 { grid-column: span 6; }
}
@media (min-width: 861px) {
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-12 { grid-column: span 12; }
  .row-2 { grid-row: span 2; }
}

/* ---------- 图片容器（页面阶段放置 <img> 占位） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 28% 18%, #1E3328 0%, #0A1410 72%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(198, 255, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 61, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

/* ---------- 面包屑与复制 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 600 12.5px/1.6 var(--font-num);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.crumbs span[aria-current="page"] { color: var(--text); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 11px/1.7 var(--font-num);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.copy:hover, .copy:focus-visible { color: var(--lime); border-color: var(--lime); }
.copy[data-state="done"] { color: var(--lime); border-color: var(--lime); }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(34px, 5vw, 62px);
  border-top: 2px solid var(--lime);
  background: linear-gradient(180deg, #0B1712 0%, #081109 72%);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 230px;
  pointer-events: none;
  background: radial-gradient(58% 100% at 22% 0%, rgba(198, 255, 61, 0.12), transparent 72%);
}

.foot__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
}
@media (min-width: 760px) {
  .foot__grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
}
@media (min-width: 760px) and (max-width: 1060px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

.foot__brand { min-width: 0; }
.foot__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  transition: color 180ms ease;
}
.foot__mark:hover { color: var(--lime); }

.foot__pitch {
  max-width: 30em;
  margin: 12px 0 18px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

.foot__meta {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.foot__meta li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.foot__key {
  font: 700 10.5px/1 var(--font-num);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.foot__val { font-size: 14px; color: var(--text); word-break: break-word; }
.foot__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.foot__col { min-width: 0; }
.foot__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.foot__list { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.foot__link {
  font-size: 14.5px;
  color: #B9CCC2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.foot__link:hover { color: var(--lime); border-bottom-color: var(--lime); }

.foot__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
}
.foot__legal { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.foot__small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}
.foot__small a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, border-color 160ms ease;
}
.foot__small a:hover { color: var(--lime); border-bottom-color: var(--lime); }

/* ---------- 移动端：顶栏 + 抽屉 ---------- */
@media (max-width: 860px) {
  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 90;
    height: 60px;
    padding: 0 14px;
    background: rgba(8, 18, 13, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .rail {
    width: min(318px, 84vw);
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px 22px;
    overflow-y: auto;
    border-right: 1px solid var(--lime);
    box-shadow: 34px 0 70px -42px #000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1), visibility 260ms;
  }
  .rail[data-open="true"] { transform: translateX(0); visibility: visible; }
  .rail::after { height: 140px; }

  .rail__mark { flex-direction: row; align-items: center; gap: 10px; }
  .rail__glyph { width: 11px; height: 11px; }
  .rail__word { writing-mode: horizontal-tb; font-size: 17px; letter-spacing: 0.16em; }

  .rail__nav { gap: 0; flex: 0 0 auto; overflow: visible; }
  .rail__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .rail__link::before { top: 8px; bottom: 8px; }
  .rail__label { writing-mode: horizontal-tb; font-size: 15.5px; letter-spacing: 0.08em; }
  .rail__idx { min-width: 2.4ch; font-size: 11px; }

  .rail__foot { align-items: flex-start; text-align: left; gap: 6px; }
  .rail__mail { font-size: 11.5px; }
  .rail__meter { display: none; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 75;
    padding: 0;
    border: 0;
    background: rgba(3, 8, 6, 0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
  }
  .nav-scrim:not([hidden]) { display: block; }

  body[data-nav-lock="true"] { overflow: hidden; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .foot__base { flex-direction: column; align-items: flex-start; }
  .topbar__brand { letter-spacing: 0.1em; font-size: 15px; }
}

@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;
  }
}
