/* =========================================================
   利发体育赛场 — 共享样式 /assets/site.css
   夜场球场绿底 · 荧光比分黄 · 冷白蓝正文 · 警示橙排查
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; }
img, picture, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --green-900: #061D16;
  --green-800: #0A3B2E;
  --green-700: #145A3C;
  --lime: #E8FF4D;
  --ice: #D7E8FF;
  --orange: #FF7A1A;
  --slate: #2A3B36;
  --mist: #9BCBB3;
  --white: #FFFFFF;
  --lime-soft: rgba(232, 255, 77, 0.12);
  --orange-soft: rgba(255, 122, 26, 0.12);
  --line: rgba(155, 203, 179, 0.18);
  --line-strong: rgba(155, 203, 179, 0.34);

  --rail-w: 236px;
  --topbar-h: 64px;
  --wrap: 1120px;
  --pad: 22px;

  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Noto Sans Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  --cut-sm: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  background-color: var(--green-800);
  background-image:
    radial-gradient(1200px 720px at 14% -12%, rgba(20, 90, 60, 0.9), rgba(10, 59, 46, 0) 62%),
    linear-gradient(180deg, rgba(6, 29, 22, 0) 0%, rgba(6, 29, 22, 0.72) 100%);
  background-attachment: fixed;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 0.6em; color: var(--white); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6.2vw, 84px); }
h2 { font-size: clamp(26px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 500; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--ice); text-underline-offset: 3px; transition: color 0.22s var(--ease); }
a:hover { color: var(--lime); }
strong, b { font-weight: 600; color: var(--white); }
small { font-size: 13px; color: var(--mist); }
::selection { background: var(--lime); color: var(--green-900); }

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

/* ---------- 4. 布局容器 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.section { position: relative; padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(30px, 4vw, 56px) 0; }
.section__band {
  height: 6px; width: 100%;
  background: repeating-linear-gradient(115deg,
    var(--green-700) 0 12px,
    var(--lime) 12px 18px,
    var(--green-700) 18px 30px);
  opacity: 0.55;
}

.rule { height: 1px; width: 100%; background: linear-gradient(90deg, var(--lime) 0 44px, rgba(155, 203, 179, 0.25) 44px 100%); }

/* ---------- 5. 文字组件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); flex: 0 0 auto; }

.display {
  margin: 0 0 0.28em;
  font-size: clamp(44px, 8.6vw, 118px);
  font-weight: 200;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--white);
}
.display__accent { color: var(--lime); font-style: normal; }

.lede { max-width: 62ch; margin: 0 0 1.4em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--ice); }
.num { font-family: var(--font-mono); font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  clip-path: var(--cut-sm);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--lime); }
.btn--solid { background: var(--lime); color: var(--green-900); font-weight: 600; }
.btn--solid:hover { background: #F3FF8A; color: var(--green-900); }
.btn--ghost { background: rgba(6, 29, 22, 0.45); border-color: var(--line-strong); color: var(--ice); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--orange { background: var(--orange); color: #1B0D02; font-weight: 600; }
.btn--orange:hover { background: #FF9243; color: #1B0D02; }

/* ---------- 7. 头部：侧边轨道 ---------- */
.skip-link {
  position: absolute; top: -120px; left: 14px; z-index: 200;
  padding: 10px 16px;
  background: var(--lime); color: var(--green-900);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 14px; color: var(--green-900); }

.site-header {
  position: fixed; top: 0; left: 0; z-index: 60;
  display: flex; flex-direction: column;
  width: var(--rail-w); height: 100vh; height: 100dvh;
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, #08281F 0%, var(--green-900) 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.topbar {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  position: relative; flex: 0 0 auto;
  width: 36px; height: 36px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 16%, 100% 100%, 16% 100%);
}
.brand__mark i { position: absolute; left: 8px; height: 3px; background: var(--green-900); }
.brand__mark i:nth-child(1) { top: 11px; width: 17px; transform: rotate(-38deg); transform-origin: left center; }
.brand__mark i:nth-child(2) { top: 19px; width: 10px; transform: rotate(-38deg); transform-origin: left center; opacity: 0.5; }
.brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand__name { font-size: 17px; font-weight: 600; color: var(--white); letter-spacing: 0.02em; }
.brand__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--mist); }
.brand:hover .brand__name { color: var(--lime); }

