/* ==========================================================
   溜溜体育官网 · 共享样式 /assets/site.css
   轨道导航 · 海报分层 · 数字体育场
   ========================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0B0E14;
  --ink-soft: #161B26;
  --paper: #F7FAFF;
  --orange: #FF5A1F;
  --blue: #1E6BFF;
  --graphite: #222833;
  --neon: #B7FF2A;
  --cyan: #5EE7FF;
  --alert: #FF3B5C;
  --gold: #FFC857;

  --rail-w: 92px;
  --topbar-h: 64px;
  --maxw: 1240px;

  --font-display: "Barlow Condensed", "Space Grotesk", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 26px;

  --line: rgba(34, 40, 51, 0.12);
  --line-light: rgba(247, 250, 255, 0.14);

  --ease: cubic-bezier(0.22, 0.85, 0.28, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  padding-inline-start: var(--rail-w);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.42rem); line-height: 1.22; }
h4 { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.3; }

p { margin-block: 0 0.9em; }
p:last-child { margin-block-end: 0; }

strong, b { font-weight: 700; }

::selection {
  background: var(--neon);
  color: var(--ink);
}

/* ---------- 4. 可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--neon);
}

.visually-hidden {
  position: absolute;
  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;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--neon);
  border-radius: 0 0 var(--radius-s) 0;
  transform: translateY(-130%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 头部：左侧轨道 ---------- */
.site-header {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 100;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1rem 0.9rem;
  --read: 0;
  color: var(--paper);
  background:
    radial-gradient(130% 42% at 50% 0%, rgba(30, 107, 255, 0.30), transparent 72%),
    radial-gradient(110% 34% at 50% 100%, rgba(255, 90, 31, 0.24), transparent 74%),
    var(--ink);
  border-inline-end: 1px solid var(--line-light);
}

.site-header::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -1px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue) 22%, var(--cyan) 50%, var(--orange) 80%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 3px;
  background: rgba(247, 250, 255, 0.07);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: calc(var(--read, 0) * 100%);
  background: linear-gradient(180deg, var(--cyan), var(--neon) 46%, var(--orange));
  transition: height 0.1s linear;
}

/* 品牌锁定 */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.brand-lockup__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  border-radius: 13px 13px 16px 5px;
  box-shadow: 0 0 0 1px rgba(11, 14, 20, 0.3);
}

.brand-lockup__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* 移动端触发按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  border: 1px solid rgba(247, 250, 255, 0.22);
  border-radius: 12px;
  background: rgba(247, 250, 255, 0.04);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(247, 250, 255, 0.1); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

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

/* 轨道导航 */
.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-inline: 0.4rem;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar { width: 0; height: 0; }

.rail-nav__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.18rem;
  width: 100%;
}

.rail-nav__item { width: 100%; }

.rail-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.2rem;
  border-radius: 13px;
  color: rgba(247, 250, 255, 0.6);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.rail-nav__link:hover {
  color: var(--paper);
  background: rgba(247, 250, 255, 0.08);
}

.rail-nav__num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.85;
  line-height: 1;
}

.rail-nav__label {
  writing-mode: vertical-rl;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.1;
}

.rail-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--neon);
  box-shadow: 0 8px 22px -10px rgba(183, 255, 42, 0.75);
}

.rail-nav__link[aria-current="page"] .rail-nav__num {
  color: var(--ink);
  opacity: 0.55;
}

.rail-nav__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-block-start: auto;
  padding-block-start: 0.85rem;
  width: 100%;
}

.rail-nav__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: rgba(247, 250, 255, 0.55);
  white-space: nowrap;
}

.status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  flex: 0 0 auto;
}

.status-chip__dot--blue {
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(255, 90, 31, 0.9);
}

.btn--primary:hover { box-shadow: 0 14px 28px -12px rgba(255, 90, 31, 0.95); }

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(30, 107, 255, 0.9);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 250, 255, 0.32);
}

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

.btn--sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.82rem;
}

.btn--rail {
  width: 66px;
  padding: 0.5rem 0.3rem;
  font-size: 0.72rem;
  line-height: 1.3;
  border-radius: 14px;
  text-align: center;
}

/* ---------- 7. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(90deg, var(--blue), var(--cyan) 34%, transparent 92%);
  opacity: 0.4;
}

/* ---------- 8. 卡片与信息组件 ---------- */
.surface {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  box-shadow: 0 1px 0 rgba(11, 14, 20, 0.03), 0 22px 44px -38px rgba(11, 14, 20, 0.75);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(30, 107, 255, 0.1);
}

