/* ============================================================
   幻影体育主站 · 共享样式 /assets/site.css
   暗夜赛事空间：侧边轨道导航 + 极简文字建筑 + 霓虹强调
   ============================================================ */

:root {
  --ink: #0A0A12;
  --ink-2: #14141F;
  --ink-3: #1E1C30;
  --violet: #7A4DFF;
  --violet-deep: #4B2CB0;
  --violet-soft: #B49BFF;
  --blue: #3D8BFF;
  --cyan: #35F2D6;
  --amber: #FF9B3D;
  --text: #EDEDF5;
  --muted: #A6A3C0;
  --muted-2: #6C6A8A;
  --line: #2E2C44;

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

  --rail-w: 272px;
  --topbar-h: 64px;
  --content-w: 1280px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  padding-top: var(--topbar-h);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 88px); }
h2 { font-size: clamp(28px, 3.4vw, 56px); }
h3 { font-size: clamp(21px, 2.1vw, 32px); }
h4 { font-size: 22px; }
h5 { font-size: 17px; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .18s var(--ease);
}

a:hover { color: var(--cyan); }

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

#main-content { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 14px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cyan);
  color: #04121A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 2px;
  transition: top .18s var(--ease);
}

.skip-link:focus { top: 12px; color: #04121A; }

/* ---------- 滚动进度光轨 ---------- */
.progress {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background: rgba(46, 44, 68, .55);
}

.progress__bar { display: block; }

/* ---------- 头部轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--topbar-h);
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 18px;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

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

.brand__glyph {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 2px;
  width: 16px;
  height: 20px;
  flex: 0 0 auto;
}

.brand__glyph span {
  display: block;
  border-radius: 1px;
  background: var(--violet);
}

.brand__glyph span:nth-child(1) { height: 58%; background: var(--blue); }
.brand__glyph span:nth-child(2) { height: 100%; background: var(--violet); }
.brand__glyph span:nth-child(3) { height: 74%; background: var(--cyan); }

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
}

.brand__sub { display: none; }

/* 抽屉开关 */
.rail__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 13px;
  background: var(--ink-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.rail__toggle:hover {
  border-color: rgba(53, 242, 214, .55);
  color: var(--cyan);
}

.rail__toggle-box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.rail__toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}

.site-header[data-open] .rail__toggle-box span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .rail__toggle-box span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 导语 */
.rail__tagline { display: none; }

/* 导航（移动端抽屉） */
.rail__nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  padding: 10px 18px 26px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
}

.site-header[data-open] .rail__nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .18s var(--ease);
}

.rail__link:hover { color: var(--text); }

.rail__num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted-2);
  transition: color .18s var(--ease);
}

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

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

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 3px;
  height: 18px;
  margin-top: -9px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 242, 214, .85);
}

/* 轨道 CTA */
.rail__cta {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 22px;
}

.rail__cta .btn { flex: 1 1 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
    color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #F4F1FF;
  border-color: rgba(180, 155, 255, .35);
  box-shadow: 0 12px 30px -16px rgba(122, 77, 255, .95);
}

.btn--primary:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -16px rgba(122, 77, 255, 1);
}

.btn--line {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--line:hover {
  color: var(--cyan);
  border-color: rgba(53, 242, 214, .6);
  background: rgba(53, 242, 214, .06);
}

.btn--block { width: 100%; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-w) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- 文字工具 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

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

/* ---------- 面包屑 ---------- */
.crumbs { padding-top: 22px; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
}

.crumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
}

.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--line);
}

.crumbs__item a { color: var(--muted); }
.crumbs__item a:hover { color: var(--cyan); }
.crumbs__item [aria-current="page"] { color: var(--text); }

/* ---------- 展览标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .06em;
}

.tag--cyan { color: var(--cyan); border-color: rgba(53, 242, 214, .32); }
.tag--amber { color: var(--amber); border-color: rgba(255, 155, 61, .34); }
.tag--violet { color: var(--violet-soft); border-color: rgba(122, 77, 255, .48); }

/* ---------- 纸张叠层卡片 ---------- */
.paper {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 -1px rgba(30, 28, 48, .92), 8px 8px 0 0 var(--line);
}

.paper--raised {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}

/* ---------- 响应式媒体容器（页面阶段放置图片） ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0) 42%, rgba(10, 10, 18, .82) 100%);
}

.media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
}

.media--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg,
    transparent 20%,
    rgba(53, 242, 214, .16) 46%,
    rgba(122, 77, 255, .22) 58%,
    transparent 78%);
  transform: translateX(-100%);
  animation: scanline 2.8s var(--ease) infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- 滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-reveal-ready] [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
  }

  html[data-reveal-ready] [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue) 44%, var(--cyan));
  opacity: .8;
}

.footer__inner { padding-block: clamp(44px, 5vw, 72px) 30px; }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.01em;
}

.footer__mark {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.footer__tagline {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 16px;
  color: var(--muted);
}

.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--muted-2);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list--contact { gap: 12px; }

.footer__link {
  color: var(--muted);
  font-size: 16px;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer__link:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer__contact-key {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--muted-2);
  min-width: 42px;
}

.footer__contact-val {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
}

.copy-btn {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.copy-btn:hover {
  background: rgba(53, 242, 214, .1);
  border-color: rgba(53, 242, 214, .5);
}

.copy-btn[data-copied] {
  color: var(--amber);
  border-color: rgba(255, 155, 61, .55);
  background: rgba(255, 155, 61, .12);
}

.footer__hint {
  margin-top: 16px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-2);
}

.footer__notice {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px 18px;
  max-width: 78ch;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 2px;
  background: var(--ink-3);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.footer__bottom {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__legal .footer__link { font-size: 15px; }

.footer__fine {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted-2);
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .rail__cta { flex-direction: row; }
}

@media (min-width: 720px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- 桌面端：左侧固定轨道 ---------- */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .progress {
    top: 0;
    bottom: 0;
    left: calc(var(--rail-w) - 3px);
    width: 3px;
  }

  .progress__bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--cyan), var(--violet) 60%, var(--violet-deep));
    transform-origin: 50% 0;
    transform: scaleY(var(--p, 0));
    transition: transform .1s linear;
  }

  .site-header {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--rail-w);
    height: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--ink-3), var(--ink-2) 42%, var(--ink-2));
  }

  .rail {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    padding: 30px 26px 26px;
    overflow-y: auto;
  }

  .rail__head { display: block; }

  .brand {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "glyph name"
      "sub   sub";
    align-items: center;
    gap: 8px 10px;
  }

  .brand__glyph { grid-area: glyph; width: 18px; height: 24px; }
  .brand__name { grid-area: name; font-size: 22px; letter-spacing: .02em; }

  .brand__sub {
    grid-area: sub;
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: .14em;
    color: var(--muted-2);
  }

  .rail__toggle { display: none; }

  .rail__tagline {
    display: block;
    margin: 26px 0 22px;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: .02em;
    color: var(--muted);
  }

  .rail__nav {
    position: static;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .rail__link { padding: 12px 0; }

  .rail__link[aria-current="page"]::before { left: -26px; }

  .rail__cta {
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 26px;
  }

  .rail__cta .btn { flex: 0 1 auto; }

  .footer__top { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 44px; }
  .footer__brand { grid-column: auto; }
}

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