/* ============================================================
   易倍体育赛事 · 共享样式 /assets/site.css
   V3.1 · 技术蓝图 × 夜间跟队工作台
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --ink: #071018;
  --night: #0B1B2B;
  --night-soft: #10283C;
  --teal: #0E3B3A;
  --indigo: #2A2450;
  --wine: #4A1F2B;
  --lime: #B8FF3D;
  --orange: #FF7A1A;
  --card: #EDF2EC;
  --grey: #8C9A93;
  --mist: #F7FAF4;
  --body: #CFDAD3;

  --line: rgba(140, 154, 147, 0.26);
  --line-strong: rgba(140, 154, 147, 0.48);

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular",
    ui-monospace, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-hard: 6px 6px 0 rgba(7, 16, 24, 0.55);
  --shadow-float: 0 26px 44px -32px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

/* ---------- 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ============================================================
   头部 · 命令栏
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 27, 43, 0.96);
  border-bottom: 1px solid var(--line-strong);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

.cmd-meter {
  position: relative;
  height: 2px;
  background: rgba(140, 154, 147, 0.18);
  overflow: hidden;
}

.cmd-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(184, 255, 61, 0.55);
}

.cmd-bar { position: relative; }

.cmd-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px var(--gutter);
  min-height: 56px;
}

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

.brand__mark {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 61, 0.45);
  padding: 4px 8px;
  white-space: nowrap;
}

.brand__name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--grey);
  padding-left: 14px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.brand:hover .brand__mark { border-color: var(--lime); }
.brand:hover .brand__name { color: var(--lime); }

/* 检索入口 */
.cmd-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 380px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.55);
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.cmd-search:hover,
.cmd-search:focus-visible {
  border-color: var(--lime);
  color: var(--mist);
  background: rgba(7, 16, 24, 0.9);
}

.cmd-search__glyph {
  color: var(--lime);
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.cmd-search__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-search__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 2px 5px;
}

/* 状态提示 */
.cmd-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: rgba(247, 250, 244, 0.72);
  white-space: nowrap;
}

.cmd-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  animation: cmdPulse 2.6s ease-in-out infinite;
}

@keyframes cmdPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 255, 61, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(184, 255, 61, 0); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(184, 255, 61, 0.08);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 主导航 */
.primary-nav {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 40, 60, 0.55), rgba(11, 27, 43, 0));
}

.primary-nav__list {
  display: flex;
  align-items: stretch;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav__list::-webkit-scrollbar { display: none; }

.primary-nav__item {
  flex: 0 0 auto;
  border-left: 1px solid var(--line);
}

.primary-nav__item:last-child { border-right: 1px solid var(--line); }

.primary-nav__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 18px;
  border-bottom: 2px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(247, 250, 244, 0.74);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--mist);
  background: rgba(184, 255, 61, 0.09);
}

.primary-nav__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--grey);
  transition: color 0.18s ease;
}

.primary-nav__link:hover .primary-nav__index { color: var(--lime); }

.primary-nav__link[aria-current="page"] {
  color: var(--lime);
  background: rgba(184, 255, 61, 0.07);
  border-bottom-color: var(--lime);
}

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

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  position: relative;
  background: var(--night);
  border-top: 1px solid var(--line-strong);
  color: var(--body);
}

.foot-rule {
  height: 12px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 1px,
    transparent 1px 28px
  );
  opacity: 0.7;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(28px, 4vw, 48px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}

.foot-brand__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--lime);
}

.foot-brand__line {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--mist);
}

.foot-brand:hover .foot-brand__line { color: var(--lime); }

.foot-scope {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--grey);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 3.5vw, 40px);
  padding-top: clamp(24px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}

.foot-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--lime);
}

.foot-links { display: grid; gap: 2px; }

.foot-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(207, 218, 211, 0.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--lime);
  border-bottom-color: rgba(184, 255, 61, 0.5);
}

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

.foot-contact__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--grey);
}

.foot-contact__val {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(26px, 4vw, 42px);
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--grey);
}

.foot-copy { color: var(--mist); }
.foot-icp { color: var(--grey); }
.foot-note { flex: 1 1 260px; min-width: 0; color: var(--grey); }

/* ============================================================
   通用布局与文字
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 96px); }

.bp-grid {
  background-image:
    linear-gradient(to right, rgba(140, 154, 147, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 154, 147, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.prose {
  max-width: 72ch;
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.9;
  color: var(--body);
}

.prose p { margin: 0 0 1.1em; }

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--mist);
}

.prose ul { margin: 0 0 1.1em; padding-left: 0; }

.prose li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 16px;
}

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

.prose a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 255, 61, 0.5);
}

/* 关键词高亮 */
mark.highlight,
.highlight {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 0 0.18em;
  border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s ease, color 0.18s ease;
}

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

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

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

.btn--orange {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--line-strong);
  box-shadow: 4px 4px 0 rgba(7, 16, 24, 0.85);
}

.btn--ghost:hover {
  color: var(--lime);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(7, 16, 24, 0.95);
}

/* ---------- 标签与编号 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--mist);
}

.tag--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tag--orange { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.tag--ghost { background: transparent; color: var(--grey); }

.index-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* ---------- 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  background: rgba(16, 40, 60, 0.28);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--lime);
  opacity: 0.85;
  pointer-events: none;
}

.panel::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}

.panel::after {
  bottom: -2px;
  right: -2px;
  border-left: 0;
  border-top: 0;
}

.card {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.card__title {
  margin: 0 0 8px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #4B5B53;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--grey);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--lime);
  border-bottom-color: rgba(184, 255, 61, 0.5);
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-color: var(--night-soft);
  background-image:
    linear-gradient(135deg, rgba(14, 59, 58, 0.65), rgba(42, 36, 80, 0.55)),
    repeating-linear-gradient(45deg, rgba(140, 154, 147, 0.12) 0 2px, transparent 2px 12px);
}

.media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 93% 100%, 0 100%);
}

.media__stamp {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 6px 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
}

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

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1180px) {
  .brand__tag { display: none; }
}

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

  .cmd-search { max-width: none; flex: 1 1 180px; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: var(--night-soft);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-float);
    transition: max-height 0.32s var(--ease), opacity 0.24s ease,
      visibility 0.32s var(--ease);
  }

  .primary-nav[data-open="true"] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }

  .primary-nav__list {
    flex-direction: column;
    padding: 0;
    overflow: visible;
  }

  .primary-nav__item {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav__item:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .primary-nav__link {
    padding: 15px var(--gutter);
    font-size: 15px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col--wide { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .cmd-search { display: none; }
  .cmd-status { display: none; }
  .brand__mark { font-size: 9.5px; padding: 3px 6px; }
  .brand__name { font-size: 16px; }
  .cmd-bar__inner { min-height: 52px; gap: 10px; }
  .nav-toggle { margin-left: auto; }
}

@media (max-width: 620px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-col--wide { grid-column: auto; }
  .foot-contact__item { grid-template-columns: 1fr; gap: 2px; }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .foot-note { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .nav-toggle__label { display: none; }
}

/* ============================================================
   动效降级
   ============================================================ */

@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;
  }

  html.js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .cmd-status__dot { animation: none; box-shadow: none; }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
