/* ============================================================
   博万娱乐会馆 · 共享站点样式 /assets/site.css
   戈壁夜航 · 档案入口 · 框架式导航
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

:root {
  --ink: #0B1E2D;
  --ink-2: #23384D;
  --sand: #3F2E22;
  --sand-2: #6E5A3F;
  --amber: #E3A72F;
  --cyan: #35D0C0;
  --bone: #E9DCC6;
  --fog: #F7F1E6;
  --wine: #6A2338;
  --haze: #8FA6B8;

  --rail-w: 76px;
  --top-h: 76px;
  --max-w: 1120px;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --font-display: 'Barlow Condensed', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-note: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
}

/* ---------- 基础中文排版 ---------- */

body {
  min-height: 100vh;
  padding-top: var(--top-h);
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--fog);
  background-color: var(--ink);
  background-image:
    radial-gradient(80% 60% at 88% 0%, rgba(53, 208, 192, 0.07), transparent 60%),
    radial-gradient(70% 50% at 6% 96%, rgba(227, 167, 47, 0.06), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

p { max-width: 68ch; }

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

/* ---------- 跳过链接 ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 130;
  padding: 10px 20px;
  font-family: var(--font-note);
  font-size: 14px;
  font-weight: 600;
  color: #1A1208;
  text-decoration: none;
  background: var(--amber);
  border-radius: var(--radius-pill);
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 页头：顶部横梁 ---------- */

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

.masthead {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  height: var(--top-h);
  padding: 0 clamp(16px, 2.6vw, 34px);
  background:
    radial-gradient(120% 170% at 84% -50%, rgba(53, 208, 192, 0.16), transparent 62%),
    linear-gradient(96deg, #0B1E2D 0%, #17304A 54%, #0B1E2D 100%);
  border-bottom: 1px solid rgba(110, 90, 63, 0.55);
  box-shadow: 0 12px 34px rgba(4, 12, 20, 0.42);
}

.masthead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, rgba(227, 167, 47, 0.55) 0 1px, transparent 1px 26px);
}

.masthead__progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.masthead__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- 品牌 ---------- */

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

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: linear-gradient(150deg, var(--amber), #B77C13 62%, var(--wine));
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 230, 0.28);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(11, 30, 45, 0.55);
  border-radius: 6px;
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--font-note);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--haze);
  white-space: nowrap;
}

/* ---------- 批次徽标 ---------- */

.batch-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 7px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bone);
  white-space: nowrap;
  background: rgba(11, 30, 45, 0.6);
  border: 1px solid rgba(110, 90, 63, 0.85);
  border-radius: var(--radius-pill);
}

.batch-badge__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(53, 208, 192, 0.18);
}

.masthead__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-note);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--amber {
  color: #20160C;
  background: var(--amber);
  box-shadow: 0 8px 22px rgba(227, 167, 47, 0.22);
}

.btn--amber:hover { background: #F0B646; transform: translateY(-1px); }

.btn--ghost {
  color: var(--fog);
  background: rgba(11, 30, 45, 0.4);
  border-color: rgba(143, 166, 184, 0.45);
}

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

.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 导航开关 ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-family: var(--font-note);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(53, 208, 192, 0.08);
  border: 1px solid rgba(53, 208, 192, 0.55);
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-toggle::before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 左侧框架导航轨道 ---------- */

.site-nav {
  position: fixed;
  top: var(--top-h);
  bottom: 0;
  left: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  overflow-x: visible;
  overflow-y: auto;
  background: linear-gradient(180deg, #0B1E2D 0%, #12283B 55%, #0B1E2D 100%);
  border-right: 1px solid rgba(110, 90, 63, 0.45);
  scrollbar-width: thin;
}

.site-nav::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 7px;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(143, 166, 184, 0.5) 0 1px, transparent 1px 15px);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 0;
  margin: auto 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 14px 8px;
  font-family: var(--font-note);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--haze);
  text-decoration: none;
  border-radius: 14px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav__link:hover {
  color: var(--fog);
  background: rgba(53, 208, 192, 0.1);
}

.site-nav__link[aria-current="page"] {
  color: var(--amber);
  background: rgba(227, 167, 47, 0.12);
  box-shadow: inset 0 0 0 1px rgba(227, 167, 47, 0.4);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--amber);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ---------- 正文容器 ---------- */

.content-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-right: clamp(20px, 4vw, 44px);
  padding-left: clamp(20px, 4vw, 44px);
}

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: clamp(18px, 3vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

.crumbs a {
  color: var(--haze);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.crumbs a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 208, 192, 0.5);
}

.crumbs__sep { color: rgba(110, 90, 63, 0.95); }

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

/* ---------- 章节标记 ---------- */

.section-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.section-mark__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.section-mark__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--fog);
}

.section-mark__note {
  font-family: var(--font-note);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--haze);
}

/* ---------- 规则条文 ---------- */

.rule-text {
  padding-left: 16px;
  font-weight: 300;
  color: rgba(247, 241, 230, 0.86);
  border-left: 1px solid var(--sand-2);
}

.surface-bone .rule-text {
  color: rgba(11, 30, 45, 0.86);
  border-left-color: rgba(110, 90, 63, 0.75);
}

