/* ============================================================
   tvt体育入口 — /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- tokens ---------- */
:root {
  --bg: #07130F;
  --p1: #0C2019;
  --p2: #123329;
  --line: #1E5C4A;
  --line-soft: rgba(30, 92, 74, .48);
  --accent: #6FF5D2;
  --accent2: #17C7A0;
  --focus: #FF8A3D;
  --focus-ink: #180A02;
  --ink: #F4FBF8;
  --ink-soft: rgba(244, 251, 248, .84);
  --muted: #9DB8AF;
  --num: #E9FFF8;

  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  --shell: min(1240px, 100% - 40px);
  --gutter: clamp(14px, 2.2vw, 28px);
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --bw: 2px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: .32s;
}

@media (max-width: 640px) {
  :root { --shell: min(1240px, 100% - 28px); }
}

/* ---------- 中文排版与语义字体 ---------- */
.display {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
  font-synthesis: weight;
}

.display--sm { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.015em; }

.index-label {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 500;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--num);
  letter-spacing: -.01em;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.delta--down { color: var(--muted); }
.delta--hot { color: var(--focus); }

.prose { max-width: 68ch; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.25; margin: 1.6em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; }
.prose ul { margin: 0 0 1.1em; }
.prose li { position: relative; padding-left: 18px; margin-bottom: .5em; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent2); }
.prose a { color: var(--accent); border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--accent); }

/* ---------- 布局工具 ---------- */
.wrap { width: var(--shell); margin-inline: auto; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--first { padding-top: clamp(28px, 4vw, 48px); }

.stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.rule { height: 2px; background: var(--line); border: 0; margin: 0; }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: var(--p1);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 32px);
}
.panel--flat { box-shadow: none; }
.panel--inset { background: var(--p2); }
.panel--focus { border-color: var(--focus); }

/* ---------- 图片容器（供页面阶段放置图片占位） ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: var(--bw) solid var(--line);
  background: var(--p2);
  width: 100%;
}
.frame > img,
.frame > svg,
.frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.05);
}
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--1x1  { aspect-ratio: 1 / 1; }
.frame--3x4  { aspect-ratio: 3 / 4; }

.frame--halftone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(7, 19, 15, .55) 1px, transparent 1.2px);
  background-size: 4px 4px;
}

.frame--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(7, 19, 15, .42) 0 1px,
    transparent 1px 4px
  );
}

.frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  background: var(--bg);
  border-top: var(--bw) solid var(--line);
  border-right: var(--bw) solid var(--line);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: var(--bw) solid var(--line);
  background: var(--p1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--p2); border-color: var(--accent2); color: var(--accent); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent2); border-color: var(--accent2); color: var(--bg); }

.btn--focus { background: var(--focus); border-color: var(--focus); color: var(--focus-ink); }
.btn--focus:hover { background: #FFA566; border-color: #FFA566; color: var(--focus-ink); }

.btn--sm { padding: 9px 14px; font-size: 12px; }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 面包屑 ---------- */
.crumbs {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.crumbs__list li + li::before {
  content: "／";
  margin: 0 8px;
  color: var(--line);
  font-family: var(--font-mono);
}
.crumbs__list a { color: var(--muted); transition: color .16s var(--ease); }
.crumbs__list a:hover { color: var(--accent); }
.crumbs__list [aria-current="page"] { color: var(--ink); }

/* ============================================================
   页头 —— 居中刊头 / 报头式品牌 / 滚动收拢吸顶
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 19, 15, .95);
  border-bottom: var(--bw) solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 顶部元信息行 */
.masthead__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.masthead__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.masthead__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  background: var(--p1);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.masthead__jump:hover { color: var(--accent); border-color: var(--accent2); background: var(--p2); }
.masthead__jump-key {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

/* 报头区 */
.masthead__core {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 24px 0 16px;
  text-align: center;
}
.masthead__brand-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(30px, 5.6vw, 58px);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--ink);
  font-synthesis: weight;
  transition: font-size .25s var(--ease), letter-spacing .25s var(--ease);
}
.masthead__brand-mark { color: var(--accent); }
.masthead__brand-line {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  transition: opacity .2s var(--ease);
}
.masthead__brand:hover .masthead__brand-line { color: var(--accent2); }

