/* ============================================================
   环亚体育主站 — 共享站点样式 /assets/site.css
   深海夜幕 · 荧光青 · 琥珀橙：夜间赛事中控台
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --hu-night: #04101B;
  --hu-deep: #071F33;
  --hu-panel: #0B2C47;
  --hu-cyan: #26F2D0;
  --hu-mist: #7FF7E4;
  --hu-amber: #FFB020;
  --hu-amber-deep: #E67A00;
  --hu-ice: #E6F7FB;
  --hu-fog: #96B4C2;
  --hu-line: #1E4A64;

  --hu-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --hu-sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --hu-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  --hu-fs-12: 0.75rem;
  --hu-fs-14: 0.875rem;
  --hu-fs-16: 1rem;
  --hu-fs-20: 1.25rem;
  --hu-fs-24: 1.5rem;
  --hu-fs-32: 2rem;
  --hu-fs-48: 3rem;
  --hu-fs-72: 4.5rem;
  --hu-fs-96: 6rem;

  --hu-measure: 1240px;
  --hu-shadow-hard: 6px 6px 0 rgba(4, 16, 27, 0.55);
  --hu-shadow-hard-lg: 8px 8px 0 rgba(4, 16, 27, 0.6);
}

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

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

body {
  margin: 0;
  background-color: var(--hu-night);
  background-image:
    radial-gradient(900px 520px at 88% -10%, rgba(38, 242, 208, 0.1), transparent 62%),
    radial-gradient(760px 460px at 4% 4%, rgba(11, 44, 71, 0.75), transparent 70%);
  background-repeat: no-repeat;
  color: var(--hu-ice);
  font-family: var(--hu-sans);
  font-size: var(--hu-fs-16);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol {
  padding: 0;
  list-style: none;
}

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

a { color: inherit; }

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

button { background: none; border: 0; }

::selection {
  background: var(--hu-cyan);
  color: #04101B;
}

/* ---------- 3. 中文排版基线 ---------- */
h1, h2 {
  font-family: var(--hu-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--hu-ice);
}

h3, h4, h5 {
  font-family: var(--hu-sans);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--hu-ice);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: var(--hu-fs-20); }
h4 { font-size: var(--hu-fs-16); }

p { line-height: 1.75; }

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

/* ---------- 4. 工具与跳转 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  transform: translateY(-180%);
  padding: 0.7rem 1.15rem;
  background: var(--hu-cyan);
  color: #04101B;
  font-size: var(--hu-fs-14);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #04101B;
  box-shadow: var(--hu-shadow-hard);
  transition: transform 0.18s ease;
}

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

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #071F33 0%, #04101B 100%);
  border-bottom: 2px solid var(--hu-line);
  box-shadow: 0 20px 36px -28px rgba(0, 0, 0, 0.95);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--hu-cyan) 0%, rgba(38, 242, 208, 0.1) 42%, rgba(30, 74, 100, 0.2) 66%, var(--hu-amber) 100%);
  pointer-events: none;
}

.header-inner {
  width: min(var(--hu-measure), 100% - 2rem);
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-block: 0.85rem;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--hu-ice);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: var(--hu-panel);
  border: 2px solid var(--hu-line);
  box-shadow: 4px 4px 0 rgba(4, 16, 27, 0.85);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(140deg, var(--hu-cyan) 0%, #0B2C47 82%);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  background: var(--hu-cyan);
}

.brand-text {
  display: block;
  line-height: 1.15;
}

.brand-name {
  display: block;
  font-family: var(--hu-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hu-ice);
}

.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--hu-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--hu-mist);
}

.league-dial {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.26rem 0.6rem;
  border: 1px solid var(--hu-line);
  background: rgba(11, 44, 71, 0.55);
  color: var(--hu-fog);
  font-family: var(--hu-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.league-dial::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--hu-cyan);
  box-shadow: 0 0 0 3px rgba(38, 242, 208, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  display: block;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.55rem 0.72rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hu-fog);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.22rem;
  height: 2px;
  background: var(--hu-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover {
  color: var(--hu-ice);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: #04101B;
  background: var(--hu-cyan);
  box-shadow: 3px 3px 0 rgba(38, 242, 208, 0.22);
}

.nav-link[aria-current="page"]::after {
  display: none;
}

.header-cta {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  border: 2px solid var(--hu-line);
  color: var(--hu-ice);
  font-family: var(--hu-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--hu-cyan);
  color: var(--hu-cyan);
}

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

.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
}

.nav-toggle-label {
  line-height: 1;
}

.header-context {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0 0 0.55rem;
  font-family: var(--hu-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--hu-fog);
}

.header-context::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--hu-mist);
  box-shadow: 0 0 0 3px rgba(127, 247, 228, 0.14);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(700px 380px at 84% 0%, rgba(38, 242, 208, 0.09), transparent 66%),
    var(--hu-deep);
  border-top: 2px solid var(--hu-line);
  color: var(--hu-fog);
  font-size: var(--hu-fs-14);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: min(340px, 46%);
  height: 2px;
  background: linear-gradient(90deg, var(--hu-cyan), rgba(38, 242, 208, 0));
}

.footer-inner {
  width: min(var(--hu-measure), 100% - 2rem);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.2rem;
  padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(1.6rem, 4vw, 2.4rem);
}

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

.footer-mark {
  padding-left: 0.85rem;
  border-left: 4px solid var(--hu-cyan);
  font-family: var(--hu-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.09em;
  color: var(--hu-ice);
}

.footer-tagline {
  margin-top: 0.7rem;
  font-family: var(--hu-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--hu-mist);
}

.footer-note {
  margin-top: 0.85rem;
  max-width: 34ch;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--hu-fog);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.7rem 1.4rem;
}

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

.footer-col-title {
  margin-bottom: 0.85rem;
  font-family: var(--hu-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hu-ice);
}

.footer-col-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  background: var(--hu-cyan);
  transform: translateY(-1px) rotate(45deg);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-link {
  color: var(--hu-fog);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: var(--hu-cyan);
  border-bottom-color: var(--hu-cyan);
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--hu-ice);
  word-break: break-word;
}

.footer-contact-label {
  display: block;
  font-family: var(--hu-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--hu-mist);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  padding: 1rem 0 1.7rem;
  border-top: 1px solid var(--hu-line);
  font-family: var(--hu-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--hu-fog);
}

.footer-copy {
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.footer-legal-link {
  color: var(--hu-fog);
  text-decoration: none;
  border-bottom: 1px dotted var(--hu-line);
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.footer-icp {
  line-height: 1.6;
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.1rem;
  border: 2px solid transparent;
  font-family: var(--hu-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--hu-cyan);
  color: #04101B;
  box-shadow: 4px 4px 0 rgba(38, 242, 208, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(38, 242, 208, 0.28);
}

.btn--ghost {
  border-color: var(--hu-line);
  background: transparent;
  color: var(--hu-ice);
}

.btn--ghost:hover {
  border-color: var(--hu-cyan);
  color: var(--hu-cyan);
}

.btn--amber {
  background: var(--hu-amber);
  color: #1B0F00;
  box-shadow: 4px 4px 0 rgba(255, 176, 32, 0.18);
}

.btn--amber:hover {
  transform: translateY(-2px);
  background: #FFC24D;
}

.btn:active {
  transform: translateY(0);
}

/* ---------- 8. 面包屑 / 容器 / 长文 ---------- */
.breadcrumb {
  font-family: var(--hu-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--hu-fog);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--hu-line);
}

