/* ============================================================
   溜溜体育官网 · /assets/site.css
   共享骨架：reset / 变量 / 中文排版 / 头部轨道 / 页脚 /
   按钮 / 面包屑 / 正文容器 / 栅格 / 图片容器 / 动效基础
   ============================================================ */

:root {
  --ink: #0A1120;
  --panel: #12203A;
  --line: #26374F;
  --ice: #DCE6F2;
  --mist: #93A6C0;
  --white: #E9F0FA;
  --volt: #C6FF3D;
  --volt-deep: #8FCC1F;
  --flame: #FF5A2B;
  --paper: #EFE9DC;
  --pitch: #12352B;

  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "IBM Plex Mono",
    Menlo, Consolas, "Courier New", monospace;

  --rail-w: 272px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --ease-out: cubic-bezier(.22, .8, .32, 1);

  --shadow-panel: 0 18px 44px -26px rgba(0, 0, 0, .9);
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  padding-left: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(38, 55, 79, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 55, 79, .20) 1px, transparent 1px);
  background-size: 104px 104px;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

button {
  background: none;
  border: 0;
  padding: 0;
}

dl, dd {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

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

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 900;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .22s var(--ease-out);
}

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

/* ---------- 阅读进度 ---------- */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 800;
  background: rgba(38, 55, 79, .55);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--volt-deep), var(--volt) 62%, var(--flame));
  box-shadow: 0 0 14px rgba(198, 255, 61, .5);
}

/* ---------- 头部 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 22px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(90% 62% at 0% 100%, rgba(198, 255, 61, .10), transparent 62%),
    radial-gradient(70% 46% at 100% 0%, rgba(18, 53, 43, .85), transparent 70%),
    linear-gradient(180deg, #0D1728 0%, #0A1120 74%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--volt);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 0 0 1px rgba(198, 255, 61, .35), 0 10px 22px -12px rgba(198, 255, 61, .85);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--mist);
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(198, 255, 61, .08);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.nav-toggle:hover {
  border-color: var(--volt);
}

.nav-toggle__glyph {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

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

.nav-toggle__glyph span:nth-child(2) {
  width: 66%;
}

.site-header[data-open] .nav-toggle__glyph span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__glyph span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__glyph span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 28px;
  gap: 10px;
}

.site-nav__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  padding-left: 12px;
  line-height: 1.6;
}

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

.site-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: .01em;
  transition: color .2s, background .2s, border-color .2s;
}

.site-nav__list a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  transition: opacity .2s, background .2s;
}

.site-nav__list a:hover {
  color: var(--white);
  background: rgba(198, 255, 61, .07);
  border-color: rgba(198, 255, 61, .22);
}

.site-nav__list a[aria-current="page"] {
  color: var(--ink);
  background: var(--volt);
  border-color: var(--volt);
  font-weight: 700;
  box-shadow: 0 10px 24px -16px rgba(198, 255, 61, .95);
}

.site-nav__list a[aria-current="page"]::before {
  background: var(--ink);
  opacity: 1;
}

.site-nav__foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-nav__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--mist);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav__hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mist);
  padding-left: 12px;
}

.site-nav__hours::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, .18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--volt);
  color: var(--ink);
  box-shadow: 0 12px 26px -18px rgba(198, 255, 61, .95);
}

.btn--primary:hover {
  background: var(--volt-deep);
}

.btn--ghost {
  background: rgba(233, 240, 250, .03);
  border-color: var(--line);
  color: var(--white);
}

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

.btn--flame {
  background: var(--flame);
  color: #FFF4F0;
}

.btn--flame:hover {
  background: #E64A1C;
}

/* ---------- 返回顶部 ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 650;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 32, 58, .92);
  color: var(--volt);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity .24s ease, transform .24s var(--ease-out), background .2s, border-color .2s;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(198, 255, 61, .16);
  border-color: var(--volt);
}

/* ---------- 正文容器与栅格 ---------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

/* ---------- 面包屑 ---------- */

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

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs a {
  color: var(--mist);
  transition: color .2s;
}

.breadcrumbs a:hover {
  color: var(--volt);
}

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

/* ---------- 图片容器（页面阶段放占位） ---------- */

.img-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(198, 255, 61, .13), transparent 58%),
    linear-gradient(158deg, var(--panel) 0%, var(--ink) 58%, var(--pitch) 100%);
  box-shadow: var(--shadow-panel);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 32, .72));
  pointer-events: none;
}

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

.img-frame--tall {
  aspect-ratio: 4 / 5;
}

.img-frame--band {
  aspect-ratio: 21 / 9;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

/* ---------- 显现动效基础 ---------- */

.pre-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s var(--ease-out);
}

.pre-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.is-current {
  color: var(--volt);
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 82% 0%, rgba(18, 53, 43, .9), transparent 62%),
    linear-gradient(180deg, #0B1626 0%, #080E1A 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--volt) 0%, var(--volt-deep) 42%, var(--flame) 78%, var(--line) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 340px;
  height: 240px;
  background: linear-gradient(135deg, rgba(198, 255, 61, .12), transparent 68%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 2.4fr 1.1fr;
  gap: clamp(26px, 4vw, 56px);
  padding-block: 64px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.4;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--volt);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.footer-summary {
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
  max-width: 34ch;
}

.footer-cta {
  margin-top: 4px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--white);
  line-height: 1.6;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--volt);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mist);
  line-height: 1.6;
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--white);
  line-height: 1.7;
  word-break: break-word;
}

.footer-link-strong {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--volt);
  font-size: 13px;
  font-weight: 700;
  color: var(--volt);
  transition: color .2s, border-color .2s;
}

.footer-link-strong:hover {
  color: var(--volt-deep);
  border-color: var(--volt-deep);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer-copy {
  line-height: 1.7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.7;
}

.footer-legal a {
  color: var(--mist);
  transition: color .2s;
}

.footer-legal a:hover {
  color: var(--volt);
}

/* ---------- 平板 ---------- */

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

  .footer-groups {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

/* ---------- 移动端：头部切为顶部条 + 右侧抽屉 ---------- */

@media (max-width: 899px) {
  body {
    padding-left: 0;
  }

  body.nav-locked {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 17, 32, .94);
    backdrop-filter: blur(10px);
    overflow: visible;
    z-index: 700;
  }

  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #050A14;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  .site-header[data-open]::after {
    opacity: .68;
    pointer-events: auto;
  }

  .header-topbar {
    width: 100%;
  }

  .brand__line {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 2;
    width: min(84vw, 340px);
    max-height: 100dvh;
    margin-top: 0;
    padding: 78px 20px 26px;
    gap: 12px;
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, #0D1728 0%, #0A1120 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .32s var(--ease-out), visibility 0s linear .32s;
  }

  .site-header[data-open] .site-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform .32s var(--ease-out), visibility 0s linear 0s;
  }

  .site-nav__list a {
    padding: 11px 14px;
    font-size: 15px;
  }

  .site-nav__foot {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .site-nav__actions {
    flex-direction: column;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- 小屏 ---------- */

@media (max-width: 719px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 48px 36px;
  }

  .footer-groups {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

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

/* ---------- 桌面：为主内容让出轨道宽度 ---------- */

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

  .site-nav {
    overflow-y: auto;
  }
}

/* ---------- 减弱动效 ---------- */

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

  .pre-reveal {
    opacity: 1;
    transform: none;
  }

  .read-progress__bar {
    box-shadow: none;
  }
}
