/* ==========================================================================
   赢德体育 /assets/site.css — 共享外壳与基础组件
   深墨绿画布 · 骨白纸面 · 荧光青柠锚点 · 暖橙事件色
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

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

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1F1A;
  --panel: #123128;
  --panel-2: #1C3A31;
  --bone: #F5F1E6;
  --muted: #A8B5AE;
  --lime: #D8FF3E;
  --orange: #FF7A3D;
  --teal: #5FE0B0;
  --lime-soft: #EFFFAD;
  --line: #335248;
  --line-soft: rgba(51, 82, 72, 0.62);

  --header-h: 72px;
  --page-max: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 2px;

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

  --shadow-sheet: 0 22px 44px -28px rgba(0, 0, 0, 0.92);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 3. 中文排版基座 ---------- */
body {
  margin: 0;
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.6vw + 12px, 17px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--bone);
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 6vw, 84px); }
h2 { font-size: clamp(26px, 3.6vw, 52px); }
h3 { font-size: clamp(19px, 1.9vw, 27px); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.3; letter-spacing: -0.01em; }

p { max-width: 68ch; }

strong { font-weight: 700; color: var(--bone); }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- 4. 无障碍 ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 400;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 10px; outline-offset: 2px; }

/* ---------- 5. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 31, 26, 0.94);
  color: var(--bone);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 31, 26, 0.99);
  box-shadow: 0 16px 34px -22px #000;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  max-width: var(--page-max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 10px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--lime);
  border: 1px solid var(--lime-soft);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  right: 15px; bottom: 15px;
  background: var(--ink);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px; bottom: 8px;
  width: 12px; height: 2px;
  background: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.brand-tag {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* 导航 */
.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
  white-space: nowrap;
  transition: color 0.16s ease;
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.16s ease;
}
.nav-label { display: inline; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 3px;
  height: 1px;
  background: var(--muted);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease), background 0.18s ease;
}
.nav-link:hover { color: var(--lime-soft); }
.nav-link:hover .nav-num { color: var(--lime-soft); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--lime);
  font-weight: 700;
}
.nav-link[aria-current="page"] .nav-num { color: var(--lime); }
.nav-link[aria-current="page"]::after {
  height: 2px;
  background: var(--lime);
  transform: scaleX(1);
}

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(95, 224, 176, 0.16);
}
.status-text { display: inline; }

.header-cta { white-space: nowrap; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--bone);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 0.18s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(216, 255, 62, 0.08);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度条 */
.header-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 100px);
  padding-top: clamp(34px, 5vw, 62px);
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: var(--bone);
}

/* 纸张叠层：顶层露出的纸边 */
.site-footer::before {
  content: "";
  position: absolute;
  left: clamp(10px, 3vw, 44px);
  right: clamp(10px, 3vw, 44px);
  top: -11px;
  height: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom: 0;
}

.footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(22px, 3vw, 38px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(110px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(26px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .brand { padding-block: 0; }
.footer-brand .brand-name { font-size: 22px; }

.footer-tagline {
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.4;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone);
  transition: color 0.16s ease;
}
.footer-link::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.18s var(--ease);
}
.footer-link:hover { color: var(--lime); }
.footer-link:hover::before { width: 10px; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  padding-block: clamp(18px, 2.8vw, 26px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-contact-item { display: inline-block; }
.footer-contact-item + .footer-contact-item { position: relative; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: clamp(16px, 2.4vw, 24px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-copy { display: inline-block; }

.footer-legal {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  letter-spacing: 0.06em;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-policy a {
  color: var(--muted);
  transition: color 0.16s ease;
}
.footer-policy a:hover { color: var(--lime); }

/* ---------- 7. 通用容器与按钮 ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.btn--lime:hover { background: var(--lime-soft); border-color: var(--lime-soft); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--sm { padding: 9px 15px; font-size: 13px; }

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

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: clamp(16px, 2.4vw, 26px) 0;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}
.breadcrumb-link {
  color: var(--muted);
  transition: color 0.16s ease;
}
.breadcrumb-link:hover { color: var(--lime); }
.breadcrumb-item [aria-current="page"] { color: var(--bone); }

/* ---------- 9. 正文容器与网格 ---------- */
.prose {
  max-width: 68ch;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: var(--bone);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(24px, 3vw, 38px); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.1em; }
.prose ul li { list-style: none; position: relative; padding-left: 16px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.82em;
  width: 8px; height: 1px;
  background: var(--lime);
}
.prose ol { list-style: decimal; }
.prose ol li::marker {
  font-family: var(--font-mono);
  color: var(--lime);
}
.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--lime-soft); }
.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--lime);
  color: var(--muted);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--lime-soft);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

/* ---------- 10. 面板、标签、眉标 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--paper {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: var(--ink); }
.panel--paper .eyebrow { color: #4A5F55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: var(--lime);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--bone);
  text-wrap: balance;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}
.tag--lime { color: var(--lime); border-color: var(--lime); }
.tag--orange { color: var(--orange); border-color: var(--orange); }

/* ---------- 11. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
  transition: transform 0.5s var(--ease), filter 0.35s ease;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216, 255, 62, 0);
  pointer-events: none;
  transition: border-color 0.24s ease;
}
.media-frame:hover > img { transform: scale(1.02); filter: saturate(0.9) contrast(1.06); }
.media-frame:hover::after { border-color: rgba(216, 255, 62, 0.55); }

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x5  { aspect-ratio: 4 / 5; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }
.media-frame--3x2  { aspect-ratio: 3 / 2; }
.media-frame--21x9 { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 6px 10px;
  background: rgba(11, 31, 26, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--bone);
}

/* ---------- 12. 标签页（页面阶段组织同级内容） ---------- */
[data-tabs] [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
[data-tabs] [role="tab"] {
  position: relative;
  top: 1px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
[data-tabs] [role="tab"]:hover { color: var(--bone); }
[data-tabs] [role="tab"][aria-selected="true"] {
  color: var(--lime);
  background: var(--panel);
  border-color: var(--line);
}
[data-tabs] [data-tab-panel]:not([hidden]) {
  animation: yde-panel-in 0.18s var(--ease) both;
}
@keyframes yde-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. 显现与计数 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-count] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1240px) {
  .status-text { display: none; }
  .status { gap: 0; }
}

@media (max-width: 1040px) {
  :root { --header-h: 64px; }

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

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.28s var(--ease), visibility 0.28s;
  }
  .header-nav[data-open] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: visible;
    box-shadow: 0 26px 46px -26px #000;
  }

  .nav-list {
    display: block;
    padding: 6px var(--gutter) 20px;
  }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    gap: 10px;
  }
  .nav-num { font-size: 11px; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { padding-left: 12px; }
  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    margin-top: -9px;
    background: var(--lime);
  }

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

@media (max-width: 720px) {
  h1 { font-size: clamp(32px, 9vw, 52px); }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .status { display: none; }
  .brand-tag { display: none; }
  .header-cta { padding: 8px 12px; font-size: 12px; }
  .media-frame--21x9,
  .media-frame--16x9 { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact { flex-direction: column; gap: 6px; }
  .footer-policy { gap: 8px 14px; }
}

@media (min-width: 1600px) {
  :root { --page-max: 1400px; }
}

/* ---------- 15. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .media-frame:hover > img { transform: none; }
  .btn:hover { transform: none; }
}
