/* ============================================================
   宝马娱乐会馆 · 共享站点套件 /assets/site.css
   夜间会馆 × 数字档案室：深墨蓝底、香槟金线、精密网格
   ============================================================ */

:root {
  --ink-900: #0B1B2B;
  --ink-800: #12263A;
  --ink-700: #183650;
  --gold: #C9A45C;
  --gold-hi: #E6CFA1;
  --white: #F5F0E6;
  --amber: #D9772B;
  --gray: #7C8790;
  --moss: #5E6F5A;
  --terra: #A65E44;
  --line: #2E4256;
  --line-soft: rgba(46, 66, 86, 0.6);
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(46, 66, 86, 0.30) 1px, transparent 1px),
    radial-gradient(1100px 520px at 78% -8%, rgba(201, 164, 92, 0.10), transparent 72%),
    radial-gradient(900px 480px at 4% 14%, rgba(94, 111, 90, 0.10), transparent 70%);
  background-size: 96px 100%, 100% 100%, 100% 100%;
  background-repeat: repeat-x, no-repeat, no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--white);
}

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

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

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

a { color: var(--gold-hi); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--gold); }

button { font: inherit; color: inherit; }

strong, b { font-weight: 600; }

::selection { background: rgba(201, 164, 92, 0.32); color: var(--white); }

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

/* ---------- 通用工具 ---------- */

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

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), rgba(46, 66, 86, 0.15) 70%, transparent);
}

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

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

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

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--gold { background: var(--gold); color: var(--ink-900); border-color: var(--gold); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--ink-900); }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--gold-hi); border-color: var(--gold); }

.btn--amber { background: var(--amber); color: var(--ink-900); border-color: var(--amber); }
.btn--amber:hover, .btn--amber:focus-visible { background: #E68A45; border-color: #E68A45; color: var(--ink-900); }

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

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 38, 58, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--white);
}

.tag--amber { background: rgba(217, 119, 43, 0.16); border-color: rgba(217, 119, 43, 0.62); color: #F0B27A; }
.tag--moss { background: rgba(94, 111, 90, 0.22); border-color: rgba(94, 111, 90, 0.72); color: #B9C7AF; }
.tag--terra { background: rgba(166, 94, 68, 0.16); border-color: rgba(166, 94, 68, 0.6); color: #E3B29C; }

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

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--gold-hi); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

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

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-800);
  background-image: linear-gradient(150deg, #16324B 0%, #0B1B2B 58%, #12263A 100%);
}

.media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 164, 92, 0) 78%);
  opacity: 0.75;
  pointer-events: none;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04) brightness(0.96);
}

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

.media__cap {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold-hi);
  background: linear-gradient(to top, rgba(11, 27, 43, 0.92), rgba(11, 27, 43, 0));
}

/* ---------- 跳动链接 ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus { top: 10px; color: var(--ink-900); }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 27, 43, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.site-head__rail { border-bottom: 1px solid rgba(46, 66, 86, 0.55); }

.rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 7px var(--gutter);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gray);
  white-space: nowrap;
}

.rail__index { color: var(--gold-hi); opacity: 0.85; letter-spacing: 0.14em; }
.rail__meta { color: var(--gray); }
.rail__meta .mono { color: var(--white); font-size: 10.5px; }
.rail__status { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); }

.rail__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(94, 111, 90, 0.18);
}

.nav-shell { background: transparent; }

.nav-shell__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter) 10px;
}

.capsule {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.6vw, 24px);
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 38, 58, 0.72);
  box-shadow: inset 0 1px 0 rgba(230, 207, 161, 0.10), 0 10px 28px -24px #000;
  transition: padding 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.site-head.is-scrolled .capsule {
  padding-top: 4px;
  padding-bottom: 4px;
  background: rgba(18, 38, 58, 0.95);
  border-color: rgba(201, 164, 92, 0.42);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}

.brand:hover { color: var(--white); }

.brand__mark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--gold);
  transition: background 0.2s ease;
}

.brand:hover .brand__mark { border-color: var(--gold-hi); transform: rotate(135deg); }
.brand:hover .brand__mark::after { background: var(--gold-hi); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white);
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  line-height: 1.4;
  color: var(--gold);
}

/* 导航 */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 20px); list-style: none; counter-reset: nav; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  opacity: 0.84;
  white-space: nowrap;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.nav__link::before {
  content: "0" counter(nav);
  counter-increment: nav;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.75;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold-hi);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.nav__link:hover, .nav__link:focus-visible { opacity: 1; color: var(--gold-hi); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }

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

