/* ============================================================
   易倍体育 · 北境赛事内容站 — 共享层 /assets/site.css
   1 Reset · 2 Variables · 3 Typography · 4 Rail Header
   5 Footer · 6 Buttons/Tags/Utils · 7 Media & Reveal · 8 Responsive
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--aqua-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. Variables ---------- */
:root {
  --ink-900: #050E1C;
  --ink-850: #071426;
  --ink-800: #0C2238;
  --ink-700: #11304A;
  --blue-500: #145C8C;
  --blue-400: #2C7BAF;
  --aqua-400: #35E0C6;
  --orange-500: #FF6A2A;
  --frost: #F4F8FC;
  --haze: #8DA6BA;
  --lime: #B8F25B;
  --violet: #7B6CF6;
  --amber: #FFC857;

  --line: rgba(141, 166, 186, .18);
  --line-strong: rgba(141, 166, 186, .36);
  --surface: rgba(12, 34, 56, .72);
  --surface-soft: rgba(12, 34, 56, .42);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: clamp(232px, 19vw, 288px);
  --shell-max: 1240px;
  --gutter: 22px;
  --radius-frame: 2px 26px 2px 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  body { padding-left: var(--rail-w); }
}

/* ---------- 3. Typography ---------- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--frost);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(20, 92, 140, .38), transparent 62%),
    radial-gradient(820px 460px at 6% 6%, rgba(53, 224, 198, .09), transparent 60%),
    var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.14;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { font-weight: 800; }
code, kbd, samp, .mono { font-family: var(--font-mono); }

/* ---------- 4. Rail Header ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 400;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  background: var(--orange-500);
  color: #0A0F16;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 3px;
  transition: transform .22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header { position: relative; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 130;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
  background: linear-gradient(178deg, #08182B 0%, #050E1C 58%, #06121F 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 7px;
  background-image: repeating-linear-gradient(180deg, rgba(141, 166, 186, .42) 0 1px, transparent 1px 18px);
  opacity: .45;
  pointer-events: none;
}
.rail::after {
  content: "";
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(53, 224, 198, .55) 16%, rgba(53, 224, 198, .14) 68%, transparent);
  pointer-events: none;
}

.rail__top { display: grid; gap: 14px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--frost);
}
.brand__mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  background:
    linear-gradient(135deg, var(--aqua-400) 0 40%, transparent 40%),
    linear-gradient(315deg, var(--blue-500) 0 56%, transparent 56%),
    var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(53, 224, 198, .55);
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 7px; bottom: 7px;
  width: 8px; height: 8px;
  background: var(--orange-500);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .06em;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--haze);
  text-transform: uppercase;
}

.rail__version { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  padding: 2px 8px;
  border-radius: 3px;
}
.chip--mono {
  color: var(--aqua-400);
  background: rgba(53, 224, 198, .12);
  border: 1px solid rgba(53, 224, 198, .42);
}
.rail__version-text {
  font-size: 12px;
  color: var(--haze);
  letter-spacing: .12em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  background: rgba(20, 92, 140, .24);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--frost);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--aqua-400); color: var(--aqua-400); }
.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.site-header[data-open] .nav-toggle__icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; }

.rail__nav { margin-top: 26px; }
.rail__nav-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--haze);
  text-transform: uppercase;
  padding-left: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail__nav-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.nav-list { display: grid; }
.nav-list > li + li { border-top: 1px dashed rgba(141, 166, 186, .14); }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 10px 11px 14px;
  border-left: 2px solid transparent;
  color: rgba(244, 248, 252, .74);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .02em;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--haze);
  transition: color .2s var(--ease);
}
.nav-link__text { flex: 1; }
.nav-link:hover {
  color: var(--frost);
  background: rgba(20, 92, 140, .26);
  border-left-color: rgba(53, 224, 198, .55);
}
.nav-link:hover .nav-link__idx { color: var(--aqua-400); }
.nav-link[aria-current="page"] {
  color: var(--frost);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(53, 224, 198, .18), rgba(53, 224, 198, 0) 88%);
  border-left-color: var(--aqua-400);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--aqua-400); }
.nav-link[aria-current="page"] .nav-link__text::after {
  content: "●";
  font-size: 8px;
  color: var(--aqua-400);
  margin-left: 8px;
  vertical-align: middle;
}

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 16px;
  background: linear-gradient(100deg, rgba(255, 106, 42, .96), rgba(255, 106, 42, .74));
  color: #0A0F16;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  border-radius: 2px 16px 2px 16px;
  box-shadow: 0 12px 26px -18px rgba(255, 106, 42, .95);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rail__cta::after { content: "\2192"; font-family: var(--font-mono); font-size: 15px; }
.rail__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(255, 106, 42, .95); }

.rail__meta { margin-top: auto; padding-top: 26px; }
.rail__readout {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--aqua-400);
  background: rgba(12, 34, 56, .62);
  border-radius: 0 12px 0 0;
}
.rail__readout-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--haze);
  text-transform: uppercase;
}
.rail__readout-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--aqua-400);
  letter-spacing: .04em;
}
.rail__note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(141, 166, 186, .82);
  padding-left: 12px;
}

.read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 200;
  background: rgba(141, 166, 186, .16);
  pointer-events: none;
}
@media (min-width: 1024px) { .read-progress { left: var(--rail-w); } }
.read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--aqua-400), var(--blue-400) 46%, var(--orange-500));
  box-shadow: 0 0 12px rgba(53, 224, 198, .55);
  transition: width .14s linear;
}

/* ---------- 5. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 104px;
  background: linear-gradient(180deg, #071426 0%, #050E1C 56%, #040D19 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua-400), var(--blue-500) 34%, var(--orange-500) 78%, transparent);
  opacity: .85;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(20, 92, 140, .34), transparent 66%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 44px 30px;
  padding: 68px 0 54px;
}
.footer__brand { grid-column: span 5; }
.footer__col { grid-column: span 2; }
.footer__contact { grid-column: span 3; }

.footer__mark {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.2;
  background: linear-gradient(96deg, var(--frost) 30%, var(--aqua-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__eyebrow {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--haze);
  text-transform: uppercase;
}
.footer__summary {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 248, 252, .76);
}
.footer__collect {
  margin-top: 16px;
  max-width: 42ch;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 248, 252, .84);
  background: rgba(53, 224, 198, .07);
  border-left: 2px solid var(--aqua-400);
  border-radius: 0 14px 0 0;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--haze);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.footer__links { display: grid; gap: 10px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(244, 248, 252, .72);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer__links a::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--haze);
  transition: background .18s var(--ease);
}
.footer__links a:hover { color: var(--aqua-400); transform: translateX(3px); }
.footer__links a:hover::before { background: var(--aqua-400); }

.footer__contact-list { display: grid; gap: 16px; }
.footer__contact-list li { display: grid; gap: 4px; }
.footer__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--haze);
}
.footer__value { font-size: 13.5px; line-height: 1.7; color: rgba(244, 248, 252, .78); }
.footer__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(141, 166, 186, .9);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 11px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--frost);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.copy-btn:hover { border-color: var(--aqua-400); color: var(--aqua-400); }
.copy-btn[data-copied] {
  border-color: var(--aqua-400);
  color: var(--aqua-400);
  background: rgba(53, 224, 198, .1);
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--haze);
}
.footer__legal { color: rgba(141, 166, 186, .95); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-links a {
  color: var(--haze);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__legal-links a:hover { color: var(--aqua-400); border-bottom-color: var(--aqua-400); }
.footer__copy { color: rgba(141, 166, 186, .8); }

/* ---------- 6. Buttons / Tags / Utils ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 68px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--haze);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--aqua-400);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary {
  background: var(--orange-500);
  color: #0A0F16;
  box-shadow: 0 14px 30px -16px rgba(255, 106, 42, .95);
}
.btn--primary:hover { background: #FF824B; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--frost);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--aqua-400); color: var(--aqua-400); transform: translateY(-2px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.7;
  white-space: nowrap;
  color: var(--haze);
  background: rgba(141, 166, 186, .07);
}
.tag--aqua { color: var(--aqua-400); background: rgba(53, 224, 198, .1); }
.tag--orange { color: var(--orange-500); background: rgba(255, 106, 42, .1); }
.tag--lime { color: var(--lime); background: rgba(184, 242, 91, .1); }
.tag--violet { color: #A79BFF; background: rgba(123, 108, 246, .14); }
.tag--amber { color: var(--amber); background: rgba(255, 200, 87, .12); }

.breadcrumb { padding-top: 26px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--haze);
}
.breadcrumb__list li + li::before { content: "/"; margin-right: 6px; color: rgba(141, 166, 186, .45); }
.breadcrumb__list a { color: var(--haze); text-decoration: none; transition: color .18s var(--ease); }
.breadcrumb__list a:hover { color: var(--aqua-400); }

.panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* ---------- 7. Media & Reveal ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(152deg, #0C2238 0%, #071B2E 52%, #0E2F47 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-frame);
  isolation: isolate;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 92% at 84% 6%, rgba(53, 224, 198, .24), transparent 58%),
    linear-gradient(214deg, rgba(255, 106, 42, .14), transparent 52%);
}
.media::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 42px;
  z-index: 2;
  pointer-events: none;
  border-top: 2px solid rgba(53, 224, 198, .78);
  border-left: 2px solid rgba(53, 224, 198, .78);
}
.media img,
.media picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 140;
  }
  .rail {
    position: relative;
    inset: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 18, 32, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .rail::before, .rail::after { display: none; }

  .rail__top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand__name { font-size: 17px; }
  .brand__line { font-size: 9px; letter-spacing: .14em; }
  .rail__version { margin: 0; }
  .rail__version-text { display: none; }

  .nav-toggle { display: inline-flex; }
  .rail__cta { display: none; }
  .rail__meta { display: none; }

  .rail__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0;
    padding: 14px 16px 22px;
    background: #061220;
    border-bottom: 1px solid rgba(53, 224, 198, .3);
    box-shadow: 0 26px 48px -30px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
  }
  .site-header[data-open] .rail__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .rail__nav-title { padding-left: 12px; }
  .nav-link { font-size: 16px; padding: 13px 12px; }

  .footer__grid { grid-template-columns: repeat(6, 1fr); gap: 36px 24px; padding: 56px 0 44px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 3; }
  .footer__contact { grid-column: 1 / -1; }
  .site-footer { margin-top: 72px; }

  .section { padding: 52px 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .footer__col { grid-column: 1 / -1; }
  .footer__mark { font-size: 25px; }
  .footer__bottom { font-size: 11px; }
  .grid { gap: 16px; }
  .panel { padding: 20px; }
  .eyebrow { letter-spacing: .18em; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .read-progress__bar { transition: none; }
}
