/* =========================================================
   华体会赛场 · 共享样式 /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, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid #7CFFD4; outline-offset: 2px; border-radius: 4px; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #04140F;
  --ink-2: #0A241C;
  --glass: #123A2E;
  --glass-soft: rgba(18, 58, 46, .55);
  --neon: #7CFFD4;
  --neon-2: #31E0A8;
  --neon-soft: rgba(124, 255, 212, .12);
  --amber: #FF8A3D;
  --paper: #F2F7F4;
  --mist: #A8BDB4;
  --glow: #E6FFF6;
  --line: #1B3B31;
  --fog: #EAF3EE;

  --rail-w: 88px;
  --bar-h: 56px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基底 ---------- */
html {
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 84% -6%, rgba(49, 224, 168, .10), transparent 58%),
    radial-gradient(70% 55% at 8% 104%, rgba(124, 255, 212, .06), transparent 62%);
  background-attachment: fixed;
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content { scroll-margin-top: calc(var(--bar-h) + 8px); }
#main-content:focus { outline: none; }

/* ---------- 4. 容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }
.section--band {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.section--fog { background: var(--fog); color: var(--ink-2); }
.section--fog .section__lead { color: #38574C; }
.section--fog .section__num,
.section--fog .eyebrow { color: #0E7A5C; }
.section--fog .section__title { color: var(--ink-2); }
.section--fog .btn--ghost {
  border-color: rgba(10, 36, 28, .35);
  color: var(--ink-2);
  background: transparent;
}
.section--fog .btn--ghost:hover { background: rgba(10, 36, 28, .08); border-color: var(--ink-2); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 66ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--neon);
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: -.01em;
  color: var(--paper);
}
.section__lead {
  color: var(--mist);
  font-size: 17px;
  line-height: 1.8;
  max-width: 62ch;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn--amber {
  background: var(--amber);
  color: #04140F;
  box-shadow: 0 14px 30px -18px rgba(255, 138, 61, .9);
}
.btn--amber:hover { transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(124, 255, 212, .45);
  color: var(--neon);
  background: rgba(124, 255, 212, .06);
}
.btn--ghost:hover { background: rgba(124, 255, 212, .14); border-color: var(--neon); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- 6. 面包屑 ---------- */
.breadcrumb { padding-block: 20px 4px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(168, 189, 180, .45);
}
.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.breadcrumb__link:hover,
.breadcrumb__link:focus-visible { color: var(--neon); }

/* ---------- 7. 标签页 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 58, 46, .4);
}
.tab {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--mist);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tab:hover { color: var(--glow); }
.tab[aria-selected="true"] { background: var(--neon-2); color: #04140F; }
.tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }

/* ---------- 8. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 58, 46, .85), rgba(4, 20, 15, .96)),
    var(--glass);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--placeholder::after {
  content: attr(data-caption);
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: rgba(168, 189, 180, .85);
}
.media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 9. 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 10. 复制按钮 ---------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(18, 58, 46, .5);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .01em;
  color: var(--paper);
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.copy-btn:hover,
.copy-btn:focus-visible { border-color: rgba(124, 255, 212, .5); color: var(--glow); }
.copy-btn__hint {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--neon);
}
.copy-btn[data-copied="true"] { border-color: var(--neon); }
.copy-btn[data-copied="true"] .copy-btn__hint { color: var(--amber); }

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--neon);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 12. 侧轨头部 ---------- */
.site-header {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 8px 0;
  background: linear-gradient(180deg, rgba(18, 58, 46, .72), rgba(4, 20, 15, .95) 42%), var(--ink);
  border-right: 1px solid var(--line);
}

.rail__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(124, 255, 212, .45);
  background: linear-gradient(150deg, rgba(124, 255, 212, .16), rgba(4, 20, 15, .6));
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(4, 20, 15, .6), 0 10px 24px -14px rgba(124, 255, 212, .7);
}
.brand__text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand__tagline {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--mist);
}

