/* ==========================================================================
   易倍体育站 · 共享样式系统 /assets/site.css
   设计语言：技术蓝图网格 × 高原雪域运动风
   版本：1.0
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 色彩体系 */
  --brand-blue: #1E88E5;
  --ink-black: #14181D;
  --snow-white: #F7F9FC;
  --slate-gray: #607D8B;
  --grass-green: #43A047;
  --blood-red: #E53935;
  --gold-amber: #FFB300;
  --deep-blue: #0D1B2A;
  --gold-text: #8A6200;

  /* 字体 */
  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

  /* 字号阶梯 */
  --fs-display: clamp(36px, 6vw, 64px);
  --fs-h1: clamp(30px, 5vw, 48px);
  --fs-h2: clamp(26px, 4vw, 36px);
  --fs-h3: clamp(22px, 3vw, 28px);
  --fs-h4: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;

  /* 间距 */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* 结构 */
  --container-w: 1200px;
  --header-h: 120px;
  --border-w: 2px;
  --shadow-hard: 6px 6px 0 var(--ink-black);
  --shadow-blue: 6px 6px 0 var(--brand-blue);

  /* 蓝图网格 */
  --grid-line: rgba(20, 24, 29, 0.05);

  /* 动效 */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.3s var(--ease);
}

/* ---------- 2. Reset 与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-black);
  background-color: var(--snow-white);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--brand-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul[class],
ol[class] {
  list-style: none;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ---------- 3. 标题排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink-black);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

#main-content {
  min-height: 60vh;
}

#main-content:focus {
  outline: none;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: var(--sp-md);
  z-index: 9999;
  display: inline-block;
  background: var(--brand-blue);
  color: var(--snow-white);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border: var(--border-w) solid var(--ink-black);
  box-shadow: var(--shadow-hard);
  transition: top var(--t-med);
}

.skip-link:focus {
  top: var(--sp-md);
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--snow-white);
  border-bottom: var(--border-w) solid var(--ink-black);
  box-shadow: 0 4px 0 rgba(20, 24, 29, 0.06);
}

.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  border-color: var(--brand-blue);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
  opacity: 0.55;
}

.site-header::before {
  left: 0;
  border-width: 3px 0 0 3px;
}

.site-header::after {
  right: 0;
  border-width: 3px 3px 0 0;
}

/* 阅读进度条 */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 4px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 报头区域 */
.header-masthead {
  background: var(--snow-white);
  border-bottom: 1px solid rgba(20, 24, 29, 0.14);
}

.header-masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-lg);
  padding-block: var(--sp-md);
}

.header-coordinate {
  justify-self: start;
  align-self: center;
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate-gray);
  border-left: 2px solid var(--brand-blue);
  padding-left: var(--sp-sm);
  margin: 0;
  line-height: 1.4;
}

/* 品牌 Logo */
.brand-logo {
  justify-self: center;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-logo-mark {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--snow-white);
  padding: 6px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.brand-logo-text {
  display: inline-block;
  background: var(--ink-black);
  color: var(--snow-white);
  padding: 6px 10px 6px 12px;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%);
}

/* 右侧操作区 */
.header-actions {
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-md);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  padding: 8px;
  border: var(--border-w) solid var(--ink-black);
  background: var(--snow-white);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.nav-toggle:hover {
  background: rgba(30, 136, 229, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-black);
  transition: transform var(--t-med), opacity var(--t-fast);
}

.site-header[data-open="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 导航栏 */
.site-nav {
  background: var(--ink-black);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 var(--sp-sm);
}

.nav-item {
  position: relative;
}

.nav-item + .nav-item::before {
  content: '/';
  position: absolute;
  left: -0.6em;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 400;
}

.nav-link {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.nav-link:hover {
  color: var(--snow-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--snow-white);
  background: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-w) solid var(--ink-black);
  background: var(--snow-white);
  color: var(--ink-black);
  padding: 10px 24px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink-black);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-black);
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--snow-white);
  border-color: var(--ink-black);
  box-shadow: 3px 3px 0 var(--ink-black);
  animation: btn-pulse 2.6s var(--ease) infinite;
}