.statuslight {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mist);
}
.statuslight__dot {
  width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft);
  animation: statuspulse 2.6s var(--ease) infinite;
}
@keyframes statuspulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.32; } }

.navtoggle { display: none; }

.rail { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding-top: 18px; }
.rail__label {
  margin: 0 0 10px; padding-left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--mist);
}
.rail__list { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; overflow-y: auto; }
.rail__link {
  position: relative;
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px 9px 14px;
  border-left: 2px solid rgba(20, 90, 60, 0.9);
  font-size: 15px; text-decoration: none; color: var(--ice);
  transition: background 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.rail__link:hover { background: var(--lime-soft); color: var(--white); }
.rail__link:hover .rail__num { color: var(--lime); }
.rail__link[aria-current="page"] {
  background: var(--lime-soft);
  border-left-color: var(--lime);
  color: var(--white);
}
.rail__link[aria-current="page"] .rail__num { color: var(--lime); }
.rail__link[aria-current="page"] .rail__name { font-weight: 600; }
.rail__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mist); }
.rail__name { letter-spacing: 0.02em; }

.rail__foot {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
}

.scrollmeter { position: absolute; top: 0; right: 0; bottom: 0; width: 3px; overflow: hidden; pointer-events: none; }
.scrollmeter::after {
  content: ""; position: absolute; inset: 0;
  background: var(--lime);
  transform: scaleY(var(--p, 0));
  transform-origin: top center;
  transition: transform 0.14s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--green-900);
  border-top: 1px solid var(--line);
  padding-bottom: 30px;
}
.footer__scan {
  height: 6px;
  background: repeating-linear-gradient(115deg,
    var(--green-700) 0 14px,
    var(--lime) 14px 20px,
    var(--green-700) 20px 34px);
  opacity: 0.45;
}
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 0; }
.footer__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; gap: 34px; }

.footer__brandcol { min-width: 0; }
.footer__logo { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: 0.02em; }
.footer__tag { margin: 0 0 14px; font-size: 13.5px; letter-spacing: 0.1em; color: var(--lime); }
.footer__meta { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.95; color: var(--mist); }

.footer__col { min-width: 0; }
.footer__coltitle {
  margin: 0 0 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist);
}
.footer__list li + li { margin-top: 9px; }
.footer__list a { font-size: 14.5px; text-decoration: none; color: var(--ice); }
.footer__list a::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 10px; height: 1px; margin-right: 9px;
  background: var(--green-700);
  transition: width 0.24s var(--ease), background 0.24s var(--ease);
}
.footer__list a:hover { color: var(--lime); }
.footer__list a:hover::before { width: 18px; background: var(--lime); }

.footer__contactrow { display: flex; gap: 12px; margin: 0 0 12px; font-size: 14.5px; }
.footer__key {
  flex: 0 0 40px; padding-top: 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mist);
}
.footer__val { min-width: 0; color: var(--ice); word-break: break-all; }

.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin-top: 42px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--mist);
}
.footer__legal p { margin: 0; }
.footer__icp a { color: var(--mist); text-decoration: none; }
.footer__icp a:hover { color: var(--lime); }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--green-900);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  clip-path: var(--cut-sm);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: #F3FF8A; }

/* ---------- 9. 面包屑 / 网格 / 面板 ---------- */
.crumbs { margin: 0 0 26px; }
.crumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--mist);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__link { color: var(--mist); text-decoration: none; }
.crumbs__link:hover { color: var(--lime); }
.crumbs__sep { color: var(--green-700); }

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

.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(160deg, rgba(20, 90, 60, 0.55), rgba(6, 29, 22, 0.85));
  border: 1px solid var(--line);
  clip-path: var(--cut);
}
.panel--flat { background: var(--green-900); }
.panel--lime { background: var(--lime-soft); border-color: rgba(232, 255, 77, 0.45); }
.panel__title { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--white); letter-spacing: 0.01em; }

