/* ==========================================================================
   金牛国际娱乐 · 共享站点样式 /assets/site.css
   暗夜金库体系：深曜黑基底 + 鎏金细线 + 霓虹青数据 + 琥珀橙状态
   1 重置 / 2 令牌 / 3 排版 / 4 可访问性 / 5 布局 / 6 按钮
   7 刊头 / 8 页脚 / 9 通用组件 / 10 响应式 / 11 动效降级
   ========================================================================== */

/* 1. 重置 ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

/* 2. 设计令牌 ------------------------------------------------------------ */
:root {
  --ink: #0A0D14;
  --obsidian: #121A29;
  --gold: #D9A94A;
  --gold-light: #F2D48A;
  --neon: #38E1D6;
  --amber: #F09A3E;
  --moon: #E9EEF5;
  --mist: #8A94A6;
  --teal-deep: #123A3C;

  --grad-vault: linear-gradient(135deg, #1B2436 0%, #0A0D14 58%, #123A3C 100%);
  --grad-panel: linear-gradient(160deg, rgba(18, 26, 41, .94) 0%, rgba(10, 13, 20, .78) 100%);
  --grad-gold: linear-gradient(135deg, #F2D48A 0%, #D9A94A 100%);

  --line: rgba(217, 169, 74, .18);
  --line-strong: rgba(217, 169, 74, .45);
  --line-soft: rgba(217, 169, 74, .12);
  --hairline: rgba(233, 238, 245, .08);

  --glow-gold: 0 0 30px rgba(217, 169, 74, .20);
  --shadow-deep: 0 24px 54px -34px rgba(0, 0, 0, .92);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --radius: 2px;
  --ease: cubic-bezier(.22, .7, .3, 1);
  --shell: min(100% - 2.5rem, 1280px);
}
@media (min-width: 768px) {
  :root { --shell: min(100% - 4rem, 1280px); }
}

/* 3. 中文排版基底 -------------------------------------------------------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 540px at 6% -10%, rgba(18, 58, 60, .52), transparent 62%),
    radial-gradient(780px 500px at 98% 2%, rgba(27, 36, 54, .92), transparent 58%);
  background-repeat: no-repeat;
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .015em;
  min-height: 100vh;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

::selection { background: rgba(217, 169, 74, .3); color: #FFF7E4; }

.num {
  font-family: var(--font-mono);
  color: var(--neon);
  letter-spacing: 0;
  font-weight: 500;
}

/* 4. 可访问性 ------------------------------------------------------------ */
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 1px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 90;
  padding: 12px 18px;
  background: var(--grad-gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 5. 布局工具 ------------------------------------------------------------ */
.container { width: var(--shell); margin-inline: auto; }

.grid-8 { display: grid; gap: 20px; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.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; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.split__aside, .split__visual { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 55fr 45fr; gap: 56px; align-items: center; }
}

.breath { height: 96px; }
@media (min-width: 1024px) { .breath { height: 152px; } }

.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, var(--line-strong), rgba(217, 169, 74, 0)); }

/* 6. 按钮 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(217, 169, 74, .05);
  color: var(--moon);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
  transition: color .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .16s ease;
}
.btn:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(217, 169, 74, .1); }
.btn--gold { background: var(--grad-gold); color: var(--ink); border-color: transparent; font-weight: 700; box-shadow: var(--glow-gold); }
.btn--gold:hover { background: linear-gradient(135deg, #FFE8AC 0%, var(--gold) 100%); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--mist); }
.btn--ghost:hover { color: var(--gold-light); background: rgba(217, 169, 74, .07); }
.btn--quiet { min-height: 34px; padding: 8px 15px; font-size: 12px; letter-spacing: .1em; }

/* 7. 刊头 ---------------------------------------------------------------- */
.masthead {
  position: relative;
  z-index: 30;
  background: linear-gradient(180deg, rgba(18, 26, 41, .95) 0%, rgba(12, 17, 27, .9) 60%, rgba(10, 13, 20, .82) 100%);
  border-bottom: 1px solid var(--line);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 169, 74, .68) 24%, rgba(56, 225, 214, .34) 64%, transparent 100%);
}
.masthead__inner { width: var(--shell); margin-inline: auto; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  background: linear-gradient(90deg, var(--gold) 0%, var(--neon) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity .24s ease;
  pointer-events: none;
}
.scroll-progress[data-visible] { opacity: .95; }

.masthead__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
}
.masthead__edition { color: var(--gold); white-space: nowrap; }
.masthead__ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; color: var(--mist); }
.masthead__actions { display: flex; align-items: center; gap: 10px; letter-spacing: 0; }

