/* ============================================================
   星空体育入口 · 共享站点样式 /assets/site.css
   高原观测站：轨道 + 命令栏 + 星图刻度
   ============================================================ */

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

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

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

:root {
  /* 色彩 */
  --night: #081226;
  --night-2: #101F3C;
  --night-3: #0B1830;
  --lake: #1E9B9B;
  --lake-deep: #17787A;
  --sunset: #F08A4B;
  --sand: #E7D5B5;
  --mist: #C9D8E8;
  --indigo: #5B5BD6;
  --ink: #F4F7FB;
  --muted: #8FA3BD;
  --earth: #B9A58A;

  --line: rgba(143, 163, 189, 0.24);
  --line-strong: rgba(143, 163, 189, 0.45);

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

  /* 尺度 */
  --rail-w: 0px;
  --content-max: 1180px;
  --gutter: 28px;
  --radius: 0px;
}

@media (min-width: 1024px) {
  :root { --rail-w: 224px; }
}

body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(30, 155, 155, 0.13), transparent 62%),
    radial-gradient(900px 520px at 4% 18%, rgba(91, 91, 214, 0.10), transparent 60%),
    var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { max-width: 68ch; }
strong { font-weight: 700; color: var(--ink); }

a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sunset); }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--sunset);
  outline-offset: 3px;
}

::selection { background: var(--lake); color: #04121F; }

/* ---------- 通用工具 ---------- */

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lake);
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 52px 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(143, 163, 189, 0.04));
}
.section-rule::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border: 2px solid var(--lake);
  transform: rotate(45deg);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 8px;
  z-index: 300;
  transform: translateY(calc(-100% - 24px));
  padding: 11px 20px;
  background: var(--sunset);
  color: #16100A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid #16100A;
  box-shadow: 5px 5px 0 rgba(30, 155, 155, 0.9);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(12px); color: #16100A; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
  background: var(--sunset);
  color: #16100A;
  border-color: #16100A;
  box-shadow: 5px 5px 0 rgba(30, 155, 155, 0.85);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  color: #16100A;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(30, 155, 155, 0.9);
}

.btn--lake {
  background: var(--lake);
  color: #04121F;
  border-color: #04121F;
  box-shadow: 5px 5px 0 rgba(240, 138, 75, 0.82);
}
.btn--lake:hover,
.btn--lake:focus-visible {
  color: #04121F;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(240, 138, 75, 0.92);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--lake);
  border-color: var(--lake);
}

/* ---------- 图片容器（页面阶段放置占位/图片） ---------- */

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(145deg, #14294A 0%, #0C1B33 55%, #081226 100%);
  border: 2px solid var(--line-strong);
  box-shadow: 8px 8px 0 rgba(30, 155, 155, 0.20);
}
.media-frame > img,
.media-frame > picture,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(30, 155, 155, 0.22) 49.6%, rgba(30, 155, 155, 0.22) 50.4%, transparent 50.4%),
    linear-gradient(180deg, transparent 49.6%, rgba(30, 155, 155, 0.22) 49.6%, rgba(30, 155, 155, 0.22) 50.4%, transparent 50.4%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }

/* ---------- 滚动进度 ---------- */

.scroll-meter {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  z-index: 150;
  pointer-events: none;
  background: rgba(143, 163, 189, 0.14);
}
.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lake), var(--sunset));
  transition: width 0.1s linear;
}

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

.site-header { position: relative; }

/* --- 品牌 --- */

.brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  padding: 16px 0 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--lake);
  color: #04121F;
  font-size: 19px;
  line-height: 1;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sunset);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

/* --- 移动导航按钮 --- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  background: var(--lake);
  color: #04121F;
  border: 2px solid #04121F;
  box-shadow: 3px 3px 0 var(--sunset);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 3px; width: 15px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* --- 导航 --- */

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-nav__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lake);
  margin: 0;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item { margin: 0; }

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  background: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.site-nav__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--earth);
  transition: color 0.15s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--ink);
  background: rgba(30, 155, 155, 0.12);
  border-left-color: var(--lake);
}
.site-nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: rgba(30, 155, 155, 0.18);
  border-left-color: var(--lake);
}
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--lake); }

.site-nav__cta {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
}

/* --- 命令栏 --- */

.cmdbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px var(--gutter);
  background: rgba(8, 18, 38, 0.82);
  border-bottom: 1px solid var(--line);
}

.cmdbar__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.cmdbar__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lake);
  box-shadow: 0 0 0 3px rgba(30, 155, 155, 0.22);
}

