/* ============================================================
   TVT体育官网 · 共享样式 /assets/site.css
   夜间赛场指挥台视觉系统
   ============================================================ */

:root {
  --ink: #050807;
  --deep: #06251D;
  --cyan: #00E5C3;
  --mist: #7DFFE8;
  --lime: #C8FF3D;
  --paper: #F4F7F5;
  --graphite: #1A2421;
  --fog: #8AA79C;
  --amber: #FFB547;

  --line: rgba(0, 229, 195, 0.2);
  --line-soft: rgba(244, 247, 245, 0.1);
  --line-strong: rgba(0, 229, 195, 0.46);

  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-pill: 999px;
  --radius-card: 18px;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  --ease-out: cubic-bezier(0.2, 0.65, 0.25, 1);
  --shadow-island: 0 18px 44px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(125, 255, 232, 0.08);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(0, 229, 195, 0.12), transparent 62%),
    radial-gradient(860px 520px at -6% 4%, rgba(200, 255, 61, 0.05), transparent 58%),
    linear-gradient(180deg, #050807 0%, #06211b 46%, #050807 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 229, 195, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 195, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(125% 82% at 50% 0%, #000 18%, transparent 80%);
  mask-image: radial-gradient(125% 82% at 50% 0%, #000 18%, transparent 80%);
}

main { display: block; }

#main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

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

:where(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

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

button { font: inherit; }

a { color: var(--mist); }

::selection {
  background: var(--cyan);
  color: #04110d;
}

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

[id] { scroll-margin-top: 104px; }

/* ---------- 通用排版与标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fog);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 195, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.tag--lime {
  border-color: rgba(200, 255, 61, 0.42);
  background: rgba(200, 255, 61, 0.06);
  color: var(--lime);
}

/* ---------- 容器与网格 ---------- */
.page-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 56px) 0;
  background: linear-gradient(90deg, var(--line-strong), var(--line-soft) 40%, transparent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.btn:hover {
  background: rgba(0, 229, 195, 0.12);
  border-color: var(--mist);
  transform: translateY(-1px);
}

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

.btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04110d;
}

.btn--solid:hover {
  background: var(--mist);
  border-color: var(--mist);
}

.btn--lime {
  border-color: var(--lime);
  color: var(--lime);
}

.btn--lime:hover {
  background: var(--lime);
  color: #0a0f05;
  border-color: var(--lime);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--fog);
}

.btn--ghost:hover {
  background: rgba(244, 247, 245, 0.05);
  border-color: var(--mist);
  color: var(--paper);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 12px;
  color: var(--fog);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--fog);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--fog);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

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

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

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, rgba(6, 37, 29, 0.62), rgba(5, 8, 7, 0.38));
  transition:
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.card:hover {
  border-color: rgba(0, 229, 195, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -36px rgba(0, 0, 0, 0.95);
}

/* ---------- 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(160deg, rgba(0, 229, 195, 0.1), rgba(5, 8, 7, 0.55) 62%),
    repeating-linear-gradient(0deg, rgba(0, 229, 195, 0.06) 0 1px, transparent 1px 28px);
}

.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(180deg, transparent 54%, rgba(5, 8, 7, 0.72));
}

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

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ---------- 视口显现 ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

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

/* ============================================================
   头部
   ============================================================ */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 120;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #04110d;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px var(--gutter) 0;
  transition: padding-top 0.25s var(--ease-out);
}

.site-header.is-stuck { padding-top: 8px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--mist) 55%, var(--lime));
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.header-island {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 35, 28, 0.94), rgba(5, 8, 7, 0.86));
  box-shadow: var(--shadow-island);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: border-color 0.25s var(--ease-out);
}

.header-island--brand {
  flex: none;
  gap: 10px;
  padding: 6px 16px 6px 7px;
  border-radius: var(--radius-pill);
}

.header-island--brand:hover {
  border-color: var(--line-strong);
}

.header-island--nav {
  gap: 3px;
  padding: 5px;
  border-radius: var(--radius-pill);
}

.header-island--tools {
  gap: 2px;
  margin-left: auto;
  padding: 4px 5px;
  border-radius: var(--radius-pill);
}

