/* ============================================================
   买球平台官网 · 共享样式 /assets/site.css
   夜间球场灯光：墨蓝底 + 橙红行动色 + 荧光青索引色
   ============================================================ */

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

:root {
  --ink-900: #05080f;
  --ink-800: #070c17;
  --ink-700: #0b1322;
  --ink-600: #101c30;
  --line: rgba(174, 190, 214, .18);
  --line-strong: rgba(174, 190, 214, .34);
  --text: #e9eff8;
  --text-soft: #a9b6cb;
  --text-dim: #6f7f99;
  --action: #ff4d1c;
  --action-deep: #c92f08;
  --cyan: #2ff0cf;
  --silver: #b9c3d2;
  --glass: rgba(255, 255, 255, .055);
  --rail-w: 272px;
  --gutter: clamp(1rem, 4vw, 3.25rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { max-width: 100%; display: block; }

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: clamp(15px, .55vw + 13.6px, 17px);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(255, 77, 28, .16), transparent 62%),
    radial-gradient(880px 520px at 4% 104%, rgba(47, 240, 207, .10), transparent 60%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900) 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.6vw, 4.35rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
strong { color: var(--text); font-weight: 700; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- 容器 / 区块 ---------- */
.shell {
  width: min(1160px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section__head { max-width: 62ch; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .9rem;
}
.section__kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--action), var(--cyan));
}

.section__title { margin-bottom: .75rem; }
.section__lede { color: var(--text-soft); max-width: 60ch; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2, .grid--3, .grid--asym { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .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--asym { grid-template-columns: 1.4fr .85fr; align-items: start; }
}

/* 横向主题带 */
.band {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding-block: clamp(.9rem, 2vw, 1.4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.band > * { flex: 0 0 auto; }

/* ---------- 档案卡 ---------- */
.card {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.card:hover { border-color: var(--line-strong); }
.card--glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card--solid { background: var(--ink-700); border-color: var(--line-strong); }
.card--action {
  border-color: rgba(255, 77, 28, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 28, .14), 0 18px 44px -28px rgba(255, 77, 28, .6);
}
.card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .24em;
  color: var(--cyan);
  margin-bottom: .7rem;
}
.card__title { margin-bottom: .5rem; }
.card__meta {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

/* 分类标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .62rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag--action { color: #ffd9cb; border-color: rgba(255, 77, 28, .5); background: rgba(255, 77, 28, .13); }
.tag--cyan { color: #bcfaee; border-color: rgba(47, 240, 207, .42); background: rgba(47, 240, 207, .1); }

/* ---------- 图片容器（页面阶段放置 img） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--ink-600), var(--ink-900));
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0) 42%, rgba(5, 8, 15, .68));
  pointer-events: none;
}
.media-frame--plain::after { display: none; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame__caption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--action), #ff8a3d);
  color: #16060a;
  box-shadow: 0 14px 34px -16px rgba(255, 77, 28, .85);
}
.btn--primary:hover { color: #16060a; transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(47, 240, 207, .45);
  color: #c9fbf0;
  background: rgba(47, 240, 207, .06);
}
.btn--ghost:hover { color: #eafffb; border-color: var(--cyan); }
.btn--quiet {
  padding: .5rem 0;
  color: var(--cyan);
  border-radius: 0;
  border-bottom: 1px solid rgba(47, 240, 207, .35);
}
.btn--quiet:hover { color: #eafffb; border-bottom-color: var(--cyan); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-block: 1rem 0;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: .45rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; color: var(--text-soft); line-height: 1.85; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2, .prose h3 { color: var(--text); margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(47, 240, 207, .35); }
.prose strong { color: var(--text); }

/* ============================================================
   头部 · 侧边轨道导航
   ============================================================ */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 120;
  padding: .7rem 1.2rem;
  background: var(--action);
  color: #16060a;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #16060a; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  padding: .7rem var(--gutter);
  background: rgba(6, 11, 22, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--action) 0%, var(--action) 18%, rgba(47, 240, 207, .8) 18%, var(--cyan) 34%, transparent 60%);
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #16060a;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--action), #ff9a4d);
  box-shadow: 0 10px 26px -12px rgba(255, 77, 28, .95), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1rem; letter-spacing: .01em; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle-icon { display: grid; gap: 3px; width: 16px; }
.nav-toggle-icon > span {
  display: block; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.site-header[data-open="true"] .nav-toggle-icon > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-icon > span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-icon > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.site-header[data-open="true"] .nav-toggle { border-color: rgba(255, 77, 28, .55); color: #ffd9cb; }

.rail-nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  padding: 1.15rem var(--gutter) 1.6rem;
  background: rgba(5, 8, 15, .98);
  border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 100%);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
}
.site-header[data-open="true"] .rail-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rail-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .8rem;
}
.rail-list { counter-reset: nav; display: flex; flex-direction: column; gap: .2rem; }
.rail-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .68rem .8rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.rail-link::before {
  counter-increment: nav;
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}
.rail-link:hover { color: var(--text); background: var(--glass); }
.rail-link[aria-current="page"] {
  color: #fff;
  border-left-color: var(--action);
  background: linear-gradient(90deg, rgba(255, 77, 28, .24), rgba(255, 77, 28, 0));
}
.rail-link[aria-current="page"]::before { color: var(--action); }

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.rail-status {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 240, 207, .14);
}
.rail-cta {
  display: block;
  text-align: center;
  padding: .8rem 1rem;
  font-weight: 700;
  color: #16060a;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--action), #ff8a3d);
  box-shadow: 0 14px 32px -18px rgba(255, 77, 28, .95);
}
.rail-cta:hover { color: #16060a; filter: brightness(1.05); }

@media (max-width: 1023px) {
  body.nav-open { overflow: hidden; }
}

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

  .site-header {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    padding: 1.9rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(9, 15, 28, .97), rgba(5, 8, 15, .99));
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow: hidden;
  }
  .site-header::after {
    left: auto; right: -1px; top: 0; bottom: auto;
    width: 3px; height: 46%;
    background: linear-gradient(180deg, var(--action), var(--cyan));
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  }

  .rail-top { display: block; }
  .nav-toggle { display: none; }

  .rail-nav {
    position: static;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 0 0;
    background: none;
    backdrop-filter: none;
    border-bottom: 0;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .rail-label { margin-bottom: 1rem; }
  .rail-link { padding: .72rem .85rem; font-size: 1rem; }
  .rail-foot { margin-top: auto; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 1.75rem;
  background: linear-gradient(180deg, rgba(11, 19, 34, .55), rgba(5, 8, 15, .98));
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: var(--gutter);
  width: min(48%, 460px);
  height: 3px;
  background: linear-gradient(90deg, var(--action), var(--cyan));
}

.footer-grid { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.25fr; } }

.brand--footer .brand-mark { width: 46px; height: 46px; font-size: 1.2rem; }
.brand--footer .brand-name { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.footer-tag {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-text { margin-top: .7rem; max-width: 40ch; color: var(--text-soft); font-size: .92rem; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-list { display: grid; gap: .7rem; }
.footer-list a { color: var(--text-soft); font-weight: 600; }
.footer-list a:hover { color: var(--cyan); }
.footer-list--contact li {
  display: grid;
  gap: .2rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed rgba(174, 190, 214, .16);
}
.footer-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-value { color: var(--silver); font-size: .92rem; word-break: break-word; }

.footer-note { margin-top: 1rem; font-size: .82rem; color: var(--text-dim); max-width: 42ch; }

.footer-meta {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}

/* ============================================================
   滚动辅助：进度条 / 返回顶部 / 渐显
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 110;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--action));
  transition: width .12s linear;
}
@media (min-width: 1024px) { .scroll-progress { left: var(--rail-w); } }

.back-to-top {
  position: fixed;
  right: clamp(.9rem, 2vw, 1.6rem);
  bottom: clamp(.9rem, 2vw, 1.6rem);
  z-index: 100;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--text);
  background: rgba(11, 19, 34, .92);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s, border-color .2s ease;
}
.back-to-top:hover { border-color: var(--cyan); color: var(--cyan); }
.back-to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}
