/* =========================================================
   LEYU体育（中国站）· 共享站点层  /assets/site.css
   结构：赛前状态条 + 左侧品牌轨道 + 浮岛胶囊导航 / 切角页脚
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 矿物色 */
  --ink: #0B241E;
  --pitch: #071814;
  --moss: #1E463B;
  --lime: #C9FF4F;
  --amber: #FFB35C;
  --clay: #C76D4A;
  --rock: #8B968D;
  --rice: #F3EFE4;
  --mint: #DCE8D8;
  --red: #FF6B5E;

  /* 尺寸 */
  --rail-w: 88px;
  --strip-h: 36px;
  --maxw: 1280px;
  --gap: 24px;
  --cut: 22px;

  /* 字体 */
  --ff-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --ff-data: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --ff-body: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* 层级 */
  --z-rail: 80;
  --z-nav: 85;
  --z-strip: 90;
  --z-sheet: 95;
  --z-top: 70;
  --z-skip: 200;
}

/* ---------- 3. 中文排版与基础 ---------- */
body {
  background: var(--ink);
  color: var(--rice);
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.78;
  letter-spacing: .012em;
  padding-top: calc(var(--strip-h) + 64px);
  min-height: 100vh;
  overflow-x: hidden;
}
body p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; letter-spacing: .01em; }
h1 { font-family: var(--ff-display); font-size: clamp(44px, 7vw, 88px); }
h2 { font-family: var(--ff-display); font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
strong { color: var(--rice); font-weight: 700; }
::selection { background: var(--lime); color: #08201A; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
:where(a, button)[disabled] { opacity: .45; cursor: not-allowed; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

#main-content:focus { outline: none; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  z-index: var(--z-skip);
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: #08201A;
  font-family: var(--ff-data);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: transform .22s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 5. 赛前状态条 ---------- */
.status-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-strip);
  height: var(--strip-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--pitch);
  border-bottom: 1px solid rgba(201, 255, 79, .18);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--rock);
  overflow: hidden;
}
.status-strip__dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 255, 79, .12);
  animation: stripPulse 2.6s ease-in-out infinite;
}
@keyframes stripPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 255, 79, .12); }
  50% { box-shadow: 0 0 0 7px rgba(201, 255, 79, .04); }
}
.status-strip__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mint);
  opacity: .82;
}
.status-strip__meta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(243, 239, 228, .14);
}
.status-strip__k { color: var(--rock); letter-spacing: .22em; }
.status-strip__v { color: var(--lime); font-weight: 700; letter-spacing: .18em; }
.status-strip__progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 6. 左侧品牌轨道 ---------- */
.brand-rail { display: none; }

/* ---------- 7. 导航壳与浮岛胶囊 ---------- */
.nav-shell {
  position: fixed;
  top: var(--strip-h);
  left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px;
  pointer-events: none;
}
.nav-shell > * { pointer-events: auto; }

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: rgba(30, 70, 59, .8);
  border: 1px solid rgba(201, 255, 79, .18);
  box-shadow: 0 18px 40px -30px #000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: padding .26s ease, background .26s ease, box-shadow .26s ease;
}
.site-header[data-scrolled="true"] .nav-capsule {
  padding: 4px 8px 4px 16px;
  background: rgba(7, 24, 20, .94);
  box-shadow: 0 14px 34px -22px #000;
}

.nav-capsule__brand {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--ff-data);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--rice);
  white-space: nowrap;
}
.nav-capsule__brand em {
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .26em;
  color: var(--lime);
}

