/* ==========================================================================
   鼎利娱乐会馆 · shared site kit  →  /assets/site.css
   母题：高原会馆夜灯（深靛夜空 + 一盏暖橙灯源 + 鎏金刻度线）
   ========================================================================== */

/* ---------- 1 · reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

img { height: auto; }

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

a { color: inherit; }

::selection { background: rgba(224, 138, 60, 0.42); color: #fff; }

/* ---------- 2 · tokens ---------- */
:root {
  /* 珠宝色分区 */
  --ink-night: #131A33;   /* 高原夜靛 */
  --ink-dusk: #22305A;    /* 暮色靛青 */
  --turq: #1E6F6B;        /* 松石绿 */
  --turq-mist: #A8CFC9;   /* 松石薄雾 */
  --amber: #E08A3C;       /* 酥油暖橙 */
  --on-amber: #1A1207;
  --gold: #C9A227;        /* 鎏金 */
  --flag-red: #B7373F;    /* 经幡红 */
  --flag-yellow: #E8C34A; /* 经幡黄 */
  --paper: #F4EEE3;       /* 纸本暖白 */
  --ink: #14110F;         /* 墨黑 */
  --stone: #6E7280;       /* 石灰灰 */

  /* 尺寸与节奏 */
  --rail-w: 112px;
  --topbar-h: 58px;
  --shell-max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --radius-a: 18px;
  --radius-b: 12px;

  /* 字体 */
  --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;

  /* 动效 */
  --dur: 240ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3 · 中文排版基底 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

@media (min-width: 960px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 959px) {
  body { padding-top: var(--topbar-h); }
}

@media (max-width: 959px) {
  body.nav-open { overflow: hidden; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4 · 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-amber);
  background: var(--amber);
  border-radius: var(--radius-b);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

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

@media (min-width: 960px) {
  .skip-link { left: calc(var(--rail-w) + 10px); }
}

/* ---------- 5 · 页头骨架 ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

/* 阅读进度条 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 5;
  background: rgba(168, 207, 201, 0.14);
  pointer-events: none;
}

@media (min-width: 960px) {
  .progress { left: var(--rail-w); }
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  background: linear-gradient(90deg, var(--turq) 0%, var(--gold) 58%, var(--amber) 100%);
}

/* ---------- 6 · 桌面端侧轨 ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  width: var(--rail-w);
  padding: 24px 0 20px;
  background: linear-gradient(180deg, #18223F 0%, var(--ink-night) 46%, #0D1226 100%);
  border-right: 1px solid rgba(168, 207, 201, 0.2);
}

@media (min-width: 960px) {
  .rail { display: flex; }
}

/* 经幡五色细条 */
.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ink-dusk) 0 20%,
    var(--paper) 20% 40%,
    var(--flag-red) 40% 60%,
    var(--turq) 60% 80%,
    var(--flag-yellow) 80% 100%
  );
  opacity: 0.85;
}

/* 底部鎏金刻度 */
.rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: repeating-linear-gradient(
    180deg,
    rgba(201, 162, 39, 0.34) 0 1px,
    transparent 1px 12px
  );
  pointer-events: none;
}

.rail-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: var(--radius-b);
  text-decoration: none;
  color: var(--paper);
}

.rail-mark {
  width: 30px;
  height: 41px;
  color: var(--amber);
  filter: drop-shadow(0 0 12px rgba(224, 138, 60, 0.5));
}

.rail-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.3;
  color: var(--paper);
}

/* 侧轨导航 */
.rail-nav {
  width: 100%;
  margin: auto 0;
}

.rail-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 11px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(244, 238, 227, 0.72);
  text-decoration: none;
  border-radius: 0 var(--radius-b) var(--radius-b) 0;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rail-link:hover {
  color: var(--paper);
  background-color: rgba(168, 207, 201, 0.1);
}

.rail-link[aria-current="page"] {
  color: #ffffff;
  background-color: rgba(30, 111, 107, 0.46);
  box-shadow: inset 3px 0 0 var(--amber);
}

.rail-ico {
  display: block;
  width: 20px;
  height: 20px;
}

.rail-ico svg {
  width: 100%;
  height: 100%;
}

.rail-label {
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* 侧轨 CTA */
.rail-cta {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 24px);
  margin-top: 20px;
  padding: 10px 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: var(--on-amber);
  background-color: var(--amber);
  border-radius: 10px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rail-cta:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(224, 138, 60, 0.34);
}

/* ---------- 7 · 移动端顶部条 ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 14px 0 16px;
  background-color: rgba(19, 26, 51, 0.97);
  border-bottom: 1px solid rgba(168, 207, 201, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (min-width: 960px) {
  .topbar { display: none; }
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--paper);
}

.topbar-brand svg {
  width: 22px;
  height: 29px;
  color: var(--amber);
}

.topbar-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background-color: rgba(30, 111, 107, 0.3);
  border: 1px solid rgba(168, 207, 201, 0.34);
  border-radius: var(--radius-b);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background-color: rgba(30, 111, 107, 0.5);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 8 · 抽屉 ---------- */
