/* =========================================================
   幻影体育站 · /assets/site.css
   共享外壳：重置、设计变量、头部、页脚、通用组件
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* 夜色地层 */
  --bg: #221B3A;
  --bg-deep: #12101F;
  --bg-card: rgba(18, 16, 31, 0.74);

  /* 文字 */
  --ink: #F4F1E8;
  --mist: #B7ADD6;

  /* 光 */
  --green: #39FF88;
  --amber: #FFB347;
  --blue: #5AC8FA;
  --moss: #7FA88A;
  --clay: #C97B5A;

  /* 结构 */
  --rock: #6E6880;
  --wire: #3A3355;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1440px;
  --gap: 24px;

  --line: 2px solid var(--wire);
  --shadow-hard: 8px 8px 0 rgba(8, 7, 15, 0.86);
  --shadow-lift: 4px 4px 0 rgba(57, 255, 136, 0.22);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: var(--green); color: var(--bg-deep); }

body {
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(57, 255, 136, 0.10), transparent 62%),
    radial-gradient(900px 520px at 4% 0%, rgba(90, 200, 250, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.005em;
}

@media (max-width: 720px) {
  body { font-size: 16px; }
}

/* ---------- 焦点可见 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.18);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -96px;
  z-index: 300;
  display: inline-block;
  padding: 12px 20px;
  background: var(--green);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--bg-deep);
  box-shadow: 6px 6px 0 rgba(8, 7, 15, 0.9);
  transition: top 0.15s var(--ease);
}

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

/* =========================================================
   通用布局与排版工具
   ========================================================= */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.rule {
  height: 0;
  border: 0;
  border-top: 2px solid var(--wire);
  margin-block: clamp(32px, 4vw, 56px);
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

.chapter-no {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--rock);
}

@supports not (-webkit-text-stroke: 2px red) {
  .chapter-no { color: var(--rock); }
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 62ch;
  color: var(--mist);
  font-size: clamp(15px, 1.4vw, 17px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--wire);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn:hover {
  color: var(--green);
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
  transform: translate(-1px, -1px);
}

.btn--lamp {
  background: var(--green);
  color: var(--bg-deep);
  border-color: var(--green);
  box-shadow: 4px 4px 0 rgba(8, 7, 15, 0.9);
}

.btn--lamp:hover {
  background: #5CFFA2;
  color: var(--bg-deep);
  border-color: var(--green);
  box-shadow: 6px 6px 0 rgba(8, 7, 15, 0.9);
}

.btn--ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--rock);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--blue);
  box-shadow: 4px 4px 0 rgba(90, 200, 250, 0.22);
}

/* ---------- 卡片与数据 ---------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: var(--line);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 2vw, 24px);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.card:hover {
  border-color: var(--rock);
  transform: translateY(-2px);
}

.stat {
  display: grid;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rock);
}

.stat--amber .stat-value { color: var(--amber); }
.stat--blue .stat-value { color: var(--blue); }

/* ---------- 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--mist);
}

.tag--live { color: var(--green); }
.tag--amber { color: var(--amber); }
.tag--blue { color: var(--blue); }
.tag--moss { color: var(--moss); }
.tag--clay { color: var(--clay); }

/* ---------- 图片容器（页面阶段放 <img>） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--line);
  box-shadow: var(--shadow-hard);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(60% 80% at 70% 20%, rgba(57, 255, 136, 0.16), transparent 70%),
    radial-gradient(70% 70% at 12% 90%, rgba(90, 200, 250, 0.14), transparent 70%),
    linear-gradient(140deg, #221B3A 0%, #12101F 70%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(244, 241, 232, 0.05) 0 1px,
    transparent 1px 4px
  );
  pointer-events: none;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--hero { aspect-ratio: 16 / 10; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rock);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin-block: 24px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rock);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.breadcrumb-sep {
  color: var(--rock);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

/* ---------- 长文 ---------- */
.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose p + p { margin-top: 1.05em; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.prose ul, .prose ol {
  margin-top: 1em;
  display: grid;
  gap: 0.5em;
}

.prose ul li, .prose ol li {
  position: relative;
  padding-left: 1.4em;
  color: var(--mist);
}

.prose ul li::before {
  content: "▍";
  position: absolute;
  left: 0;
  color: var(--green);
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   头部
   ========================================================= */

.site-header {
  --header-h: 92px;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(18, 16, 31, 0.94);
  border-bottom: 2px solid var(--wire);
  transition: min-height 0.2s var(--ease);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    backdrop-filter: blur(10px);
    background: rgba(18, 16, 31, 0.82);
  }
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 52%, var(--amber) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  min-height: var(--header-h);
  transition: min-height 0.2s var(--ease);
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: font-size 0.2s var(--ease), color 0.18s var(--ease);
}

.brand:hover .brand-name { color: var(--green); }

.brand-tagline {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* 灯带留白 */
.header-lamp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 40px;
  min-width: 16px;
  height: 20px;
}

.header-lamp::before {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--rock) 0 8px,
    transparent 8px 16px
  );
}

