/* ==========================================================================
   MK体育看台 — 共享样式表 /assets/site.css
   夜场墨绿 × 荧光黄 · 侧边轨道导航 · 连续画布
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --mk-900: #07231C;
  --mk-700: #0E3A2E;
  --mk-500: #14624B;
  --line-300: #2E7A63;
  --volt: #D8FF3E;
  --volt-dim: #A8C92B;
  --yellow: #F2C230;
  --red: #E4503C;
  --warm: #F4F1E8;
  --char: #14181A;
  --mist: #9BA8A2;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --rail-w: 76px;
  --rail-open: 248px;
  --top-h: 52px;

  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--top-h);
  background: var(--mk-900);
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    font-size: 17px;
  }
}

img { max-width: 100%; border-style: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; width: 100%; }

a {
  color: var(--volt);
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

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

h1 { font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 900; line-height: 1.05; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }

::selection { background: var(--volt); color: var(--char); }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus { outline: none; }

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

/* ---------- 3. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--volt);
  color: var(--char);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 4. 顶部细条 ---------- */
.site-header { position: relative; z-index: 70; }

.topline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  background: linear-gradient(90deg, rgba(7, 35, 28, .97) 0%, rgba(14, 58, 46, .94) 60%, rgba(7, 35, 28, .95) 100%);
  border-bottom: 1px solid rgba(46, 122, 99, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 80;
}

@media (min-width: 1024px) {
  .topline { padding: 0 28px; }
}

.topline__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌签名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--warm);
  min-width: 0;
}

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

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--volt);
  color: var(--char);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

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

.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--warm);
  white-space: nowrap;
}

.brand__slogan {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--mist);
  white-space: nowrap;
}

/* 状态点 */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--mist);
  white-space: nowrap;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, .16);
}

.status--pending .status__dot {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .18);
}

.status--rest .status__dot {
  background: var(--mist);
  box-shadow: 0 0 0 3px rgba(155, 168, 162, .16);
}

@media (prefers-reduced-motion: no-preference) {
  .status--live .status__dot { animation: mk-pulse 2.6s var(--ease) infinite; }
}

@keyframes mk-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(216, 255, 62, .16); }
  50% { box-shadow: 0 0 0 7px rgba(216, 255, 62, .04); }
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(216, 255, 62, .38);
  border-radius: 999px;
  background: transparent;
  color: var(--warm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--volt);
  background: rgba(216, 255, 62, .1);
}

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

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--volt);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* ---------- 5. 侧边轨道导航 ---------- */
.rail-scrim {
  position: fixed;
  inset: var(--top-h) 0 0 0;
  background: rgba(7, 35, 28, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s var(--ease);
  z-index: 60;
}

.site-header[data-open="true"] .rail-scrim {
  opacity: 1;
  pointer-events: auto;
}

.rail {
  position: fixed;
  top: var(--top-h);
  left: 0;
  bottom: 0;
  width: min(86vw, 304px);
  display: flex;
  flex-direction: column;
  padding: 22px 0 26px;
  background: var(--mk-700);
  border-right: 1px solid rgba(46, 122, 99, .4);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-104%);
  transition: transform .32s var(--ease);
  z-index: 65;
}

.site-header[data-open="true"] .rail { transform: translateX(0); }

.rail__track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(46, 122, 99, .32);
}

.rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--volt) 0%, var(--yellow) 100%);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .12s linear;
}

.rail__cap {
  margin: 0 0 16px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--line-300);
  white-space: nowrap;
  overflow: hidden;
}

.rail__list {
  display: flex;
  flex-direction: column;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding-right: 18px;
  color: rgba(244, 241, 232, .72);
  font-size: 15px;
  font-weight: 500;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail__link:hover {
  color: var(--warm);
  background: rgba(20, 98, 75, .5);
}

.rail__link[aria-current="page"] {
  color: var(--volt);
  background: rgba(216, 255, 62, .09);
}

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--volt);
}

.rail__num {
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
  transition: color .18s var(--ease);
}

.rail__link[aria-current="page"] .rail__num { color: var(--volt); }

.rail__label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 桌面：收起 76px，悬停展开 */
@media (min-width: 1024px) {
  .rail {
    width: var(--rail-w);
    transform: none;
    overflow: hidden;
    transition: width .3s var(--ease);
  }

  .rail:hover,
  .rail:focus-within { width: var(--rail-open); }

  .rail__cap {
    opacity: 0;
    transition: opacity .22s var(--ease);
  }

  .rail:hover .rail__cap,
  .rail:focus-within .rail__cap { opacity: 1; }
}

