/* ==========================================================================
   九游娱乐看台 · 共享样式 /assets/site.css
   分区：1 变量与重置 2 排版 3 通用组件 4 头部 5 页脚 6 响应式 7 动效降级
   ========================================================================== */

/* ---------- 1. 变量与重置 ---------- */
:root {
  --red: #D7263D;
  --red-deep: #7D1F2D;
  --yellow: #FFC53D;
  --navy: #0B1B33;
  --ink: #111418;
  --cyan: #31E1E8;
  --paper: #F7F2E8;
  --gray: #8C96A8;
  --grass: #2FBF71;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --line: rgba(140, 150, 168, .34);
  --line-light: rgba(247, 242, 232, .16);
  --shadow-card: 0 24px 60px -42px rgba(0, 0, 0, .85);

  --gutter: 24px;
  --head-h: 78px;
}

*,
*::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, pre { margin: 0; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

::selection { background: var(--yellow); color: var(--ink); }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#main-content { scroll-margin-top: calc(var(--head-h) + 24px); }

html.nav-open { overflow: hidden; }

/* ---------- 2. 排版与容器 ---------- */
.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.4vw, 82px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  font-feature-settings: "tnum" 1;
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: inherit;
}

.prose > * + * { margin-top: 1.1em; }

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

.section { padding-block: clamp(52px, 7vw, 104px); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }

.section--navy .eyebrow,
.section--ink .eyebrow { color: rgba(247, 242, 232, .58); }

.section--navy .divider,
.section--ink .divider { background: var(--line-light); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.section-head h2 { max-width: 22ch; }

.section-head__aside {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gray);
  max-width: 30ch;
}

/* ---------- 3. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

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

.btn--red {
  background: var(--red);
  color: #FFF6EE;
  box-shadow: 0 12px 26px -18px var(--red);
}
.btn--red:hover { background: var(--red-deep); }

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFD76E; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 242, 232, .34);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-pill);
  background: rgba(247, 242, 232, .07);
  border: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}

.plate b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
}

.section--paper .plate,
.card .plate {
  background: rgba(17, 20, 24, .06);
  border-color: rgba(17, 20, 24, .16);
  color: var(--ink);
}
.section--paper .plate b { background: var(--red); color: var(--paper); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
}

.chip--red { border-color: rgba(215, 38, 61, .48); color: var(--red); }
.chip--live { border-color: rgba(49, 225, 232, .5); color: #0E8E94; }

.section--navy .chip--live,
.section--ink .chip--live { color: var(--cyan); }

.card {
  background: #FFFDF7;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(17, 20, 24, .07);
}

.card--dark {
  background: #151B26;
  color: var(--paper);
  border-color: var(--line-light);
  box-shadow: 0 30px 70px -48px #000;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(140, 150, 168, .6);
  padding-bottom: 1px;
}

.crumbs a:hover { color: var(--red); border-color: var(--red); }

.grid {
  display: grid;
  gap: var(--gutter);
}

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

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--navy) 0%, #14294A 58%, var(--red-deep) 100%);
  isolation: isolate;
}

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

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

.media-frame__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 27, 51, .78);
  border: 1px solid var(--line-light);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ---------- 4. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .18s ease;
}

.skip-link:focus { top: 14px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(11, 27, 51, .99), rgba(11, 27, 51, .93));
  color: var(--paper);
  border-bottom: 1px solid rgba(247, 242, 232, .1);
  backdrop-filter: blur(10px);
  transition: box-shadow .24s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--red) 0 168px,
    var(--yellow) 168px 260px,
    rgba(247, 242, 232, .12) 260px 100%);
}

.topbar.is-scrolled { box-shadow: 0 18px 40px -34px #000; }

.topbar__progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(247, 242, 232, .1);
}

.topbar__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--yellow) 58%, var(--cyan));
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--head-h);
  transition: min-height .24s ease;
}

.topbar.is-scrolled .topbar__inner { min-height: 64px; }

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

.brand__plate {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--red);
  color: #FFF6EE;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .04em;
  box-shadow: 0 5px 0 -1px var(--red-deep);
  transition: transform .2s ease;
}

.brand:hover .brand__plate { transform: rotate(-4deg); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.04;
}

.brand__tag {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 11px;
  border-radius: var(--radius-pill);
  color: rgba(247, 242, 232, .78);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--paper);
  background: rgba(247, 242, 232, .08);
}

.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

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

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--red);
}

.nav__cta { display: none; }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 242, 232, .3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 11px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, top .22s ease, bottom .22s ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* ---------- 5. 页脚 ---------- */
.foot {
  position: relative;
  background: var(--ink);
  color: rgba(247, 242, 232, .82);
  padding-bottom: 26px;
}

