/* ==========================================================================
   云顶国际会馆 — 共享站点样式 /assets/site.css
   设计轴：侧边轨道导航 · 海报式分层 · 云顶静奢 · 复古出版色
   ========================================================================== */

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

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

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

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

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色彩系统 —— 面积比例即节奏 */
  --ink: #14213D;          /* 深靛蓝 36% */
  --ink-deep: #1F2A44;     /* 夜航靛 14% */
  --silver: #C9D1D6;       /* 雾银灰 12% */
  --paper: #F7F4ED;        /* 晨雾白 18% */
  --gold: #D6A84B;         /* 晨曦金 6% */
  --gold-soft: #F0D9A8;    /* 暖金浅 4% */
  --jade: #6F8F8B;         /* 山岚青 5% */
  --glass: #8FA6B8;        /* 玻璃蓝 3% */
  --brown: #2A211D;        /* 深棕黑 1.5% */
  --cinnabar: #C25B3F;     /* 朱砂点色 <0.5% */

  --ink-line: rgba(201, 209, 214, 0.18);
  --ink-line-strong: rgba(201, 209, 214, 0.34);
  --gold-line: rgba(214, 168, 75, 0.42);
  --paper-line: rgba(42, 33, 29, 0.16);

  /* 结构 */
  --rail-w: 240px;
  --shell-max: 1180px;
  --measure: 38rem;

  --radius-lg: 26px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;

  /* 八级字号 12/14/16/20/28/40/64/96 */
  --fs-1: 0.75rem;
  --fs-2: 0.875rem;
  --fs-3: 1rem;
  --fs-4: 1.25rem;
  --fs-5: 1.75rem;
  --fs-6: clamp(2rem, 3.4vw, 2.5rem);
  --fs-7: clamp(2.5rem, 5.4vw, 4rem);
  --fs-8: clamp(3.25rem, 9vw, 6rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  margin: 0;
  padding-inline-start: 0;
  font-family: var(--font-body);
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--brown);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 46% at 90% 4%, rgba(214, 168, 75, 0.12), transparent 62%),
    radial-gradient(ellipse 62% 42% at 2% 94%, rgba(111, 143, 139, 0.13), transparent 64%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection {
  background: var(--gold);
  color: #241A0B;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

html.nav-open { overflow: hidden; }

/* 中文排版基线 */
.mono,
[data-copy],
.footer-key,
.footer-route,
.footer-icp,
.nav-index,
.rail-nav-label,
.rail-service-label,
.rail-service-note,
.rail-service-hours,
.eyebrow,
.breadcrumb,
.chip,
.media-frame__tag {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #241A0B;
  font-family: var(--font-display);
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-240%);
  transition: transform 0.24s var(--ease);
}

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

/* ==========================================================================
   5. Header —— 侧边轨道（桌面） / 粘性顶栏（移动）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px clamp(16px, 4vw, 26px);
  background: var(--ink);
  color: var(--silver);
  border-bottom: 1px solid var(--ink-line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -30% -10% -60% -10%;
  background:
    radial-gradient(ellipse 58% 68% at 18% 118%, rgba(143, 166, 184, 0.34), transparent 70%),
    radial-gradient(ellipse 46% 58% at 86% 128%, rgba(214, 168, 75, 0.24), transparent 72%);
  pointer-events: none;
  animation: mistDrift 24s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  from { opacity: 0.82; transform: translate3d(0, 0, 0) scale(1); }
  to   { opacity: 1;    transform: translate3d(-3%, -2%, 0) scale(1.06); }
}

/* --- 品牌 --- */
.rail-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

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

.brand-glyph {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-line);
  border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%;
  background:
    linear-gradient(152deg, rgba(214, 168, 75, 0.40), rgba(143, 166, 184, 0.16) 70%),
    var(--ink-deep);
  transition: border-color 0.28s var(--ease), transform 0.4s var(--ease);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid var(--gold-soft);
}

.brand:hover .brand-glyph {
  border-color: var(--gold);
  transform: rotate(-6deg);
}

.brand-word {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.brand-edition {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: rgba(201, 209, 214, 0.72);
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  position: relative;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--ink-line-strong);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(214, 168, 75, 0.14);
  color: var(--gold-soft);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.18s linear, width 0.3s var(--ease);
}