@media (min-width: 1024px) {
  .rail-scrim { display: none; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .rail { transition: none; }
}

/* ---------- 6. 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn--volt {
  background: var(--volt);
  color: var(--char);
}

.btn--volt:hover { background: var(--warm); color: var(--char); }

.btn--ghost {
  background: transparent;
  color: var(--warm);
  border-color: rgba(244, 241, 232, .28);
}

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

.btn--dark {
  background: var(--mk-900);
  color: var(--warm);
}

.btn--dark:hover { background: var(--mk-500); color: var(--warm); }

.btn--sm {
  padding: 9px 17px;
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(216, 255, 62, .12);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.chip--warn { background: rgba(242, 194, 48, .16); color: var(--yellow); }
.chip--alert { background: rgba(228, 80, 60, .16); color: var(--red); }
.chip--quiet { background: rgba(244, 241, 232, .08); color: var(--mist); }

/* ---------- 7. 容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.wrap--narrow { max-width: 900px; }

.section { padding: clamp(56px, 9vw, 124px) 0; }
.section--tight { padding: clamp(36px, 5vw, 68px) 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--volt);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--volt);
}

.eyebrow span { color: var(--mist); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.lead {
  max-width: 760px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: rgba(244, 241, 232, .86);
}

.prose {
  max-width: 760px;
  color: rgba(244, 241, 232, .84);
}

.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2em 0 .7em; }
.prose h3 { margin: 1.6em 0 .6em; }
.prose ul { margin: 1em 0; padding-left: 0; }

.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--volt-dim);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- 8. 网格与分栏 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: minmax(0, 1fr);
}

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

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split {
  display: grid;
  gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .split--rev { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

/* ---------- 9. 面板与连续画布 ---------- */
.panel {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--r-lg);
  background: var(--mk-700);
  overflow: hidden;
}

.panel--soft { background: var(--mk-500); }
.panel--deep { background: var(--mk-900); }
.panel--warm { background: var(--warm); color: var(--char); }
.panel--warm h2, .panel--warm h3, .panel--warm h4 { color: var(--char); }
.panel--warm .lead, .panel--warm .prose { color: rgba(20, 24, 26, .82); }

.panel--slant {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 3.5%, 100% 100%, 0 96.5%);
}

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(216, 255, 62, .14), transparent 62%),
    linear-gradient(148deg, var(--mk-500) 0%, var(--mk-700) 46%, var(--mk-900) 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 35, 28, 0) 42%, rgba(7, 35, 28, .78) 100%);
  pointer-events: none;
}

.media img,
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media--slant {
  border-radius: 0;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.media--right {
  border-radius: 0 var(--r-lg) 0 var(--r-lg);
}

.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, .42);
  text-align: center;
  padding: 16px;
}

.media__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--char);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

/* ---------- 11. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

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

.crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--line-300);
}

.crumbs a {
  color: var(--mist);
}

.crumbs a:hover { color: var(--volt); }

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

/* ---------- 12. 滚动显现 ---------- */
[data-reveal][data-reveal-state="armed"] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

[data-reveal][data-reveal-state="armed"].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--mk-700);
  color: var(--warm);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -12%;
  width: 62%;
  height: 170%;
  background: radial-gradient(closest-side, rgba(216, 255, 62, .09), transparent 72%);
  transform: rotate(-18deg);
  pointer-events: none;
}

.footer__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--volt) 0%, var(--volt) 38%,
    var(--yellow) 38%, var(--yellow) 66%,
    var(--red) 66%, var(--red) 100%
  );
}

.footer__inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) clamp(18px, 4vw, 56px) 30px;
}

.footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  }
}

.footer__brandcol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer__tag {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 241, 232, .7);
}

.footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(216, 255, 62, .1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--volt);
}

.footer__stamp::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
}

.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--volt);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__links a {
  display: inline-block;
  font-size: 15px;
  color: rgba(244, 241, 232, .78);
}

.footer__links a:hover { color: var(--volt); }

.footer__contactbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: clamp(32px, 5vw, 60px);
  padding: 22px 0;
  border-top: 1px solid rgba(46, 122, 99, .42);
  border-bottom: 1px solid rgba(46, 122, 99, .42);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--mist);
}

.footer__citem { white-space: nowrap; }

@media (max-width: 640px) {
  .footer__citem { white-space: normal; }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer__copy { color: rgba(244, 241, 232, .66); }

.footer__icp {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(244, 241, 232, .06);
  color: rgba(244, 241, 232, .66);
}

.footer__note { flex: 1 1 320px; }

/* ---------- 14. 响应式收口 ---------- */
@media (max-width: 640px) {
  .brand__slogan { display: none; }
  .status__text { display: none; }
  .topline__cta { display: none; }
  .topline { padding: 0 12px; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .topline__cta .btn--ghost { display: none; }
}

@media (max-width: 420px) {
  .status { display: none; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 9px 12px; }
}

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

  [data-reveal][data-reveal-state="armed"] {
    opacity: 1;
    transform: none;
  }
}
