/* =========================================================
   亚新体育登录 · 共享样式 /assets/site.css
   暗夜赛场 + 电子记分牌：暗夜蓝底、墨绿分区、玻璃层导航
   ========================================================= */

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

:root {
  --ink: #061225;
  --ink-deep: #040C18;
  --turf-deep: #0B2B27;
  --glass: #101C3A;
  --glass-bg: rgba(16, 28, 58, .62);
  --glass-soft: rgba(16, 28, 58, .38);
  --cyan: #2BE8C6;
  --gold: #FFC24B;
  --rose: #FF4D7D;
  --turf: #14855F;
  --ember: #FF7A2F;
  --paper: #EAF6F4;
  --muted: #8FA6A0;
  --line: rgba(234, 246, 244, .14);
  --line-cyan: rgba(43, 232, 198, .42);
  --wrap: 1180px;
  --radius: 16px;
  --grid-gap: clamp(18px, 2.6vw, 30px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "SimSun", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 18px 46px rgba(2, 8, 20, .55);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
ul, ol { padding-left: 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: .01em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.36rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.05em; max-width: 42em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

strong { color: var(--paper); font-weight: 700; }
em { font-family: var(--font-serif); font-style: normal; }

::selection { background: var(--cyan); color: #04140F; }

: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;
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: min(var(--wrap), 100% - 2.25rem);
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.band { background: linear-gradient(180deg, var(--ink) 0%, var(--turf-deep) 100%); }
.band--deep { background: linear-gradient(180deg, var(--turf-deep) 0%, var(--ink-deep) 100%); }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  backdrop-filter: blur(9px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: .62em 1.15em;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #04140F;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #04140F; }

/* =========================================================
   头部
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 18, 37, .93);
  -webkit-backdrop-filter: blur(11px) saturate(1.25);
  backdrop-filter: blur(11px) saturate(1.25);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header[data-stuck="true"] {
  background: rgba(10, 22, 45, .74);
  box-shadow: 0 12px 34px rgba(2, 8, 20, .55);
}

/* 上层：品牌署名带 */
.sh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  max-height: 150px;
  overflow: hidden;
  transition: max-height .38s ease, padding .38s ease, opacity .26s ease;
}
.site-header[data-stuck="true"] .sh-top {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--cyan), var(--turf), var(--gold), var(--rose), var(--cyan));
  box-shadow: inset 0 0 0 1px rgba(234, 246, 244, .28);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.25;
}
.brand__tagline {
  font-family: var(--font-serif);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--muted);
  line-height: 1.3;
}

/* 电脑版 / 手机版分段切换 */
.device-switch { display: inline-flex; align-items: center; gap: 10px; }
.device-switch__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
}
.seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .34em 1em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.seg__btn:hover { color: var(--paper); }
.seg__btn[aria-pressed="true"] {
  background: var(--cyan);
  color: #04140F;
}

/* 下层：轮次滑轨导航 */
.sh-rail {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(11, 43, 39, .58), rgba(16, 28, 58, .62));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.sh-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sh-rail__side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.rnd-nav { flex: 1 1 auto; min-width: 0; }