/* 移动端折叠按钮 */
.masthead__toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  background: var(--p1);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
}
.masthead__toggle:hover { color: var(--accent); border-color: var(--accent2); }
.masthead__toggle-bars {
  display: block;
  width: 16px;
  height: 8px;
  background-image: linear-gradient(var(--accent), var(--accent)),
                    linear-gradient(var(--accent), var(--accent));
  background-size: 16px 2px, 16px 2px;
  background-position: 0 0, 0 6px;
  background-repeat: no-repeat;
}
.masthead__toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent2); background: var(--p2); }

/* 导航 */
.masthead__nav {
  width: 100%;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line-soft);
}
.navlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.navlist a {
  display: block;
  padding: 9px 13px;
  border: 1.5px solid transparent;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.navlist a:hover { color: var(--accent); background: var(--p1); border-color: var(--line); }
.navlist a[aria-current="page"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* 移动端导航展开 */
@media (max-width: 899px) {
  .masthead__brand { padding: 20px 56px 14px; }
  .masthead__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px 20px 22px;
    background: var(--p1);
    border-top: var(--bw) solid var(--line);
    border-bottom: var(--bw) solid var(--line);
    box-shadow: var(--shadow);
  }
  .masthead__nav[data-open] { display: block; }
  .navlist { flex-direction: column; align-items: stretch; gap: 3px; }
  .navlist a {
    padding: 13px 12px;
    border-color: var(--line-soft);
    font-size: 13px;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .masthead__toggle { display: none; }
}

/* 滚动收拢吸顶（桌面端） */
@media (min-width: 900px) {
  .masthead.is-condensed .masthead__meta { display: none; }
  .masthead.is-condensed .masthead__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 9px 0;
  }
  .masthead.is-condensed .masthead__core { width: auto; justify-content: flex-start; }
  .masthead.is-condensed .masthead__brand {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 0;
  }
  .masthead.is-condensed .masthead__brand-name { font-size: 22px; letter-spacing: -.01em; }
  .masthead.is-condensed .masthead__brand-line { display: none; }
  .masthead.is-condensed .masthead__nav {
    width: auto;
    padding: 0;
    border-top: 0;
  }
  .masthead.is-condensed .navlist a { padding: 8px 11px; font-size: 11px; letter-spacing: .1em; }
}

/* ---------- 快捷跳转浮层 ---------- */
.jump {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(48px, 12vh, 140px) 16px 24px;
}
.jump[hidden] { display: none; }
.jump__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, .8);
}
.jump__panel {
  position: relative;
  width: min(720px, 100%);
  background: var(--p1);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow);
  max-height: 100%;
  overflow: auto;
}
.jump__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.jump__title { font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.jump__close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1.5px solid var(--line);
  padding: 5px 9px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.jump__close:hover { color: var(--ink); border-color: var(--accent2); }
.jump__body { display: grid; grid-template-columns: 1fr 1fr; }
.jump__col { padding: 18px; }
.jump__col + .jump__col { border-left: 1px solid var(--line-soft); }
.jump__label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.jump__links a {
  display: block;
  padding: 11px 12px;
  margin-bottom: 6px;
  border: 1.5px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.jump__links a:hover { background: var(--p2); border-color: var(--accent2); color: var(--accent); }
@media (max-width: 640px) {
  .jump__body { grid-template-columns: 1fr; }
  .jump__col + .jump__col { border-left: 0; border-top: 1px solid var(--line-soft); }
}

/* ============================================================
   页脚
   ============================================================ */
.foot {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: var(--bw) solid var(--line);
  background: var(--p1);
}
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 4px;
  background:
    linear-gradient(90deg,
      var(--accent) 0 16%,
      var(--focus) 16% 23%,
      var(--accent2) 23% 38%,
      transparent 38%);
}

.foot__inner {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 26px;
}

.foot__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) {
  .foot__top { grid-template-columns: 1.05fr 2fr; }
}

.foot__brand-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.foot__brand-mark { color: var(--accent); }
.foot__brand-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.foot__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
}
@media (min-width: 700px) {
  .foot__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.foot__col-title {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 12px;
}
.foot__col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color .16s var(--ease);
}
.foot__col a:hover { color: var(--ink); }

.foot__contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 780px) {
  .foot__contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
}
.foot__field-label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 7px;
}
.foot__field-value {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  word-break: break-word;
}
.foot__field-value--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--num);
}
.foot__note {
  grid-column: 1 / -1;
  max-width: 72ch;
  padding-left: 14px;
  border-left: var(--bw) solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 22px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.foot__icp { font-family: var(--font-mono); letter-spacing: .04em; }

/* ============================================================
   动效
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

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