/* ==========================================================================
   大赢家游戏 · 共享外壳样式表 /assets/site.css
   深空蓝黑打底 · 霓虹橙动作 · 电光青信息 · 纸张叠层面板
   ========================================================================== */

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

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

body { margin: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1020;
  --panel: #111A33;
  --panel-deep: #0C1327;
  --divider: #1B2950;

  --neon: #FF6B1A;
  --neon-hi: #FFA24B;
  --cyan: #22D3EE;
  --mist: #A8F0FA;
  --paper: #F4F7FF;
  --graphite: #6B7A99;
  --ok: #35D07F;

  --shell-w: 1200px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 14px;
  --radius-sm: 10px;

  --edge: rgba(168, 240, 250, 0.22);
  --edge-strong: rgba(34, 211, 238, 0.55);
  --stack: 6px 6px 0 0 #04070d;
  --stack-hover: 6px 9px 0 0 #04070d;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 520px at 10% -10%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(780px 460px at 94% 2%, rgba(255, 107, 26, 0.16), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--paper);
}

h1 { font-weight: 900; }

p { margin: 0 0 1em; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mist); }

strong, b { font-weight: 800; color: var(--paper); }

hr { border: 0; border-top: 1px solid var(--divider); margin: 32px 0; }

::selection { background: rgba(255, 107, 26, 0.85); color: #0A1020; }

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 860px; }

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

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section__lede {
  margin: 0;
  font-size: 16px;
  color: var(--mist);
}

.page-head { padding-block: clamp(28px, 4vw, 54px) 0; }

.page-head__title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(244, 247, 255, 0.86);
}

.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { margin: 1.6em 0 0.5em; font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { margin: 1.35em 0 0.45em; font-size: 19px; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; list-style: revert; }
.prose li { margin-bottom: 0.4em; }

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

/* ---------- 5. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon), var(--neon-hi));
  color: #0A1020;
  box-shadow: 0 5px 0 0 #7a2f00, 0 12px 26px rgba(255, 107, 26, 0.26);
}

.btn--primary:hover {
  color: #0A1020;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 0 #7a2f00, 0 18px 34px rgba(255, 107, 26, 0.36);
}

.btn--ghost {
  background: rgba(34, 211, 238, 0.07);
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--mist);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ---------- 7. 标签 · 圆点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.1); }
.tag--neon { color: var(--neon-hi); border-color: rgba(255, 162, 75, 0.5); background: rgba(255, 107, 26, 0.12); }
.tag--ok { color: var(--ok); border-color: rgba(53, 208, 127, 0.45); background: rgba(53, 208, 127, 0.1); }
.tag--mute { color: var(--graphite); border-color: rgba(107, 122, 153, 0.4); background: rgba(107, 122, 153, 0.1); }

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.18);
}

.status-dot--warn {
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.18);
}

/* ---------- 8. 卡片（纸张叠层） ---------- */
.card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--stack);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--edge-strong);
  box-shadow: var(--stack-hover);
}

.card__label {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 6px 12px;
  border-radius: 0 var(--radius) 0 12px;
  background: linear-gradient(135deg, var(--cyan), var(--mist));
  color: #0A1020;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--graphite);
}

/* ---------- 9. 状态面板 ---------- */
.status-panel {
  padding: 16px 18px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(17, 26, 51, 0.92) 58%);
  box-shadow: var(--stack);
}

.status-panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(168, 240, 250, 0.2);
}

.status-panel__row:last-child { border-bottom: 0; padding-bottom: 0; }
.status-panel__row:first-child { padding-top: 0; }

.status-panel__key {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.status-panel__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

/* ---------- 10. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--panel), var(--panel-deep));
  box-shadow: var(--stack);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x3 { aspect-ratio: 4 / 3; }

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

.media__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--mist);
  background: linear-gradient(180deg, transparent, rgba(10, 16, 32, 0.9));
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--graphite);
}

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

.breadcrumbs li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--divider);
}

.breadcrumbs a { color: var(--mist); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 99;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--neon);
  color: #0A1020;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; color: #0A1020; }

/* ---------- 13. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.97), rgba(10, 16, 32, 0.88));
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-util {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(255, 107, 26, 0.09) 58%, rgba(34, 211, 238, 0));
  border-bottom: 1px solid rgba(27, 41, 80, 0.66);
}

.header-util__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 7px;
}

.brand-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.brand-mark {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.utility-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.utility-link:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.header-main { position: relative; }

.header-main__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

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

.brand-glyph {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--neon), var(--neon-hi) 46%, var(--cyan));
  color: #0A1020;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(168, 240, 250, 0.35), 0 10px 24px rgba(255, 107, 26, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.primary-nav { margin-left: auto; }

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon-hi));
  box-shadow: 0 0 14px rgba(255, 107, 26, 0.85);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.08);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.16); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -6px 0 var(--cyan), 0 6px 0 var(--cyan);
}

.nav-toggle__label { line-height: 1; }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon-hi) 42%, var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--divider);
  background: linear-gradient(180deg, rgba(17, 26, 51, 0.62), rgba(10, 16, 32, 0.96));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), transparent);
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 46px);
  padding-block: clamp(38px, 6vw, 66px);
}

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

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.footer-links a {
  display: inline-block;
  padding-block: 3px;
  color: rgba(244, 247, 255, 0.8);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.footer-stats { margin: 0; }

.footer-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(168, 240, 250, 0.2);
}

.footer-stat dt {
  font-size: 13px;
  color: var(--graphite);
}

.footer-stat dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

.footer-note {
  max-width: 34ch;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}

.footer-contact {
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--mist);
}

.footer-contact li { overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--divider);
}

.footer-legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--graphite);
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.92);
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s linear,
    border-color 0.24s var(--ease),
    color 0.24s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 15. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 96px; }

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

  .primary-nav {
    display: none;
    flex-basis: 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
  }

  .nav-link { justify-content: space-between; padding: 0 12px; }

  .nav-link[aria-current="page"] {
    background: rgba(255, 107, 26, 0.12);
    color: var(--paper);
  }

  .nav-link[aria-current="page"]::after {
    top: 50%;
    right: 14px;
    bottom: auto;
    left: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 107, 26, 0.9);
  }
}

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col:last-child { grid-column: auto; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-tagline { font-size: 11.5px; letter-spacing: 0.02em; }
  .utility-link { padding: 0 8px; font-size: 11.5px; }
  .brand-name { font-size: 16.5px; }
  .brand-glyph { width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- 17. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  .scroll-meter { transition: none; }

  .btn,
  .card,
  .to-top,
  .footer-links a,
  .utility-link,
  .nav-link {
    transition-duration: 0.01ms;
  }

  .btn:hover,
  .btn--primary:hover,
  .btn--ghost:hover,
  .card:hover,
  .footer-links a:hover,
  .to-top[data-visible] {
    transform: none;
  }
}