.btn-primary:hover {
  background: #1565C0;
  box-shadow: 5px 5px 0 var(--ink-black), 0 0 20px 2px rgba(30, 136, 229, 0.35);
}

@keyframes btn-pulse {
  0%,
  100% {
    box-shadow: 3px 3px 0 var(--ink-black), 0 0 0 0 rgba(30, 136, 229, 0.4);
  }
  50% {
    box-shadow: 3px 3px 0 var(--ink-black), 0 0 18px 4px rgba(30, 136, 229, 0.2);
  }
}

.btn-login {
  font-size: 13px;
  padding: 8px 22px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--snow-white);
  color: var(--snow-white);
}

.btn-ghost:hover {
  box-shadow: 4px 4px 0 rgba(247, 249, 252, 0.6);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--deep-blue);
  color: rgba(247, 249, 252, 0.82);
  border-top: var(--border-w) solid var(--ink-black);
  margin-top: var(--sp-3xl);
}

/* 五色经幡色带 */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--brand-blue) 0,
    var(--brand-blue) 20%,
    var(--snow-white) 20%,
    var(--snow-white) 40%,
    var(--blood-red) 40%,
    var(--blood-red) 60%,
    var(--grass-green) 60%,
    var(--grass-green) 80%,
    var(--gold-amber) 80%,
    var(--gold-amber) 100%
  );
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand-blue);
  transform: rotate(45deg);
  opacity: 0.35;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--sp-2xl);
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-md);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: rgba(247, 249, 252, 0.72);
  max-width: 36em;
}

.footer-trust {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-amber);
  border-left: 3px solid var(--gold-amber);
  padding-left: var(--sp-sm);
  line-height: 1.6;
  max-width: 30em;
}

.footer-heading {
  color: var(--snow-white);
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid rgba(247, 249, 252, 0.2);
}

.footer-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm) var(--sp-lg);
}

.footer-link-list a {
  display: inline-block;
  color: rgba(247, 249, 252, 0.75);
  text-decoration: none;
  font-size: var(--fs-small);
  line-height: 1.6;
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-link-list a:hover {
  color: var(--snow-white);
  padding-left: var(--sp-xs);
}

.footer-contact-line {
  font-size: var(--fs-small);
  line-height: 1.8;
  color: rgba(247, 249, 252, 0.75);
  overflow-wrap: anywhere;
}

.footer-contact-note {
  margin-top: var(--sp-md);
  font-size: var(--fs-label);
  line-height: 1.7;
  color: rgba(247, 249, 252, 0.55);
  border-top: 1px solid rgba(247, 249, 252, 0.14);
  padding-top: var(--sp-sm);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-block: var(--sp-md);
  border-top: 1px solid rgba(247, 249, 252, 0.14);
  font-size: var(--fs-label);
  color: rgba(247, 249, 252, 0.5);
}

.footer-copyright {
  margin: 0;
}

.footer-icp {
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  padding-block: var(--sp-md);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-small);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--sp-sm);
  color: var(--slate-gray);
}

.breadcrumb a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--slate-gray);
  font-weight: 400;
}

/* ---------- 10. 章节标签与编号 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--sp-sm);
}

.section-label::before {
  content: attr(data-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  background: var(--ink-black);
  color: var(--snow-white);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.section-label::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--brand-blue);
}

/* ---------- 11. 卡片 ---------- */
.card {
  background: var(--snow-white);
  border: var(--border-w) solid var(--ink-black);
  box-shadow: var(--shadow-hard);
  padding: var(--sp-xl);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--brand-blue);
  border-color: var(--brand-blue);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-xl);
}

/* ---------- 12. 分类标签 ---------- */
.tag {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border: 1px solid var(--ink-black);
  background: var(--snow-white);
  color: var(--ink-black);
  line-height: 1.5;
}

.tag-blue {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(30, 136, 229, 0.08);
}