.site-header.is-stuck .header-island {
  border-color: rgba(0, 229, 195, 0.32);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cyan), #05604f 72%);
  box-shadow:
    inset 0 0 0 1px rgba(244, 247, 245, 0.32),
    0 0 22px -6px rgba(0, 229, 195, 0.7);
}

.brand-mark-core {
  display: block;
  width: 9px;
  height: 16px;
  border: 2px solid #04110d;
  border-radius: 2px;
  transform: skewX(-18deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-slash {
  margin: 0 1px;
  color: var(--cyan);
  font-weight: 400;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-list,
.nav-quick {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-quick {
  margin-left: 2px;
  padding-left: 6px;
  border-left: 1px solid var(--line-soft);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--fog);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(0, 229, 195, 0.1);
}

.nav-link[aria-current="page"] {
  color: #04110d;
  background: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(125, 255, 232, 0.6),
    0 6px 18px -10px var(--cyan);
}

.quick-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.quick-link:hover {
  background: rgba(125, 255, 232, 0.12);
  color: var(--paper);
}

/* 工具 */
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.tool-link {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fog);
  font-size: 13px;
  text-decoration: none;
  transition:
    color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.tool-link:hover {
  color: var(--paper);
  background: rgba(244, 247, 245, 0.06);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 195, 0.06);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.nav-toggle:hover {
  background: rgba(0, 229, 195, 0.14);
  border-color: var(--mist);
}

.nav-toggle-label { white-space: nowrap; }

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition:
    transform 0.25s var(--ease-out),
    opacity 0.25s var(--ease-out);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  padding: clamp(44px, 6vw, 84px) var(--gutter) 26px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(0, 229, 195, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(6, 37, 29, 0.92), #050807 68%);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}

.footer-brand-link .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.footer-tagline {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fog);
}

.rank-entry {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid rgba(200, 255, 61, 0.55);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(200, 255, 61, 0.12), rgba(200, 255, 61, 0.02));
  box-shadow:
    0 0 0 1px rgba(200, 255, 61, 0.05),
    0 18px 30px -24px rgba(200, 255, 61, 0.5);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.rank-entry:hover {
  background: var(--lime);
  color: #0a0f05;
  transform: translateY(-2px);
}

.rank-entry-arrow {
  font-size: 16px;
  transition: transform 0.25s var(--ease-out);
}

.rank-entry:hover .rank-entry-arrow { transform: translateX(4px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px) 0;
}

.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links {
  list-style: none;
}

.footer-link {
  display: inline-block;
  padding: 5px 0;
  color: var(--fog);
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.2s var(--ease-out),
    padding-left 0.2s var(--ease-out);
}

.footer-link:hover {
  color: var(--paper);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
}

.contact-item { margin-bottom: 14px; }

.contact-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
}

.contact-value {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.contact-note {
  max-width: 42ch;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fog);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--fog);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
}

.legal-link {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

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

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  .header-island--brand { padding-right: 12px; }
  .nav-link { padding: 8px 10px; font-size: 12.5px; }
  .quick-link { padding: 8px 9px; font-size: 11.5px; }
  .tool-link { padding: 8px 8px; font-size: 12.5px; }
}

@media (max-width: 900px) {
  .site-header { padding-top: 10px; }

  .header-island--brand { padding: 5px 14px 5px 6px; }

  .header-island--nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(7, 32, 26, 0.99), rgba(5, 10, 8, 0.99));
    box-shadow: 0 34px 70px -34px #000;
  }

  .site-header[data-open] .header-island--nav { display: flex; }

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

  .nav-quick {
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .nav-link {
    display: flex;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
  }

  .quick-link {
    display: flex;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  .header-tools { padding: 4px; }
  .header-tools .version-badge,
  .header-tools .tool-link { display: none; }

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

  .site-header[data-open] .nav-toggle-lines span:first-child {
    transform: translateY(2.75px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle-lines span:last-child {
    transform: translateY(-2.75px) rotate(-45deg);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }

  .footer-top { align-items: flex-start; }
  .rank-entry {
    width: 100%;
    justify-content: space-between;
  }

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

@media (max-width: 600px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--contact { grid-column: auto; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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