.masthead__brandrow { position: relative; padding: 26px 0 18px; text-align: center; }
.masthead__brand {
  font-size: clamp(1.7rem, 5.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
  text-indent: .24em;
  color: var(--moon);
  text-shadow: 0 0 44px rgba(217, 169, 74, .22);
}
.masthead__brand a { color: inherit; transition: color .16s ease; }
.masthead__brand a:hover { color: var(--gold-light); }
.masthead__sub {
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--mist);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(217, 169, 74, .06);
  color: var(--gold-light);
  transition: border-color .14s ease, background-color .14s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(217, 169, 74, .13); }
.nav-toggle__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; white-space: nowrap; }
.nav-toggle__bars { display: flex; flex-direction: column; justify-content: space-between; width: 18px; height: 12px; }
.nav-toggle__bars i { display: block; height: 1px; width: 100%; background: var(--gold-light); transition: transform .2s var(--ease), opacity .18s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-5.5px) rotate(-45deg); }

.masthead__nav { border-top: 1px solid var(--line-soft); }
.nav-scale { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.nav-scale__item { display: flex; align-items: stretch; }
.nav-scale__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 15px 24px;
  color: var(--mist);
  font-size: 13.5px;
  letter-spacing: .16em;
  transition: color .14s ease, background-color .14s ease;
}
.nav-scale__item + .nav-scale__item .nav-scale__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--line);
  transform: translateY(-50%);
}
.nav-scale__link:hover { color: var(--moon); background: rgba(217, 169, 74, .05); }
.nav-scale__link[aria-current="page"] { color: var(--gold-light); }
.nav-scale__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nav-scale__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(138, 148, 166, .66);
  transition: color .14s ease;
}
.nav-scale__link:hover .nav-scale__idx { color: var(--neon); }
.nav-scale__link[aria-current="page"] .nav-scale__idx { color: var(--neon); }

/* 8. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 104px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 26, 41, .74) 0%, rgba(10, 13, 20, .98) 58%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 169, 74, .58) 30%, rgba(56, 225, 214, .3) 68%, transparent 100%);
}
.site-footer__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding: 62px 0 44px;
}
.site-footer__base {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.footer-brand { min-width: 0; }
.footer-brand__name {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--moon);
}
.footer-brand__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mist);
}
.footer-brand__rule {
  display: block;
  margin-top: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(217, 169, 74, 0));
}

.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.footer-col { min-width: 0; }
.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold);
}
.footer-col__list { padding: 0; }
.footer-col__link {
  display: inline-block;
  padding: 6px 0;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: .08em;
  transition: color .14s ease, transform .16s var(--ease);
}
.footer-col__link:hover { color: var(--gold-light); transform: translateX(4px); }

.footer-contact { min-width: 0; }
.footer-contact__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold);
}
.footer-contact__line { padding: 5px 0; font-size: 14px; color: var(--moon); word-break: break-word; }
.footer-contact__line--mono { font-family: var(--font-mono); letter-spacing: .04em; }
.footer-contact__addr { padding: 5px 0; font-size: 13px; line-height: 1.7; color: var(--mist); }
.footer-contact__hours {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
}

.footer-legal { color: var(--mist); }
.footer-closing { color: rgba(138, 148, 166, .86); }
.footer-closing [data-year] { color: var(--gold); }

/* 9. 通用组件 ------------------------------------------------------------ */
.breadcrumbs {
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin-right: 10px; color: rgba(217, 169, 74, .45); }
.breadcrumbs__link { color: var(--mist); transition: color .14s ease; }
.breadcrumbs__link:hover { color: var(--gold-light); }
.breadcrumbs__current { color: var(--moon); }

