/* ============================================================
   德信体育 · 数据终端 V2.0 / 共享样式 site.css
   墨绿终端 + 荧光青数据线 + 琥珀橙关键值
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { 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; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B2B26;
  --ink-2: #123B33;
  --ink-3: #0E332D;
  --cyan: #28F0C2;
  --amber: #FFB13B;
  --warm: #E8E2D9;
  --paper: #F7F4EE;
  --black: #101614;
  --mint: #8AD9C6;
  --caramel: #C77A1A;
  --cold: #6B7A75;

  --line: rgba(138, 217, 198, 0.20);
  --line-soft: rgba(138, 217, 198, 0.10);
  --line-dark: rgba(16, 22, 20, 0.14);

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

  --radius-l: 32px;
  --radius-m: 22px;
  --pill: 999px;

  --shadow-lift: 0 28px 64px -36px rgba(0, 0, 0, 0.9);
  --sp: clamp(16px, 4vw, 40px);
  --maxw: 1440px;

  color-scheme: dark;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.04em; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 84px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -0.03em; }
h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

p { max-width: 38em; text-wrap: pretty; }

strong, b { font-weight: 800; color: var(--amber); }

.mono, .num, [data-year] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

::selection { background: var(--cyan); color: #06241f; }

/* ---------- 4. 容器与基础布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp);
}

.stack { display: grid; gap: clamp(14px, 2vw, 22px); }

.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)); }

/* ---------- 5. 章节导语 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section-title { letter-spacing: -0.04em; }
.section-sub { color: rgba(232, 226, 217, 0.74); font-size: 15.5px; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn--primary { background: var(--cyan); color: #06241f; }
.btn--primary:hover { background: #5cf8d6; transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: #2a1a00; }
.btn--amber:hover { background: #ffc266; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(232, 226, 217, 0.28);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--sm { padding: 0.6em 1.15em; font-size: 13px; }

/* ---------- 7. 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(40, 240, 194, 0.06);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.chip--cyan { background: var(--cyan); border-color: var(--cyan); color: #06241f; font-weight: 700; }
.chip--amber { background: rgba(255, 177, 59, 0.10); border-color: rgba(255, 177, 59, 0.45); color: var(--amber); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cold);
}
.breadcrumb a { color: var(--mint); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumb-item:not(:last-child)::after { content: "/"; color: rgba(107, 122, 117, 0.7); }

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 34px);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(40, 240, 194, 0.34); box-shadow: var(--shadow-lift); }

/* ---------- 10. 图片容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(40, 240, 194, 0.14), transparent 58%),
    linear-gradient(145deg, var(--ink-2), var(--ink));
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 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: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cold);
}

/* ---------- 11. 表格骨架 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cold);
  padding-bottom: 10px;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cold);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(247, 244, 238, 0.9);
  vertical-align: top;
}

/* ---------- 12. 纵向旁注 ---------- */
.aside-note {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

/* ---------- 13. 浅色分区 ---------- */
.surface-paper { background: var(--paper); color: var(--black); }
.surface-warm { background: var(--warm); color: var(--black); }
.surface-paper .section-sub,
.surface-warm .section-sub { color: #3d4a46; }
.surface-paper .eyebrow,
.surface-warm .eyebrow { color: var(--caramel); }
.surface-paper .data-table th,
.surface-warm .data-table th { color: #4d5955; border-bottom-color: var(--line-dark); }
.surface-paper .data-table td,
.surface-warm .data-table td { color: #1c2623; border-bottom-color: rgba(16, 22, 20, 0.10); }

/* ============================================================
   14. 头部
   ============================================================ */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--amber);
  color: #241700;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 43, 38, 0.94);
  border-bottom: 1px solid rgba(40, 240, 194, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  transition: box-shadow 0.24s ease;
}
.site-header.is-stuck { box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.95); }

/* 通道条 */
.header-rail {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
}
.rail-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 7px var(--sp);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail-inner::-webkit-scrollbar { display: none; }

.rail-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  animation: rail-pulse 2.8s ease-out infinite;
}
@keyframes rail-pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 240, 194, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(40, 240, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 240, 194, 0); }
}
.rail-label { white-space: nowrap; color: var(--mint); }
.rail-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  border: 1px solid rgba(138, 217, 198, 0.32);
  border-radius: var(--pill);
  color: var(--mint);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.rail-link:hover { background: var(--cyan); border-color: var(--cyan); color: #06241f; }
.rail-link--accent { border-color: rgba(255, 177, 59, 0.5); color: var(--amber); }
.rail-link--accent:hover { background: var(--amber); border-color: var(--amber); color: #241700; }
.rail-ver { margin-left: auto; padding-left: 8px; white-space: nowrap; color: var(--cold); }

/* 主行 */
.header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: 74px;
  padding: 10px var(--sp);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(40, 240, 194, 0.38);
  border-radius: 13px;
  background: var(--ink-3);
  overflow: hidden;
}
.brand-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24%;
  width: 148%;
  height: 2px;
  background: var(--cyan);
  transform: rotate(-45deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}
.brand-text { display: grid; gap: 1px; }
.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(138, 217, 198, 0.34);
  border-radius: var(--pill);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 4px; transform: rotate(-45deg); }