.data-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- 9. 图片容器基础（页面阶段放图用） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-m) var(--radius-m) var(--radius-l) var(--radius-s);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(30, 107, 255, 0.35), transparent 62%),
    linear-gradient(150deg, #171E2C, var(--ink));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(247, 250, 255, 0.05) 0 1px, transparent 1px 26px);
  mix-blend-mode: screen;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  font-size: 0.8rem;
  color: rgba(34, 40, 51, 0.62);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin-inline-end: 0.45rem;
  color: rgba(34, 40, 51, 0.34);
}

.breadcrumbs__link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(30, 107, 255, 0.35);
}

.breadcrumbs__link:hover { text-decoration-color: currentColor; }

/* ---------- 11. 显现 ---------- */
[data-reveal] {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

[data-reveal-pending] {
  opacity: 0;
  transform: translateY(10px);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 80% at 6% 0%, rgba(30, 107, 255, 0.24), transparent 62%),
    radial-gradient(95% 62% at 96% 2%, rgba(255, 90, 31, 0.20), transparent 58%),
    var(--ink);
  color: rgba(247, 250, 255, 0.76);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 30%, var(--neon) 62%, var(--orange));
}

.site-footer__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.6rem, 5vw, 4rem) clamp(1.15rem, 4vw, 2.5rem) 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.85fr 1.25fr;
  gap: clamp(1.6rem, 3.2vw, 2.75rem);
}

.footer-brand { min-width: 0; }

.brand-lockup--footer {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.brand-lockup--footer .brand-lockup__name {
  writing-mode: horizontal-tb;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-lockup--footer .brand-lockup__mark {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  border-radius: 12px 12px 14px 5px;
}

.footer-tagline {
  margin-block-start: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(247, 250, 255, 0.8);
  max-width: 30ch;
}

.footer-service {
  margin-block-start: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(247, 250, 255, 0.48);
  max-width: 34ch;
}

.footer-col { min-width: 0; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--cyan);
  margin-block-end: 0.9rem;
}

.footer-links { display: grid; gap: 0.45rem; }

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(247, 250, 255, 0.78);
  transition: color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-contact { display: grid; gap: 0.6rem; }

.footer-contact__item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(247, 250, 255, 0.42);
  padding-block-start: 0.18rem;
}

.footer-contact__val {
  color: rgba(247, 250, 255, 0.86);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-block-start: 1rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid var(--orange);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(247, 250, 255, 0.5);
}

.footer-legal {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding-block-start: 1.1rem;
  border-block-start: 1px solid var(--line-light);
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(247, 250, 255, 0.55);
}

.footer-legal__copy { margin: 0; }

.footer-legal__icp {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(247, 250, 255, 0.62);
}

/* ---------- 13. 平板 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* ---------- 14. 移动端：顶部条 + 抽屉 ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: calc(var(--topbar-h) + 14px); }

  body { padding-inline-start: 0; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 clamp(0.9rem, 4vw, 1.4rem);
    border-inline-end: 0;
    border-block-end: 1px solid var(--line-light);
  }

  .site-header::after { display: none; }

  .brand-lockup {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }

  .brand-lockup__mark {
    width: 34px;
    height: 34px;
    font-size: 1.02rem;
    border-radius: 10px 10px 12px 4px;
  }

  .brand-lockup__name {
    writing-mode: horizontal-tb;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .nav-toggle { display: inline-flex; flex: 0 0 auto; }

  .scroll-progress {
    inset-block: auto;
    inset-inline: 0;
    bottom: 0;
    width: auto;
    height: 3px;
  }

  .scroll-progress__bar {
    width: calc(var(--read, 0) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--neon) 55%, var(--orange));
    transition: width 0.1s linear;
  }

  .rail-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex: 0 0 auto;
    max-height: calc(100dvh - var(--topbar-h));
    overflow-y: auto;
    padding: 0.9rem clamp(0.9rem, 4vw, 1.4rem) 1.2rem;
    background: linear-gradient(180deg, #10161F, var(--ink) 72%);
    border-block-start: 1px solid var(--line-light);
    box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }

  .site-header[data-open] .rail-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rail-nav__list { gap: 0.16rem; }

  .rail-nav__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.78rem 0.95rem;
    border-radius: 12px;
  }

  .rail-nav__label {
    writing-mode: horizontal-tb;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .rail-nav__num { font-size: 0.7rem; }

  .rail-nav__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    margin-block-start: 0.6rem;
    padding-block-start: 0.95rem;
    border-block-start: 1px solid var(--line-light);
  }

  .rail-nav__status { flex-direction: row; gap: 0.85rem; }

  .btn--rail {
    width: auto;
    padding: 0.72rem 1.35rem;
    font-size: 0.9rem;
    border-radius: 999px;
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__item { grid-template-columns: 3.1rem 1fr; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  [data-reveal-pending] {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
}
