/* ==========================================================================
   YUN体育 · 共享外壳样式 /assets/site.css
   夜场档案：炭黑展厅 + 球场深绿 + 玻璃层 + 荧光橙锚点
   ========================================================================== */

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0F0D;
  --turf: #0F2A1E;
  --glass: #16211C;
  --paper: #F5F7F3;
  --muted: #9FB0A6;
  --orange: #FF6A1A;
  --blue: #1FB6FF;
  --yellow: #F2C230;
  --red: #E03B2F;
  --mint: #4CE0A8;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Noto Sans SC Condensed", "Oswald", "Arial Narrow", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --line: rgba(159, 176, 166, 0.18);
  --line-strong: rgba(159, 176, 166, 0.36);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --shell-max: 1180px;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  --rail-w: 244px;
  padding-left: var(--rail-w);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: padding-left 0.22s var(--ease);
}
body.is-collapsed { --rail-w: 84px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 2.7vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.mono { font-family: var(--font-mono); }
.cond { font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.02em; }

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. 跳至正文 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 侧边轨道头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background:
    repeating-linear-gradient(115deg, rgba(245, 247, 243, 0.03) 0 1px, transparent 1px 16px),
    linear-gradient(178deg, #12301F 0%, #0B0F0D 56%, #0B0F0D 100%);
  transition: width 0.22s var(--ease);
}

.rail__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
}
.brand__mark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.brand:hover .brand__sub { color: var(--orange); }

/* 轨道导航 */
.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  margin-right: -6px;
}

.nav-list { display: flex; flex-direction: column; gap: 1px; }
.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.5;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(159, 176, 166, 0.5);
  min-width: 18px;
  transition: color 0.18s var(--ease);
}
.nav-link__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-link:hover {
  color: var(--paper);
  background: rgba(31, 182, 255, 0.07);
}
.nav-link:hover .nav-link__idx { color: var(--blue); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 600;
  background: var(--glass);
  border-left-color: var(--orange);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--orange); }

/* 轨道底部 */
.rail__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rail__cta { width: 100%; }
.rail__link {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.rail__link:hover { color: var(--orange); }

/* 折叠按钮 */
.rail__collapse {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.rail__collapse:hover { color: var(--orange); border-color: var(--orange); }
.rail__collapse-icon { font-size: 13px; line-height: 1; }
.rail__collapse-text { white-space: nowrap; }

/* 滚动进度 */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  height: 0;
  background: linear-gradient(180deg, var(--orange) 0%, var(--blue) 100%);
  pointer-events: none;
  z-index: 3;
  transition: height 0.08s linear;
}

/* 折叠态 */
body.is-collapsed .brand__sub { display: none; }
body.is-collapsed .brand__mark { font-size: 15px; letter-spacing: 0.04em; }
body.is-collapsed .nav-link { justify-content: center; padding: 11px 4px; border-left-width: 2px; }
body.is-collapsed .nav-link__label { display: none; }
body.is-collapsed .nav-link__idx { min-width: 0; font-size: 12px; color: var(--muted); }
body.is-collapsed .rail__foot .rail__cta { display: none; }
body.is-collapsed .rail__link { text-align: center; font-size: 10px; }
body.is-collapsed .rail__collapse { justify-content: center; }
body.is-collapsed .rail__collapse-text { display: none; }

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { color: var(--orange); border-color: var(--orange); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 底部数据条（移动端） */
.databar { display: none; }

/* ---------- 6. 移动 / 平板头部 ---------- */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: 60px;
    padding-bottom: 32px;
    font-size: 15px;
    transition: none;
  }
  body.is-collapsed { --rail-w: 244px; }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 15, 13, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: none;
  }

  .rail__head { flex: 1 1 auto; min-width: 0; }
  .brand__mark { font-size: 17px; letter-spacing: 0.08em; }
  .brand__sub { display: none; }
  body.is-collapsed .brand__mark { font-size: 17px; letter-spacing: 0.08em; }

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

  .rail__nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 92px);
    padding: 14px 15px 20px;
    margin: 0;
    background: #0C1310;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s linear;
  }
  .site-header[data-open] .rail__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link { padding: 13px 12px; font-size: 15px; }
  .rail__foot { margin-top: 16px; padding-top: 16px; }
  body.is-collapsed .nav-link { justify-content: flex-start; padding: 13px 12px; }
  body.is-collapsed .nav-link__label { display: inline; }
  body.is-collapsed .nav-link__idx { font-size: 10px; color: rgba(159, 176, 166, 0.5); }
  body.is-collapsed .rail__foot .rail__cta { display: inline-flex; }

  .rail__collapse { display: none; }
  .rail__progress { display: none; }

  .databar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 82;
    height: 32px;
    overflow: hidden;
    background: rgba(22, 33, 28, 0.96);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .databar__track {
    display: flex;
    gap: 34px;
    padding: 8px 0;
    white-space: nowrap;
    animation: databar-scroll 30s linear infinite;
  }
  .databar__item {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
  }
  @keyframes databar-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 0 24px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, #0C2318 100%);
}