.card {
  padding: 18px 20px;
  background: var(--slate);
  border-left: 2px solid var(--green-700);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.card:hover { border-left-color: var(--lime); background: #31443E; }
.card__title { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--white); }

.tag {
  display: inline-block; padding: 3px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--mist);
}
.tag--lime { color: var(--lime); border-color: rgba(232, 255, 77, 0.5); background: var(--lime-soft); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 26, 0.5); background: var(--orange-soft); }
.tag--ice { color: var(--ice); border-color: rgba(215, 232, 255, 0.4); background: rgba(215, 232, 255, 0.08); }

/* 比分牌 */
.score { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.score__team { font-size: 14px; font-weight: 500; color: var(--ice); }
.score__val { font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.score__sep { color: var(--mist); opacity: 0.6; }

/* 编号排查轨道 */
.steps { display: flex; flex-direction: column; }
.steps__item {
  display: grid; grid-template-columns: 76px 1fr; gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  font-family: var(--font-mono); font-size: 34px; font-weight: 700; line-height: 1;
  color: var(--lime); letter-spacing: -0.02em;
}
.steps__item--alert .steps__num { color: var(--orange); }
.steps__body { min-width: 0; }
.steps__body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--white); }
.steps__body p:last-child { margin-bottom: 0; }

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative; display: block; overflow: hidden;
  background: linear-gradient(140deg, var(--green-700), var(--green-900));
  clip-path: var(--cut);
}
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(155, 203, 179, 0.07) 18px 20px);
}
.media > img, .media > picture > img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--lime);
  background: rgba(6, 29, 22, 0.78);
}

/* ---------- 11. 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 12. 桌面端让出轨道宽度 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* ---------- 13. 平板 / 移动端：顶栏 + 抽屉 ---------- */
@media (max-width: 1023px) {
  body.is-nav-open { overflow: hidden; }

  .site-header {
    width: auto; right: 0; height: auto;
    padding: 0;
    background: rgba(6, 29, 22, 0.96);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .topbar {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 12px; min-height: var(--topbar-h); padding: 10px 16px;
    border-bottom: 0;
  }
  .brand__mark { width: 30px; height: 30px; clip-path: polygon(0 0, 100% 16%, 100% 100%, 16% 100%); }
  .brand__mark i:nth-child(1) { top: 9px; left: 7px; width: 14px; }
  .brand__mark i:nth-child(2) { top: 16px; left: 7px; width: 8px; }
  .brand__name { font-size: 15.5px; }
  .brand__tag { font-size: 10px; }

  .navtoggle {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ice);
  }
  .navtoggle__bars { position: relative; display: block; width: 18px; height: 12px; }
  .navtoggle__bars::before, .navtoggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .navtoggle__bars::before { top: 0; }
  .navtoggle__bars::after { bottom: 0; }
  .site-header[data-open] .navtoggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .site-header[data-open] .navtoggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-header[data-open] .navtoggle { border-color: var(--lime); color: var(--lime); }

  .rail {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; bottom: 0;
    padding: 24px 20px 28px;
    background: linear-gradient(180deg, #08281F 0%, var(--green-900) 100%);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.34s var(--ease);
  }
  .site-header[data-open] .rail { transform: none; }
  .rail__label { padding-left: 2px; }
  .rail__link { padding: 14px 12px; font-size: 17px; border-left-width: 3px; }
  .rail__num { font-size: 12px; }
  .rail__foot { flex-direction: row; gap: 10px; margin-top: 24px; }
  .rail__foot .btn { flex: 1 1 0; padding: 14px 12px; }

  .scrollmeter { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 3px; }
  .scrollmeter::after { transform: scaleX(var(--p, 0)); transform-origin: left center; }

  .totop { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 640px) {
  .statuslight { display: none; }
  .brand__tag { display: none; }
  .footer__legal { justify-content: flex-start; }
}

/* ---------- 14. 网格与页脚响应式 ---------- */
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps__item { grid-template-columns: 56px 1fr; gap: 14px; }
  .steps__num { font-size: 28px; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__inner { padding-top: 36px; }
}

/* ---------- 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;
  }
  .reveal { opacity: 1; transform: none; }
  .totop { transition: none; }
}
