/* ============================================================
   盛世娱乐站 · 共享样式 /assets/site.css
   深海墨绿底 + 暗金结构 + 霓虹青唯一强调 + 珊瑚橙核验点
   ============================================================ */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
summary { cursor: pointer; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #071A17;
  --ink-800: #0E2A25;
  --ink-700: #143630;
  --gold: #C9A227;
  --gold-hi: #E4C45A;
  --cyan: #3FE0D0;
  --coral: #FF7A59;
  --text: #E8EFEA;
  --muted: #9DB3AC;
  --line: #1F4F46;
  --line-soft: rgba(31, 79, 70, 0.55);

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 68px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.02vw, 17px);
  line-height: 1.85;
  font-weight: 400;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1200px 620px at 80% -12%, rgba(63, 224, 208, 0.07), transparent 62%),
    radial-gradient(900px 520px at -5% 100%, rgba(201, 162, 39, 0.06), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.35rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(63, 224, 208, 0.28); color: #ffffff; }

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

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

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-800);
  padding-block: clamp(18px, 3vw, 30px);
}

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.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)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }

.grid-overlay { position: relative; }
.grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

/* ---------- 5. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
  background: var(--cyan);
  color: #06231F;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #071A17;
  background: rgba(7, 26, 23, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: rgba(31, 79, 70, 0.5);
}
.progress-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold-hi));
  transition: width 0.12s linear;
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
  min-height: var(--header-h);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 36px);
  transition: padding 0.22s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  background: var(--coral);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-rail {
  flex: 1 1 auto;
  min-width: 48px;
  height: 11px;
  opacity: 0.85;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) center / 100% 9px no-repeat;
  transition: opacity 0.22s var(--ease);
}

.site-nav { flex: 0 0 auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}
.nav-list__item { position: relative; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--cyan);
  transition: right 0.22s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { right: 0; background: var(--cyan); }

.header-utility {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.tz-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(20, 54, 48, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 9px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__glyph {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1.5px, 100% 1.5px, 60% 1.5px;
  background-position: 0 0, 0 50%, 0 100%;
}

/* 压缩态：滚动过首屏后，导轨隐去，非当前栏目降为辅助强度 */
.site-header.is-condensed .header-inner { padding-top: 7px; padding-bottom: 7px; }
.site-header.is-condensed .header-rail { opacity: 0; }
.site-header.is-condensed .nav-link { opacity: 0.45; }
.site-header.is-condensed .nav-link:hover,
.site-header.is-condensed .nav-link[aria-current="page"] { opacity: 1; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 45%, var(--gold));
  opacity: 0.7;
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter) 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}
.footer-top__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(24px, 3.5vw, 40px);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-list li {
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--muted);
}
.footer-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.footer-list a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.footer-list--plain li { color: var(--muted); word-break: break-word; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}
.footer-legal p { margin: 0; }
.footer-legal__line {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text);
}
.footer-legal__meta { font-size: 0.74rem; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal__links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.footer-legal__links a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---------- 7. 通用组件 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line-soft);
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.num { font-size: 0.95em; color: var(--gold-hi); }

.prose { max-width: 72ch; }
.prose h2 { margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; color: var(--gold-hi); }
.prose p { margin-bottom: 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.1em; list-style: none; }
.prose ul li { position: relative; padding-left: 14px; margin-bottom: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}
.prose a { color: var(--cyan); text-underline-offset: 3px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card--data { background: var(--ink-700); }
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__title { font-size: 1.05rem; font-weight: 700; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__body { font-size: 0.92rem; line-height: 1.8; color: var(--muted); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--gold-hi);
}

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

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
}
.dot--ok { background: var(--cyan); }
.dot--verify { background: var(--coral); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.btn:hover { color: var(--cyan); border-color: var(--cyan); }
.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06231F;
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--gold-hi);
  border-color: var(--gold-hi);
  color: #20180A;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--gold-hi); }

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--portrait { aspect-ratio: 4 / 5; }
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(7, 26, 23, 0.92) 55%);
}

.fold {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fold + .fold { margin-top: -1px; }
.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--cyan);
  flex: 0 0 auto;
}
.fold[open] > summary::after { content: "–"; }
.fold[open] > summary { color: var(--gold-hi); }
.fold__body {
  padding: 0 16px 16px;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--ink-700);
  white-space: nowrap;
}
.data-table td.num { color: var(--text); }
.data-table tbody tr:hover { background: rgba(20, 54, 48, 0.5); }

/* ---------- 8. 显现动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 0;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .header-rail { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    order: 5;
    flex: 1 0 100%;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease), visibility 0.28s;
  }
  .site-nav[data-open] {
    max-height: 140px;
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line);
    padding-block: 6px 10px;
  }
  .nav-list__item {
    flex: 0 0 auto;
    border-right: 1px solid var(--line-soft);
  }
  .nav-list__item:last-child { border-right: 0; }
  .nav-link {
    padding: 10px 14px;
    white-space: nowrap;
    border-bottom: 0;
    font-size: 0.84rem;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    color: var(--cyan);
    background: rgba(63, 224, 208, 0.08);
  }
  .site-header.is-condensed .nav-link { opacity: 1; }

  .split,
  .split--reverse { grid-template-columns: minmax(0, 1fr); }

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

  body { background-attachment: scroll; }
}

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .brand__sub { display: none; }
  .tz-chip { font-size: 0.64rem; padding: 5px 7px; }
}

/* ---------- 10. 降低动态 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
