/* ==========================================================================
   易倍体育官网 · 共享站级样式 /assets/site.css
   夜间赛事指挥中心：炭黑底、墨绿面板、荧光黄绿计分状态色
   ========================================================================== */

:root {
  --ink: #0A0D0B;
  --panel: #12201A;
  --panel-2: #1B3327;
  --lime: #C6FF3D;
  --lime-soft: #E4FF9B;
  --blue: #3D7BFF;
  --red: #A12A38;
  --cream: #F3EEE2;
  --muted: #A7B3A9;
  --line: #31403A;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --gutter: 24px;

  --font-display: "Inter Tight", "Inter", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Menlo,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- reset ---------- */

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

* {
  margin: 0;
}

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

html.nav-open {
  overflow: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5.4vw, 66px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 40px);
}

h3 {
  font-size: clamp(19px, 2vw, 24px);
}

h4 {
  font-size: 18px;
}

p {
  overflow-wrap: break-word;
}

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

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

#main-content {
  display: block;
  outline-offset: -4px;
}

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--lime);
  border-radius: 0 0 6px 6px;
  transform: translateY(-130%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- 布局容器 ---------- */

.container {
  width: min(1280px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.container--narrow {
  width: min(880px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.section-desc {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--lime);
}

.rule {
  width: 100%;
  height: 1px;
  margin-block: 32px;
  border: 0;
  background: var(--line);
}

.num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-soft);
  background: rgba(198, 255, 61, 0.07);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.tag--blue {
  color: #9DBAFF;
  background: rgba(61, 123, 255, 0.1);
  border-color: rgba(61, 123, 255, 0.42);
}

.tag--red {
  color: #F0B7BE;
  background: rgba(161, 42, 56, 0.22);
  border-color: rgba(161, 42, 56, 0.55);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn--primary:hover {
  background: var(--lime-soft);
  border-color: var(--lime-soft);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

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

.btn--ghost:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- 卡片 ---------- */

.card {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb a {
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--lime);
}

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

/* ---------- 图片容器基础规则 ---------- */

.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  background-image:
    linear-gradient(rgba(198, 255, 61, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 61, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
}

.media--grid::after {
  opacity: 0.55;
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--21x9 {
  aspect-ratio: 21 / 9;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--1x1 {
  aspect-ratio: 1 / 1;
}

.media--3x4 {
  aspect-ratio: 3 / 4;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 13, 11, 0.93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header[data-condensed="true"] {
  background-color: rgba(10, 13, 11, 0.99);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: min(1280px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  min-height: 72px;
  transition: min-height 0.2s var(--ease);
}

.site-header[data-condensed="true"] .header-inner {
  min-height: 56px;
}

/* 品牌署名 */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.brand-ver {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.brand-ver::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

/* 导航 */

.site-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #5C6B62;
  transition: color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--cream);
  background: var(--panel);
}

.nav-link:hover .nav-idx {
  color: var(--lime);
}

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

.nav-link[aria-current="page"] .nav-idx {
  color: var(--lime);
}

.nav-link[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 7px var(--lime);
}

.nav-extra {
  display: none;
}

/* 右侧动作区 */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.header-copy::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.header-copy:hover {
  color: var(--lime);
  border-color: var(--lime);
}

[data-copy][data-copied="true"] {
  color: var(--lime);
  border-color: var(--lime);
}

/* 移动端菜单按钮 */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.18s var(--ease);
}

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

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

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

/* 阅读进度 */

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(49, 64, 58, 0.65);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-soft) 58%, var(--blue) 100%);
  transition: transform 0.12s linear;
}

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

.site-footer {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--lime) 0%,
    var(--lime) 16%,
    transparent 16%,
    transparent 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px 32px;
  width: min(1280px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding: 64px 0 48px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.footer-tagline {
  max-width: 34ch;
  margin: 14px 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links li {
  margin-bottom: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-note {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cream);
  word-break: break-all;
  border-bottom: 1px dashed var(--line);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.copy-btn:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.copy-btn::after {
  content: "复制";
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #5C6B62;
  transition: color 0.18s var(--ease);
}

.copy-btn[data-copied="true"]::after {
  content: "已复制";
  color: var(--lime);
}

.footer-address {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(1280px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding: 18px 0 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

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

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

@media (max-width: 1240px) {
  .header-copy {
    display: none;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    gap: 12px;
  }

  .site-header[data-condensed="true"] .header-inner {
    min-height: 56px;
  }

  .header-actions .header-copy,
  .header-actions .btn--primary {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    padding: 96px var(--gutter) 40px;
    overflow-y: auto;
    background-color: var(--ink);
    background-image: linear-gradient(180deg, var(--panel) 0%, var(--ink) 52%);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 8px;
    font-size: 16.5px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-idx {
    display: inline;
    min-width: 22px;
    font-size: 11px;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--lime);
    background: rgba(198, 255, 61, 0.07);
  }

  .nav-link[aria-current="page"]::after {
    margin-left: auto;
  }

  .nav-extra {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .nav-extra .btn {
    width: 100%;
    padding: 14px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding: 52px 0 40px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }

  .section-head {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 44px 0 32px;
  }

  .brand-ver {
    display: none;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px;
  }
}

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

  .card:hover,
  .card:focus-within,
  .btn--primary:hover {
    transform: none;
  }
}