.cmdbar__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cmdbar__quick a {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.cmdbar__quick a:hover,
.cmdbar__quick a:focus-visible {
  color: var(--ink);
  border-color: var(--lake);
  background: rgba(30, 155, 155, 0.14);
}

/* ============================================================
   头部 · 桌面端（侧边品牌轨道 + 粘性命令栏）
   ============================================================ */

@media (min-width: 1024px) {

  .site-header::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    z-index: 40;
    background: linear-gradient(180deg, #12233F 0%, #0C1B33 48%, #081226 100%);
    border-right: 2px solid var(--line);
    pointer-events: none;
  }

  .brand {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    padding: 26px 18px 18px;
    z-index: 42;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #12233F 0%, #101F3C 100%);
  }
  .brand__mark { width: 36px; height: 36px; font-size: 17px; }
  .brand__name { font-size: 14px; }
  .brand__tag { font-size: 9.5px; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    padding: 148px 18px 22px;
    z-index: 41;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav__cta { margin-top: auto; }

  .nav-toggle { display: none; }

  .cmdbar {
    position: sticky;
    top: 0;
    z-index: 50;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* ============================================================
   头部 · 移动/平板
   ============================================================ */

@media (max-width: 1023px) {

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 14px;
    padding: 0 18px;
    background: linear-gradient(180deg, #12233F 0%, #0B1830 100%);
    border-bottom: 2px solid var(--line);
  }

  .brand { grid-row: 1; grid-column: 1; padding: 13px 0 12px; }
  .brand__mark { width: 34px; height: 34px; font-size: 16px; box-shadow: 3px 3px 0 var(--sunset); }
  .brand__name { font-size: 14px; }
  .brand__tag { font-size: 9.5px; letter-spacing: 0.04em; }

  .nav-toggle { grid-row: 1; grid-column: 2; display: inline-flex; }

  .cmdbar {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 0 11px;
    background: transparent;
    border-top: 1px dashed var(--line);
    border-bottom: 0;
  }
  .cmdbar__status { font-size: 10.5px; white-space: normal; }

  .site-nav {
    grid-row: 3;
    grid-column: 1 / -1;
    display: none;
    padding: 14px 0 18px;
    border-top: 1px solid var(--line);
    max-height: 64vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav[data-open] { display: flex; }
  .site-nav__list { gap: 1px; }
  .site-nav__link { padding: 11px 12px; font-size: 14.5px; }
  .site-nav__cta { margin-top: 6px; }
}

/* 极窄屏收缩品牌副行 */
@media (max-width: 420px) {
  .brand__tag { display: none; }
  .cmdbar__quick a { padding: 4px 9px; font-size: 10.5px; }
}

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

.site-footer {
  position: relative;
  margin-top: 104px;
  padding-top: 60px;
  overflow: hidden;
  color: var(--muted);
  border-top: 2px solid var(--line);
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(30, 155, 155, 0.14), transparent 58%),
    linear-gradient(180deg, #0C1A31 0%, #081226 58%, #060D1C 100%);
}

.footer-arc {
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(30, 155, 155, 0.20);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 155, 155, 0.10), transparent 64%);
  pointer-events: none;
}
.footer-arc::before,
.footer-arc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(30, 155, 155, 0.18);
}
.footer-arc::before { inset: 72px; }
.footer-arc::after { inset: 150px; border-style: solid; border-color: rgba(240, 138, 75, 0.16); }

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.15fr;
  gap: 44px;
  padding-bottom: 46px;
}

.footer-brand__name {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  background: var(--lake);
  color: #04121F;
  font-size: 13px;
  line-height: 1;
  border: 2px solid var(--ink);
}

.footer-brand__tag {
  max-width: 34ch;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer-legal a {
  font-size: 12.5px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--sunset); border-bottom-color: var(--sunset); }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lake);
}
.footer-col__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.footer-list {
  display: grid;
  gap: 7px;
}
.footer-list a {
  display: inline-block;
  font-size: 13.5px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-list a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  vertical-align: 3px;
  border: 1px solid var(--earth);
  transform: rotate(45deg);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.footer-list a:hover,
.footer-list a:focus-visible { color: var(--ink); }
.footer-list a:hover::before,
.footer-list a:focus-visible::before { border-color: var(--lake); background: var(--lake); }

.footer-contact__list {
  display: grid;
  gap: 11px;
}
.footer-contact__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--earth);
}
.footer-contact__row dd {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.footer-note {
  max-width: 40ch;
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--lake);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-bottom__meta { margin: 0; max-width: none; }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-footer { margin-top: 72px; padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 34px; }
  .footer-brand__tag { max-width: none; }
  .footer-contact__row { grid-template-columns: 66px minmax(0, 1fr); }
  .footer-arc { right: -220px; bottom: -260px; opacity: 0.6; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   动效
   ============================================================ */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-ready [data-reveal].is-visible {
  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;
  }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover, .btn:focus-visible { transform: none; }
  .scroll-meter__bar { transition: none; }
}
