/* ==========================================================================
   易倍体育 · 共享站点样式 /assets/site.css
   深墨绿数据墙 + 荧光青刻度 + 琥珀橙变更信号
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink: #0B0F0E;
  --forest: #0C2B23;
  --forest-deep: #071A15;
  --surface: #163E34;
  --glaze: #2A7A68;
  --neon: #35F2D0;
  --amber: #FFB347;
  --paper: #F2EFE6;
  --moss: #6F8F84;
  --line: #A8B8B0;

  --line-soft: rgba(168, 184, 176, 0.26);
  --line-faint: rgba(168, 184, 176, 0.13);
  --neon-wash: rgba(53, 242, 208, 0.12);
  --amber-wash: rgba(255, 179, 71, 0.14);
  --ink-wash: rgba(11, 15, 14, 0.78);

  /* 字体 */
  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Consolas", "Menlo", "Courier New", monospace;
  --font-serif: Georgia, "Songti SC", "Source Han Serif SC", serif;

  /* 尺度 */
  --shell: 1360px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 84% -12%, rgba(42, 122, 104, 0.22), transparent 62%),
    radial-gradient(90% 70% at 2% 106%, rgba(12, 43, 35, 0.85), transparent 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.008em;
  line-height: 1.1;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 5.6vw, 72px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(18px, 1.9vw, 24px); }

p { line-height: 1.66; }

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

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

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

main { display: block; }

#main-content { scroll-margin-top: 108px; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- 5. 头部外壳 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  transition: background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.site-head.is-stuck {
  background: var(--forest-deep);
  box-shadow: 0 1px 0 var(--line-soft), 0 22px 44px -34px #000;
}

/* 5.1 轮次细带 */
.head-rail {
  background: rgba(7, 26, 21, 0.92);
  border-bottom: 1px solid var(--line-faint);
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.site-head.is-stuck .head-rail {
  background: transparent;
  border-bottom-color: var(--line-soft);
}

.head-rail__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 38px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.head-rail__label {
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  white-space: nowrap;
}

.head-rail__note {
  color: var(--moss);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.round-rail {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.round-rail__tick {
  padding: 2px 9px;
  border: 1px solid var(--line-faint);
  color: var(--moss);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  line-height: 1.5;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.round-rail__tick.is-done {
  color: var(--glaze);
  border-color: rgba(42, 122, 104, 0.55);
}

.round-rail__tick.is-live {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 700;
}

.head-rail__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px 5px 13px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.head-rail__cta:hover,
.head-rail__cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

/* 5.2 主导航行 */
.head-main {
  background: linear-gradient(180deg, var(--ink-wash) 0%, rgba(11, 15, 14, 0) 100%);
  transition: background 0.22s var(--ease);
}

.site-head.is-stuck .head-main { background: transparent; }

.head-main__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 11px var(--gutter);
}

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

.brand__mark {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--glaze) 100%);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  flex: 0 0 auto;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand__sub {
  padding-left: 11px;
  margin-left: 2px;
  border-left: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--moss);
  text-transform: uppercase;
  line-height: 1.2;
}

.brand:hover .brand__text { color: var(--neon); }

/* 导航链接 */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 26px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 9px 2px;
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav__link:hover { color: var(--neon); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--neon);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 38px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: rgba(22, 62, 52, 0.55);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav-toggle:hover { border-color: var(--neon); }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.site-head[data-open] .nav-toggle { border-color: var(--neon); }

.site-head[data-open] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-head[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }

.site-head[data-open] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--forest);
  border-top: 1px solid var(--line-soft);
  color: var(--paper);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(26px, 3.4vw, 42px);
}

