/* ============================================================
   幻影体育安装 / site.css
   共享外壳：reset、变量、中文排版、头部、页脚、通用组件
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, li, fieldset, legend {
  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; }

a { color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #07070B;
  --panel: #12102B;
  --layer: #1C1840;
  --violet: #6C3BD1;
  --violet-mist: #A98BFF;
  --cyan: #00D4C8;
  --orange: #FF7A1A;
  --pearl: #F4F2FA;
  --fog: #9A96B4;
  --hair: #2A2547;
  --shadow: #0E0A1F;

  --rail-w: 224px;
  --maxw: 1280px;
  --gutter: 24px;

  --font-sans: "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

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

/* ---------- 3. 中文排版与基础层 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--pearl);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 560px at 88% -8%, rgba(108, 59, 209, 0.32), transparent 62%),
    radial-gradient(820px 520px at 2% 104%, rgba(0, 212, 200, 0.08), transparent 62%),
    linear-gradient(to right, rgba(42, 37, 71, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 37, 71, 0.42) 1px, transparent 1px);
  background-size: auto, auto, 88px 88px, 88px 88px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }

p { text-wrap: pretty; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

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

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--violet);
  border: 1px solid var(--violet-mist);
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 6. 头部外壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(7, 7, 11, 0.9);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- 7. 品牌 ---------- */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: var(--pearl);
  line-height: 1.28;
  min-width: 0;
}

.brand-mark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-accent {
  font-style: italic;
  font-weight: 800;
  color: var(--violet-mist);
  letter-spacing: 0.02em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--fog);
  white-space: nowrap;
}

/* ---------- 8. 移动菜单按钮 ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(28, 24, 64, 0.72);
  color: var(--pearl);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--violet-mist);
  color: #fff;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ---------- 9. 导航（移动=全屏抽屉） ---------- */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 30px;
  overflow-y: auto;
  background:
    radial-gradient(720px 440px at 84% -6%, rgba(108, 59, 209, 0.5), transparent 64%),
    radial-gradient(620px 380px at 8% 106%, rgba(0, 212, 200, 0.1), transparent 66%),
    linear-gradient(165deg, #14112F 0%, #07070B 72%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.32s var(--ease), opacity 0.28s var(--ease),
    visibility 0.32s var(--ease);
}

.site-nav[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}

.nav-head-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--violet-mist);
}

.nav-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--pearl);
  background: rgba(108, 59, 209, 0.24);
  border: 1px solid var(--hair);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-close:hover {
  background: var(--violet);
  border-color: var(--violet);
}

/* ---------- 10. 轨道导航条目 ---------- */
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  color: var(--fog);
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-left: 3px solid transparent;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
    border-color 0.22s var(--ease), letter-spacing 0.22s var(--ease);
}

.rail-link:hover {
  color: var(--pearl);
  background: rgba(108, 59, 209, 0.14);
}

.rail-link[aria-current="page"] {
  color: var(--pearl);
  border-left-color: var(--violet);
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, rgba(108, 59, 209, 0.38), rgba(108, 59, 209, 0) 88%);
}

.rail-num {
  flex: 0 0 auto;
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--violet-mist);
  opacity: 0.9;
}

.rail-link[aria-current="page"] .rail-num {
  color: var(--cyan);
  opacity: 1;
}

.rail-label {
  display: block;
}

/* ---------- 11. 刷新状态 ---------- */
.rail-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--fog);
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.16);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- 12. 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  pointer-events: none;
  background: var(--cyan);
}

@media (max-width: 1023px) {
  .scroll-progress {
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
  }
}

@media (min-width: 1024px) {
  .scroll-progress {
    top: 0;
    right: -1px;
    bottom: 0;
    width: 2px;
    transform: scaleY(var(--p, 0));
    transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--cyan), var(--violet));
  }
}

