/* ============================================================
   百灵牛牛电玩 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

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

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

:root {
  --ink: #0E1B2E;
  --ink-1: #16263D;
  --ink-2: #0B1526;
  --green: #17B978;
  --green-deep: #0E7A50;
  --gold: #F5C542;
  --orange: #FF8A3D;
  --cyan: #3FC1E8;
  --paper: #F2F5F7;
  --light: #F6F8F5;
  --muted: #A7B6C8;
  --line: #2A3B55;

  --r-card: 24px;
  --r-pill: 999px;
  --r-sm: 12px;

  --font-display: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-lift: 0 22px 46px -28px rgba(0, 0, 0, .85);
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 72px;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

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

#main-content { display: block; }

/* ---------- 通用布局 ---------- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

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

.section--tint { background: var(--ink-1); }

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

.eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 68ch;
}

.section--light .lede { color: #43566D; }

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 16px);
}

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

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

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

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(245, 197, 66, .95);
}

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

.btn--green {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(23, 185, 120, .95);
}

.btn--green:hover { background: var(--green-deep); color: var(--paper); }

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

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

/* ---------- 标签 / 状态 ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--ink-1);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.chip--green { background: rgba(23, 185, 120, .14); border-color: rgba(23, 185, 120, .45); color: var(--green); }
.chip--gold { background: rgba(245, 197, 66, .14); border-color: rgba(245, 197, 66, .45); color: var(--gold); }
.chip--orange { background: rgba(255, 138, 61, .14); border-color: rgba(255, 138, 61, .45); color: var(--orange); }
.chip--cyan { background: rgba(63, 193, 232, .14); border-color: rgba(63, 193, 232, .45); color: var(--cyan); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.status--busy { color: var(--orange); }
.status--free { color: var(--cyan); }

/* ---------- 卡片 ---------- */

.card {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 2.4vw, 26px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #3B5170;
  box-shadow: var(--shadow-lift);
}

.card--room {
  --room-accent: var(--green);
  overflow: hidden;
  padding-top: calc(clamp(18px, 2.4vw, 26px) + 4px);
}

.card--room::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--room-accent);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 图片容器基础规则 ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(23, 185, 120, .22), transparent 60%),
    linear-gradient(140deg, var(--ink-1), var(--ink-2));
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(14, 27, 46, .94));
}

.media__tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  padding-block: 20px 0;
  font-size: 13px;
  color: var(--muted);
}

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

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--line);
}

.breadcrumbs__link { color: var(--muted); transition: color .18s ease; }
.breadcrumbs__link:hover { color: var(--green); }

.breadcrumbs__item[aria-current="page"] {
  font-family: var(--font-mono);
  color: var(--gold);
}

/* ---------- 动效协议 ---------- */

[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

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

/* ============================================================
   头部
   ============================================================ */

.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus-visible { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(14, 27, 46, .9);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--green) 0%, var(--green-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .38), 0 10px 22px -16px rgba(23, 185, 120, .95);
  overflow: hidden;
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 11px;
  width: 24px;
  height: 20px;
  border-radius: 60% 40% 55% 45% / 70% 60% 40% 30%;
  background: var(--gold);
  transform: rotate(-14deg);
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .72;
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  line-height: 1.2;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-nav { display: block; }

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

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.site-nav__link:hover { background: rgba(23, 185, 120, .16); }

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ink-1);
  cursor: pointer;
  transition: border-color .18s ease;
}

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

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  pointer-events: none;
}

.progress-bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 76px) 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -46%;
  width: min(600px, 82vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 185, 120, .22), transparent 66%);
  pointer-events: none;
}

.footer__inner { position: relative; z-index: 1; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 4vw, 60px);
}

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

.footer__brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--green) 0%, var(--green-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .38), 0 12px 26px -16px rgba(23, 185, 120, .9);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer__motto {
  font-size: 14px;
  color: var(--muted);
}

.footer__badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(23, 185, 120, .4);
  background: rgba(23, 185, 120, .1);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px 18px;
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list {
  display: grid;
  gap: 8px;
}

.footer__link {
  display: inline-block;
  font-size: 15px;
  color: var(--paper);
  opacity: .88;
  transition: color .18s ease, opacity .18s ease;
}

.footer__link:hover { color: var(--green); opacity: 1; }

.footer__contact {
  display: grid;
  gap: 10px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
}

.footer__contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 15px;
  color: var(--paper);
}

.footer__contact-key {
  flex: 0 0 auto;
  min-width: 38px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer__note {
  margin-top: 4px;
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(26px, 3vw, 36px);
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

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

.footer__copy { font-size: 13px; }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 959.98px) {
  .site-header__inner { min-height: 64px; gap: 12px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 17px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--ink-1);
    border-top: 1px solid var(--line);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -30px 70px -30px rgba(0, 0, 0, .95);
    transform: translateY(112%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22, .9, .3, 1), visibility .3s;
  }

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

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

  .site-nav__link {
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 17px;
    background: rgba(255, 255, 255, .03);
  }

  .site-nav__link[aria-current="page"] { background: rgba(245, 197, 66, .16); }

  .site-nav__link[aria-current="page"]::after { display: none; }

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

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__tagline { display: none; }
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact-line { font-size: 14px; }
  .media { border-radius: 18px; }
}

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

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

  [data-reveal].is-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover { transform: none; }
}
