/* ==========================================================
   华体育网看台 · 共享样式 /assets/site.css
   设计基调：夜场灯光 × 编辑部数据面板
   ========================================================== */

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

:root {
  --ink-900: #04100F;
  --ink: #071A18;
  --deep: #0E2A26;
  --night: #0B1F33;
  --teal: #123B4A;
  --panel: #1B2B28;
  --mist: #F3F7EE;
  --stone: #C9D6C5;
  --lime: #D8FF3E;
  --ember: #FF5A36;
  --mint: #7CFFCB;
  --violet: #5A4DFF;

  --line: rgba(201, 214, 197, 0.16);
  --line-strong: rgba(201, 214, 197, 0.34);
  --glass: rgba(14, 42, 38, 0.72);

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 3px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: #E4EDE1;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--mint);
  text-decoration-color: rgba(124, 255, 203, 0.45);
  text-underline-offset: 0.22em;
}

a:hover { color: var(--lime); }

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

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

button { font: inherit; color: inherit; }

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

#main-content {
  display: block;
  scroll-margin-top: 96px;
}

/* ---------- 工具类 ---------- */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4.5rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--lime);
  color: #071A18;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: #071A18;
}

/* ==========================================================
   页头
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--mist);
  background:
    linear-gradient(180deg, rgba(7, 26, 24, 0.97) 0%, rgba(11, 31, 51, 0.9) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.6rem var(--gutter);
  min-height: 72px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--mist);
  text-decoration: none;
}

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

.brand-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 32px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(150deg, #17505A 0%, #0A2140 72%, #071A18 100%);
  box-shadow: inset 0 0 0 1px rgba(216, 255, 62, 0.55);
  transform: skewX(-10deg);
}

.brand-glyph::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 6px;
  margin-left: -9px;
  border-radius: 1px;
  background: var(--lime);
  transform: skewX(-16deg);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 6px;
  margin-left: 4px;
  border-radius: 1px;
  background: var(--mint);
  opacity: 0.55;
  transform: skewX(-16deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.03rem;
  line-height: 1.18;
  letter-spacing: 0.03em;
  color: var(--mist);
  white-space: nowrap;
  transform: skewX(-2deg);
}

.brand-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: rgba(201, 214, 197, 0.66);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-width: 0;
}

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

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: 2px;
  color: #DCE7D8;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.14s var(--ease), background-color 0.14s var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(201, 214, 197, 0.48);
  transition: color 0.14s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.16rem;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #FFFFFF;
}

.nav-list a:hover .nav-idx,
.nav-list a:focus-visible .nav-idx {
  color: var(--mint);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--lime);
  background: rgba(216, 255, 62, 0.07);
}

.nav-list a[aria-current="page"] .nav-idx {
  color: var(--lime);
}

.nav-list a[aria-current="page"]::after {
  background: var(--ember);
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(18, 59, 74, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.14s var(--ease), color 0.14s var(--ease);
}

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

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

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--lime);
  transition: transform 0.18s var(--ease), top 0.18s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

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

/* 滚动进度光带 */
.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ember) 0%, var(--lime) 48%, var(--mint) 100%);
  transition: transform 0.12s linear;
}

