/* ============================================================
   九州娱乐 · 共享样式表 /assets/site.css
   夜场数据指挥中心 × 印刷刊物
   1 重置 · 2 变量 · 3 基础排版 · 4 页头 · 5 页脚
   6 布局 · 7 排版工具 · 8 组件 · 9 响应式 · 10 无障碍
   ============================================================ */

/* ---------- 1 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

a { color: inherit; }

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

/* ---------- 2 变量 ---------- */
:root {
  --ink: #0B1626;
  --ink-2: #16263C;
  --orange: #FF6B2C;
  --orange-soft: #FF8149;
  --cyan: #22D3EE;
  --gold: #E8B04B;
  --mist: #E9EFF7;
  --steel: #8394AA;
  --line: #2A3B55;
  --deep-teal: #0F3B4C;
  --warm: #F0C9A8;

  --shell-max: 1360px;
  --gutter: clamp(16px, 3vw, 44px);
  --rail: 44px;
  --radius: 0px;

  --font-display: "Archivo Narrow", "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 180ms;
}

/* ---------- 3 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(42, 59, 85, .34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(42, 59, 85, .18) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  font-family: var(--font-body);
  font-size: clamp(16px, .42vw + 14px, 18px);
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
}

::selection {
  background: var(--orange);
  color: #0B1626;
}

#main-content {
  display: block;
}

/* ---------- 4 页头 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 10px 20px;
  transform: translate(-50%, -130%);
  background: var(--orange);
  color: #0B1626;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  background: rgba(11, 22, 38, .97);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(11, 22, 38, .86);
    backdrop-filter: blur(8px);
  }
}

.site-header[data-scrolled] {
  border-bottom-color: #33486a;
}

.header-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--rail);
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel);
}

.header-strip__note {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-strip__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
  animation: live-pulse 1.9s var(--ease) infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
  50% { opacity: .45; box-shadow: 0 0 0 6px rgba(34, 211, 238, .05); }
}

.header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__mark {
  padding: 7px 11px;
  background: var(--orange);
  color: #0B1626;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.1;
  color: var(--mist);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--steel);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), bottom var(--dur) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle__text { white-space: nowrap; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

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

.site-nav__list {
  display: flex;
  align-items: stretch;
  padding: 0;
  list-style: none;
}

.site-nav__list > li {
  display: flex;
}

.site-nav__list > li + li {
  border-left: 1px solid var(--line);
}

.site-nav__list a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
  color: var(--steel);
  font-size: 15px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-nav__list a:hover {
  color: var(--mist);
  background: var(--ink-2);
}

.site-nav__list a[aria-current="page"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
  background: rgba(255, 107, 44, .07);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  pointer-events: none;
}

/* ---------- 5 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--rail);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--steel);
}

.footer-strip__mark {
  color: var(--gold);
  white-space: nowrap;
}

.footer-strip__line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.footer-strip__ver {
  color: var(--cyan);
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 52px);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 56px) var(--gutter);
}

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mist);
}

.footer-links {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-facts {
  display: grid;
  gap: 13px;
  padding: 0;
  list-style: none;
}

.footer-facts > li {
  display: grid;
  gap: 3px;
}

.footer-facts__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--steel);
}

.footer-facts__v {
  color: var(--mist);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
}

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

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

.footer-bottom__links a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-bottom__links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

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

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

/* ---------- 7 排版工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.chapter {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.4vw + 14px, 40px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: .01em;
  color: var(--mist);
}

.t-display {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 96px);
  font-weight: 800;
  font-stretch: condensed;
  line-height: .96;
  letter-spacing: -.015em;
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(46px, 8vw, 108px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.stat-num--cyan { color: var(--cyan); }
.stat-num--gold { color: var(--gold); }
.stat-num--mist { color: var(--mist); }

.prose {
  max-width: 68ch;
}

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

.muted {
  color: var(--steel);
}

/* ---------- 8 组件 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 107, 44, .5);
  background: rgba(255, 107, 44, .08);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .08);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(232, 176, 75, .5);
  background: rgba(232, 176, 75, .08);
}

.panel {
  position: relative;
  padding: clamp(18px, 2vw, 28px);
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.panel--teal {
  background: var(--deep-teal);
}

.panel--flush {
  padding: 0;
}

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

.rule--orange {
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.data-strip {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  scrollbar-width: thin;
}

.data-strip__item {
  flex: 0 0 auto;
  min-width: 168px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}

.data-strip__item:last-child {
  border-right: 0;
}

.data-strip__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}

.data-strip__v {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--steel);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.crumbs__list > li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.crumbs__list a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.crumbs__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn::after {
  content: "→";
  font-size: 14px;
  transition: transform var(--dur) var(--ease);
}

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

.btn:hover::after {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #0B1626;
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(34, 211, 238, .55);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: rgba(34, 211, 238, .1);
}

.btn--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--steel);
}

.btn--quiet:hover {
  color: var(--mist);
  border-color: var(--steel);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-2);
  background-image: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(255, 107, 44, .06));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(233, 239, 247, .05) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .55;
}

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

.media-frame--tilt {
  transform: perspective(900px) rotateY(-4deg);
}

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(11, 22, 38, .84);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.placeholder-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  background-image: repeating-linear-gradient(135deg, rgba(42, 59, 85, .4) 0 10px, transparent 10px 20px);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) linear, border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

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

/* 脚本显现协议：无 JS 时保持完全可见 */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

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

/* ---------- 9 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav__list a {
    padding: 10px 11px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    margin-left: 0;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

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

  .site-nav__list {
    flex-direction: column;
  }

  .site-nav__list > li {
    display: block;
  }

  .site-nav__list > li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav__list a {
    padding: 13px 12px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    font-size: 16px;
  }

  .site-nav__list a[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--orange);
    background: rgba(255, 107, 44, .07);
  }

  .span-2, .span-3, .span-4, .span-5,
  .span-6, .span-7, .span-8, .span-9,
  .span-10 {
    grid-column: span 12;
  }
}

@media (max-width: 1024px) and (min-width: 861px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-strip__note {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --rail: 38px;
  }

  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 19px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* ---------- 10 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.site-nav__list a:focus-visible {
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .scroll-progress {
    transition: none;
  }
}
