/* =========================================================
   乐动体育平台 · 共享样式表 /assets/site.css
   母题：草皮深绿基底 + 网格细线 + 三档补时刻度 + 切角面板
   ========================================================= */

/* ---------- 01 变量 ---------- */
:root {
  --pitch: #0F3B2E;
  --night: #08110F;
  --lamp: #F2F6F4;
  --paper: #E8E2D4;
  --grid-line: #9AA8A2;
  --orange: #FF6B2C;
  --cyan: #23D3D3;
  --red: #E23A3A;
  --deep: #123A44;
  --yellow: #FFC24B;
  --violet: #6C7A8C;

  --line: rgba(154, 168, 162, 0.32);
  --line-soft: rgba(154, 168, 162, 0.18);
  --line-strong: rgba(154, 168, 162, 0.55);
  --paper-line: rgba(8, 17, 15, 0.14);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-narrow: "Oswald", "Archivo Narrow", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1280px;
  --gutter: 24px;
  --cut: 14px;
}

/* ---------- 02 重置与中文排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--pitch);
  color: var(--lamp);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- 03 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.narrow-label {
  font-family: var(--font-narrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.text-dim { color: var(--grid-line); }
.measure { max-width: 34em; }
.is-dim { opacity: 0.45; }

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

/* ---------- 05 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--cyan);
  color: var(--night);
  font-family: var(--font-narrow);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

/* ---------- 06 头部 ---------- */
.site-header {
  position: relative;
  z-index: 80;
  background: var(--night);
  color: var(--lamp);
  border-bottom: 1px solid var(--line);
}

.header-top {
  background-image: linear-gradient(180deg, #08110F 0%, #0C2A22 100%);
  border-bottom: 1px solid var(--line);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--night);
  background-image: linear-gradient(135deg, #23D3D3 0%, #0F3B2E 100%);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.brand-line {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--lamp);
}

.brand-subline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--grid-line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-strip {
  display: flex;
  align-items: stretch;
  flex: none;
  border-left: 1px solid var(--line);
}

.meta-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 92px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.meta-item:last-child { border-right: 0; }

.meta-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.meta-label {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--grid-line);
}

.header-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 17, 15, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
}

.primary-nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(242, 246, 244, 0.74);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--lamp);
  background: rgba(18, 58, 68, 0.55);
}

.nav-link[aria-current="page"] {
  color: var(--lamp);
  background: rgba(18, 58, 68, 0.78);
  border-bottom-color: var(--orange);
}

.nav-status {
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--grid-line);
  transform: rotate(45deg);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover .nav-status { border-color: var(--cyan); }

.nav-link[aria-current="page"] .nav-status {
  background: var(--orange);
  border-color: var(--orange);
}

.nav-text { white-space: nowrap; }

.header-utility {
  flex: none;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grid-line);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(18, 58, 68, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--lamp);
  font-family: var(--font-narrow);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header[data-open="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg, #23D3D3 0%, #FF6B2C 100%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 07 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--night);
  color: var(--lamp);
  border-top: 1px solid var(--line);
}

.footer-gauge {
  display: flex;
  width: 100%;
  height: 5px;
  background: rgba(154, 168, 162, 0.16);
}

.gauge-bar { height: 100%; }
.gauge-bar[data-tier="T1"] { flex: 3 1 0; background: var(--cyan); }
.gauge-bar[data-tier="T2"] { flex: 2 1 0; background: var(--orange); }
.gauge-bar[data-tier="T3"] { flex: 1 1 0; background: var(--red); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  padding-block: 56px 44px;
}

.footer-brand { grid-column: span 3; }
.footer-col { grid-column: span 2; }
.footer-contact { grid-column: span 3; }

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--lamp);
}

.footer-brand-line {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--cyan);
}

.footer-brand-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--grid-line);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-narrow);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yellow);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: rgba(242, 246, 244, 0.8);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--lamp);
  overflow-wrap: anywhere;
}

.footer-address {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grid-line);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--grid-line);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.footer-note { color: rgba(242, 246, 244, 0.68); }

.footer-year {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 08 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-narrow);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
  background: var(--orange);
  color: var(--night);
}

.btn-primary:hover { background: var(--yellow); }

.btn-ghost {
  background: rgba(18, 58, 68, 0.45);
  border-color: var(--line-strong);
  color: var(--lamp);
}

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

/* ---------- 09 面包屑 ---------- */
.breadcrumb { padding-block: 20px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--grid-line);
}

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

.breadcrumb-item::after {
  content: "/";
  color: rgba(154, 168, 162, 0.6);
}

.breadcrumb-item:last-child::after { content: ""; }

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

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

.band-paper .breadcrumb-list { color: var(--violet); }
.band-paper .breadcrumb-current { color: var(--night); }

/* ---------- 10 正文容器 ---------- */
.prose {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.78;
  color: var(--lamp);
}

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

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin-top: 1.6em;
}

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 0.9em;
  margin-top: 0.4em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--paper);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.band-paper .prose { color: rgba(8, 17, 15, 0.86); }
.band-paper .prose h2,
.band-paper .prose h3 { color: var(--night); }
.band-paper .prose li::before { background: var(--deep); }

/* ---------- 11 章节与色彩分区 ---------- */
.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
}

.section-label {
  display: inline-block;
  font-family: var(--font-narrow);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.section-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.section-note {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--grid-line);
}

.band-paper {
  background: var(--paper);
  color: var(--night);
  border-block: 1px solid var(--paper-line);
}

.band-paper .section-label { color: var(--deep); }
.band-paper .section-note { color: var(--violet); }
.band-paper .section-title { color: var(--night); }

.band-deep {
  background: var(--deep);
  color: var(--lamp);
  border-block: 1px solid var(--line-soft);
}