.prose { max-width: 68ch; color: var(--moon); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--gold-light); font-weight: 600; }
.prose a { color: var(--neon); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li + li { margin-top: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--gold); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  padding-bottom: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.section-head__index { font-family: var(--font-mono); font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.section-head__title { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: .05em; }
.section-head__note { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--mist); }

.panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-panel);
  box-shadow: var(--shadow-deep);
  transition: border-color .16s ease;
}
.panel:hover { border-color: var(--line-strong); }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mist);
}
.panel__body { color: var(--moon); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .16em;
  color: var(--mist);
}
.tag--gold { color: var(--gold-light); border-color: rgba(217, 169, 74, .4); background: rgba(217, 169, 74, .06); }
.tag--neon { color: var(--neon); border-color: rgba(56, 225, 214, .34); background: rgba(56, 225, 214, .05); }
.tag--amber { color: var(--amber); border-color: rgba(240, 154, 62, .36); background: rgba(240, 154, 62, .05); }

.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--neon);
}
.stat__value--gold { color: var(--gold); }
.stat__label { font-size: 12px; letter-spacing: .16em; color: var(--mist); }

.meter { position: relative; height: 3px; border-radius: 999px; background: rgba(138, 148, 166, .16); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--neon)); transition: width .8s var(--ease); }
.meter__caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

.index-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 40px; }
.chapter-rail { display: none; }
.chapter-rail__title { margin-bottom: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em; color: var(--gold); }
.chapter-rail__link {
  position: relative;
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 1px solid var(--line);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: .08em;
  transition: color .14s ease, border-color .14s ease;
}
.chapter-rail__link:hover { color: var(--moon); border-left-color: var(--line-strong); }
.chapter-rail__link[data-active] { color: var(--gold-light); border-left-color: var(--gold); }
.chapter-rail__link[data-active]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--neon);
  transform: translateY(-50%);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-vault);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--panorama { aspect-ratio: 21 / 9; }
.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--moon);
  background: linear-gradient(0deg, rgba(10, 13, 20, .92) 0%, rgba(10, 13, 20, 0) 100%);
}

/* 显现协议 */
.js-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.js-ready [data-reveal][data-revealed] { opacity: 1; transform: none; }
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* 10. 响应式 ------------------------------------------------------------ */
@media (min-width: 560px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .index-shell { grid-template-columns: 196px minmax(0, 1fr); gap: 56px; }
  .chapter-rail { display: block; position: sticky; top: 26px; }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 1.15fr);
    gap: 56px;
    padding: 76px 0 52px;
  }
}
@media (max-width: 900px) {
  .masthead__actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead__nav {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s var(--ease), opacity .24s ease, visibility .3s linear;
  }
  .masthead__nav[data-open] { max-height: 70vh; opacity: 1; visibility: visible; }
  .nav-scale { flex-direction: column; align-items: stretch; }
  .nav-scale__item { width: 100%; }
  .nav-scale__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
  }
  .nav-scale__item + .nav-scale__item .nav-scale__link::before { display: none; }
  .nav-scale__link[aria-current="page"]::after {
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--gold), rgba(217, 169, 74, 0));
  }
  .grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .masthead__utility { justify-content: center; }
  .masthead__ticker { display: none; }
  .masthead__brandrow { padding: 22px 0 16px; }
  .masthead__brand { letter-spacing: .18em; text-indent: .18em; }
  .site-footer { margin-top: 72px; }
  .grid-8 { grid-template-columns: minmax(0, 1fr); }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 1; }
  .breath { height: 72px; }
}

/* 11. 动效降级 ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}
