/* ============================================================
   九龙体育 · 夜间赛事指挥台 / 共享站点样式
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(43, 231, 255, 0.10), transparent 60%),
    radial-gradient(880px 520px at 6% 2%, rgba(255, 106, 42, 0.07), transparent 58%),
    var(--ink);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

:root {
  --ink: #071426;
  --ink-2: #0B1D33;
  --ink-3: #04101C;
  --cyan: #2BE7FF;
  --orange: #FF6A2A;
  --green: #45E08A;
  --amber: #FFC857;
  --mist: #EAF2FF;
  --steel: #92A8C6;
  --glow: #7CF7FF;
  --line: rgba(146, 168, 198, 0.20);
  --line-strong: rgba(43, 231, 255, 0.38);
  --cut: 18px;
  --wrap: 1280px;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "DIN 2014", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

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

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--glow); }

button { font: inherit; color: inherit; background: none; border: 0; }

strong { color: var(--mist); font-weight: 700; }

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

::selection { background: rgba(43, 231, 255, 0.30); color: #ffffff; }

/* ---------- 通用布局 ---------- */

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

.section { padding-block: clamp(36px, 5.5vw, 84px); }

.band {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}

.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.3;
}

.coord::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex: none;
}

.headline {
  margin-top: 12px;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
}

.lede {
  max-width: 66ch;
  margin-top: 14px;
  color: var(--steel);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn--accent {
  background: linear-gradient(120deg, var(--orange), #ff9a5e);
  color: #170700;
  box-shadow: 0 16px 34px -22px rgba(255, 106, 42, 0.95);
}

.btn--accent:hover {
  color: #170700;
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -22px rgba(255, 106, 42, 1);
}

.btn--ghost {
  background: rgba(11, 29, 51, 0.62);
  border-color: var(--line);
  color: var(--mist);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* ---------- 面板 ---------- */

.panel {
  background: rgba(11, 29, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(18px, 2.4vw, 30px);
}

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

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

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(150deg, var(--ink-2) 0%, var(--ink-3) 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(43, 231, 255, 0.20), transparent 58%),
    radial-gradient(90% 80% at 92% 100%, rgba(255, 106, 42, 0.16), transparent 62%);
}

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

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

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin-inline: 8px;
  color: rgba(146, 168, 198, 0.5);
}
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--cyan); }

/* ---------- 顶部跳转 ---------- */

.skip-link {
  position: fixed;
  top: -80px;
  left: clamp(12px, 2.4vw, 26px);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04101C;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 36px -20px rgba(43, 231, 255, 0.9);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #04101C;
}

/* ============================================================
   页头 / 悬浮胶囊浮岛
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 12px clamp(10px, 2.4vw, 26px) 10px;
  font-size: 14px;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  background: rgba(146, 168, 198, 0.12);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--glow) 45%, var(--orange));
  box-shadow: 0 0 14px rgba(43, 231, 255, 0.75);
}

.header-rail {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.island {
  display: flex;
  align-items: center;
  background: rgba(11, 29, 51, 0.86);
  border: 1px solid rgba(146, 168, 198, 0.20);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 14px 34px -26px #000000,
    inset 0 1px 0 rgba(124, 247, 255, 0.09);
  transition: border-color 0.2s ease, background 0.2s ease;
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .island { background: #0B1D33; }
}

/* 品牌浮岛 */

.island--brand {
  flex: none;
  padding: 5px 18px 5px 6px;
}

.island--brand:hover { border-color: rgba(43, 231, 255, 0.35); }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mist);
}

.brand-mark:hover { color: var(--mist); }

.brand-mark__glyph {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--cyan) 0%, #0A6F8C 58%, var(--orange) 100%);
  color: #03131F;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 20px -8px rgba(43, 231, 255, 0.95);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.brand-mark__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--mist);
  white-space: nowrap;
}

.brand-mark__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--steel);
  white-space: nowrap;
}

/* 栏目浮岛 */