.note-band {
  background: var(--paper);
  color: var(--night);
  padding-block: 26px;
  border-block: 1px solid var(--paper-line);
}

.note-label {
  font-family: var(--font-narrow);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--deep);
}

.note-text {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(8, 17, 15, 0.78);
}

.slant-rule {
  position: relative;
  height: 26px;
  overflow: hidden;
}

.slant-rule::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform: rotate(-1.2deg);
}

/* ---------- 12 面板 ---------- */
.panel {
  position: relative;
  padding: 28px;
  background: var(--deep);
  color: var(--lamp);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.panel--paper { background: var(--paper); color: var(--night); }
.panel--dark { background: rgba(8, 17, 15, 0.72); }

.panel-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.panel-text {
  font-size: 15px;
  line-height: 1.78;
  color: rgba(242, 246, 244, 0.84);
}

.panel--paper .panel-text { color: rgba(8, 17, 15, 0.8); }

/* ---------- 13 补时档位 ---------- */
.tier-scale {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.tier {
  position: relative;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--line);
  background: rgba(18, 58, 68, 0.4);
}

.tier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
}

.tier[data-tier="T2"]::before { background: var(--orange); }
.tier[data-tier="T3"]::before { background: var(--red); }

.tier-code {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.tier[data-tier="T2"] .tier-code { color: var(--orange); }
.tier[data-tier="T3"] .tier-code { color: var(--red); }

.tier-name {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(242, 246, 244, 0.84);
}

.tier-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  line-height: 1.2;
  color: var(--lamp);
}

.band-paper .tier {
  background: rgba(242, 246, 244, 0.55);
  border-color: var(--paper-line);
}

.band-paper .tier-name { color: rgba(8, 17, 15, 0.78); }
.band-paper .tier-value { color: var(--night); }

/* ---------- 14 筛选 chips ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--lamp);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--night);
}

.chip[aria-pressed="true"]::before {
  content: "✓";
  font-size: 12px;
}

.chip[data-tier="T2"][aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--night);
}

.chip[data-tier="T3"][aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--lamp);
}

/* ---------- 15 标签页 ---------- */
.tabs { display: block; }

.tab-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 14px 20px;
  font-family: var(--font-narrow);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(242, 246, 244, 0.68);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.tab:hover {
  color: var(--lamp);
  background: rgba(18, 58, 68, 0.4);
}

.tab[aria-selected="true"] {
  color: var(--lamp);
  background: rgba(18, 58, 68, 0.8);
  border-bottom-color: var(--orange);
}

.tab-panel { padding-top: 26px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: tabIn 0.18s ease both; }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.band-paper .tab-list { border-bottom-color: var(--paper-line); }
.band-paper .tab { color: rgba(8, 17, 15, 0.6); }
.band-paper .tab:hover { color: var(--night); background: rgba(242, 246, 244, 0.7); }
.band-paper .tab[aria-selected="true"] { color: var(--night); background: rgba(242, 246, 244, 0.9); }

/* ---------- 16 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table caption {
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--grid-line);
}

.data-table th {
  padding: 12px 14px;
  font-family: var(--font-narrow);
  font-size: 11.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: left;
  white-space: nowrap;
  color: var(--grid-line);
  border-bottom: 1px solid var(--line-strong);
}

.data-table td {
  padding: 13px 14px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody tr:hover td { background: rgba(18, 58, 68, 0.35); }

.band-paper .data-table th { color: var(--violet); border-bottom-color: var(--paper-line); }
.band-paper .data-table td { border-bottom-color: var(--paper-line); }
.band-paper .data-table tbody tr:hover td { background: rgba(242, 246, 244, 0.7); }

/* ---------- 17 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(140deg, rgba(35, 211, 211, 0.14) 0%, rgba(8, 17, 15, 0) 58%);
}

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--grid-line);
}

.band-paper .media-caption { color: var(--violet); }

/* ---------- 18 进入视口 ---------- */
[data-lit] { transition: opacity 0.28s ease; }

.js-motion [data-lit]:not(.is-lit) { opacity: 0.15; }

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.js-motion [data-reveal].is-lit {
  opacity: 1;
  transform: none;
}

/* ---------- 19 响应式 ---------- */
@media (max-width: 1024px) {
  .header-utility { display: none; }
  .footer-brand { grid-column: span 4; }
  .footer-contact { grid-column: span 3; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }

  .header-top-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 14px 10px;
  }

  .brand-subline { white-space: normal; }

  .meta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .meta-item {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid var(--line);
  }

  .meta-item:first-child { padding-left: 0; }
  .meta-item:last-child { border-right: 0; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

  .grid > [class^="col-"],
  .grid > [class*=" col-"] { grid-column: span 4; }

  .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-column: span 6; }
  .footer-col { grid-column: span 2; }
  .footer-contact { grid-column: span 6; }
}

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

  .nav-inner {
    justify-content: space-between;
    gap: 12px;
    padding-block: 9px;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0A1714;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.24s ease;
  }

  .site-header[data-open="true"] .primary-nav {
    max-height: 78vh;
    overflow-y: auto;
  }

  .nav-list { flex-direction: column; }

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

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 0;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: transparent;
    border-left: 3px solid var(--orange);
  }

  .tab { padding: 12px 14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    padding-block: 40px 30px;
  }

  .footer-brand { grid-column: span 2; }
  .footer-col { grid-column: span 1; }
  .footer-contact { grid-column: span 2; }

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

  .data-table { font-size: 13px; }
  .data-table th,
  .data-table td { padding: 10px 10px; }
}

/* ---------- 20 减少动效 ---------- */
@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;
  }

  .js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