.drawer {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 18px 34px;
  overflow-y: auto;
  color: var(--paper);
  background:
    radial-gradient(120% 70% at 92% 0%, rgba(224, 138, 60, 0.2) 0%, transparent 58%),
    linear-gradient(180deg, #17213E 0%, var(--ink-night) 56%, #0E1428 100%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

@media (min-width: 960px) {
  .drawer { display: none; }
}

.drawer[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.drawer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--turq-mist);
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(168, 207, 201, 0.16);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.drawer-link:hover {
  color: var(--amber);
  padding-left: 10px;
}

.drawer-link[aria-current="page"] {
  color: var(--amber);
}

.drawer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.drawer-link[aria-current="page"] .drawer-num {
  color: var(--amber);
}

.drawer-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--paper);
  background-color: rgba(30, 111, 107, 0.32);
  border: 1px solid rgba(168, 207, 201, 0.26);
  border-radius: var(--radius-b);
}

.drawer-shortcut:hover {
  border-color: var(--turq-mist);
}

.drawer-cta {
  display: block;
  margin-top: auto;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--on-amber);
  background-color: var(--amber);
  border-radius: var(--radius-b);
}

.drawer-foot {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(244, 238, 227, 0.6);
}

/* ---------- 9 · 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 108px);
  padding-bottom: 22px;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(180deg, #0E1428 0%, var(--ink-night) 44%, #101733 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(30, 111, 107, 0.34), transparent 82%);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 100%);
  pointer-events: none;
}

.footer-flags {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 20px;
}

.footer-flags span {
  display: block;
  width: 48px;
  max-width: 12vw;
  height: 3px;
  border-radius: 2px;
}

.footer-flags span:nth-child(1) { background-color: var(--ink-dusk); }
.footer-flags span:nth-child(2) { background-color: var(--paper); }
.footer-flags span:nth-child(3) { background-color: var(--flag-red); }
.footer-flags span:nth-child(4) { background-color: var(--turq); }
.footer-flags span:nth-child(5) { background-color: var(--flag-yellow); }

.footer-lamp {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 22px;
  color: var(--amber);
}

.footer-lamp svg {
  width: 46px;
  height: 63px;
  filter: drop-shadow(0 0 22px rgba(224, 138, 60, 0.55));
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.footer-grid {
  display: grid;
  gap: 34px 28px;
  padding: 30px 0 30px;
  border-top: 1px solid rgba(168, 207, 201, 0.18);
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; }
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer-tagline {
  max-width: 22em;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(244, 238, 227, 0.74);
}

.footer-addr {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 238, 227, 0.58);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--turq-mist);
}

.footer-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background-color: var(--gold);
}

.footer-list li + li { margin-top: 9px; }

.footer-link {
  font-size: 14px;
  color: rgba(244, 238, 227, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--amber);
  border-bottom-color: rgba(224, 138, 60, 0.6);
}

.footer-tel {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-meta {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 238, 227, 0.62);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(168, 207, 201, 0.18);
  font-size: 12px;
  color: rgba(244, 238, 227, 0.52);
}

.footer-copy,
.footer-icp { margin: 0; }

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-align: right;
}

@media (max-width: 599px) {
  .footer-icp { text-align: left; }
}

/* ---------- 10 · 通用容器与版式 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose {
  max-width: 34em;
  line-height: 1.85;
}

.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }

.stack > * + * {
  margin-top: var(--stack-gap, 18px);
}

/* ---------- 11 · 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-b);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn--amber {
  color: var(--on-amber);
  background-color: var(--amber);
}

.btn--amber:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 22px rgba(224, 138, 60, 0.32);
}

.btn--turq {
  color: var(--paper);
  background-color: var(--turq);
}

.btn--turq:hover {
  background-color: #248079;
  box-shadow: 0 8px 22px rgba(30, 111, 107, 0.4);
}

.btn--ghost {
  color: var(--paper);
  background-color: transparent;
  border-color: rgba(168, 207, 201, 0.42);
}

.btn--ghost:hover {
  background-color: rgba(168, 207, 201, 0.12);
  border-color: var(--turq-mist);
}

/* ---------- 12 · 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--turq);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--turq);
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--stone);
  opacity: 0.6;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

/* ---------- 13 · 标签与编号 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--turq);
  background-color: rgba(30, 111, 107, 0.16);
  border: 1px solid rgba(30, 111, 107, 0.36);
  border-radius: 999px;
}

.tag--light {
  color: var(--turq-mist);
  background-color: rgba(168, 207, 201, 0.1);
  border-color: rgba(168, 207, 201, 0.34);
}

.tag--amber {
  color: var(--on-amber);
  background-color: var(--amber);
  border-color: transparent;
}

.section-index {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* ---------- 14 · 档案卡 ---------- */
.card {
  padding: 22px;
  color: var(--ink);
  background-color: var(--paper);
  border-radius: var(--radius-a);
  box-shadow: 0 2px 0 rgba(168, 207, 201, 0.55);
}

.card--dark {
  color: var(--paper);
  background-color: var(--ink-dusk);
  border: 1px solid rgba(168, 207, 201, 0.18);
  box-shadow: none;
}

/* ---------- 15 · 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-a);
  background-image: linear-gradient(142deg, var(--ink-dusk) 0%, var(--turq) 62%, #0F1529 100%);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(224, 138, 60, 0.22), transparent 58%),
    linear-gradient(180deg, transparent 52%, rgba(9, 12, 24, 0.58) 100%);
}

.img-frame--wide { aspect-ratio: 16 / 10; }
.img-frame--square { aspect-ratio: 1 / 1; }

.media-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  color: rgba(244, 238, 227, 0.62);
}

/* ---------- 16 · 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

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

/* ---------- 17 · 降级与无障碍 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
