/* ==========================================================================
   九游娱乐中国站 · 共享样式 /assets/site.css
   基调：夜蓝底 · 深墨绿轨道 · 荧光青脉冲 · 赛事橙提醒
   ========================================================================== */

:root {
  --bg-900: #030A10;
  --bg-800: #071A2B;
  --green-900: #0B2B26;
  --green-800: #082420;
  --green-700: #123A33;
  --cyan: #27F5D8;
  --cyan-08: rgba(39, 245, 216, 0.08);
  --cyan-16: rgba(39, 245, 216, 0.16);
  --cyan-32: rgba(39, 245, 216, 0.32);
  --orange: #FF7A1A;
  --orange-08: rgba(255, 122, 26, 0.08);
  --coral: #FF5C7A;
  --ice: #9FB8B5;
  --mist: #E8F1EF;
  --line: rgba(159, 184, 181, 0.18);
  --line-soft: rgba(159, 184, 181, 0.12);

  --rail-w: 264px;
  --bar-h: 62px;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1160px;

  --font-head: "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--bg-800);
  background-image:
    radial-gradient(1100px 560px at 84% -10%, rgba(39, 245, 216, 0.10), transparent 62%),
    radial-gradient(820px 480px at 4% 106%, rgba(255, 122, 26, 0.08), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.16;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.16rem; letter-spacing: 0.05em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover { color: #6BFFE8; }

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

button { font: inherit; }

::selection { background: var(--cyan); color: #04201D; }

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

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- 跳转链接与滚动进度 ---------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--cyan);
  color: #04201D;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: #04201D; }

.rail__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  display: block;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), rgba(39, 245, 216, 0.35) 55%, var(--orange));
  pointer-events: none;
}

/* ---------- 头部外壳 ---------- */

.site-header { position: relative; z-index: 80; }

/* ---------- 桌面侧边轨道 ---------- */

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  overflow: hidden;
  background: linear-gradient(178deg, #0C3129 0%, var(--green-900) 44%, #04120F 100%);
  border-right: 1px solid var(--cyan-16);
}
.rail::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 245, 216, 0.16), transparent 68%);
  pointer-events: none;
}

.rail__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding: 26px 20px 22px;
  overflow-y: auto;
}

.brand { display: block; color: var(--mist); }
.brand__mark {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.07em;
  line-height: 1.2;
}
.brand__mark em { font-style: normal; color: var(--cyan); }
.brand__tag {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--ice);
}

.brand--compact .brand__mark { font-size: 1rem; }
.brand--compact .brand__tag { display: none; }

.rail__nav { display: block; }

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { min-width: 0; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0.62rem 0.7rem 0.62rem 1.05rem;
  border-radius: 10px;
  color: var(--ice);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height 0.2s ease;
}
.nav-link:hover { color: var(--mist); background: rgba(39, 245, 216, 0.06); }
.nav-link:hover::before { height: 14px; }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-08);
}
.nav-link[aria-current="page"]::before { height: 22px; }

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(159, 184, 181, 0.6);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--cyan); }
.nav-link__label { font-weight: 600; }

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.rail__ticker {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: rgba(159, 184, 181, 0.88);
}

.pulse-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-ring 2.6s ease-out infinite;
}
.pulse-dot.is-pulsing { animation: pulse-burst 1.15s ease-out 1; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(39, 245, 216, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(39, 245, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 245, 216, 0); }
}
@keyframes pulse-burst {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 245, 216, 0.55); }
  60% { transform: scale(1.5); box-shadow: 0 0 0 10px rgba(39, 245, 216, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 245, 216, 0); }
}

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.62rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cyan);
  color: #052621;
  box-shadow: 0 8px 26px rgba(39, 245, 216, 0.2);
}
.btn--primary:hover { background: #5CFFE6; color: #052621; }

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan-32);
}
.btn--ghost:hover { background: var(--cyan-08); color: var(--cyan); }

.btn--block { width: 100%; }

/* ---------- 移动端顶栏与抽屉 ---------- */