.tag-green {
  border-color: var(--grass-green);
  color: var(--grass-green);
  background: rgba(67, 160, 71, 0.08);
}

.tag-red {
  border-color: var(--blood-red);
  color: var(--blood-red);
  background: rgba(229, 57, 53, 0.08);
}

.tag-gold {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background: rgba(255, 179, 0, 0.14);
}

/* ---------- 13. 图片占位容器 ---------- */
.img-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  background-color: var(--deep-blue);
  background-image:
    linear-gradient(rgba(247, 249, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 249, 252, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(247, 249, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 249, 252, 0.03) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
  border: var(--border-w) solid var(--ink-black);
  box-shadow: var(--shadow-blue);
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--brand-blue), var(--brand-blue)) center / 100% 1px no-repeat,
    linear-gradient(var(--brand-blue), var(--brand-blue)) center / 1px 100% no-repeat;
  opacity: 0.35;
}

.img-placeholder-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: var(--brand-blue);
  color: var(--snow-white);
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 2px solid var(--snow-white);
  box-shadow: 3px 3px 0 var(--ink-black);
}

/* ---------- 14. 斜切分隔线 ---------- */
.divider-angle {
  position: relative;
  height: 0;
  border: none;
  border-top: var(--border-w) solid var(--ink-black);
  margin: var(--sp-xl) 0;
  overflow: visible;
}

.divider-angle::after {
  content: '';
  position: absolute;
  top: -2px;
  right: 0;
  width: 72px;
  height: 3px;
  background: var(--brand-blue);
  transform: skewX(-35deg) translateX(18px);
  transform-origin: right center;
}

/* ---------- 15. 大数字数据 ---------- */
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-black);
}

.stat-number[data-accent="blue"] {
  color: var(--brand-blue);
}

.stat-number[data-accent="red"] {
  color: var(--blood-red);
}

.stat-number[data-accent="green"] {
  color: var(--grass-green);
}

.stat-number[data-accent="gold"] {
  color: var(--gold-text);
}

/* ---------- 16. 滚动高亮 ---------- */
[data-spy-target].is-active {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  font-weight: 700;
}

/* ---------- 17. 辅助工具 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 18. 焦点可见 ---------- */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ---------- 19. 响应式：平板 768–1023px ---------- */
@media (max-width: 1023px) {
  .nav-link {
    padding: 12px 14px;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .header-masthead-inner {
    gap: var(--sp-md);
  }

  .footer-grid {
    gap: var(--sp-xl);
  }
}

/* ---------- 20. 响应式：移动端 ≤767px ---------- */
@media (max-width: 767px) {
  :root {
    --header-h: 60px;
    --sp-3xl: 64px;
  }

  .container {
    padding-inline: var(--sp-md);
  }

  .header-masthead-inner {
    grid-template-columns: 1fr auto;
    padding-block: var(--sp-sm);
  }

  .header-coordinate {
    display: none;
  }

  .brand-logo {
    justify-self: start;
    font-size: 20px;
  }

  .brand-logo-mark,
  .brand-logo-text {
    padding: 5px 8px;
  }

  .header-actions {
    gap: var(--sp-sm);
  }

  .btn-login {
    font-size: 12px;
    padding: 7px 14px;
  }

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

  .site-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header[data-open="true"] .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding-block: var(--sp-sm);
  }

  .nav-item + .nav-item::before {
    display: none;
  }

  .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid transparent;
    padding: 13px var(--sp-lg);
    letter-spacing: 0.04em;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--brand-blue);
    background: rgba(30, 136, 229, 0.18);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    padding-top: var(--sp-xl);
  }

  .footer-links {
    border-top: 1px solid rgba(247, 249, 252, 0.1);
    padding-top: var(--sp-lg);
  }

  .footer-contact {
    border-top: 1px solid rgba(247, 249, 252, 0.1);
    padding-top: var(--sp-lg);
  }

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

  .card-grid {
    grid-template-columns: 1fr;
  }
}

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

  .btn-primary {
    animation: none !important;
    box-shadow: 3px 3px 0 var(--ink-black);
  }
}
