/* ============================================================
   bat365在线 · /assets/site.css
   赛场夜光 Site Kit：暗场基底 / 青柠行动色 / 琥珀数据 / 硬边斜切
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --ink-900: #06120D;
  --ink-800: #0C1F17;
  --ink-700: #13291F;

  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --surface-2: var(--ink-700);
  --text: #E9F2EA;
  --muted: #9AAFA0;
  --line: #2A4438;

  --lime: #C8F751;
  --lime-dim: #8FBF2E;
  --amber: #F0A93B;
  --paper-raw: #F3EEDF;

  --accent: var(--lime);
  --accent-2: var(--amber);
  --accent-soft: rgba(200, 247, 81, 0.13);
  --on-accent: #06120D;

  --header-bg: rgba(19, 41, 31, 0.94);
  --header-edge: rgba(0, 0, 0, 0.55);
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 0 rgba(0, 0, 0, 0.4);

  --radius-pill: 999px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;
}

[data-theme="paper"] {
  --bg: #F3EEDF;
  --surface: #EAE3D0;
  --surface-2: #E1D9C2;
  --text: #06120D;
  --muted: #4A6156;
  --line: #BFB69E;
  --accent: #3F6B12;
  --accent-2: #8A5406;
  --accent-soft: rgba(63, 107, 18, 0.12);
  --on-accent: #F6F1E2;
  --header-bg: rgba(243, 238, 223, 0.95);
  --header-edge: rgba(6, 18, 13, 0.18);
  --shadow-hard: 6px 6px 0 rgba(6, 18, 13, 0.2);
  --shadow-soft: 0 6px 0 rgba(6, 18, 13, 0.16);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: clamp(92px, 10vw, 116px);
  transition: background-color 0.28s ease, color 0.28s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding-left: 1.1em; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
hr { border: 0; border-top: 3px solid var(--line); margin: 0; }

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

/* ---------- 基础排版 ---------- */
.display {
  display: block;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  padding-right: 0.06em;
  margin: 0;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--muted);
  text-transform: uppercase;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.link-inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-soft);
  transition: border-color 0.18s ease;
}
.link-inline:hover { border-bottom-color: var(--accent); }

/* ---------- 布局 ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

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

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

.section--tint {
  background: var(--surface);
  border-block: 3px solid var(--line);
}

.rule {
  border: 0;
  border-top: 3px solid var(--line);
  margin-block: clamp(24px, 4vw, 44px);
}

.stack > * + * { margin-top: clamp(14px, 1.8vw, 22px); }

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

.col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 12; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.78em 1.45em;
  border: 3px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--header-edge);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--header-edge);
}

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

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- 标签 / 面包屑 ---------- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.6;
}

.tag--accent { border-color: var(--accent); color: var(--accent); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--line); }

/* ---------- 媒体容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 3px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-hard);
  aspect-ratio: 16 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--panorama { aspect-ratio: 32 / 9; }

.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      rgba(200, 247, 81, 0.09) 14px 16px
    ),
    linear-gradient(140deg, var(--surface-2), var(--ink-900));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

[data-theme="paper"] .media-ph {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      rgba(63, 107, 18, 0.1) 14px 16px
    ),
    linear-gradient(140deg, var(--surface-2), #D8CFB6);
}

.media-cap {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 标签页组件 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 3px solid var(--line);
}

.tab {
  appearance: none;
  padding: 10px 18px;
  border: 3px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.tab:hover { color: var(--text); background: var(--accent-soft); }

.tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: skewX(-6deg);
}

.tabpanel { animation: tabIn 0.3s ease both; }
.tabpanel[hidden] { display: none; }

@keyframes tabIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 折叠组件 ---------- */
.disclosure {
  padding: 0 18px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.disclosure + .disclosure { margin-top: 10px; }

.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.disclosure summary::-webkit-details-marker { display: none; }

.disclosure summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}

.disclosure[open] summary::after { content: "–"; }

.disclosure-body {
  padding-bottom: 18px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- 无障碍 ---------- */
.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border: 3px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

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

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.header-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  z-index: 70;
  pointer-events: none;
  transition: width 0.12s linear;
}

.header-shell {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  background: var(--header-bg);
  border: 3px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding 0.25s ease, box-shadow 0.25s ease,
    background-color 0.28s ease, border-color 0.28s ease;
}

.site-header[data-shrunk="true"] .header-shell {
  padding-block: 5px;
  box-shadow: 0 4px 0 var(--header-edge);
}

.site-header[data-shrunk="true"] .brand-sub { display: none; }
.site-header[data-shrunk="true"] .nav-link { padding-block: 6px; }

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

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: var(--accent);
  transform: skewX(-14deg);
  box-shadow: 3px 3px 0 var(--header-edge);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--bg);
  opacity: 0.85;
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* 导航 */
.nav-primary {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-link[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease,
    background-color 0.18s ease;
}

.tool-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.tool-link-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.tool-theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.tool-theme:hover { border-color: var(--accent); transform: rotate(-16deg); }

.tool-theme-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -5px -3px 0 0 var(--header-edge);
}

.tool-theme[aria-pressed="true"] .tool-theme-dot {
  background: var(--accent-2);
  box-shadow: none;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--surface);
  border-top: 3px solid var(--line);
  color: var(--text);
}

.footer-shell {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.2fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.footer-mark {
  display: inline-block;
  font-size: clamp(28px, 4.6vw, 50px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  color: var(--text);
}

.footer-tagline {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.footer-meta {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 3px solid var(--line);
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}

.footer-contact-label {
  flex: 0 0 auto;
  min-width: 64px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.footer-note {
  margin-top: 14px;
  max-width: 46em;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.footer-copyright { font-weight: 300; letter-spacing: 0.02em; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal .footer-link { font-size: 12px; color: var(--muted); }
.footer-legal .footer-link:hover { color: var(--accent); }

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 700px) {
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 8; }
  .col-8 { grid-column: span 8; }
}

@media (min-width: 1000px) {
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
}

@media (max-width: 1100px) {
  .tool-link-text { display: none; }
  .tool-link { padding: 8px 11px; }
  .brand-sub { display: none; }
  .nav-link { padding-inline: 9px; font-size: 13px; }
}

@media (max-width: 900px) {
  body {
    padding-top: 24px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .site-header {
    inset: auto 0 0 0;
    padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom));
  }

  .header-shell {
    padding: 8px 10px 8px 14px;
    gap: 8px;
    box-shadow: 0 4px 0 var(--header-edge);
  }

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

  .nav-primary {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    display: none;
    justify-content: stretch;
    padding: 10px;
    background: var(--header-bg);
    border: 3px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 6px 0 var(--header-edge);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-height: min(64vh, 460px);
    overflow-y: auto;
  }

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

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

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

  .tool-theme { width: 32px; height: 32px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .tool-link { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 9px 12px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-contact-row { flex-direction: column; gap: 2px; }
  .footer-contact-label { min-width: 0; }
  .media-frame { box-shadow: 4px 4px 0 var(--header-edge); }
}

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

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

  .btn:hover,
  .tool-theme:hover { transform: none; }
}