/* ---------- 13. 桌面端左侧固定轨道 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 28px 18px 22px;
    border-bottom: 0;
    border-right: 1px solid var(--hair);
    background:
      radial-gradient(320px 240px at 50% 0%, rgba(108, 59, 209, 0.3), transparent 70%),
      linear-gradient(180deg, #0B0A1A 0%, #07070B 56%, #0A0817 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hair);
  }

  .brand-mark { font-size: 18px; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 0 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-head { display: none; }

  .rail-nav { gap: 2px; }

  .rail-link {
    font-size: 15px;
    padding: 11px 12px 11px 14px;
    gap: 12px;
  }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  padding: 54px 20px 26px;
  border-top: 1px solid var(--hair);
  background:
    radial-gradient(760px 400px at 84% 0%, rgba(108, 59, 209, 0.18), transparent 66%),
    linear-gradient(180deg, rgba(18, 16, 43, 0.94), rgba(7, 7, 11, 0.99));
}

.footer-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 40px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(220px, 1.05fr) minmax(190px, 0.85fr) minmax(260px, 1.2fr);
    gap: 40px 56px;
  }
}

.footer-col { min-width: 0; }

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col--brand .brand {
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-note {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: rgba(154, 150, 180, 0.75);
}

.footer-heading {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--violet-mist);
}

.footer-links + .footer-heading { margin-top: 26px; }

.footer-links li + li { margin-top: 8px; }

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--fog);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--pearl);
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--fog);
}

.footer-contact li + li { margin-top: 10px; }

.contact-key {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--violet-mist);
  opacity: 0.85;
}

.contact-val {
  color: var(--pearl);
  word-break: break-word;
}

.footer-hours {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fog);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  font-size: 12px;
  color: var(--fog);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

/* ---------- 15. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--pearl);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  border-color: var(--violet-mist);
  background: rgba(108, 59, 209, 0.16);
  transform: translateY(-1px);
}

.btn--primary {
  color: #180703;
  background: var(--orange);
  border-color: var(--orange);
}

.btn--primary:hover {
  color: #180703;
  background: #FF9440;
  border-color: #FF9440;
}

.btn--violet {
  color: #fff;
  background: var(--violet);
  border-color: var(--violet);
}

.btn--violet:hover {
  color: #fff;
  background: #7C4BE0;
  border-color: #7C4BE0;
}

.btn--ghost {
  color: var(--fog);
  border-color: var(--hair);
}

.btn--ghost:hover { color: var(--pearl); }

/* ---------- 16. 面包屑 ---------- */
.breadcrumb {
  padding: 22px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--hair);
}

.breadcrumb a {
  color: var(--fog);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover { color: var(--violet-mist); }

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

/* ---------- 17. 首屏 / 章节排版件 ---------- */
.display {
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--pearl);
}

.display em {
  font-style: italic;
  font-weight: 800;
  color: var(--violet-mist);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--violet-mist);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.num-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px 3px 14px;
  min-height: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%);
}

/* ---------- 18. 面板 / 标签 / 正文 ---------- */
.panel {
  position: relative;
  padding: 32px 26px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 0;
}

.panel--layer {
  background: var(--layer);
  border-color: rgba(169, 139, 255, 0.22);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fog);
  background: rgba(28, 24, 64, 0.6);
  border: 1px solid var(--hair);
  border-radius: 0;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(0, 212, 200, 0.38);
  background: rgba(0, 212, 200, 0.08);
}

.tag--violet {
  color: var(--violet-mist);
  border-color: rgba(169, 139, 255, 0.38);
  background: rgba(108, 59, 209, 0.14);
}

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

.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fog);
}

.prose p { max-width: 38em; }

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

.prose strong {
  color: var(--pearl);
  font-weight: 600;
}

.prose a {
  color: var(--violet-mist);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(169, 139, 255, 0.45);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.prose a:hover {
  color: var(--pearl);
  text-decoration-color: var(--cyan);
}

/* ---------- 19. 图片容器基础规则（供页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hair);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(28, 24, 64, 0.95), rgba(7, 7, 11, 0.95)),
    repeating-linear-gradient(
      -45deg,
      rgba(108, 59, 209, 0.14) 0,
      rgba(108, 59, 209, 0.14) 1px,
      transparent 1px,
      transparent 12px
    );
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
}

/* ---------- 20. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 21. 减少动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

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

  .status-dot { animation: none; }
}