.nav-toggle { display: none; }
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.navlink {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 72px;
  margin: 0 auto;
  padding: 11px 2px;
  border-radius: 10px;
  color: var(--mist);
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.navlink__num {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(168, 189, 180, .7);
  transition: color .2s var(--ease);
}
.navlink__label {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}
.navlink:hover,
.navlink:focus-visible { background: var(--neon-soft); color: var(--glow); }
.navlink:hover .navlink__num,
.navlink:focus-visible .navlink__num { color: var(--neon); }
.navlink[aria-current="page"] {
  background: linear-gradient(180deg, rgba(124, 255, 212, .16), rgba(124, 255, 212, .06));
  color: var(--glow);
}
.navlink[aria-current="page"] .navlink__num { color: var(--neon); }
.navlink[aria-current="page"]::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--neon);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(124, 255, 212, .8);
}

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  margin: 12px auto 22px;
  padding: 20px 0;
  border-radius: 10px;
  background: var(--amber);
  color: #04140F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(255, 138, 61, .9);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rail__cta-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .2em;
}
.rail__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(255, 138, 61, 1); }

/* 旧版入口：常驻内容区右缘 */
.legacy-tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 9px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(18, 58, 46, .72);
  color: var(--mist);
  text-decoration: none;
  transform: translateY(-50%);
  transition: color .2s var(--ease), background-color .2s var(--ease), padding .2s var(--ease);
}
.legacy-tab__text {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: .22em;
}
.legacy-tab:hover,
.legacy-tab:focus-visible {
  color: var(--neon);
  background: rgba(18, 58, 46, .94);
  padding-right: 13px;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(124, 255, 212, .4);
  border-radius: 50%;
  background: rgba(18, 58, 46, .85);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-2px); border-color: var(--neon); }
.to-top__arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--neon);
  border-right: 2px solid var(--neon);
  transform: rotate(-45deg) translate(-2px, 2px);
}

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 8vw, 100px);
  padding-block: clamp(44px, 6vw, 72px) 26px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent 55%);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(124, 255, 212, .35) 0 1px, transparent 1px 24px);
}

.footer__grid {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
}

.footer__col { min-width: 0; }

.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(124, 255, 212, .4);
  background: rgba(124, 255, 212, .08);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer__brand-note {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}
.footer__col--brand .btn { margin-top: 18px; }

.footer__col-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
}

.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer__list a:hover,
.footer__list a:focus-visible { color: var(--neon); }

.footer__contact {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.footer__contact-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.footer__contact-item { display: flex; flex-direction: column; gap: 6px; }
.footer__contact-item .copy-btn { align-self: flex-start; }
.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--mist);
}
.footer__contact-value {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper);
}
.footer__contact-item--note { grid-column: 1 / -1; }
.footer__contact-note {
  max-width: 76ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__copy { font-size: 13px; color: var(--mist); }
.footer__icp {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- 14. 桌面增强 ---------- */
@media (min-width: 901px) {
  .site-header {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .wrap { padding-right: calc(var(--gutter) + 26px); }
}

/* ---------- 15. 平板与移动 ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  body { padding-left: 0; padding-top: var(--bar-h); }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail__top {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .brand { flex-direction: row; align-items: center; gap: 10px; }
  .brand__mark { width: 34px; height: 34px; font-size: 10px; }
  .brand__text { flex-direction: row; align-items: baseline; gap: 8px; }
  .brand__name { font-size: 15px; }
  .brand__tagline { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(124, 255, 212, .35);
    border-radius: 10px;
    background: rgba(124, 255, 212, .06);
  }
  .site-header[data-open] .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header[data-open] .nav-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .rail__nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    flex: none;
    margin: 0;
    padding: 16px 12px 96px;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(180deg, rgba(10, 36, 28, .99), rgba(4, 20, 15, .99));
    border-right: 1px solid var(--line);
    box-shadow: 30px 0 60px -40px rgba(0, 0, 0, .9);
    transform: translateX(-104%);
    visibility: hidden;
    z-index: 85;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .site-header[data-open] .rail__nav { transform: none; visibility: visible; }

  .navlink {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
  }
  .navlink__num { font-size: 11px; }
  .navlink__label { font-size: 15.5px; white-space: normal; }
  .navlink[aria-current="page"]::before { right: auto; left: 0; }

  .rail__cta {
    position: fixed;
    left: 16px;
    bottom: 18px;
    width: calc(min(300px, 82vw) - 32px);
    margin: 0;
    padding: 14px 0;
    border-radius: 10px;
    transform: translateX(-140%);
    visibility: hidden;
    z-index: 86;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .site-header[data-open] .rail__cta { transform: none; visibility: visible; }
  .rail__cta-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: .06em;
  }

  .legacy-tab { display: none; }

  .scroll-progress { top: var(--bar-h); }

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

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .copy-btn { width: 100%; justify-content: space-between; }
}

/* ---------- 16. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-progress { display: none; }
}