.breadcrumb-link {
  color: var(--hu-fog);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.breadcrumb-current {
  color: var(--hu-ice);
}

.page-shell {
  width: min(var(--hu-measure), 100% - 2rem);
  margin-inline: auto;
}

.prose {
  max-width: 72ch;
  color: #C4DFE8;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.prose strong {
  color: var(--hu-ice);
}

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

.prose ul,
.prose ol {
  padding-left: 1.15rem;
  list-style: square;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose blockquote {
  padding-left: 1rem;
  border-left: 4px solid var(--hu-cyan);
  font-family: var(--hu-serif);
  color: var(--hu-mist);
}

/* ---------- 9. 网格与基础组件 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

.grid--even {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.band {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.7rem;
  scroll-snap-type: x mandatory;
}

.band > * {
  flex: 0 0 clamp(240px, 32vw, 320px);
  scroll-snap-align: start;
}

.band::-webkit-scrollbar {
  height: 6px;
}

.band::-webkit-scrollbar-track {
  background: var(--hu-deep);
}

.band::-webkit-scrollbar-thumb {
  background: var(--hu-line);
}

.panel {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--hu-panel);
  border: 2px solid var(--hu-line);
  box-shadow: var(--hu-shadow-hard);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  background: var(--hu-cyan);
  color: #04101B;
  font-family: var(--hu-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.tag--amber {
  background: var(--hu-amber);
  color: #1B0F00;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--hu-line);
  background: transparent;
  color: var(--hu-fog);
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.chip:hover,
.chip[aria-pressed="true"] {
  border-color: var(--hu-cyan);
  color: var(--hu-cyan);
  background: rgba(38, 242, 208, 0.07);
}

.kpi {
  display: grid;
  gap: 0.2rem;
}

.kpi-value {
  font-family: var(--hu-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--hu-amber);
}

.kpi-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--hu-fog);
}

.kpi--cyan .kpi-value {
  color: var(--hu-cyan);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hu-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--hu-mist);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--hu-cyan);
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: var(--hu-line);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--hu-line);
  background: linear-gradient(150deg, #0B2C47 0%, #04101B 72%);
  box-shadow: var(--hu-shadow-hard-lg);
}

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

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(4, 16, 27, 0.88), transparent);
  pointer-events: none;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.6rem 0.85rem;
  font-family: var(--hu-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--hu-ice);
}

/* ---------- 11. 滚动显现协议 ---------- */
.reveal--active {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--active.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (min-width: 720px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 900px) {
  .league-dial {
    display: inline-flex;
  }

  .grid--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

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

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0.6rem 1rem 1.1rem;
    background: #071F33;
    border-top: 1px solid var(--hu-line);
    border-bottom: 3px solid var(--hu-cyan);
    box-shadow: 0 26px 44px -22px rgba(0, 0, 0, 0.95);
  }

  .main-nav[data-open="true"] {
    display: block;
  }

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

  .nav-item {
    display: block;
    border-bottom: 1px solid var(--hu-line);
  }

  .nav-link {
    padding: 0.9rem 0.5rem;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .header-cta {
    display: none;
  }

  .header-context {
    justify-content: flex-start;
    font-size: 0.6rem;
    line-height: 1.65;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 1rem;
  }

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

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

/* ---------- 13. 动效降级 ---------- */
@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;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .reveal--active {
    opacity: 1;
    transform: none;
  }
}
