/* ==========================================================================
   V体育赛场 · 共享外壳样式 /assets/site.css
   ========================================================================== */

:root {
  --ink: #081629;
  --ink-2: #122744;
  --ink-3: #1a3355;
  --ink-deep: #061120;
  --paper: #F4EBDD;
  --paper-2: #E7DAC5;
  --brown: #211A16;
  --lime: #B8FF3D;
  --lime-deep: #3F6410;
  --hot: #FF4D2E;
  --hot-deep: #B92F15;
  --mist: #A9B8C8;
  --line: #D8CDBD;
  --line-dark: rgba(169, 184, 200, 0.16);
  --text-light: #F7FBFF;

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 88px;
  --header-h: 64px;
  --maxw: 1280px;
  --radius: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink);
  background-image: repeating-linear-gradient(115deg, rgba(169, 184, 200, 0.028) 0 1px, transparent 1px 72px);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { 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(--lime); text-underline-offset: 3px; }
table { border-collapse: collapse; }

#main-content:focus { outline: none; }
#main-content { scroll-margin-top: 80px; }

/* ---------- 焦点与可见性 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 3px;
}

.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 {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   头部 · 侧边轨道
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 0 20px;
  background: linear-gradient(180deg, #0B1D35 0%, #081629 48%, #050D18 100%);
  border-right: 1px solid var(--line-dark);
  box-shadow: 10px 0 36px rgba(0, 0, 0, 0.42);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 11px, rgba(184, 255, 61, 0.06) 11px 12px);
}

/* 顶部阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(169, 184, 200, 0.14);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), #8FE01A);
  box-shadow: 0 0 14px rgba(184, 255, 61, 0.6);
  transition: transform 0.08s linear;
}

/* 品牌 */
.brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-6deg);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.brand:hover .brand__mark { transform: skewX(-6deg) translateY(-2px); background: #CDFF6B; }
.brand__text { display: none; }
.brand__name { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; }
.brand__tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--mist); text-transform: uppercase; }

/* 移动端按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle__label { line-height: 1; }

/* 导航 */
.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
}
.site-nav__item { width: 100%; }
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.site-nav__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.site-nav__label {
  position: absolute;
  left: calc(100% - 8px);
  top: 50%;
  z-index: 5;
  padding: 6px 12px;
  white-space: nowrap;
  background: var(--ink-2);
  border-left: 2px solid var(--lime);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.site-nav__link:hover { color: var(--text-light); background: rgba(169, 184, 200, 0.07); }
.site-nav__link:hover .site-nav__label,
.site-nav__link:focus-visible .site-nav__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.site-nav__link[aria-current="page"] {
  color: var(--lime);
  background: rgba(184, 255, 61, 0.1);
}
.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 3px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(184, 255, 61, 0.7);
}

.site-nav__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line-dark);
}
.site-nav__note {
  display: none;
  font-size: 11px;
  line-height: 1.6;
  color: var(--mist);
}
.rail-cta {
  width: 100%;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 11px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ==========================================================================
   通用组件
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.paper {
  background: var(--paper);
  color: var(--brown);
}
.paper a { color: var(--hot-deep); }
.paper .eyebrow { color: var(--lime-deep); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(169, 184, 200, 0.45), rgba(169, 184, 200, 0));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--hot { background: var(--hot); color: #FFFFFF; }
.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(169, 184, 200, 0.38);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { padding: 9px 15px; font-size: 12px; letter-spacing: 0.08em; }

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(169, 184, 200, 0.45);
}
.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs [aria-current="page"] { color: var(--text-light); }

/* 图片容器基础规则 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: linear-gradient(140deg, #122744 0%, #0A1A30 55%, #061120 100%);
}
.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--tilt {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(169, 184, 200, 0.55);
  background-image: repeating-linear-gradient(135deg, rgba(169, 184, 200, 0.055) 0 1px, transparent 1px 14px);
}
.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-light);
  background: linear-gradient(transparent, rgba(4, 10, 20, 0.9));
}

/* 滚动显现 */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin: 0;
  padding: 66px 0 30px;
  background: var(--ink-deep);
  border-top: 1px solid var(--line-dark);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--lime) 0 30%,
    transparent 30% 34%,
    var(--hot) 34% 58%,
    transparent 58% 62%,
    var(--lime) 62% 100%);
  opacity: 0.85;
}

