/* ============================================================
   幻影体育 CN PLUS · 共享样式表 /assets/site.css
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: #07080F;
  color: #F4F1E8;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .55em; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid #22E6D3;
  outline-offset: 3px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink:        #07080F;
  --panel:      #0E1420;
  --paper:      #F4F1E8;
  --paper-ink:  #14161C;
  --cyan:       #22E6D3;
  --violet:     #7A5CFF;
  --alert:      #FF4B2B;
  --steel:      #2A3446;
  --mist:       #9BA6B8;
  --plum:       #1A1030;

  --font-sans:  "Noto Sans SC", "Source Han 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, monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;

  --bar-h:   56px;
  --gutter:  clamp(16px, 4vw, 44px);
  --maxw:    1280px;
  --skew:    6deg;
  --ease:    cubic-bezier(.22, .61, .36, 1);

  --line:        1px solid var(--steel);
  --shadow-panel: 8px 8px 0 rgba(0, 0, 0, .55);
}

/* ---------- 3. 背景层：光轨 + 数据网格 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 10% 6%,  rgba(34, 230, 211, .13), transparent 70%),
    radial-gradient(50% 46% at 90% 16%, rgba(122, 92, 255, .16), transparent 72%),
    radial-gradient(46% 38% at 72% 94%, rgba(255, 75, 43, .09), transparent 75%);
  animation: hsDrift 14s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 52, 70, .55) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg,  rgba(42, 52, 70, .38) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

@keyframes hsDrift {
  from { transform: translate3d(-1.4%, 0, 0) scale(1.01); }
  to   { transform: translate3d(1.6%, -1.2%, 0) scale(1.03); }
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04100F;
  font-weight: 700;
  text-decoration: none;
  transition: top .16s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---------- 5. 排版工具 ---------- */
h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

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

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--mist);
  max-width: 62ch;
}

.section-index {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--mist);
}

.rule-skew {
  height: 1px;
  margin: clamp(28px, 4vw, 52px) 0;
  background: linear-gradient(90deg, transparent, var(--steel) 10%, var(--steel) 90%, transparent);
}

/* ---------- 6. 布局容器与网格 ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

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

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 7. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--panel);
  border: var(--line);
  box-shadow: var(--shadow-panel);
}

.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: #C9C3B4;
}
.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: var(--paper-ink); }
.panel--paper p { color: #2E3138; }
.panel--paper a { color: #0A6058; text-decoration-color: rgba(10, 96, 88, .45); }
.panel--paper .eyebrow { color: #0A6058; }
.panel--paper .lede { color: #454A54; }
.panel--paper .section-index { color: #5A5F68; }

.panel--flat { box-shadow: none; }
.panel--accent { border-color: rgba(34, 230, 211, .42); }
.panel--alert  { border-color: rgba(255, 75, 43, .48); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:active { transform: translateY(1px); }

.btn--ghost { border-color: var(--steel); color: var(--paper); }

.btn--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04100F;
}
.btn--cyan:hover { background: #5BF0E2; border-color: #5BF0E2; color: #04100F; }

.btn--alert {
  background: var(--alert);
  border-color: var(--alert);
  color: #150402;
}
.btn--alert:hover { background: #FF6A4E; border-color: #FF6A4E; color: #150402; }

.btn--sm { padding: 8px 13px; font-size: 12.5px; }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 14px;
  border-bottom: 1px solid rgba(42, 52, 70, .65);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: #46536A;
}
.breadcrumbs__item[aria-current="page"] { color: var(--paper); }

.breadcrumbs__link { color: var(--mist); text-decoration: none; }
.breadcrumbs__link:hover { color: var(--cyan); }

/* ---------- 10. 图片容器（供页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: var(--line);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--plum) 0%, var(--panel) 52%, #0A1020 100%);
}
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square   { aspect-ratio: 1 / 1; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(34, 230, 211, .12) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg,  rgba(122, 92, 255, .10) 0 1px, transparent 1px 44px);
}

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

.media-frame__cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

/* ---------- 11. 显现动效协议 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   12. 命令栏
   ============================================================ */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 15, .84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--steel);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}

.cmd-bar.is-stuck {
  background: rgba(7, 8, 15, .95);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .95);
}

.cmd-bar__inner {
  width: min(100% - (var(--gutter) * 2), 1440px);
  margin-inline: auto;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.cmd-bar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.cmd-bar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--alert) 100%);
  pointer-events: none;
}

/* ---------- 13. 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--paper);
  text-shadow: 1px 1px 0 rgba(122, 92, 255, .85);
}

.brand__sub {
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--cyan);
  border: 1px solid rgba(34, 230, 211, .38);
}

.brand--footer .brand__mark { font-size: 20px; }

/* ---------- 14. 主导航 ---------- */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav__link:hover { color: var(--paper); background: rgba(34, 230, 211, .07); }
.nav__link:focus-visible { outline-offset: -2px; }

.nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #4A586E;
  transition: color .16s var(--ease);
}

.nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"] .nav__idx { color: var(--cyan); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 230, 211, .9);
}

/* ---------- 15. 状态胶囊 ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--cyan);
  background: rgba(34, 230, 211, .07);
  border: 1px solid rgba(34, 230, 211, .32);
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 230, 211, .95);
  animation: hsPulse 2.4s ease-in-out infinite;
}

@keyframes hsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

/* ---------- 16. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0;
  background: rgba(42, 52, 70, .35);
  border: 1px solid var(--steel);
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(34, 230, 211, .08); }
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   17. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--steel);
  background: linear-gradient(180deg, rgba(14, 20, 32, .92) 0%, rgba(7, 8, 15, 1) 58%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(52% 62% at 86% 0%, rgba(122, 92, 255, .17), transparent 70%);
}

.site-footer__grid {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px);
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.35fr;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__note {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5E6C82;
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-col__list a {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14.5px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-col__list a:hover { color: var(--cyan); border-color: rgba(34, 230, 211, .6); }

.site-footer__contact {
  display: grid;
  gap: 11px;
  align-content: start;
}

.contact-line { display: grid; gap: 2px; }

.contact-line__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5E6C82;
}

.contact-line__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  text-decoration: none;
  word-break: break-word;
}
a.contact-line__v:hover { color: var(--cyan); }

.site-footer__legal {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: 18px 26px;
  border-top: 1px solid var(--steel);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

/* ============================================================
   18. 响应式
   ============================================================ */
@media (max-width: 1180px) {
  .status-pill { display: none; }
}

@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

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

  .nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: block;
    justify-content: flex-start;
    padding: 20px var(--gutter) 40px;
    background: rgba(7, 8, 15, .98);
    border-top: 1px solid var(--steel);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    width: 100%;
    padding: 15px 4px;
    font-size: 17px;
    border-bottom: 1px solid rgba(42, 52, 70, .6);
  }
  .nav__idx { font-size: 11px; }
  .nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: -1px;
    width: 32px;
  }

  body.is-nav-open { overflow: hidden; }

  .cmd-bar__meta { gap: 8px; }
  .cmd-bar__cta { padding: 9px 12px; font-size: 12px; }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .breadcrumbs__list { font-size: 11px; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .cmd-bar__cta { display: none; }
}

/* ============================================================
   19. 动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body::before { animation: none; }
  .status-pill__dot { animation: none; opacity: 1; transform: none; }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
