/* ===== BOB娱乐场 · 夜间数据舱 共享样式 /assets/site.css ===== */

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

:root {
  --void: #070D17;
  --hull: #111820;
  --panel: #0E2133;
  --teal: #35F2C8;
  --amber: #F4B74A;
  --magenta: #FF4FCF;
  --paper: #EAF4F6;
  --muted: #93A9B8;
  --line: #263B4D;
  --glow: #0B3B38;

  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --max: 1180px;
  --radius: 4px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(112px, 15vw, 156px);
}

body {
  margin: 0;
  background-color: var(--void);
  background-image:
    radial-gradient(90% 60% at 82% -12%, rgba(14, 33, 51, 0.9), transparent 72%),
    radial-gradient(70% 46% at 2% 0%, rgba(11, 59, 56, 0.4), transparent 68%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--paper);
}

p { margin: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--paper); }

ul, ol { margin: 0; padding: 0; }

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

button { font: inherit; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 容器与排版 ---------- */

.shell,
.page-shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.4rem, 6vw, 4.8rem); }

.h-display {
  font-size: clamp(2.7rem, 1.1rem + 7.2vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.h-section {
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  max-width: 32em;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.14rem);
  line-height: 1.85;
  color: var(--muted);
}

.prose {
  max-width: 34em;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}

.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 0.22em; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

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

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

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-line: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid var(--btn-line);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { color: var(--btn-fg); }

.btn--primary {
  --btn-bg: var(--teal);
  --btn-fg: #04120F;
  --btn-line: var(--teal);
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(53, 242, 200, 0);
}

.btn--primary:hover {
  --btn-bg: #62f7d8;
  box-shadow: 0 0 22px -6px rgba(53, 242, 200, 0.72);
}

.btn--ghost:hover {
  --btn-fg: var(--teal);
  --btn-line: var(--teal);
  background: rgba(53, 242, 200, 0.08);
}

.btn--amber {
  --btn-fg: var(--amber);
  --btn-line: rgba(244, 183, 74, 0.5);
}

.btn--amber:hover {
  --btn-fg: #ffd489;
  --btn-line: var(--amber);
  background: rgba(244, 183, 74, 0.1);
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
}

.tag--teal {
  color: var(--teal);
  border-color: rgba(53, 242, 200, 0.42);
  background: rgba(53, 242, 200, 0.08);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(244, 183, 74, 0.42);
  background: rgba(244, 183, 74, 0.08);
}

.tag--magenta {
  color: var(--magenta);
  border-color: rgba(255, 79, 207, 0.42);
  background: rgba(255, 79, 207, 0.08);
}

/* ---------- 面板 / 索引 / 折叠 ---------- */

.panel {
  background:
    linear-gradient(180deg, rgba(14, 33, 51, 0.96), rgba(14, 33, 51, 0.62));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.panel-body { padding: 1.2rem; }

.index-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.index-row a {
  color: var(--paper);
  text-decoration: none;
}

.index-row a:hover { color: var(--teal); }

.index-row a[aria-current="true"],
.index-row a[aria-current="page"] { color: var(--teal); }

.index-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.index-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.fold { border-bottom: 1px solid var(--line); }

.fold > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--teal);
}

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

.fold-body {
  max-width: 36em;
  padding: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- 网格 ---------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 图片容器（页面阶段使用） ---------- */

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(180deg, rgba(11, 59, 56, 0.42), transparent 58%),
    repeating-linear-gradient(90deg, rgba(38, 59, 77, 0.34) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(38, 59, 77, 0.34) 0 1px, transparent 1px 64px);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }

.media-caption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ===== 头部 ===== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 13, 23, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.head-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.head-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  box-shadow: 0 0 14px var(--glow);
  transition: width 0.12s linear;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: var(--gutter);
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  background: var(--teal);
  color: #04120F;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 0.75rem; color: #04120F; }

.head-shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.head-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--gutter) 0.7rem;
}

.masthead-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.masthead-note--left { justify-self: start; }

.masthead-note--right {
  justify-self: end;
  letter-spacing: 0.1em;
  text-align: right;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 242, 200, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(53, 242, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 242, 200, 0); }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-inline: 0.5rem;
  text-decoration: none;
  color: var(--paper);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 1.85rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand:hover .brand-name { color: var(--teal); }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--teal);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-lines i {
  display: block;
  height: 2px;
  background: var(--teal);
  transition: transform 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-lines i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav-bar {
  border-top: 1px solid var(--line);
  padding-inline: var(--gutter);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.72rem clamp(0.7rem, 1.6vw, 1.35rem);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transition: left 0.22s ease, right 0.22s ease;
}

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

.nav-link:hover::after,
.nav-link:focus-visible::after {
  left: 12%;
  right: 12%;
}

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

.nav-link[aria-current="page"]::after {
  left: 12%;
  right: 12%;
  background: var(--amber);
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

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

.site-foot {
  position: relative;
  margin-top: clamp(3.5rem, 9vw, 7rem);
  padding-top: 3px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(11, 59, 56, 0.55), transparent 62%),
    var(--hull);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(244, 183, 74, 0.85), transparent 78%);
}

.foot-shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.2rem, 5vw, 3.6rem) var(--gutter) 1.6rem;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) minmax(160px, 0.75fr) minmax(260px, 1.2fr);
  gap: clamp(1.6rem, 3.2vw, 3rem);
}

.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

.foot-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.foot-tagline {
  max-width: 20em;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
}

.foot-cta { margin-top: 0.2rem; }

.foot-nav-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
}

.foot-nav-list,
.foot-contact-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.foot-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.2rem; }

.foot-link {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.foot-link:hover { color: var(--teal); }

.foot-contact-list { gap: 0.7rem; }

.foot-contact-item {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(38, 59, 77, 0.8);
}

.foot-contact-item:last-child { border-bottom: 0; padding-bottom: 0; }

.foot-contact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.foot-contact-value {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.foot-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-inline-start: auto; }

.foot-legal .foot-link { font-size: 0.78rem; }

.to-top {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.to-top:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(53, 242, 200, 0.08);
}

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

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .head-masthead {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 0.6rem var(--gutter);
  }

  .masthead-note { display: none; }

  .brand { justify-self: start; align-items: flex-start; padding-inline: 0; }

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

  .nav-bar { display: none; padding-inline: 0; }

  .nav-bar[data-open] {
    display: block;
    animation: navIn 0.22s ease both;
  }

  .nav-list { flex-direction: column; align-items: stretch; padding: 0.35rem 0 0.75rem; }

  .nav-link {
    padding: 0.82rem var(--gutter);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(38, 59, 77, 0.5);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(53, 242, 200, 0.12), transparent 70%);
    box-shadow: inset 2px 0 0 var(--teal);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-legal { margin-inline-start: 0; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { align-self: flex-start; }
  .index-row { grid-template-columns: auto minmax(0, 1fr); }
  .index-meta { grid-column: 2; }
}

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

  .head-progress-bar { transition: none; }
  .pulse { animation: none; }
}
