/* ============================================================
   浩瀚体育 · 共享样式表 /assets/site.css
   深空竞技指挥中心：霓虹青刻度 + 玻璃层 + 实色数据层
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

a { color: inherit; }

:root {
  --ink-900: #05070F;
  --ink-850: #080C18;
  --ink-800: #0B1224;
  --ink-700: #121B33;
  --ink-600: #16213D;

  --mist: #C9D4E8;
  --mute: #8A99B8;
  --cyan: #38F2E0;
  --violet: #8B5CF6;
  --lime: #B6FF3B;
  --amber: #FFB020;
  --rose: #FF5C7A;
  --white: #F7FAFF;

  --line: rgba(56, 242, 224, 0.16);
  --line-soft: rgba(201, 212, 232, 0.12);

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

  --shell: 1200px;
  --rail: 232px;
  --radius: 14px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 78% -14%, rgba(139, 92, 246, 0.16), transparent 62%),
    radial-gradient(900px 520px at 4% 2%, rgba(56, 242, 224, 0.10), transparent 64%),
    var(--ink-900);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

@media (min-width: 861px) {
  body { font-size: 17px; }
}

::selection {
  background: rgba(56, 242, 224, 0.28);
  color: var(--white);
}

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

/* ---------- 布局容器 ---------- */

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

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

.grid {
  display: grid;
  gap: 20px;
}

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

@media (max-width: 860px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stack > * + * {
  margin-top: var(--stack-gap, 16px);
}

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

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: absolute;
  top: -90px;
  left: 16px;
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- 页头 ---------- */

.site-header {
  position: relative;
  z-index: 40;
  background: var(--ink-900);
}

.header-status {
  background:
    linear-gradient(90deg,
      rgba(139, 92, 246, 0.20),
      rgba(56, 242, 224, 0.12) 52%,
      rgba(139, 92, 246, 0.20));
  border-bottom: 1px solid var(--line-soft);
}

.header-status__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
  overflow: hidden;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--mute);
  white-space: nowrap;
}

.status-item--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.status-item--mono strong,
.status-item--warn strong {
  font-weight: 600;
}

.status-item--warn {
  color: var(--amber);
}

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

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.16); }
  50%      { box-shadow: 0 0 0 6px rgba(182, 255, 59, 0.04); }
}

.masthead {
  background: rgba(11, 18, 36, 0.88);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.masthead__note {
  justify-self: start;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--mute);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  text-decoration: none;
  color: var(--white);
}

.masthead__mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  box-shadow: inset 0 0 14px rgba(56, 242, 224, 0.28);
}

.masthead__mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.72);
}

.masthead__mark::after {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cyan), transparent 72%);
}

.masthead__word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(21px, 2.8vw, 30px);
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--white);
}

.masthead__badge {
  padding: 3px 9px;
  border: 1px solid rgba(56, 242, 224, 0.42);
  border-radius: 4px;
  background: rgba(56, 242, 224, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  white-space: nowrap;
}

.masthead__actions {
  justify-self: end;
}

.masthead__cta {
  white-space: nowrap;
}

.nav-bar {
  background: rgba(5, 7, 15, 0.94);
  border-bottom: 1px solid var(--line);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 33, 61, 0.6);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(56, 242, 224, 0.10);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4.2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4.3px) rotate(-45deg);
}

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

.site-nav {
  display: none;
  width: 100%;
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav__item {
  display: block;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 13px 18px;
  border-radius: 8px;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(56, 242, 224, 0.08);
}

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

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 242, 224, 0.8);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  background: rgba(56, 242, 224, 0.10);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 12px rgba(56, 242, 224, 0.75);
  transition: width 0.1s linear;
}

@media (max-width: 860px) {
  .header-status__inner {
    gap: 10px;
    justify-content: flex-start;
  }

  .status-item {
    font-size: 10.5px;
    letter-spacing: 0.05em;
  }

  .status-item--mono {
    margin-left: auto;
  }

  .status-item--warn {
    display: none;
  }

  .masthead__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .masthead__note {
    order: 2;
    justify-self: center;
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }

  .masthead__actions {
    order: 3;
    justify-self: center;
  }

  .nav-bar__inner {
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: 0;
  }

  .site-nav {
    padding-bottom: 10px;
  }

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

  .site-nav__link {
    padding: 12px 12px;
    border-radius: 6px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(56, 242, 224, 0.08);
  }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 2px;
    height: 18px;
    transform: translateY(-50%);
  }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
}

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--cyan);
  color: #04121A;
}