.site-footer > * {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
}

.footer__skyline {
  position: relative;
  height: 58px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-strong);
}
.footer__skyline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 42px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 62%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 62%, #000 100%);
}
.footer__skyline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 168px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0 64px, var(--blue) 64px 104px, transparent 104px);
}

.footer__grid {
  display: grid;
  gap: 30px 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px 34px; }
}

.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.brand--footer { gap: 5px; }
.footer__intro {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 247, 243, 0.82);
}
.footer__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer__col { min-width: 0; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(245, 247, 243, 0.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__list a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.footer__contact {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.contact-list { display: grid; gap: 10px; }
.contact-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.contact-list__k {
  min-width: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.contact-list__v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--paper);
  word-break: break-word;
}
.copy-btn {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.copy-btn:hover { color: var(--orange); border-color: var(--orange); }
.copy-btn[data-copied] {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}
.footer__note {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 12.5px;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer__legal a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__legal a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.footer__copyright { color: rgba(159, 176, 166, 0.8); }

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn--primary:hover {
  background: #FF8342;
  border-color: #FF8342;
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(31, 182, 255, 0.1);
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- 9. 内容容器与基础组件 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0 24px;
}
@media (max-width: 1023px) {
  .container { padding: 0 16px; }
}

.section { padding: 56px 0; }
.section__head { max-width: 64ch; margin-bottom: 26px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(245, 247, 243, 0.9);
}
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .prose { font-size: 15.5px; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb__sep { color: rgba(159, 176, 166, 0.36); }

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.card:hover { border-color: var(--line-strong); }

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 33, 28, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--orange { color: var(--orange); border-color: rgba(255, 106, 26, 0.5); background: rgba(255, 106, 26, 0.08); }
.tag--blue { color: var(--blue); border-color: rgba(31, 182, 255, 0.45); background: rgba(31, 182, 255, 0.08); }
.tag--yellow { color: var(--yellow); border-color: rgba(242, 194, 48, 0.45); background: rgba(242, 194, 48, 0.08); }
.tag--red { color: var(--red); border-color: rgba(224, 59, 47, 0.5); background: rgba(224, 59, 47, 0.08); }
.tag--mint { color: var(--mint); border-color: rgba(76, 224, 168, 0.45); background: rgba(76, 224, 168, 0.08); }

.wedge {
  height: 56px;
  margin: 40px 0;
  background: linear-gradient(90deg, rgba(31, 182, 255, 0.16), rgba(255, 106, 26, 0.07) 58%, transparent);
  -webkit-clip-path: polygon(0 100%, 100% 0, 100% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.wedge--flip {
  -webkit-clip-path: polygon(0 0, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ---------- 10. 图片容器（页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--glass), #101A16);
}
.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s var(--ease);
}
.media:hover > img { transform: scale(1.02); }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(11, 15, 13, 0) 0%, rgba(11, 15, 13, 0.88) 100%);
}

/* ---------- 11. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  body { transition: none; }
  .databar__track { animation: none; transform: none; }
  .rail__progress { transition: none; }
  .media:hover > img { transform: none; }
}
