/* =========================================================
   博喜体育 · 共享样式表 /assets/site.css
   夜场控制台式视觉：墨绿底、夜场蓝分区、青柠读数、橙行动
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, hr {
  margin: 0;
}

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

img, svg, video, canvas {
  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%; }

/* ---------- tokens ---------- */
:root {
  --bg: #07130F;
  --bg-blue: #0B1B2E;
  --bg-indigo: #141033;
  --bg-wine: #3A1024;
  --panel: #123028;
  --lime: #C8FF3D;
  --orange: #FF6A2B;
  --gold: #E7B75C;
  --text: #E9F1EC;
  --muted: #9CB3AB;

  --line: rgba(233, 241, 236, 0.14);
  --line-soft: rgba(233, 241, 236, 0.07);
  --line-strong: rgba(233, 241, 236, 0.32);

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --stack: clamp(16px, 2vw, 26px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --head-top-h: 76px;
  --head-nav-h: 54px;
}

/* ---------- base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-top-h) + var(--head-nav-h) + 12px);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(11, 27, 46, 0.9), rgba(7, 19, 15, 0) 460px),
    repeating-linear-gradient(90deg, rgba(233, 241, 236, 0.04) 0 1px, transparent 1px 96px);
  background-repeat: no-repeat, repeat;
  background-attachment: fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--lime);
  color: #06120E;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--head-top-h) + var(--head-nav-h) + 12px);
}

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

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

:focus:not(:focus-visible) { outline: none; }

/* ---------- layout containers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.section--blue { background: var(--bg-blue); }
.section--indigo { background: var(--bg-indigo); }
.section--wine { background: var(--bg-wine); }
.section--panel { background: var(--panel); }

.stack {
  display: grid;
  gap: var(--gap, var(--stack));
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

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

.col-3 { grid-column: span 3; }
.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; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- typography ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.display {
  font-size: clamp(44px, 9vw, 128px);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
}

.display-tight {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.num--lime { color: var(--lime); }
.num--orange { color: var(--orange); }
.num--gold { color: var(--gold); }

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

.prose {
  max-width: 68ch;
  color: var(--muted);
}

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

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #06120E;
}

.btn-lime:hover {
  background: transparent;
  color: var(--lime);
}

.btn-ghost { background: transparent; }

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

.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #12060A;
}

.btn-orange:hover {
  background: transparent;
  color: var(--orange);
}

.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- panels & tags ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
}

.panel--blue { background: var(--bg-blue); }
.panel--indigo { background: var(--bg-indigo); }
.panel--wine { background: var(--bg-wine); }

.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--live {
  color: var(--lime);
  border-color: rgba(200, 255, 61, 0.45);
}

.tag--hot {
  color: var(--orange);
  border-color: rgba(255, 106, 43, 0.45);
}

/* ---------- media containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-blue);
  background-image:
    linear-gradient(135deg, rgba(200, 255, 61, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(255, 106, 43, 0.08), transparent 46%),
    repeating-linear-gradient(45deg, rgba(233, 241, 236, 0.05) 0 1px, transparent 1px 11px);
}

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

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

.media::after {
  content: "FIG";
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(156, 179, 171, 0.5);
}

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

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

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

/* ---------- scroll meter (injected by JS) ---------- */
.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}

.scroll-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
}

/* =========================================================
   头部
   ========================================================= */
