/* =========================================================
   星空体育赛事 · 共享样式 /assets/site.css
   深空黑底 + 蓝图网格 + 荧光青锚点
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #05070F;
  --night: #0B1226;
  --panel: #121A33;
  --nebula: #8B5CF6;
  --cyan: #38F2E0;
  --electric: #2F7BFF;
  --red: #FF3B4E;
  --yellow: #FFD166;
  --moon: #EAF0FF;
  --mist: #8A94B3;

  --line: rgba(138, 148, 179, .22);
  --line-soft: rgba(138, 148, 179, .12);
  --cyan-soft: rgba(56, 242, 224, .14);

  --font-sans: "HarmonyOS Sans SC", "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, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --pad-x: clamp(20px, 5vw, 72px);
  --gutter: clamp(16px, 2vw, 24px);
  --maxw: 1280px;
  --cut: 14px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--moon);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 星空底：径向星云 + 蓝图网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 78% -14%, rgba(139, 92, 246, .24), transparent 62%),
    radial-gradient(920px 540px at 4% 6%, rgba(47, 123, 255, .17), transparent 66%),
    radial-gradient(760px 520px at 52% 112%, rgba(56, 242, 224, .10), transparent 70%),
    var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138, 148, 179, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 148, 179, .075) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(130% 92% at 50% 0%, #000 18%, transparent 78%);
  mask-image: radial-gradient(130% 92% at 50% 0%, #000 18%, transparent 78%);
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--moon);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s var(--ease);
}

a:hover { color: #82FBF0; }

button { font: inherit; color: inherit; }

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

::selection {
  background: rgba(56, 242, 224, .3);
  color: var(--moon);
}

/* ---------- 3. 排版与工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(52px, 8vw, 104px); }

.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

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

/* ---------- 4. 通用交互 ---------- */
.link-underline {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease),
              transform .22s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #041219;
  box-shadow: 0 14px 34px -18px rgba(56, 242, 224, .9);
}

.btn--primary:hover {
  background: #6BF8EC;
  color: #041219;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -16px rgba(56, 242, 224, .85);
}

.btn--ghost {
  background: rgba(11, 18, 38, .6);
  border-color: rgba(138, 148, 179, .34);
  color: var(--moon);
}

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

/* ---------- 6. 面板 / 胶囊 ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(158deg, rgba(18, 26, 51, .95), rgba(11, 18, 38, .88));
  border: 1px solid var(--line);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 18, 38, .66);
  color: var(--mist);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.chip:hover {
  color: var(--moon);
  border-color: rgba(56, 242, 224, .4);
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(56, 242, 224, .08);
  box-shadow: inset 0 0 0 1px rgba(56, 242, 224, .3);
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mist);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumbs li + li::before {
  content: "";
  display: block;
  width: 12px;
  height: 1px;
  background: var(--line);
  flex: none;
}

.crumbs a {
  color: var(--mist);
  text-decoration: none;
}

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

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

/* ---------- 8. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(139, 92, 246, .18), rgba(47, 123, 255, .12) 46%, rgba(5, 7, 15, .92)),
    var(--panel);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.figure__media,
.figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.figure--cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.figure__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 16px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--moon);
  background: linear-gradient(to top, rgba(5, 7, 15, .94), rgba(5, 7, 15, 0));
}

.figure__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 7, 15, .78);
  border: 1px solid rgba(56, 242, 224, .4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
}

/* ---------- 9. 头部 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #041219;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; color: #041219; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding-bottom: 10px;
  background: rgba(5, 7, 15, 0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              -webkit-backdrop-filter .3s var(--ease), backdrop-filter .3s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(5, 7, 15, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(138, 148, 179, .18);
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--moon);
  text-decoration: none;
  flex: none;
}

.brand-lockup:hover { color: var(--moon); }

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  background: linear-gradient(145deg, var(--cyan) 0%, var(--electric) 52%, var(--nebula) 100%);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(0 0 12px rgba(56, 242, 224, .45));
  transition: transform .3s var(--ease);
}

.brand-lockup:hover .brand-mark { transform: rotate(90deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--mist);
  line-height: 1.4;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(138, 148, 179, .3);
  border-radius: 999px;
  background: rgba(11, 18, 38, .82);
  color: var(--moon);
  font-size: 13px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
  flex: none;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s 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 { line-height: 1; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(138, 148, 179, .2);
  border-radius: 999px;
  background: rgba(11, 18, 38, .74);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 20px 48px -30px rgba(0, 0, 0, .95);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { display: flex; }

.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease);
}

.nav-link:hover {
  color: var(--moon);
  background: rgba(56, 242, 224, .08);
}

.nav-link[aria-current="page"] {
  color: #041219;
  background: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 20px -4px rgba(56, 242, 224, .65);
}

.nav-link[aria-current="page"]:hover {
  color: #041219;
  background: var(--cyan);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cyan), #2FD8FF);
  color: #041219;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}

.nav-cta:hover {
  color: #041219;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(56, 242, 224, .7), 0 14px 30px -14px rgba(56, 242, 224, .7);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(138, 148, 179, .1);
  overflow: hidden;
}

.scroll-progress > i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
  box-shadow: 0 0 12px rgba(56, 242, 224, .6);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(139, 92, 246, .2), transparent 64%),
    radial-gradient(720px 340px at 88% 14%, rgba(47, 123, 255, .16), transparent 68%),
    var(--night);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138, 148, 179, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 148, 179, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, .82fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 88px) clamp(30px, 4vw, 46px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer-tagline {
  max-width: 30ch;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-links {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  color: var(--mist);
  font-size: 14.5px;
  text-decoration: none;
}

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

.footer-contact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--mist);
  line-height: 1.7;
}

.footer-contact-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border: 1px solid rgba(56, 242, 224, .38);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--cyan);
  flex: none;
}

.footer-contact strong {
  color: var(--moon);
  font-weight: 500;
}

.footer-contact a {
  color: var(--moon);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 242, 224, .42);
  padding-bottom: 1px;
}

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

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 24px clamp(28px, 4vw, 42px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
}

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

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.legal-link {
  color: var(--mist);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .08em;
}

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

.footer-icp {
  color: rgba(138, 148, 179, .82);
  letter-spacing: .06em;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link {
    padding: 8px 11px;
    font-size: 13px;
  }
  .nav-cta {
    padding: 9px 15px;
    font-size: 12.5px;
  }
  .brand-eyebrow { display: none; }
}

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

  .nav-pill {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 22px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
    padding: 13px 18px;
    font-size: 14px;
  }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --cut: 12px; }

  body { font-size: 15.5px; }

  .header-rail { padding-block: 12px; }

  .brand-mark { width: 30px; height: 30px; }

  .brand-name { font-size: 14.5px; }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .nav-toggle { padding: 8px 13px; }
  .nav-toggle-label { display: none; }
  .footer-tagline { font-size: 14px; }
}

/* ---------- 12. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .brand-lockup:hover .brand-mark { transform: none; }
  .btn--primary:hover,
  .nav-cta:hover { transform: none; }
}