/* 快捷操作 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__bars { display: block; position: relative; width: 18px; height: 9px; }

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: top 0.2s ease, transform 0.2s ease;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }

.site-head[data-open] .nav-toggle__bars span:nth-child(1) { top: 3px; transform: rotate(45deg); }
.site-head[data-open] .nav-toggle__bars span:nth-child(2) { top: 3px; transform: rotate(-45deg); }

/* 滚动进度 */
.progress {
  position: relative;
  height: 2px;
  margin-top: 8px;
  background: rgba(46, 66, 86, 0.6);
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--moss), var(--gold) 55%, var(--gold-hi));
  transition: transform 0.1s linear;
}

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

.site-foot {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0B1B2B 0%, #081420 100%);
  overflow: hidden;
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.65;
}

.foot-mark {
  position: absolute;
  right: var(--gutter);
  bottom: 86px;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 190px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 164, 92, 0.14);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-foot__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
}

.brand--foot .brand__name { font-size: 19px; }
.brand--foot .brand__sub { font-size: 9.5px; }

.foot-brand__note {
  margin: 16px 0 0;
  max-width: 34ch;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.75;
}

.foot-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 3px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--gold-hi);
  border-bottom: 1px solid var(--line);
}

.foot-brand__link::after { content: "→"; font-family: var(--font-mono); }
.foot-brand__link:hover { border-bottom-color: var(--gold); }

.foot-col__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.foot-col__idx { color: rgba(201, 164, 92, 0.55); font-size: 10px; }

.foot-list { list-style: none; display: grid; gap: 10px; }

.foot-list a {
  display: inline-block;
  padding-bottom: 2px;
  color: var(--white);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot-list a:hover, .foot-list a:focus-visible { color: var(--gold-hi); border-bottom-color: var(--gold); }

.foot-lines { list-style: none; display: grid; gap: 12px; }

.foot-lines li {
  display: grid;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.foot-lines__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gray);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray);
}

.foot-copy { margin: 0; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  list-style: none;
}

.foot-legal a { color: var(--gray); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.foot-legal a:hover, .foot-legal a:focus-visible { color: var(--gold-hi); border-bottom-color: var(--gold); }
.foot-legal .mono { color: var(--gray); font-size: 11px; }

/* ============================================================
   显现动效
   ============================================================ */

.will-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.will-reveal.is-revealed { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

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

  .nav {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.24s ease, opacity 0.18s ease, visibility 0.24s ease;
  }

  .site-head[data-open] .nav {
    max-height: min(72vh, 540px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    padding-top: 4px;
  }

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

  .nav__list li + li { border-top: 1px solid rgba(46, 66, 86, 0.6); }

  .nav__link {
    display: flex;
    align-items: center;
    padding: 12px 2px;
    font-size: 15px;
    opacity: 1;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    color: var(--gold-hi);
    box-shadow: inset 2px 0 0 var(--gold);
    padding-left: 12px;
  }

  .site-head[data-open] .nav-actions {
    display: flex;
    order: 5;
    flex-basis: 100%;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .site-head[data-open] .nav-actions .btn { flex: 1 1 0; }
}

@media (max-width: 760px) {
  .rail__meta { display: none; }
  .rail__inner { font-size: 9.5px; letter-spacing: 0.08em; }
  .brand__name { font-size: 15.5px; }
  .brand__mark { width: 20px; height: 20px; }
  .brand__mark::after { inset: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-mark { display: none; }
  .foot-base { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .rail__status { font-size: 9px; }
  .brand__sub { display: none; }
  .capsule { gap: 8px; padding: 8px 10px; }
  .foot-legal { gap: 8px 16px; font-size: 12px; }
}

/* ============================================================
   动效降级
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .will-reveal { opacity: 1 !important; transform: none !important; }
  .brand:hover .brand__mark { transform: rotate(45deg); }
}

@media print {
  .site-head, .site-foot, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}