.nav-capsule__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-capsule__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--ff-data);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--mint);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-capsule__list a:hover { color: var(--lime); background: rgba(201, 255, 79, .1); }
.nav-capsule__list a[aria-current="page"] {
  color: #08201A;
  background: var(--lime);
}
.nav-capsule__list a[aria-current="page"]:hover { background: #D9FF7A; }
.nav-capsule__list a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.nav-capsule__cta { flex: none; margin-left: 6px; }

/* 移动端菜单开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30, 70, 59, .92);
  border: 1px solid rgba(201, 255, 79, .22);
  color: var(--rice);
  font-family: var(--ff-data);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--lime); }
.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px; height: 11px;
}
.nav-toggle__bar {
  display: block;
  height: 2px; width: 100%;
  border-radius: 2px;
  background: var(--lime);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}
.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 8. 返回顶部（沿品牌轨道滑动） ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: var(--z-top);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  border: 1px solid rgba(201, 255, 79, .3);
  color: var(--lime);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease, background .2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--lime); color: #08201A; border-color: var(--lime); }
.to-top__arrow { font-family: var(--ff-data); font-size: 18px; font-weight: 700; line-height: 1; }

/* ---------- 9. 通用容器与共享组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}
.section { padding-block: clamp(48px, 7vw, 96px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rock);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--lime);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(201, 255, 79, .3);
  background: rgba(201, 255, 79, .08);
  color: var(--lime);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.5;
}

.panel {
  background: var(--moss);
  border: 1px solid rgba(243, 239, 228, .1);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  padding: clamp(18px, 2.6vw, 30px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--rock);
}
.breadcrumb a { color: var(--mint); border-bottom: 1px solid rgba(201, 255, 79, .32); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span[aria-current] { color: var(--amber); }

/* 图片容器基础规则（页面阶段放置占位图） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--moss);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.05);
}
.media-frame__tag {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 4px 10px;
  background: rgba(7, 24, 20, .86);
  border-left: 2px solid var(--clay);
  color: var(--mint);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ff-data);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--signal { background: var(--lime); color: #08201A; }
.btn--signal:hover { background: #DAFF7C; transform: translateY(-1px); }
.btn--amber { background: var(--amber); color: #2A1608; }
.btn--amber:hover { background: #FFC684; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--rice); border-color: rgba(243, 239, 228, .32); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--pitch);
  color: var(--rice);
  border-top: 1px solid rgba(201, 255, 79, .16);
  padding-bottom: 26px;
}
.footer-rule {
  height: 8px;
  background-image: repeating-linear-gradient(135deg, rgba(201, 255, 79, .45) 0 2px, transparent 2px 14px);
  opacity: .5;
}
.footer-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 32px) 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand__name {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--rice);
}
.footer-brand__name:hover { color: var(--lime); }
.footer-brand__desc {
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mint);
  opacity: .78;
}
.footer-brand__cta { margin-top: 4px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.footer-col__title,
.footer-contact__title {
  margin-bottom: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rock);
}
.footer-col__title::after,
.footer-contact__title::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  margin-top: 8px;
  background: var(--clay);
}
.footer-col__list { display: flex; flex-direction: column; gap: 10px; }
.footer-col__list a {
  display: inline-block;
  font-size: 15px;
  color: var(--mint);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.footer-col__list a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.footer-contact__list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(139, 150, 141, .26);
}
.footer-contact__k {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--rock);
}
.footer-contact__v {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--rice);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--rock);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(243, 239, 228, .1);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--rock);
}
.footer-bottom__copy { color: var(--mint); }
.footer-bottom__icp { color: var(--rock); }
.footer-bottom__meta { margin-left: auto; color: rgba(139, 150, 141, .8); }

/* ---------- 12. 进入视口显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 13. 平板 ---------- */
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-contact { grid-column: 2; }
  .footer-cols { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, 1fr); }
  .footer-bottom__meta { margin-left: auto; }
}

/* ---------- 14. 桌面：品牌轨道 + 横向浮岛 ---------- */
@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    padding-top: calc(var(--strip-h) + 88px);
  }
  .brand-rail {
    position: fixed;
    top: var(--strip-h);
    left: 0;
    bottom: 0;
    z-index: var(--z-rail);
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 0 24px;
    background: var(--ink);
    border-right: 1px solid rgba(243, 239, 228, .08);
  }
  .brand-rail__mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--ff-data);
    letter-spacing: .18em;
  }
  .brand-rail__glyph { font-size: 15px; font-weight: 700; color: var(--lime); }
  .brand-rail__sub { font-size: 11px; letter-spacing: .34em; color: var(--rock); }
  .brand-rail__rule {
    flex: 1 1 auto;
    width: 1px;
    background: rgba(139, 150, 141, .32);
  }
  .brand-rail__tag {
    writing-mode: vertical-rl;
    font-family: var(--ff-data);
    font-size: 12px;
    letter-spacing: .42em;
    color: var(--rock);
  }

  .nav-shell {
    left: var(--rail-w);
    padding: 12px clamp(16px, 3vw, 32px);
  }
  .nav-toggle { display: none; }

  .to-top {
    left: calc((var(--rail-w) - 44px) / 2);
    right: auto;
    bottom: 30px;
    width: 44px; height: 44px;
  }

  .footer-top { grid-template-columns: 1.05fr 1.6fr .95fr; }
  .footer-brand { grid-column: 1; }
  .footer-cols { grid-column: 2; grid-row: 1; grid-template-columns: repeat(3, 1fr); }
  .footer-contact { grid-column: 3; grid-row: 1; }
}

/* ---------- 15. 移动端：胶囊升起为底部面板 ---------- */
@media (max-width: 1023px) {
  :root { --strip-h: 28px; }

  .status-strip { padding: 0 12px; gap: 8px; }
  .status-strip__text { font-size: 11px; }
  .status-strip__k { display: none; }

  .nav-capsule {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: var(--z-sheet);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: none;
    padding: 18px;
    border-radius: 20px;
    background: rgba(7, 24, 20, .97);
    border: 1px solid rgba(201, 255, 79, .24);
    box-shadow: 0 -24px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(115%);
    transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
  }
  .site-header[data-open="true"] .nav-capsule {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-capsule__brand {
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(139, 150, 141, .32);
  }
  .nav-capsule__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
  }
  .nav-capsule__list a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 17px;
  }
  .nav-capsule__cta { width: 100%; margin-left: 0; }
}

@media (min-width: 560px) and (max-width: 767px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 16. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .status-strip__dot { animation: none; }
}

/* ---------- 17. 打印 ---------- */
@media print {
  .status-strip, .brand-rail, .nav-shell, .to-top, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; color: #111; }
  .site-footer { background: #fff; color: #111; border-top: 1px solid #999; }
}
