/* ============================================================
   /assets/site.css — 99真人娱乐 全站共享样式
   1. Tokens  2. Reset  3. 中文排版  4. 通用工具
   5. 头部  6. 页脚  7. 基础组件  8. 响应式  9. 动效与可访问
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-950: #05131F;
  --ink-900: #081E2E;
  --ink-800: #0D2C42;
  --ink-700: #16405C;
  --cyan-400: #37E0D8;
  --gold-400: #F2C46B;
  --coral-500: #FF7A59;
  --mint-500: #4CC9A0;
  --text-primary: #E9F2F6;
  --text-secondary: #9FB6C4;
  --surface-soft: #E9F2F6;

  --line: rgba(22, 64, 92, 0.92);
  --line-soft: rgba(159, 182, 196, 0.22);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 30px 60px -40px rgba(0, 0, 0, 0.9);

  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-heading: "PingFang SC", "Alibaba PuHuiTi", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background-color: var(--ink-900);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }
img { border: 0; }

ul, ol { margin: 0; padding: 0; }

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

a {
  color: var(--cyan-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
h4 { font-size: 18px; }

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

strong { font-weight: 700; color: var(--text-primary); }

::selection {
  background: rgba(55, 224, 216, 0.28);
  color: var(--text-primary);
}

/* ---------- 4. 通用工具 ---------- */
.shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.section { padding-block: clamp(56px, 8vw, 112px); }

.section--light {
  background-color: var(--surface-soft);
  color: var(--ink-950);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--ink-950); }

.section--light p { color: #23415A; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

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

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding-block: clamp(10px, 1.4vw, 18px);
}

.header-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 130;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--gold-400));
  opacity: 0.9;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan-400);
  color: var(--ink-950);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -200%);
  transition: transform 0.24s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.nav-island {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  width: min(1280px, calc(100% - clamp(24px, 5vw, 72px)));
  margin-inline: auto;
  padding: 8px clamp(12px, 1.6vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(8, 30, 46, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.95);
  transition: background 0.32s var(--ease), padding 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.nav-island.is-condensed {
  padding-block: 6px;
  background: rgba(5, 19, 31, 0.95);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-primary);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cyan-400), var(--gold-400));
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.nav__item { display: block; }

.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(55, 224, 216, 0.1);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--ink-950);
  background: var(--cyan-400);
  font-weight: 700;
}

.nav__link[aria-current="page"]:hover {
  background: #5BE9E2;
  color: var(--ink-950);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease),
              border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.pill--ghost {
  border-color: var(--line);
  background: rgba(13, 44, 66, 0.5);
  color: var(--text-secondary);
}

.pill--ghost:hover {
  border-color: rgba(55, 224, 216, 0.6);
  color: var(--cyan-400);
}

.pill--accent {
  background: var(--cyan-400);
  color: var(--ink-950);
}

.pill--accent:hover { background: #5BE9E2; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(13, 44, 66, 0.62);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.nav-toggle:hover { border-color: rgba(55, 224, 216, 0.6); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  padding-block: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 44px);
  background-color: var(--ink-950);
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-rule {
  height: 1px;
  width: 100%;
  margin-bottom: clamp(32px, 4vw, 56px);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(55, 224, 216, 0.6) 22%,
    rgba(242, 196, 107, 0.55) 66%,
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

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

.footer-brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.footer-domain {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
}

.footer-slogan {
  margin: 0 0 22px;
  max-width: 28ch;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-record {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-400);
}

.footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  list-style: none;
  margin-bottom: 20px;
}

.footer-list a,
.footer-legal a {
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-list a:hover,
.footer-legal a:hover {
  color: var(--cyan-400);
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.footer-legal a { font-size: 14px; }

.footer-contact {
  display: grid;
  gap: 12px;
  list-style: none;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  opacity: 0.8;
}

.footer-value {
  font-size: 15px;
  color: var(--text-primary);
  word-break: break-word;
}

.footer-hours {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.footer-base p { margin: 0; }

/* ---------- 7. 基础组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease),
              color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cyan-400);
  color: var(--ink-950);
}

.btn--primary:hover { background: #5BE9E2; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.btn--gold {
  background: var(--gold-400);
  color: var(--ink-950);
}

.btn--gold:hover { background: #F7D48E; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.crumbs li { display: flex; align-items: center; gap: 8px; }

.crumbs li + li::before {
  content: "/";
  color: rgba(159, 182, 196, 0.45);
}

.crumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.crumbs a:hover { color: var(--cyan-400); text-decoration: none; }

.crumbs [aria-current="page"] { color: var(--text-primary); }

.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(13, 44, 66, 0.85), rgba(8, 30, 46, 0.7));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 224, 216, 0.55);
  box-shadow: 0 24px 48px -36px rgba(55, 224, 216, 0.5);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(13, 44, 66, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tag--live {
  color: var(--mint-500);
  border-color: rgba(76, 201, 160, 0.45);
}

.tag--update {
  color: var(--coral-500);
  border-color: rgba(255, 122, 89, 0.45);
}

.tag--version {
  color: var(--gold-400);
  border-color: rgba(242, 196, 107, 0.45);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(76, 201, 160, 0.18);
  vertical-align: middle;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(55, 224, 216, 0.2), transparent 58%),
    radial-gradient(120% 100% at 88% 88%, rgba(242, 196, 107, 0.16), transparent 62%),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(233, 242, 246, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(5, 19, 31, 0.82);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* ---------- 8. 响应式 ---------- */
@media (min-width: 861px) {
  .footer-col--index { transform: translateY(20px); }
  .footer-col--contact { transform: translateY(40px); }
}

@media (max-width: 1180px) {
  .brand__line { display: none; }
  .pill--ghost { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 0 auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(5, 19, 31, 0.98);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .nav[data-open="true"] { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 16px;
  }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }

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

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; }

  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__name { font-size: 15px; }

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

  .btn { width: 100%; }
  .media-frame--wide { aspect-ratio: 16 / 10; }
}

/* ---------- 9. 动效与可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@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;
  }

  .has-js [data-reveal],
  .has-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn:hover,
  .pill:hover {
    transform: none;
  }
}