.rnd-rail {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.rnd-rail::-webkit-scrollbar { height: 3px; }
.rnd-rail::-webkit-scrollbar-thumb { background: rgba(43, 232, 198, .38); border-radius: 3px; }

.rnd-item { flex: 0 0 auto; scroll-snap-align: center; }

.rnd-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.rnd-link::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 1px;
  height: 7px;
  background: rgba(234, 246, 244, .28);
  transition: background .2s ease, box-shadow .2s ease;
}
.rnd-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.rnd-link__no {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: rgba(143, 166, 160, .78);
  transition: color .2s ease;
}
.rnd-link__label {
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.rnd-link:hover {
  color: var(--paper);
  background: rgba(43, 232, 198, .07);
}
.rnd-link:hover::before { background: rgba(43, 232, 198, .65); }
.rnd-link[aria-current="page"] { color: var(--cyan); }
.rnd-link[aria-current="page"]::before {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(43, 232, 198, .85);
}
.rnd-link[aria-current="page"]::after {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(43, 232, 198, .7);
}
.rnd-link[aria-current="page"] .rnd-link__no { color: var(--gold); }

/* 悬浮提醒入口 */
.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  opacity: .74;
  transition: opacity .3s ease, border-color .3s ease, box-shadow .3s ease, background .25s ease;
}
.alert-chip:hover {
  color: var(--paper);
  background: rgba(255, 77, 125, .12);
  border-color: rgba(255, 77, 125, .48);
}
.alert-chip__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 77, 125, .18);
  animation: alert-pulse 2s ease-in-out infinite;
}
.site-header[data-stuck="true"] .alert-chip {
  opacity: 1;
  border-color: rgba(255, 77, 125, .42);
  box-shadow: 0 8px 24px rgba(255, 77, 125, .16);
}
@keyframes alert-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: .5em .9em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-bg);
  color: var(--paper);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.nav-toggle:hover { border-color: var(--line-cyan); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: rgba(234, 246, 244, .06);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 72%, var(--rose) 100%);
  box-shadow: 0 0 12px rgba(43, 232, 198, .55);
  transition: width .12s linear;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0B2B27 0%, #061225 62%, #040C18 100%);
  color: var(--paper);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image:
    repeating-linear-gradient(96deg, #EAF6F4 0 1px, transparent 1px 11px),
    repeating-linear-gradient(84deg, #2BE8C6 0 1px, transparent 1px 17px),
    repeating-linear-gradient(0deg, #EAF6F4 0 1px, transparent 1px 130px);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.25fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px);
}

.brand--stack { align-items: flex-start; }
.brand--stack .brand__tagline { letter-spacing: .18em; }

.footer-brand__desc {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: .9rem;
  line-height: 1.9;
  color: var(--muted);
}

.footer-col__title {
  font-family: var(--font-serif);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-list a {
  display: inline-block;
  color: var(--paper);
  font-size: .94rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--line-cyan);
  transform: translateX(3px);
}

.footer-meta {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-word;
}
.footer-meta__key {
  display: inline-block;
  min-width: 5.2em;
  color: rgba(143, 166, 160, .68);
  letter-spacing: .06em;
}

.footer-base {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: 18px;
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .78rem;
  color: var(--muted);
}
.footer-base__inner p { margin: 0; max-width: none; }
.footer-base__copy { font-family: var(--font-mono); letter-spacing: .06em; }
.footer-base__addr { letter-spacing: .02em; }

/* =========================================================
   通用组件
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--cyan);
  color: #04140F;
  box-shadow: 0 10px 26px rgba(43, 232, 198, .22);
}
.btn--primary:hover { color: #04140F; }
.btn--gold {
  background: var(--gold);
  color: #2A1C00;
  box-shadow: 0 10px 26px rgba(255, 194, 75, .2);
}
.btn--gold:hover { color: #2A1C00; }
.btn--ghost {
  background: var(--glass-bg);
  color: var(--paper);
  border-color: var(--line-cyan);
}
.btn--ghost:hover {
  background: rgba(43, 232, 198, .12);
  color: var(--paper);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: .5em; }
.crumbs li + li::before { content: "/"; color: rgba(143, 166, 160, .5); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--cyan); }

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: .8rem;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 图片容器基座（页面阶段填入真实图片与中文 alt） */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--turf-deep), var(--ink-deep));
  box-shadow: inset 0 0 0 1px rgba(234, 246, 244, .08);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }
.media--blur img { filter: saturate(1.1) contrast(1.06) blur(1.4px); }
.media__caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.media__viz {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--cyan);
  background: linear-gradient(0deg, rgba(6, 18, 37, .9), rgba(6, 18, 37, 0));
}

.stat { display: grid; gap: 2px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}
.stat__label {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .24em .72em;
  border-radius: 999px;
  border: 1px solid var(--line-cyan);
  background: rgba(43, 232, 198, .08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}
.tag--live {
  border-color: rgba(255, 77, 125, .5);
  background: rgba(255, 77, 125, .1);
  color: var(--rose);
}
.tag--gold {
  border-color: rgba(255, 194, 75, .5);
  background: rgba(255, 194, 75, .1);
  color: var(--gold);
}

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 901px) and (max-width: 1120px) {
  .rnd-link { padding-inline: 12px; }
  .rnd-link__label { font-size: .88rem; }
  .alert-chip { font-size: .76rem; padding: .45em .8em; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }

  .nav-toggle { display: inline-flex; }
  .device-switch__label { display: none; }

  .rnd-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    background: rgba(8, 22, 32, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .rnd-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rnd-rail {
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
  }
  .rnd-item { flex: 1 1 auto; }
  .rnd-link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
  }
  .rnd-link::before { display: none; }
  .rnd-link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }
  .rnd-link__label { white-space: normal; }
  .rnd-link[aria-current="page"] { background: rgba(43, 232, 198, .08); }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), 100% - 1.5rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base__inner { flex-direction: column; align-items: flex-start; }
  .sh-top { gap: 12px; padding-block: 12px; }
  .brand__name { font-size: 1rem; }
  .brand__tagline { font-size: .72rem; letter-spacing: .1em; }
  .alert-chip { padding: .42em .72em; font-size: .74rem; }
  .nav-toggle { padding: .42em .72em; font-size: .76rem; }
  .media--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 420px) {
  .alert-chip { gap: 6px; padding: .38em .62em; }
  .nav-toggle__text { display: 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;
  }
  .btn:hover, .footer-list a:hover { transform: none; }
}