.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--bar-h);
  padding: 0 16px;
  background: rgba(7, 26, 43, 0.92);
  border-bottom: 1px solid var(--cyan-16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--cyan-32);
  border-radius: var(--radius-sm);
  background: rgba(39, 245, 216, 0.06);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--cyan-08); }

.nav-toggle--bare {
  border-color: transparent;
  background: transparent;
  color: var(--ice);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(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:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: block;
  background: rgba(3, 10, 16, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 92;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(86vw, 340px);
  padding: 22px 18px 26px;
  overflow-y: auto;
  background: linear-gradient(170deg, #0C3129 0%, var(--green-900) 46%, #04120F 100%);
  border-right: 1px solid var(--cyan-16);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.24, 1), visibility 0.3s ease;
}
.drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.drawer__nav { display: block; }
.drawer__nav .nav-link { padding: 0.7rem 0.8rem 0.7rem 1.15rem; font-size: 1rem; }

.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.drawer__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--ice);
}

/* ---------- 返回顶部 ---------- */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--cyan-32);
  border-radius: 50%;
  background: rgba(7, 26, 43, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  background: var(--bg-900);
  border-top: 1px solid var(--cyan-16);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(39, 245, 216, 0) 48%, var(--orange));
  opacity: 0.75;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 245, 216, 0.1), transparent 68%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 1.2fr;
  gap: 38px 34px;
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 56px 24px 34px;
}

.footer__logo {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer__desc {
  margin: 0 0 16px;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ice);
}
.footer__stamp {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(159, 184, 181, 0.85);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  color: var(--ice);
  font-size: 0.92rem;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }

.footer__contact { min-width: 0; }
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}
.contact-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mist);
  overflow-wrap: anywhere;
}
.contact-item__k {
  padding-top: 0.35em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(159, 184, 181, 0.75);
}
.footer__note {
  margin: 0;
  max-width: 36ch;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(159, 184, 181, 0.85);
}

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 16px 24px 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(159, 184, 181, 0.8);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal a { color: rgba(159, 184, 181, 0.9); }
.footer__legal a:hover { color: var(--cyan); }

/* ---------- 通用容器与基础组件 ---------- */

.container {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.prose p { max-width: 72ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--cyan);
}

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

.breadcrumb { margin: 0 0 22px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ice);
}
.breadcrumb__link { color: var(--ice); }
.breadcrumb__link:hover { color: var(--cyan); }
.breadcrumb__sep { color: rgba(159, 184, 181, 0.45); }
.breadcrumb__current { color: var(--mist); }

/* 图片容器基础规则：页面阶段把照片放进 .media 即可 */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--green-700), #061722 72%);
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  object-fit: cover;
}
.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--mist);
  background: linear-gradient(180deg, rgba(3, 10, 16, 0) 0%, rgba(3, 10, 16, 0.86) 100%);
}
.media--tall { --media-ratio: 3 / 4; }
.media--wide { --media-ratio: 21 / 9; }
.media--square { --media-ratio: 1 / 1; }

/* 可选章节目录（页面阶段使用，非外壳锚点） */
[data-toc-link] {
  display: block;
  padding: 0.4rem 0;
  color: var(--ice);
  font-size: 0.9rem;
  transition: color 0.18s ease;
}
[data-toc-link].is-active { color: var(--cyan); }

/* ---------- 响应式 ---------- */

@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail-w); }
  .rail__progress { left: var(--rail-w); }
  .mobile-bar,
  .drawer,
  .scrim { display: none; }
}

@media (max-width: 1023px) {
  html { scroll-padding-top: calc(var(--bar-h) + 12px); }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
  }
  .rail { display: none; }
  .mobile-bar { display: flex; }
  .footer__inner { padding: 44px 20px 28px; }
  .footer__bottom { padding: 14px 20px 26px; }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 16px 24px;
  }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__bottom { padding: 14px 16px 24px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ---------- 动效降级 ---------- */

@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;
  }
  .pulse-dot { animation: none; box-shadow: none; }
  .drawer { transition: none; }
}