.btn--primary:hover {
  background: #6df8ea;
  box-shadow: 0 0 0 1px rgba(56, 242, 224, 0.42), 0 12px 30px -12px rgba(56, 242, 224, 0.7);
}

.btn--ghost {
  border-color: rgba(56, 242, 224, 0.36);
  background: rgba(56, 242, 224, 0.06);
  color: var(--cyan);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(56, 242, 224, 0.16);
}

/* ---------- 通用文本与卡片组件 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

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

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: var(--white);
}

.card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-600);
}

.card--glass {
  border-color: rgba(56, 242, 224, 0.22);
  background: rgba(22, 33, 61, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 62px -34px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(201, 212, 232, 0.08);
}

.card--solid {
  border-color: rgba(201, 212, 232, 0.14);
  background: var(--ink-700);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(56, 242, 224, 0.34);
  border-radius: 999px;
  background: rgba(56, 242, 224, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.tag--lime {
  border-color: rgba(182, 255, 59, 0.38);
  background: rgba(182, 255, 59, 0.10);
  color: var(--lime);
}

.tag--amber {
  border-color: rgba(255, 176, 32, 0.4);
  background: rgba(255, 176, 32, 0.10);
  color: var(--amber);
}

.data-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
}

.data-dot--amber { background: var(--amber); }
.data-dot--rose  { background: var(--rose); }

.divider {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(56, 242, 224, 0.42), rgba(201, 212, 232, 0.12), transparent);
}

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  padding: 14px 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  padding: 0 10px;
  color: rgba(201, 212, 232, 0.3);
}

.breadcrumbs__link {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s ease;
}

.breadcrumbs__link:hover {
  color: var(--cyan);
}

/* ---------- 正文排版 ---------- */

.prose {
  max-width: 72ch;
  color: var(--mist);
  line-height: 1.78;
}

.prose > p { margin-bottom: 1em; }

.prose h2 {
  margin: 1.7em 0 0.6em;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--white);
}

.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }

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

.prose strong { color: var(--white); font-weight: 700; }

.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 242, 224, 0.10);
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--cyan);
}

/* ---------- 可复用图片容器 ---------- */

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(56, 242, 224, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(139, 92, 246, 0.30), transparent 56%),
    radial-gradient(90% 90% at 88% 100%, rgba(56, 242, 224, 0.20), transparent 62%),
    var(--ink-700);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(56, 242, 224, 0.14) 50%, transparent 62%);
  pointer-events: none;
}

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

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, var(--ink-800), #070B16);
  border-top: 1px solid var(--line);
}

.footer-top__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 44px;
}

.footer-brand__word {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
}

.footer-brand__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(56, 242, 224, 0.38);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  vertical-align: 4px;
}

.footer-brand__lede {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mute);
}

.footer-archive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 14px;
  border: 1px dashed rgba(201, 212, 232, 0.24);
  border-radius: 12px;
  background: rgba(22, 33, 61, 0.45);
}

.footer-archive__badge {
  padding: 2px 9px;
  border: 1px solid rgba(182, 255, 59, 0.35);
  border-radius: 999px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.footer-archive .footer-link {
  color: var(--cyan);
  font-size: 13px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

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

.footer-link {
  color: var(--mist);
  font-size: 14px;
  line-height: 2;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact__item {
  display: grid;
  gap: 1px;
}

.footer-contact__label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.footer-contact__value {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 7, 15, 0.55);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12.5px;
  color: var(--mute);
}

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

.footer-legal__link {
  color: var(--mute);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-legal__link:hover,
.footer-legal__link:focus-visible {
  color: var(--cyan);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.footer-icp { color: var(--mist); }
.footer-copy { color: var(--mute); }

@media (max-width: 980px) {
  .footer-top__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 44px;
    padding-bottom: 36px;
  }
}

@media (max-width: 620px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-brand__lede { max-width: none; }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 滚动显现 ---------- */

html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- 减弱动效 ---------- */

@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;
  }

  .status-dot { animation: none; }

  html[data-js] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