/* ---------- 展览标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bone);
  border: 1px solid rgba(143, 166, 184, 0.4);
  border-radius: var(--radius-pill);
}

.tag--amber {
  color: var(--amber);
  background: rgba(227, 167, 47, 0.1);
  border-color: rgba(227, 167, 47, 0.6);
}

.tag--wine {
  color: var(--fog);
  background: var(--wine);
  border-color: rgba(106, 35, 56, 0.9);
}

/* ---------- 分区底面 ---------- */

.surface-bone {
  color: var(--ink);
  background: var(--bone);
  border-radius: var(--radius-lg);
}

.surface-sand {
  background: rgba(63, 46, 34, 0.72);
  border: 1px solid rgba(110, 90, 63, 0.55);
  border-radius: var(--radius-lg);
}

.surface-bone a { color: #8A5A08; }

/* ---------- 基础网格 ---------- */

.l-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.l-grid > * { grid-column: span 12; }

@media (min-width: 760px) {
  .l-grid > .col-4 { grid-column: span 4; }
  .l-grid > .col-6 { grid-column: span 6; }
  .l-grid > .col-8 { grid-column: span 8; }
}

/* ---------- 可复用图片容器 ---------- */

.frame-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #1B3047, #2A1F17);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(143, 166, 184, 0.18);
}

.frame-figure--wide { aspect-ratio: 16 / 9; }
.frame-figure--tall { aspect-ratio: 3 / 4; }

.frame-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.8) contrast(1.06);
}

.frame-figure__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(247, 241, 230, 0.62);
  background-image: repeating-linear-gradient(135deg, rgba(143, 166, 184, 0.09) 0 2px, transparent 2px 12px);
}

.frame-figure__caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 6px 15px;
  font-family: var(--font-note);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bone);
  background: rgba(11, 30, 45, 0.74);
  border-radius: var(--radius-pill);
}

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

.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  overflow: hidden;
  color: var(--fog);
  background:
    radial-gradient(90% 140% at 12% -10%, rgba(227, 167, 47, 0.14), transparent 58%),
    linear-gradient(165deg, #241A13 0%, #3F2E22 48%, #1C1510 100%);
  border-top: 1px solid rgba(110, 90, 63, 0.7);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background-image: repeating-linear-gradient(to right, rgba(227, 167, 47, 0.7) 0 1px, transparent 1px 26px);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 44px);
}

.footer-crown { max-width: 760px; }

.footer-crown__eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--fog);
}

.footer-summary {
  max-width: 52ch;
  margin-top: 16px;
  font-size: 16px;
  color: rgba(247, 241, 230, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
  padding-top: clamp(28px, 4vw, 40px);
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid rgba(110, 90, 63, 0.55);
}

.footer-block__title {
  margin-bottom: 14px;
  font-family: var(--font-note);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.footer-list__item {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px dashed rgba(143, 166, 184, 0.22);
}

.footer-list__key {
  flex: 0 0 52px;
  font-family: var(--font-note);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--haze);
}

.footer-list__val { color: var(--fog); }

.footer-links li + li { margin-top: 2px; }

.footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  font-size: 15px;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px dashed rgba(143, 166, 184, 0.22);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-links a::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 1px;
  background: var(--cyan);
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 208, 192, 0.55);
}

.footer-note {
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(247, 241, 230, 0.72);
  border-left: 1px solid rgba(227, 167, 47, 0.5);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--max-w);
  padding: 18px clamp(20px, 4vw, 44px) clamp(28px, 4vw, 36px);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 230, 0.62);
  border-top: 1px solid rgba(110, 90, 63, 0.45);
}

.footer-base__copy,
.footer-base__icp { margin: 0; max-width: none; }

.footer-sep {
  padding: 0 4px;
  color: rgba(227, 167, 47, 0.8);
}

/* ---------- 显现动效 ---------- */

.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

@media (max-width: 1180px) {
  :root { --rail-w: 64px; }
}

@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
    --top-h: 68px;
  }

  body { padding-left: 0; }

  .masthead { padding: 0 clamp(14px, 4vw, 24px); }

  .nav-toggle { display: inline-flex; }

  .brand__sub { display: none; }

  .site-nav {
    top: var(--top-h);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(110, 90, 63, 0.5);
    transition: max-height 0.24s ease, opacity 0.18s ease;
  }

  .site-nav::before { display: none; }

  .site-nav[data-open] {
    max-height: calc(100vh - var(--top-h));
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .site-nav__list {
    align-items: stretch;
    gap: 0;
    padding: 10px 0 18px;
    margin: 0;
  }

  .site-nav__link {
    padding: 15px clamp(18px, 5vw, 32px);
    font-size: 16px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(143, 166, 184, 0.14);
    border-radius: 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .site-nav__link:hover { background: rgba(53, 208, 192, 0.08); }

  .site-nav__link[aria-current="page"] {
    background: rgba(227, 167, 47, 0.1);
    border-radius: 0;
    box-shadow: inset 3px 0 0 var(--amber);
  }

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

  .footer-grid { grid-template-columns: 1fr; }

  .footer-base { justify-content: flex-start; }
}

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

  .batch-badge { display: none; }

  .brand__name { font-size: 16px; }

  .btn--sm { padding: 8px 14px; font-size: 13px; }

  .footer-list__item { flex-direction: column; gap: 2px; }

  .footer-list__key { flex: none; }
}

/* ---------- 降低动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .js-anim [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn--amber:hover { transform: none; }
}