/* ==========================================================
   按钮
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}

.btn--primary {
  background: var(--ember);
  color: #160704;
  box-shadow: 0 0 0 1px rgba(255, 90, 54, 0.4);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #FF7A57;
  color: #160704;
  box-shadow: 0 0 0 1px rgba(255, 90, 54, 0.75), 0 6px 18px rgba(255, 90, 54, 0.3);
}

.btn--ghost {
  background: rgba(18, 59, 74, 0.4);
  border-color: var(--line-strong);
  color: var(--mist);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(216, 255, 62, 0.08);
}

.btn--lime {
  background: var(--lime);
  color: #0A1F1A;
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: #E6FF7A;
  color: #0A1F1A;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ==========================================================
   通用内容组件
   ========================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(201, 214, 197, 0.6);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(201, 214, 197, 0.32);
}

.breadcrumb a {
  color: rgba(201, 214, 197, 0.82);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--lime); }

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  white-space: nowrap;
}

.solid-panel {
  background: var(--mist);
  color: #162A26;
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.solid-panel h1,
.solid-panel h2,
.solid-panel h3,
.solid-panel h4 {
  color: #081B18;
}

.solid-panel a {
  color: #0B6B57;
  text-decoration-color: rgba(11, 107, 87, 0.45);
}

.solid-panel a:hover { color: #0E7F66; }

.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(216, 255, 62, 0.22);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 214, 197, 0.18);
  background: linear-gradient(150deg, #123B4A 0%, #0B1F33 58%, #071A18 100%);
  aspect-ratio: 16 / 10;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(201, 214, 197, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 214, 197, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 24, 0) 42%, rgba(7, 26, 24, 0.72) 100%);
}

.media-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame figcaption {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(232, 240, 228, 0.82);
}

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

.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.25rem));
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  color: var(--stone);
  background: linear-gradient(180deg, #0B1F33 0%, #0B2622 46%, #061412 100%);
  border-top: 1px solid rgba(216, 255, 62, 0.28);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  pointer-events: none;
  background: linear-gradient(104deg,
    rgba(216, 255, 62, 0.14) 0%,
    rgba(124, 255, 203, 0.06) 28%,
    rgba(90, 77, 255, 0.09) 50%,
    rgba(7, 26, 24, 0) 74%);
  clip-path: polygon(0 0, 100% 0, 100% 7%, 0 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  pointer-events: none;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent, var(--mint) 50%, transparent);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 1.4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

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

.brand--footer {
  gap: 0.85rem;
}

.brand--footer .brand-glyph {
  width: 42px;
  height: 38px;
}

.brand--footer .brand-name {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.footer-line {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(201, 214, 197, 0.78);
}

.footer-heading {
  margin: 0 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mint);
  text-transform: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.32rem 0;
  font-size: 0.9rem;
  color: rgba(226, 236, 220, 0.84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.14s var(--ease), border-color 0.14s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-contact {
  min-width: 0;
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: rgba(201, 214, 197, 0.52);
}

.contact-val {
  color: rgba(234, 242, 230, 0.9);
  word-break: break-word;
}

.footer-note {
  margin: 1.1rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(216, 255, 62, 0.45);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(201, 214, 197, 0.62);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.6rem;
  padding-top: 1.3rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.footer-legal a {
  color: rgba(201, 214, 197, 0.74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.14s var(--ease), border-color 0.14s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--lime);
  border-bottom-color: rgba(216, 255, 62, 0.6);
}

.footer-fineprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(201, 214, 197, 0.6);
}

.footer-fineprint .sep {
  color: rgba(201, 214, 197, 0.28);
}

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

@media (max-width: 1280px) {
  .nav-idx { display: none; }
  .btn { padding: 0.6rem 0.85rem; font-size: 0.84rem; }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding-block: 0.5rem;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 0.4rem var(--gutter) 1.2rem;
    background: linear-gradient(180deg, #0E2A26 0%, #0B1F33 100%);
    border-bottom: 2px solid var(--lime);
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .nav-list a {
    padding: 0.85rem 0.55rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(201, 214, 197, 0.12);
    border-radius: 0;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    background: rgba(216, 255, 62, 0.08);
    border-bottom-color: rgba(216, 255, 62, 0.45);
    box-shadow: inset 3px 0 0 var(--ember);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 1rem;
  }

  .nav-actions .btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

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

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

@media (max-width: 720px) {
  .brand-tagline { display: none; }
  .brand-glyph { width: 32px; height: 28px; }
  .brand-name { font-size: 0.98rem; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

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

  .footer-meta { justify-content: flex-start; }

  .contact-row {
    grid-template-columns: 2.9rem minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0.5rem; }
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .progress-bar { transition: none !important; }

  .skip-link { transition: none !important; }
}
