/* =========================================================
   浩瀚体育 · 共享样式表 /assets/site.css
   深空蓝黑 + 荧光绿 + 电光橙 / 技术蓝图网格
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

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

img, svg, video { max-width: 100%; }

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

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

:focus-visible {
  outline: 2px solid #B6FF3B;
  outline-offset: 2px;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #060B14;
  --ink-850: #080F1C;
  --ink-800: #0B1626;
  --ink-700: #16243A;
  --line: #243247;
  --line-soft: rgba(36, 50, 71, 0.6);
  --grey: #9AA7B8;
  --silver: #D7DEE8;
  --white: #F4F7FB;
  --lime: #B6FF3B;
  --lime-soft: rgba(182, 255, 59, 0.08);
  --lime-line: rgba(182, 255, 59, 0.42);
  --orange: #FF7A1A;
  --orange-soft: rgba(255, 122, 26, 0.08);
  --green-deep: #1E3A2A;

  /* 字体 */
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --rail-w: 72px;
  --status-h: 36px;
  --header-h: 66px;
  --maxw: 1360px;
  --gut: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 技术蓝图网格 + 夜间球场灯光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(36, 50, 71, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 50, 71, 0.26) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 88%);
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 82% -12%, rgba(182, 255, 59, 0.075), transparent 66%),
    radial-gradient(760px 500px at 2% 6%, rgba(255, 122, 26, 0.07), transparent 68%);
}

main {
  position: relative;
  z-index: 1;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--white);
}

p { text-wrap: pretty; }

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

/* ---------- 4. 通用容器与网格 ---------- */
.u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 1px solid var(--lime);
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 6. 顶部状态条 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.status-rail {
  height: var(--status-h);
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.status-rail__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--maxw);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gut);
}

.status-rail__tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: var(--lime);
  color: #08120A;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: railPulse 3.2s ease-in-out infinite;
}

@keyframes railPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.status-rail__text {
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-rail__meta {
  flex: 0 0 auto;
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 7. 命令栏 ---------- */
.header-main {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 11, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--maxw);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* 品牌锁定块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--white);
}

.brand__mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid var(--lime);
  background: var(--lime-soft);
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--lime);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--white);
}

.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
}

.nav-toggle__label {
  line-height: 1;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 12px);
  margin-left: auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid transparent;
  color: var(--silver);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--grey);
  transition: color 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--white);
  background: var(--ink-800);
  border-color: var(--line);
}

.site-nav__link:hover .site-nav__idx {
  color: var(--lime);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-soft);
  border-color: var(--lime-line);
}

.site-nav__link[aria-current="page"] .site-nav__idx {
  color: var(--lime);
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 8px;
}

/* 阅读进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.12s linear;
}

/* ---------- 8. 按钮族 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink-700);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: #1E2C44;
  border-color: var(--silver);
  color: var(--white);
}

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

.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #08120A;
}

.btn--primary:hover {
  background: #CDFF74;
  border-color: #CDFF74;
  color: #08120A;
}

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #120802;
}

.btn--accent:hover {
  background: #FF9445;
  border-color: #FF9445;
  color: #120802;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--silver);
}

.btn--ghost:hover {
  background: var(--lime-soft);
  border-color: var(--lime-line);
  color: var(--lime);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.crumbs a {
  color: var(--grey);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.crumbs a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime-line);
}

.crumbs__sep {
  color: var(--line);
}

.crumbs__current {
  color: var(--silver);
}

/* ---------- 10. 标签与引导 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--lime);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--ink-800);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--lime {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.42);
  background: var(--orange-soft);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-800);
  background-image:
    repeating-linear-gradient(135deg, rgba(36, 50, 71, 0.55) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
}

.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x2 { aspect-ratio: 3 / 2; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.82);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ---------- 12. 章节目录 ---------- */
.rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-block: 4px;
}

.rail__link {
  display: block;
  padding: 8px 0 8px 13px;
  border-left: 1px solid var(--line);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.rail__link:hover {
  color: var(--silver);
  border-left-color: var(--silver);
  background: rgba(22, 36, 58, 0.5);
}

.rail__link.is-active {
  color: var(--lime);
  border-left-color: var(--lime);
  background: var(--lime-soft);
}

/* ---------- 13. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(11, 22, 38, 0.94);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--lime);
  border-color: var(--lime-line);
}

.to-top__arrow {
  font-size: 14px;
  line-height: 1;
}

.to-top__label {
  line-height: 1;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.15), var(--ink-800) 65%);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 66px) var(--gut) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-brand__line {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.footer-brand__hours {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.footer-brand__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--silver);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.footer-brand__cta:hover {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer-nav__list,
.footer-contact__list,
.footer-legal__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.footer-nav__list a,
.footer-legal__list a {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-nav__list a:hover,
.footer-legal__list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime-line);
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer-contact__v {
  font-size: 13px;
  line-height: 1.65;
  color: var(--silver);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-base__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 15. 响应式 ---------- */
@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .status-rail__meta {
    display: block;
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .rail {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px var(--gut) 24px;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    justify-content: flex-start;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--lime-line);
  }

  .header-cta {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .brand__sub {
    display: none;
  }
  .nav-toggle__label {
    display: none;
  }
  .nav-toggle {
    padding: 10px;
  }
}

/* ---------- 16. 动效降级 ---------- */
@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;
  }

  .status-rail__tag {
    animation: none;
  }
}