.nav-toggle-text { line-height: 1; }

/* 导航 */
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--pill);
  color: rgba(247, 244, 238, 0.84);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--cold);
  transition: color 0.2s ease;
}
.nav-link:hover { background: var(--cyan); color: #06241f; }
.nav-link:hover .nav-index { color: rgba(6, 36, 31, 0.62); }
.nav-link[aria-current="page"] { color: var(--amber); }
.nav-link[aria-current="page"] .nav-index { color: var(--amber); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}
.nav-link[aria-current="page"]:hover { background: transparent; color: var(--amber); }

/* 滚动进度线 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(40, 240, 194, 0.10);
  pointer-events: none;
}
.scroll-meter-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.12s linear;
}

/* ============================================================
   15. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid rgba(40, 240, 194, 0.22);
  color: var(--warm);
}
.footer-glow {
  position: absolute;
  top: -160px;
  left: -10%;
  width: 60%;
  height: 340px;
  background: radial-gradient(circle at 32% 42%, rgba(40, 240, 194, 0.18), transparent 66%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(26px, 4vw, 60px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) var(--sp) clamp(26px, 4vw, 40px);
}

.footer-brand { display: grid; align-content: start; gap: 16px; justify-items: start; }
.brand--footer .brand-name { color: var(--paper); }
.footer-note {
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(232, 226, 217, 0.78);
  max-width: 26em;
}
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tag {
  padding: 4px 11px;
  border: 1px solid rgba(138, 217, 198, 0.28);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mint);
  white-space: nowrap;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  align-content: start;
}
.footer-col { display: grid; align-content: start; gap: 14px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-list { display: grid; gap: 9px; }
.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(232, 226, 217, 0.84);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover { color: var(--amber); padding-left: 4px; }
.footer-link--sm {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--cold);
}
.footer-link--sm:hover { color: var(--cyan); padding-left: 0; }

.footer-contact { display: grid; align-content: start; justify-items: start; gap: 11px; }
.footer-contact-line {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 14px;
  color: rgba(232, 226, 217, 0.92);
  max-width: 22em;
}
.footer-contact-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cold);
}
.footer-contact .btn { margin-top: 6px; }

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--sp) 28px;
  border-top: 1px solid rgba(138, 217, 198, 0.16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cold);
}
.footer-legal { max-width: none; }
.footer-copy { max-width: none; color: rgba(232, 226, 217, 0.62); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   16. 滚动显现
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.7, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   17. 焦点与可访问性
   ============================================================ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.surface-paper :where(a, button):focus-visible,
.surface-warm :where(a, button):focus-visible { outline-color: var(--caramel); }

/* ============================================================
   18. 响应式
   ============================================================ */
@media (max-width: 1220px) {
  .nav-index { display: none; }
  .nav-link { padding: 9px 11px; font-size: 14.5px; }
}

@media (max-width: 1040px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .aside-note {
    writing-mode: horizontal-tb;
    padding: 3px 12px;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    letter-spacing: 0.14em;
  }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 120px; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 12px var(--sp) 22px;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(40, 240, 194, 0.22);
    box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    justify-content: flex-start;
    padding: 14px 14px;
    border-radius: 16px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .nav-link[aria-current="page"] { background: rgba(255, 177, 59, 0.10); }
  .nav-link[aria-current="page"]::after { left: 14px; right: auto; width: 22px; bottom: 6px; }
  .nav-index { display: inline; }

  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .header-bar-inner { min-height: 66px; }
}

@media (max-width: 720px) {
  .rail-ver { display: none; }
  .rail-label { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 9.5px; letter-spacing: 0.12em; }
  .nav-toggle { padding: 8px 12px; font-size: 13px; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   19. 减少动态
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .rail-dot { animation: none; box-shadow: 0 0 0 3px rgba(40, 240, 194, 0.22); }
}