.foot-brand__mark {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--glaze) 100%);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.foot-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.foot-brand__tag {
  margin-top: 9px;
  color: var(--moss);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.foot-nav__title {
  margin-bottom: 14px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot-nav__list { display: grid; gap: 8px; }

.foot-nav__link {
  display: inline-block;
  padding: 2px 0;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.foot-nav__link:hover,
.foot-nav__link:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.foot-contact { display: grid; gap: 11px; }

.foot-contact__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.65;
}

.foot-contact__key {
  padding-top: 3px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.foot-contact__val {
  color: var(--paper);
  overflow-wrap: anywhere;
}

/* 6.1 订阅同步细带 */
.foot-sync {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-block: 16px;
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.foot-sync__label {
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sync-devices { display: flex; gap: 6px; }

.sync-device {
  padding: 5px 15px;
  border: 1px solid var(--line-soft);
  color: var(--moss);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.sync-device:hover {
  color: var(--paper);
  border-color: var(--line);
}

.sync-device.is-active {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

.sync-readout {
  margin-left: auto;
  max-width: 56ch;
  color: var(--moss);
  font-size: 12.5px;
  line-height: 1.7;
}

/* 6.2 法务行 */
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 18px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line-faint);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.foot-legal__copy { white-space: nowrap; }

.foot-legal__icp {
  padding: 2px 9px;
  border: 1px solid var(--line-faint);
  color: var(--moss);
}

.foot-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.foot-legal__link {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.foot-legal__link:hover,
.foot-legal__link:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---------- 7. 通用布局组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section--forest {
  background: var(--forest);
  border-block: 1px solid var(--line-faint);
}

.section--deep {
  background: var(--forest-deep);
  border-block: 1px solid var(--line-faint);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}

.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.panel--paper {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.panel--paper h2,
.panel--paper h3 { color: var(--ink); }

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 22px) 100%, 0 100%);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(18px, 3vw, 32px);
  background: var(--line-soft);
}

/* ---------- 8. 基础内容组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--neon);
  flex: 0 0 auto;
}

.lede {
  max-width: 62ch;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--paper);
}

.muted { color: var(--moss); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(22, 62, 52, 0.6);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.tag--live {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.tag--neon {
  background: var(--neon-wash);
  border-color: rgba(53, 242, 208, 0.5);
  color: var(--neon);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), color 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--neon);
  color: var(--neon);
}

.btn--solid {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.btn--amber:hover,
.btn--amber:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.crumbs__link {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.crumbs__link:hover,
.crumbs__link:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.crumbs__sep { color: var(--line-soft); }

.crumbs__current { color: var(--paper); }

.prose { max-width: 68ch; }

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

.prose h2,
.prose h3 { margin-top: 1.9em; }

.prose ul,
.prose ol {
  list-style: none;
  display: grid;
  gap: 0.55em;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 20px;
}

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

/* ---------- 9. 图片容器基础（页面阶段放置占位图） ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(155deg, var(--surface) 0%, var(--forest-deep) 100%),
    var(--forest-deep);
}

.figure__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-faint);
  background: rgba(7, 26, 21, 0.7);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* 页面可用：在 .figure 内做数据叠层的空槽 */
.figure__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1180px) {
  .brand__sub { display: none; }
  .head-rail__note { display: none; }
}

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

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--forest-deep);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -30px #000;
    max-height: 74vh;
    overflow-y: auto;
  }

  .site-head[data-open] .nav { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-faint);
  }

  .nav__link::after { display: none; }

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

  .head-main { background: var(--ink-wash); }

  .split { grid-template-columns: minmax(0, 1fr); }

  .foot-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .head-rail__label { display: none; }

  .round-rail__tick {
    padding: 2px 7px;
    font-size: 11px;
  }

  .head-rail__cta { margin-left: auto; }

  .sync-readout {
    margin-left: 0;
    flex-basis: 100%;
    max-width: none;
  }

  .foot-legal__links { margin-left: 0; }
}

@media (max-width: 600px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }

  .figure--wide .figure__media { aspect-ratio: 16 / 9; }

  #main-content { scroll-margin-top: 96px; }
}

/* ---------- 11. 减少动态偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .skip-link { transition: none; }

  .btn:hover,
  .btn:focus-visible { transform: none; }
}