.nav-toggle-bars span:nth-child(2) { width: 68%; }

.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; width: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }

.site-header[data-open] .nav-toggle-text::after { content: "关"; }
.site-header[data-open] .nav-toggle-text { font-size: 0; }
.site-header[data-open] .nav-toggle-text::after { font-size: 13px; }

/* --- 抽屉 / 轨道内容 --- */
.rail-body {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 78px 22px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(168deg, var(--ink-deep) 0%, var(--ink) 62%, #101a30 100%);
  border-left: 1px solid var(--ink-line);
  box-shadow: -28px 0 60px rgba(20, 33, 61, 0.34);
  transform: translateX(103%);
  visibility: hidden;
  transition: transform 0.42s var(--ease), visibility 0.42s var(--ease);
}

.site-header[data-open] .rail-body {
  transform: translateX(0);
  visibility: visible;
}

.rail-nav { display: block; }

.rail-nav-label {
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: rgba(201, 209, 214, 0.55);
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--gold);
  transition: height 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(201, 209, 214, 0.09);
}

.nav-link[aria-current="page"] {
  color: var(--gold-soft);
  background: rgba(214, 168, 75, 0.11);
}

.nav-link[aria-current="page"]::before { height: 22px; }

.nav-index {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(201, 209, 214, 0.46);
  transition: color 0.22s var(--ease);
}

.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

.nav-text { line-height: 1.5; }

/* --- 第二栏：客服锚点 --- */
.rail-service {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background:
    linear-gradient(152deg, rgba(214, 168, 75, 0.17), rgba(143, 166, 184, 0.08) 62%, transparent 100%);
}

.rail-service-label {
  margin: 0 0 11px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(240, 217, 168, 0.78);
}

.rail-service-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(20, 33, 61, 0.52);
  border: 1px solid rgba(214, 168, 75, 0.34);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.rail-service-link:hover,
.rail-service-link:focus-visible {
  border-color: var(--gold);
  background: rgba(214, 168, 75, 0.18);
  transform: translateY(-2px);
}

.rail-service-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
}

.rail-service-note {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(201, 209, 214, 0.68);
}

.rail-service-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  translate: 0 -50%;
  font-size: 15px;
  color: var(--gold);
  transition: translate 0.25s var(--ease);
}

.rail-service-link:hover .rail-service-arrow { translate: 5px -50%; }

.rail-service-hours {
  margin: 11px 0 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201, 209, 214, 0.6);
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 60px) 26px;
  background: var(--ink);
  color: var(--silver);
  border-top: 1px solid var(--ink-line);
  overflow: hidden;
}

.footer-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 58% at 10% -12%, rgba(143, 166, 184, 0.32), transparent 62%),
    radial-gradient(ellipse 64% 52% at 94% 116%, rgba(214, 168, 75, 0.18), transparent 66%);
}

.footer-sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background-image: repeating-linear-gradient(180deg, rgba(201, 209, 214, 0.11) 0 1px, transparent 1px 18px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 88%);
  mask-image: linear-gradient(180deg, transparent, #000 88%);
}

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

.footer-brand-line {
  max-width: 24ch;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer-lede {
  max-width: 46ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(201, 209, 214, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--ink-line);
}

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

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(201, 209, 214, 0.13);
}

.footer-row--wide {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  border-bottom: 0;
}

.footer-key {
  flex: none;
  min-width: 40px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(201, 209, 214, 0.58);
}

.footer-value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-left: auto;
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--ink-line-strong);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--silver);
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.copy-btn[data-copied] {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(214, 168, 75, 0.18);
}

.footer-text {
  max-width: 34ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(201, 209, 214, 0.8);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.footer-link {
  position: relative;
  display: inline-block;
  padding-block: 5px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--silver);
  transition: color 0.22s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.footer-link:hover { color: var(--gold-soft); }
.footer-link:hover::after { transform: scaleX(1); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(30px, 5vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(201, 209, 214, 0.66);
}

.footer-icp { color: rgba(201, 209, 214, 0.82); }
.footer-sep { color: var(--gold); }

.footer-route {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(201, 209, 214, 0.46);
}

/* ==========================================================================
   7. 通用组件
   ========================================================================== */

/* --- 内容容器 --- */
.page-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 68px) clamp(20px, 5vw, 56px);
}