.site-footer__grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 0.95fr 1.3fr;
  gap: 44px 32px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-light);
}
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  transform: skewX(-6deg);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.footer-brand__desc {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(169, 184, 200, 0.85);
}
.footer-brand__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(169, 184, 200, 0.62);
}
.footer-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 8px rgba(255, 77, 46, 0.8);
  flex: none;
}

.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-col__list { display: flex; flex-direction: column; gap: 2px; }
.footer-col__list--plain { gap: 16px; }

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 15px;
  line-height: 2;
  text-decoration: none;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-link:hover { color: var(--lime); transform: translateX(3px); }

.footer-contact { display: flex; flex-direction: column; gap: 3px; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(169, 184, 200, 0.55);
}
.footer-contact__value {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.copy-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(169, 184, 200, 0.32);
  border-radius: 3px;
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.copy-btn:hover { color: var(--lime); border-color: var(--lime); }
.copy-btn.is-copied { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.site-footer__base {
  width: 100%;
  max-width: var(--maxw);
  margin: 52px auto 0;
  padding: 20px clamp(20px, 4vw, 48px) 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(169, 184, 200, 0.72);
}
.site-footer__legal { color: rgba(169, 184, 200, 0.72); }
.site-footer__copy { color: rgba(169, 184, 200, 0.72); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--header-h);
  }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--header-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }
  .site-header::after { display: none; }

  .brand { flex-direction: row; gap: 10px; }
  .brand__mark { width: 34px; height: 34px; font-size: 17px; }
  .brand__text { display: flex; flex-direction: column; line-height: 1.2; }
  .brand__name { font-size: 15px; }
  .brand__tag { font-size: 9px; letter-spacing: 0.16em; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(320px, 84vw);
    padding: 20px 16px 24px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1D35, #061120);
    border-right: 1px solid var(--line-dark);
    box-shadow: 26px 0 64px rgba(0, 0, 0, 0.55);
    transform: translateX(-102%);
    transition: transform 0.22s var(--ease);
    z-index: 79;
  }
  .site-header[data-open] .site-nav { transform: translateX(0); }
  .site-header[data-open]::before {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(4, 10, 20, 0.62);
    pointer-events: none;
    z-index: 78;
  }
  .site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .site-header[data-open] .nav-toggle__bars span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  .site-nav__list { padding: 0; gap: 0; }
  .site-nav__link {
    justify-content: flex-start;
    gap: 14px;
    height: 54px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(169, 184, 200, 0.12);
  }
  .site-nav__index { font-size: 11px; color: var(--hot); }
  .site-nav__label {
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    font-size: 15px;
    color: var(--text-light);
  }
  .site-nav__link:hover { background: rgba(169, 184, 200, 0.06); }
  .site-nav__link:hover .site-nav__label { transform: none; }
  .site-nav__link[aria-current="page"]::before { top: 0; bottom: 0; }
  .site-nav__link[aria-current="page"] .site-nav__label { color: var(--lime); }

  .site-nav__foot { padding: 22px 0 0; align-items: stretch; }
  .site-nav__note { display: block; }
  .rail-cta { width: 100%; font-size: 14px; padding: 12px 16px; letter-spacing: 0.06em; }

  html.is-nav-open { overflow: hidden; }

  :root { --header-h: 64px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-footer { padding-top: 56px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__base { margin-top: 40px; flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效降级 ---------- */
@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;
  }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress__bar { transition: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header,
  .skip-link,
  .site-footer::before { display: none !important; }
  body {
    padding: 0;
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }
  .site-footer { background: #FFFFFF; color: #000000; border-top: 1px solid #999; }
  .footer-link,
  .footer-contact__value,
  .site-footer__base { color: #000000; }
  .copy-btn { display: none; }
}