.island--nav {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: none; }

.nav-list a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--steel);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-list a:hover {
  color: var(--mist);
  background: rgba(43, 231, 255, 0.08);
}

.nav-list a[aria-current="page"] {
  color: #03131F;
  font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), #8DF2FF);
  box-shadow: 0 0 24px -10px rgba(43, 231, 255, 0.95);
}

/* 快捷浮岛 */

.island--actions {
  flex: none;
  gap: 6px;
  margin-left: auto;
  padding: 4px 6px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(146, 168, 198, 0.26);
  background: rgba(7, 20, 38, 0.55);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.action-pill:hover {
  color: var(--cyan);
  border-color: rgba(43, 231, 255, 0.55);
}

.action-pill--accent {
  border-color: transparent;
  background: linear-gradient(120deg, var(--orange), #ff9257);
  color: #180800;
  font-weight: 700;
}

.action-pill--accent:hover {
  color: #180800;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -16px rgba(255, 106, 42, 0.95);
}

/* 汉堡按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(43, 231, 255, 0.32);
  background: rgba(43, 231, 255, 0.10);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover { background: rgba(43, 231, 255, 0.20); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: background 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.22s ease, top 0.22s ease;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   页脚 / 指挥台坐标层
   ============================================================ */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
  border-top: 1px solid rgba(146, 168, 198, 0.16);
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(43, 231, 255, 0.10), transparent 62%),
    radial-gradient(700px 320px at 88% 8%, rgba(255, 106, 42, 0.08), transparent 60%),
    var(--ink-3);
  color: var(--mist);
}

.footer-glow {
  position: absolute;
  top: -130px;
  left: 50%;
  width: min(760px, 92%);
  height: 250px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(43, 231, 255, 0.16), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.footer-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(26px, 4vw, 60px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 40px) clamp(26px, 3.4vw, 42px);
}

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

.footer-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-index span {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  background: linear-gradient(120deg, var(--mist) 20%, var(--cyan) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--steel);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  align-content: start;
}

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

.footer-col__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col__list a {
  display: inline-block;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-col__list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(43, 231, 255, 0.5);
}

.footer-contact {
  grid-column: 1 / -1;
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(146, 168, 198, 0.16);
}

.footer-contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 30px;
}

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-contact__v {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px clamp(16px, 4vw, 40px) 28px;
  border-top: 1px solid rgba(146, 168, 198, 0.16);
  font-size: 12.5px;
  color: var(--steel);
}

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

.footer-legal a {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-legal a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(43, 231, 255, 0.5);
}

.footer-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(146, 168, 198, 0.85);
}

/* 返回顶部 */

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 65;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(43, 231, 255, 0.35);
  background: rgba(11, 29, 51, 0.92);
  color: var(--cyan);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 20px 44px -28px #000000;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: rgba(43, 231, 255, 0.18); }

/* ---------- 渐显 ---------- */

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

.reveal-ready [data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
  .header-rail { flex-wrap: wrap; }

  .nav-toggle { display: inline-flex; }

  .island--nav {
    order: 3;
    flex: 1 1 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .island--nav:not([data-open]) { display: none; }

  .island--nav[data-open] {
    display: block;
    animation: navDrop 0.2s ease-out;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .nav-list a {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14.5px;
  }

  .footer-wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
}

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

@media (max-width: 760px) {
  .island--actions .action-pill:not(.action-pill--accent) { display: none; }
}

@media (max-width: 620px) {
  .site-header { padding: 10px clamp(8px, 2.6vw, 14px) 8px; }
  .brand-mark__line { display: none; }
  .brand-mark__name { font-size: 14px; }
  .island--brand { padding: 5px 14px 5px 5px; }
  .brand-mark__glyph { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-icp { margin-left: 0; }
  .to-top { width: 42px; height: 42px; border-radius: 12px; }
}

/* ============================================================
   动效偏好
   ============================================================ */

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

  .to-top { transform: none; }
}