.prose {
  max-width: var(--measure);
  font-size: var(--fs-3);
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.15em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  margin-top: 1.9em;
  color: var(--ink);
}

.prose h2 { font-size: var(--fs-5); }
.prose h3 { font-size: var(--fs-4); }

.prose a {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--gold);
  transition: color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.prose a:hover {
  color: #8a6320;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.prose ul,
.prose ol { padding-left: 1.4em; }

.prose li + li { margin-top: 0.4em; }

/* --- 面包屑 --- */
.breadcrumb {
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(42, 33, 29, 0.58);
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(42, 33, 29, 0.3);
}

.breadcrumb-item a {
  color: rgba(42, 33, 29, 0.72);
  transition: color 0.2s var(--ease);
}

.breadcrumb-item a:hover { color: var(--ink); }

.breadcrumb-current { color: var(--ink); }

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 0.24s var(--ease),
    border-color 0.24s var(--ease),
    color 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #241A0B;
}

.btn--primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(20, 33, 61, 0.3);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(20, 33, 61, 0.06);
}

.btn--quiet {
  background: transparent;
  border-color: var(--gold-line);
  color: var(--gold-soft);
}

.btn--quiet:hover {
  border-color: var(--gold);
  background: rgba(214, 168, 75, 0.14);
}

/* --- 等宽 / 引题 / 标签 / 细线 --- */
.mono { font-size: 13px; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--jade);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(247, 244, 237, 0.7);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.chip:hover,
.chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #3a2a08;
}

.rule {
  height: 1px;
  margin: clamp(24px, 4vw, 44px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--gold-line), rgba(42, 33, 29, 0.12) 46%, transparent);
}

/* --- 图片容器（页面阶段放入 <img> 即可） --- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, var(--ink-deep) 0%, var(--ink) 56%, #2a211d 100%);
  color: var(--paper);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.media-frame:hover img { transform: scale(1.03); }

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 46% at 18% 108%, rgba(143, 166, 184, 0.3), transparent 68%),
    linear-gradient(180deg, transparent 44%, rgba(20, 33, 61, 0.66) 100%);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--land { aspect-ratio: 16 / 10; }
.media-frame--port { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.62);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.media-frame__caption {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 28px);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 244, 237, 0.9);
}

/* --- 栅格 --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
}

.grid--offset { align-items: start; }

/* --- 滚动进度条（JS 注入） --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 52%, var(--jade));
  pointer-events: none;
}

/* ==========================================================================
   8. 响应式
   ========================================================================== */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--offset { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid--offset > *:nth-child(1) { grid-column: 1 / span 7; }
  .grid--offset > *:nth-child(2) { grid-column: 9 / span 4; margin-top: 3.5rem; }
}

@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 26px 20px 22px;
    border-bottom: 0;
    border-right: 1px solid var(--ink-line);
    overflow: hidden;
  }

  .site-header::before {
    inset: -12% -30% -20% -30%;
  }

  .rail-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink-line);
  }

  .brand { gap: 11px; }

  .brand-glyph { width: 38px; height: 38px; }

  .brand-name { font-size: 18px; }

  .nav-toggle { display: none; }

  .rail-body {
    position: static;
    inset: auto;
    z-index: auto;
    width: auto;
    flex: 1;
    min-height: 0;
    padding: 24px 0 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
    justify-content: space-between;
    gap: 24px;
  }

  .rail-nav-label { padding-left: 12px; }

  .nav-link {
    padding: 10px 12px 10px 14px;
    font-size: 15px;
  }

  .rail-service {
    margin-top: 0;
    padding: 14px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.9fr 0.8fr;
  }
}

@media (min-width: 1280px) {
  :root { --rail-w: 256px; }
}

/* ==========================================================================
   9. 可动效降级 / 打印
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }

  .media-frame:hover img { transform: none; }
  .btn:hover { transform: none; }
}

@media print {
  body { padding-inline-start: 0; background: #fff; color: #000; }
  .site-header,
  .site-footer,
  .scroll-progress { display: none !important; }
}