.foot__stripe {
  height: 6px;
  background: linear-gradient(100deg,
    var(--red) 0 34%,
    var(--yellow) 34% 52%,
    var(--cyan) 52% 58%,
    #1C2431 58% 100%);
}

.foot__inner { padding-top: clamp(38px, 5.6vw, 70px); }

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px 44px;
  align-items: end;
  padding-bottom: clamp(26px, 3.6vw, 40px);
  border-bottom: 1px solid var(--line-light);
}

.foot__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--paper);
}

.foot__wordmark em { font-style: normal; color: var(--red); }

.foot__claim {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}

.foot__desc {
  font-size: 15px;
  line-height: 1.78;
  color: rgba(247, 242, 232, .68);
  max-width: 36ch;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, .72fr) minmax(0, 1.5fr);
  gap: 30px 44px;
  padding-block: clamp(26px, 3.6vw, 40px);
}

.foot__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
}

.foot__list li + li { margin-top: 9px; }

.foot__link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: rgba(247, 242, 232, .78);
  text-decoration: none;
  transition: color .18s ease;
}

.foot__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s ease;
}

.foot__link:hover { color: var(--paper); }
.foot__link:hover::after { transform: scaleX(1); transform-origin: left; }

.foot__contact { display: grid; gap: 12px; }

.foot__contact li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.62;
}

.foot__key {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}

.foot__val {
  color: rgba(247, 242, 232, .86);
  overflow-wrap: anywhere;
}

.foot__note {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--red);
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--gray);
}

.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.foot__legal a {
  color: rgba(247, 242, 232, .76);
  text-decoration: none;
  transition: color .18s ease;
}

.foot__legal a:hover { color: var(--yellow); }

.foot__meta { color: var(--gray); }
.foot__icp { color: rgba(247, 242, 232, .6); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 242, 232, .28);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .6;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.to-top:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  opacity: 1;
}

html.is-scrolled .to-top { opacity: 1; }

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav__link { padding: 10px 8px; font-size: 14px; }
  .topbar__ghost { display: none; }
}

@media (max-width: 900px) {
  :root { --head-h: 66px; --gutter: 16px; }

  .wrap { width: calc(100% - 32px); }

  .topbar__actions .btn { display: none; }

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

  .nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 120;
    display: block;
    margin: 0;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    max-height: 74vh;
    overflow-y: auto;
    border-radius: 26px;
    background: rgba(13, 20, 31, .985);
    border: 1px solid rgba(247, 242, 232, .16);
    box-shadow: 0 32px 70px -30px #000;
    transform: translateY(calc(100% + 26px));
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22, .8, .3, 1), visibility .3s ease;
  }

  .nav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

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

  .nav__link {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(247, 242, 232, .06);
    font-size: 14.5px;
    text-align: left;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    background: rgba(215, 38, 61, .22);
    color: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(215, 38, 61, .62);
  }

  .nav__cta {
    display: flex;
    width: 100%;
    margin-top: 12px;
  }

  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 9px; letter-spacing: .14em; }
  .brand__plate { width: 40px; height: 40px; border-radius: 13px; font-size: 11px; }

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

  .foot__top { grid-template-columns: 1fr; align-items: start; }
  .foot__desc { max-width: 44ch; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
  .foot__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 26px); }

  .section-head { flex-direction: column; align-items: flex-start; }

  .prose { font-size: 16px; }

  .foot__grid { grid-template-columns: 1fr; }

  .foot__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .foot__contact li { grid-template-columns: 48px minmax(0, 1fr); }
}

/* ---------- 7. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .btn:hover,
  .brand:hover .brand__plate { transform: none; }
}