.header-lamp::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 136, 0.9);
  animation: lamp-pulse 2.4s ease-in-out infinite;
}

@keyframes lamp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

/* 导航 */
.nav-primary { flex: 0 0 auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid transparent;
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(244, 241, 232, 0.06);
  border-color: var(--wire);
}

.nav-link[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--green);
  border-color: var(--green);
}

/* 行动区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions .btn {
  padding: 9px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* 汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--wire);
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}

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

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: background-color 0.18s var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.18s var(--ease), top 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.site-header[data-open="true"] .nav-toggle-bar { background: transparent; }

.site-header[data-open="true"] .nav-toggle-bar::before {
  top: 0;
  background: var(--green);
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bar::after {
  top: 0;
  background: var(--green);
  transform: rotate(-45deg);
}

/* 滚动灯管 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  pointer-events: none;
  background: transparent;
}

.scroll-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--blue) 55%, var(--amber));
  transition: width 0.1s linear;
}

/* 滚动后收窄 */
.site-header[data-stuck="true"] { --header-h: 56px; }
.site-header[data-stuck="true"] .brand-name { font-size: 20px; }
.site-header[data-stuck="true"] .brand-tagline { display: none; }
.site-header[data-stuck="true"] .brand-mark { display: none; }

/* =========================================================
   页脚
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--bg-deep);
  border-top: 2px solid var(--wire);
  color: var(--ink);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--green) 44%, var(--blue) 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 40px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand { max-width: 46ch; }

.footer-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

.footer-name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.footer-line {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.footer-summary {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-list {
  margin-top: 14px;
  display: grid;
  gap: 2px;
}

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link::before {
  content: "—";
  margin-right: 8px;
  color: var(--rock);
  transition: color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.footer-link:hover::before { color: var(--green); }

.footer-link[aria-current="page"] { color: var(--green); }
.footer-link[aria-current="page"]::before { color: var(--green); }

.footer-contact {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 2px solid var(--wire);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 32px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rock);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.footer-base {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 2px solid var(--wire);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-fine {
  max-width: 52ch;
  font-size: 12px;
  line-height: 1.8;
  color: var(--rock);
}

.footer-stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rock);
}

/* =========================================================
   可选显现（页面给元素加 data-reveal 即可）
   ========================================================= */

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1180px) {
  .nav-link { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 1080px) {
  .site-header { --header-h: 76px; }

  .header-inner { gap: 12px; }

  .header-lamp { display: none; }

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

  .nav-primary {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--bg-deep);
    border-bottom: 2px solid var(--wire);
    box-shadow: 0 18px 40px rgba(8, 7, 15, 0.7);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 8px 0 18px;
  }

  .site-header[data-open="true"] .nav-primary { display: block; }

  .site-header[data-open="true"] .scroll-meter { opacity: 0.2; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: clamp(16px, 4vw, 40px);
  }

  .nav-item { border-bottom: 2px solid var(--wire); }

  .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    border: 2px solid transparent;
    border-width: 0 0 0 2px;
    color: var(--ink);
  }

  .nav-link:hover {
    background: rgba(57, 255, 136, 0.08);
    border-left-color: var(--green);
    border-color: var(--green);
    border-width: 0 0 0 2px;
  }

  .nav-link[aria-current="page"] {
    color: var(--green);
    background: rgba(57, 255, 136, 0.12);
    border-color: var(--green);
    border-width: 0 0 0 2px;
  }

  .site-header[data-stuck="true"] .brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .brand-name { font-size: 21px; }
  .brand-tagline { display: none; }
  .header-actions .btn { padding: 8px 11px; font-size: 12px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .brand-mark { font-size: 9px; letter-spacing: 0.16em; }
  .brand-name { font-size: 18px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 7px 9px; font-size: 11px; letter-spacing: 0.02em; }
  .nav-toggle { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-value { font-size: 12px; }
}

/* =========================================================
   减弱动效
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .header-lamp::after { animation: none; opacity: 1; }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