.site-head {
  position: sticky;
  top: 0;
  z-index: 70;
  color: var(--text);
  background: rgba(7, 19, 15, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.head-top { border-bottom: 1px solid var(--line-soft); }

.head-top .head-inner {
  min-height: var(--head-top-h);
  transition: min-height 0.3s var(--ease);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* 状态 */
.head-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
}

/* 行动区 */
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle-label { line-height: 1; }

.nav-toggle-mark {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-mark::before,
.nav-toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}

.nav-toggle-mark::before { top: 1px; }
.nav-toggle-mark::after { top: 9px; }

.site-head[data-open="true"] .nav-toggle-mark::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-head[data-open="true"] .nav-toggle-mark::after {
  top: 5px;
  transform: rotate(-45deg);
}

/* 导航层 */
.head-nav { background: rgba(11, 27, 46, 0.55); }

.head-nav .head-inner {
  justify-content: space-between;
  gap: 24px;
  min-height: var(--head-nav-h);
  transition: min-height 0.3s var(--ease);
}

.site-nav { display: block; }

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

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(156, 179, 171, 0.7);
  transition: color 0.2s var(--ease);
}

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

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

.nav-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

/* 滚动收窄 */
.site-head.is-condensed .head-top .head-inner { min-height: 58px; }
.site-head.is-condensed .brand-tag { display: none; }
.site-head.is-condensed .head-nav .head-inner { min-height: 44px; }

/* skip link */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: #06120E;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-130%);
  transition: transform 0.24s var(--ease);
}

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

/* =========================================================
   页脚
   ========================================================= */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  color: var(--text);
  border-top: 1px solid var(--line);
  background-color: var(--bg);
  background-image: linear-gradient(
    180deg,
    rgba(11, 27, 46, 0.7) 0%,
    rgba(20, 16, 51, 0.45) 45%,
    rgba(7, 19, 15, 1) 100%
  );
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), rgba(200, 255, 61, 0) 46%, var(--orange));
}

.foot-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr 1.15fr;
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}

.foot-brand { min-width: 0; }

.foot-lead {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.foot-tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.foot-col { min-width: 0; }

.foot-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.foot-link {
  display: inline-block;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.foot-link:hover {
  color: var(--lime);
  transform: translateX(2px);
}

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

.foot-contact {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.foot-contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  word-break: break-all;
}

.foot-contact-address {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  word-break: break-word;
}

.copy-btn {
  justify-self: start;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.copy-btn.is-done {
  color: var(--lime);
  border-color: var(--lime);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.foot-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.foot-note {
  max-width: 54ch;
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--muted);
}

/* =========================================================
   显现动效（仅在 JS 就绪时启用）
   ========================================================= */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    animation: status-pulse 2.4s var(--ease) infinite;
  }

  @keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16); }
    50% { box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.04); }
  }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .foot-contact { grid-column: span 3; }
}

@media (max-width: 1080px) {
  .nav-note { display: none; }
  .head-nav .head-inner { justify-content: flex-start; }
}

@media (max-width: 980px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-12 { grid-column: span 6; }
}

@media (max-width: 900px) {
  :root {
    --head-top-h: 64px;
    --head-nav-h: 0px;
  }

  .head-status { display: none; }

  .head-actions .btn-ghost { display: none; }

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

  .head-actives,
  .head-actions { gap: 8px; }

  .head-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s var(--ease);
    border-top: 1px solid transparent;
  }

  .site-head[data-open="true"] .head-nav {
    max-height: min(74vh, 560px);
    overflow-y: auto;
    border-top-color: var(--line-soft);
  }

  .head-nav .head-inner {
    display: block;
    min-height: 0;
    padding-block: 6px 18px;
  }

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

  .nav-link {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
    color: var(--text);
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line-soft);
    background: rgba(200, 255, 61, 0.06);
  }

  .site-head.is-condensed .head-top .head-inner { min-height: var(--head-top-h); }
  .site-head.is-condensed .brand-tag { display: block; }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .foot-brand { grid-column: span 2; }
  .foot-contact { grid-column: span 2; }
}

@media (max-width: 560px) {
  .head-inner { gap: 10px; }
  .head-actions .btn-lime { padding: 9px 12px; font-size: 12px; letter-spacing: 0.06em; }
  .brand-name { font-size: 15.5px; }
  .brand-tag { font-size: 9px; letter-spacing: 0.14em; }
  .nav-toggle { padding: 8px 10px; font-size: 10px; }
  .foot-meta { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 48px; }
}

@media (max-width: 420px) {
  .head-actions .btn-lime { 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;
    transition-delay: 0ms !important;
  }

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

  .btn:hover,
  .card:hover,
  .foot-link:hover { transform: none; }
}
