/* ============================================================
   真人对接娱乐 · 共享站点样式
   路径：/assets/site.css
   范围：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #05070F;
}

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

a { color: inherit; text-decoration: none; }

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

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

/* ---------- 2. Design tokens ---------- */
:root {
  color-scheme: dark;

  --ink: #05070F;
  --panel: #0B1224;
  --raise: #101A30;
  --line: #1E2B45;
  --text: #E8EEF7;
  --muted: #8AA0BC;
  --cyan: #22E0FF;
  --violet: #A55BFF;
  --amber: #FFB020;
  --mint: #2CE6A8;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -10%, rgba(34, 224, 255, .08), transparent 64%),
    radial-gradient(760px 460px at 4% 2%, rgba(165, 91, 255, .07), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p { max-width: 40em; }
p + p { margin-top: 1em; }

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

::selection { background: rgba(34, 224, 255, .28); color: #FFFFFF; }

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

#main-content { scroll-margin-top: 104px; }

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

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--cyan);
  color: #03121A;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #03121A;
  outline-offset: 2px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 7, 15, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(34, 224, 255, 0),
    rgba(34, 224, 255, .55) 28%,
    rgba(165, 91, 255, .55) 72%,
    rgba(34, 224, 255, 0));
}

.site-header.is-condensed {
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .95);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 上层信息条 */
.header-top {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  transition: padding .28s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(150deg, rgba(34, 224, 255, .12), rgba(165, 91, 255, .08));
}

.brand__cell {
  border-radius: 1px;
  background: var(--cyan);
  opacity: .18;
  transition: opacity .3s var(--ease);
}
.brand__cell:nth-child(1) { opacity: .82; }
.brand__cell:nth-child(2) { opacity: .30; }
.brand__cell:nth-child(3) { opacity: .14; }
.brand__cell:nth-child(4) { opacity: .22; }
.brand__cell:nth-child(5) { opacity: .88; background: var(--violet); }
.brand__cell:nth-child(6) { opacity: .16; }
.brand__cell:nth-child(7) { opacity: .18; }
.brand__cell:nth-child(8) { opacity: .40; }
.brand__cell:nth-child(9) { opacity: .55; background: var(--mint); }
.brand:hover .brand__cell { opacity: .9; }

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  transition: font-size .28s var(--ease);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-top__note {
  max-width: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--line);
}

.status-pill {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  line-height: 1.4;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(44, 230, 168, .16);
  animation: dbPulse 2.6s var(--ease) infinite;
}

@keyframes dbPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(44, 230, 168, .16); }
  50% { box-shadow: 0 0 0 6px rgba(44, 230, 168, .04); }
}

.status-pill__label {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill__mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--mint);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.status-pill__mono.is-imminent { color: var(--amber); }

/* 下层栏目轨道 */
.header-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 0 4px;
}

.nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 22px);
  flex-wrap: wrap;
}

.nav__item { display: flex; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 4px 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s var(--ease), padding .28s var(--ease), font-size .28s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .28s var(--ease), background-color .2s var(--ease);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  background: rgba(34, 224, 255, .45);
}

.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  background: var(--cyan);
}

.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  opacity: .45;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.nav__link:hover .nav__index { opacity: .8; }
.nav__link[aria-current="page"] .nav__index {
  color: var(--cyan);
  opacity: 1;
}

.header-nav__meta {
  margin-left: auto;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.4;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover,
.nav-toggle.is-open {
  border-color: rgba(34, 224, 255, .6);
  color: var(--cyan);
}

.nav-toggle__bars {
  width: 16px;
  height: 2px;
  flex: none;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
  transition: box-shadow .2s var(--ease);
}
.nav-toggle.is-open .nav-toggle__bars {
  box-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

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

/* 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width .12s linear;
}

/* 紧凑态 */
.site-header.is-condensed .header-top { padding: 8px 0 7px; }
.site-header.is-condensed .brand__name { font-size: 16px; }
.site-header.is-condensed .brand__sub { opacity: .6; }
.site-header.is-condensed .nav__link { padding: 8px 0 10px; font-size: 14px; }
.site-header.is-condensed .nav__link::after { bottom: 4px; }

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 130px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(34, 224, 255, .06), transparent 70%),
    var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(34, 224, 255, 0),
    rgba(34, 224, 255, .5),
    rgba(165, 91, 255, .5),
    rgba(34, 224, 255, 0));
  pointer-events: none;
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 48px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-brand__note {
  margin-top: 14px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-sync {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  max-width: none;
}

.footer-sync__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(44, 230, 168, .14);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__link {
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  opacity: .78;
  transition: color .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease);
}
.footer-col__link:hover {
  color: var(--cyan);
  opacity: 1;
  transform: translateX(3px);
}
.footer-col__link[aria-current="page"] {
  color: var(--cyan);
  opacity: 1;
}

.footer-service { gap: 12px; }

.footer-service__row {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-service__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  padding-top: 3px;
}

.footer-service__val {
  color: var(--text);
  opacity: .86;
  word-break: break-word;
}

.site-footer__bottom { border-top: 1px solid var(--line); }

.site-footer__bottom-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
}

.footer-legal__link {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.footer-legal__link:hover { color: var(--cyan); }

/* ---------- 7. Common layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

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

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { border-color: rgba(34, 224, 255, .6); color: var(--cyan); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(120deg, var(--cyan), #38B6FF);
  border-color: transparent;
  color: #03121A;
  font-weight: 800;
}
.btn--primary:hover { color: #03121A; filter: brightness(1.08); }

.btn--violet {
  background: linear-gradient(120deg, var(--violet), #7A3BE0);
  border-color: transparent;
  color: #0A0413;
  font-weight: 800;
}
.btn--violet:hover { color: #0A0413; filter: brightness(1.08); }

.btn--ghost { background: transparent; }

.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 9. Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumbs__sep { color: #2A3A5A; }

.crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--cyan); }

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

/* ---------- 10. Figure / 图片容器 ---------- */
.figure { margin: 0; }

.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(30, 43, 69, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 43, 69, .55) 1px, transparent 1px),
    radial-gradient(620px 320px at 28% 0%, rgba(34, 224, 255, .14), transparent 72%),
    radial-gradient(520px 280px at 88% 100%, rgba(165, 91, 255, .12), transparent 70%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}

.figure__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(34, 224, 255, .12);
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

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

/* ---------- 11. Back to top（JS 生成） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 18, 36, .92);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

.to-top__glyph {
  width: 10px;
  height: 10px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .header-top__note { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .header-nav { padding: 8px 0 10px; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px -28px rgba(0, 0, 0, .95);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item:last-child { border-bottom: 0; }

  .nav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4px;
    font-size: 16px;
    color: var(--text);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] { color: var(--cyan); }
  .nav__index { font-size: 11px; opacity: .5; }

  .header-nav__meta { display: none; }

  .site-header.is-condensed .nav__link { padding: 15px 4px; font-size: 16px; }

  .status-pill__label { display: none; }
}

@media (max-width: 640px) {
  .header-top { gap: 12px; padding: 12px 0 10px; }
  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .12em; }
  .brand__mark { width: 28px; height: 28px; }
  .status-pill { padding: 6px 10px; gap: 7px; }
  .status-pill__mono { font-size: 11px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal { gap: 14px; }

  .to-top { width: 42px; height: 42px; }
}

/* ---------- 13. Motion preferences ---------- */
@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;
  }

  .nav__link:hover,
  .footer-col__link:hover,
  .btn:active,
  .to-top,
  .skip-link { transform: none; }
}
