/* ==========================================================================
   铭锋古建 · 甘肃城市站
   版面体系：纸本图录（Book-spine / Ledger / Plates）
   —— 书脊竖导航 · 宋体标题 · 目录式清单 · 对照表 · 全幅交错图版 · 版权页
   与站群既有模板（顶部横导航 + 全幅大图首屏 + 编号步骤 + 卡片网格 + 深色四栏）
   在骨架层面完全区隔。
   ========================================================================== */

/* ---------- 1. 令牌 ---------- */
:root {
  /* 赭石（敦煌土黄）+ 玄墨 + 宣纸 + 朱砂 */
  --ochre: #a96b2e;
  --ochre-deep: #7b4a1b;
  --ochre-soft: #c89a5e;
  --soot: #231d18;          /* 玄墨：暖调近黑，区别于站群既有青蓝/墨绿 */
  --soot-2: #2f2720;
  --paper: #f7f1e4;
  --paper-2: #efe6d5;
  --paper-3: #e4d8c2;
  --ink: #211b15;
  --ink-2: #3a3027;
  --ink-3: #6e6154;
  --ink-4: #9a8b79;
  --ink-mute: #7a6c58;
  --cinnabar: #9c3b2a;
  --line: #ddd0b9;
  --line-2: #bda98a;

  /* 兼容旧模板中的变量引用 */
  --dusk: var(--soot);
  --dusk-deep: #171310;
  --brand: var(--ochre);
  --brand-deep: var(--ochre-deep);
  --brand-soft: var(--ochre-soft);
  --accent: var(--cinnabar);
  --white: #fffdf8;

  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --spine: 92px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, .68, .2, 1);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-right: var(--spine);
  overflow-x: clip;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(33, 27, 21, .022) 1px, transparent 1px);
  background-size: 3px 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

::selection { background: var(--ochre); color: #fff; }

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

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

.sec { padding: clamp(48px, 6.6vw, 88px) 0; }

/* ---------- 3. 书脊竖导航（桌面） ---------- */
.spine {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--spine);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 18px;
  background: var(--soot);
  border-left: 1px solid rgba(247, 241, 228, .1);
}

.spine::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 3px;
  width: 1px;
  background: rgba(200, 154, 94, .22);
}

.spine-seal {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--ochre-soft);
  flex: 0 0 auto;
}

.spine-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.spine-brand {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: rgba(247, 241, 228, .9);
  text-decoration: none;
}

.spine-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.spine-nav::-webkit-scrollbar { display: none; }

.spine-nav a {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: .16em;
  color: rgba(247, 241, 228, .66);
  text-decoration: none;
  padding: 2px 0;
  border-right: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.spine-nav a:hover,
.spine-nav a.on {
  color: var(--ochre-soft);
  border-right-color: var(--ochre-soft);
}

.spine-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.spine-tools button,
.spine-tools a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 1px solid rgba(247, 241, 228, .2);
  color: rgba(247, 241, 228, .76);
  cursor: pointer;
  transition: .22s var(--ease);
}

.spine-tools svg { width: 16px; height: 16px; }

.spine-tools button:hover,
.spine-tools a:hover {
  border-color: var(--ochre-soft);
  color: var(--ochre-soft);
}

/* ---------- 4. 移动端顶条与底部停靠栏 ---------- */
.mtop { display: none; }
.dock { display: none; }

/* ---------- 5. 首屏 · 门额（左文右图版，非全幅压图） ---------- */
.opening { padding: clamp(24px, 3.4vw, 48px) 0 0; }

.opening-in {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(24px, 3.6vw, 60px);
  align-items: stretch;
}

.op-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.op-eyebrow {
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0;
}

.opening h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.9vw, 3.35rem);
  line-height: 1.24;
  letter-spacing: -.005em;
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

.opening h1 em {
  font-style: normal;
  color: var(--ochre);
  display: inline-block;   /* 避免句末单字掉行 */
}

.op-rule {
  width: 56px;
  height: 2px;
  background: var(--ochre);
  margin: 24px 0 20px;
  border: 0;
}

.op-sub {
  font-size: clamp(14.5px, 1vw, 16px);
  color: var(--ink-2);
  margin: 0;
  max-width: 32em;
}

.op-act {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.op-dossier {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
  margin-top: clamp(26px, 3.4vw, 42px);
  padding-top: 0;
}

.op-dossier div {
  padding: 14px 10px 0 0;
  border-right: 1px solid var(--line);
}

.op-dossier div:last-child { border-right: 0; }

.op-dossier b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.op-dossier i {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-4);
  margin-top: 4px;
}

/* 图版：一挂轴 + 两小品 */
.plates {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: 1.08fr .92fr;
  gap: 9px;
  min-height: clamp(420px, 40vw, 540px);
  min-width: 0;
}

.plates figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  background: var(--paper-3);
  min-width: 0;
}

.plates figure:first-child {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.plates img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.94) contrast(1.02);
  transition: transform 1.1s var(--ease);
}

.plates figure:hover img { transform: scale(1.035); }

.plates .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  font-family: var(--serif);
  letter-spacing: .2em;
}

.seal-mark {
  position: absolute;
  left: -22px;
  bottom: 34px;
  width: 86px;
  height: 86px;
  background: var(--cinnabar);
  color: #fdf6ea;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .1em;
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55);
}

/* ---------- 6. 主张（大字引言带） ---------- */
.thesis {
  margin-top: clamp(40px, 5.6vw, 76px);
  padding: clamp(26px, 3.4vw, 38px) 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
}

.thesis .k {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.thesis p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.05vw, 1.8rem);
  line-height: 1.68;
  color: var(--ink);
  max-width: 30em;
}

.thesis p b {
  font-weight: 600;
  color: var(--ochre-deep);
  border-bottom: 1px solid var(--ochre-soft);
}

/* ---------- 7. 区块标头 ---------- */
.sh {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.sh-k {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--ink-4);
  white-space: nowrap;
  text-transform: uppercase;
}

.sh-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sh-a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: .2s;
}

.sh-a:hover { color: var(--ochre); border-bottom-color: var(--ochre); }

.sh-t {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 12px 0 6px;
}

.sh-d {
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 46em;
}

/* 兼容旧模板的 sec-head 结构 */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}

.sec-head-l { display: flex; gap: 16px; align-items: baseline; }

.sec-num {
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--ink-4);
  white-space: nowrap;
  text-transform: uppercase;
  padding-top: 6px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 600;
  margin: 0;
}

.sec-head h2 em { font-style: normal; color: var(--ochre); }

.sec-sub {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 14px;
  max-width: 44em;
}

.more {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  white-space: nowrap;
}

.more:hover { color: var(--ochre); border-bottom-color: var(--ochre); }

/* ---------- 8. 构件图录（目录式清单） ---------- */
.ledger { border-top: 1px solid var(--line-2); }

.lgr { border-bottom: 1px solid var(--line); }

.lgr-h {
  display: grid;
  grid-template-columns: 58px 1fr 300px 34px;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  transition: background .25s var(--ease);
}

.lgr:hover .lgr-h { background: linear-gradient(90deg, rgba(169, 107, 46, .045), transparent 70%); }

.lgr-no {
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.lgr-h h3 {
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.85vw, 24px);
  font-weight: 600;
  margin: 0;
  letter-spacing: .01em;
}

.lgr-h h3 a { text-decoration: none; }
.lgr-h h3 a:hover { color: var(--ochre-deep); }

.lgr-f {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.lgr-t {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  cursor: pointer;
  transition: .25s var(--ease);
}

.lgr-t svg { width: 13px; height: 13px; }

.lgr.open .lgr-t {
  background: var(--soot);
  border-color: var(--soot);
  color: var(--paper);
}

.lgr.open .lgr-t svg { transform: rotate(180deg); }

.lgr-b {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 0;
  overflow: hidden;
  transition: height .42s var(--ease);
}

.lgr.open .lgr-b { height: 172px; margin: 0 0 18px; }

.lgr-b img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
}

.lgr-b .go-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-2);
}

.lgr-b .go-tile span { font-size: 11px; letter-spacing: .2em; color: var(--ink-4); }

/* ---------- 9. 对照表（常见做法 / 铭锋做法） ---------- */
.vs { border-top: 1px solid var(--line-2); }

.vs-h {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 76px);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}

.vs-h span {
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.vs-h span + span { color: var(--ochre); }

.vs-r {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(20px, 2.6vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}

.vs-r h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 7px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vs-r h4::before {
  font-size: 12px;
  line-height: 1;
  color: var(--ink-4);
  font-family: var(--sans);
}

.vs-r .a h4 { color: var(--ink-3); }
.vs-r .a h4::before { content: "×"; }
.vs-r .b h4 { color: var(--ink); }
.vs-r .b h4::before { content: "✓"; color: var(--ochre); }

.vs-r p { margin: 0; font-size: 14px; line-height: 1.72; color: var(--ink-3); }
.vs-r .b p { color: var(--ink-2); }

/* ---------- 10. 全幅图版（案例交错） ---------- */
.scenes { border-top: 1px solid var(--line-2); }

.scene {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(74vh, 600px);
  padding: clamp(40px, 5vw, 64px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}

.scene-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34%;
  right: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--paper-3);
}

.scene-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform 1.3s var(--ease);
}

.scene:hover .scene-img img { transform: scale(1.04); }

.scene.alt .scene-img { left: 0; right: 34%; }

.scene-in { width: 100%; padding: 0 var(--gutter); }

.scene-card {
  position: relative;
  max-width: 500px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  padding: clamp(24px, 3.2vw, 42px);
  box-shadow: 0 30px 70px -46px rgba(33, 27, 21, .55);
}

.scene.alt .scene-card { margin-left: auto; }

.scene-no {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: .9;
  color: var(--line-2);
  margin-bottom: 10px;
}

.scene-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--ink-4);
  margin-bottom: 10px;
}

.scene-meta i {
  font-style: normal;
  width: 3px;
  height: 3px;
  background: var(--ochre);
  display: inline-block;
}

.scene-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.75vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 10px;
}

.scene-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scene-go {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ochre-deep);
  border-bottom: 1px solid var(--ochre-soft);
  padding-bottom: 1px;
}

/* ---------- 11. 城域名录 ---------- */
.atlas { padding: clamp(44px, 5.6vw, 80px) 0; border-top: 1px solid var(--line-2); }

.atlas-line {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.35vw, 1.95rem);
  line-height: 2.1;
  letter-spacing: .01em;
  margin: 0;
  color: var(--ink-2);
}

.atlas-line a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: .22s var(--ease);
  padding-bottom: 1px;
}

.atlas-line a:hover { color: var(--ochre); border-bottom-color: var(--ochre-soft); }

.atlas-line a.cur {
  color: var(--ochre-deep);
  border-bottom: 1px solid var(--ochre);
}

.atlas-line .atlas-i { white-space: nowrap; }

.atlas-line .sep {
  color: var(--line-2);
  margin: 0 .42em;
  font-size: .8em;
}

.atlas-line .atlas-i:last-child .sep { display: none; }

.atlas-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-4);
  border-left: 2px solid var(--ochre-soft);
  padding-left: 14px;
}

/* ---------- 12. 编年（手记） ---------- */
.chron { border-top: 1px solid var(--line-2); }

.chr {
  display: grid;
  grid-template-columns: 132px 1fr 96px;
  gap: 22px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .25s var(--ease);
}

.chr:hover { background: linear-gradient(90deg, rgba(169, 107, 46, .045), transparent 70%); }

.chr time {
  font-size: 12.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.chr h3 {
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  transition: color .22s;
}

.chr:hover h3 { color: var(--ochre-deep); }

.chr .k {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-4);
  text-align: right;
  text-transform: uppercase;
}

/* ---------- 13. 结尾（巨号电话） ---------- */
.closing {
  border-top: 2px solid var(--soot);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 4.6vw, 58px) 0;
}

.closing-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.closing h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 10px;
}

.closing p { margin: 0; color: var(--ink-3); font-size: 14.5px; max-width: 34em; }

.closing-act { text-align: right; }

.closing .big {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
  color: var(--ochre-deep);
  text-decoration: none;
  line-height: 1.1;
  font-weight: 500;
}

.closing .big:hover { color: var(--cinnabar); }

.closing .note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--ink-4);
}

/* ---------- 14. 版权页（页脚） ---------- */
.colophon {
  background: var(--soot);
  color: rgba(247, 241, 228, .7);
  padding: clamp(38px, 5vw, 62px) 0 30px;
  margin-top: 0;
}

.col-in { max-width: 660px; margin: 0 auto; text-align: center; }

.col-seal { width: 50px; height: 50px; margin: 0 auto 16px; color: var(--ochre-soft); display: block; }

.col-name {
  font-family: var(--serif);
  font-size: 18.5px;
  letter-spacing: .16em;
  color: var(--paper);
}

.col-meta { margin: 16px 0 0; font-size: 13px; line-height: 2.15; }

.col-meta b {
  font-weight: 400;
  color: rgba(247, 241, 228, .42);
  margin-right: 10px;
  letter-spacing: .12em;
  font-size: 11.5px;
}

.col-meta a { color: rgba(247, 241, 228, .82); text-decoration: none; }

.col-links {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
}

.col-links a,
.col-links button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: rgba(247, 241, 228, .7);
  text-decoration: none;
  cursor: pointer;
}

.col-links a:hover,
.col-links button:hover { color: var(--ochre-soft); }

.col-copy {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 241, 228, .13);
  font-size: 12.5px;
  color: rgba(247, 241, 228, .48);
  letter-spacing: .02em;
}

/* ---------- 15. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  font-family: var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .24s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-p {
  background: var(--soot);
  color: var(--paper);
  border-color: var(--soot);
}

.btn-p:hover { background: var(--ochre-deep); border-color: var(--ochre-deep); }

.btn-o {
  background: none;
  color: var(--ink-2);
  border-color: var(--line-2);
}

.btn-o:hover { border-color: var(--ochre); color: var(--ochre-deep); }

.btn-d {
  background: none;
  color: var(--ink-2);
  border-color: var(--line-2);
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-d:hover { border-color: var(--ochre); color: var(--ochre-deep); }

/* 文字链式 CTA（首屏第二入口） */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: .24s var(--ease);
}

.link-arrow svg { width: 15px; height: 15px; }
.link-arrow:hover { color: var(--ochre-deep); border-bottom-color: var(--ochre); }

.tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.tel-btn svg { width: 16px; height: 16px; color: var(--ochre); }
.tel-btn:hover { color: var(--ochre-deep); }

/* ---------- 16. 内页 ---------- */
.page-head {
  padding: clamp(30px, 4.2vw, 56px) 0 clamp(18px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line-2);
}

.crumb {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--ink-4);
  margin-bottom: 16px;
}

.crumb a { color: var(--ink-4); text-decoration: none; }
.crumb a:hover { color: var(--ochre); }
.crumb i { font-style: normal; margin: 0 7px; opacity: .5; }

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0;
  line-height: 1.25;
}

.lead {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 15px;
  max-width: 48em;
  line-height: 1.8;
}

/* 产品网格：细线分格，无圆角无阴影 */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: background .25s var(--ease);
}

.pcard:hover { background: #fbf6ec; }

.pcard .pcard-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}

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

.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-idx {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}

.pcard-body { padding: 14px 16px 18px; }

.pcard-body h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.pcard-body p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  min-height: 2.6em;
}

.pcard-go {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ochre-deep);
  letter-spacing: .02em;
}

.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  font-family: var(--serif);
  letter-spacing: .2em;
  min-height: 120px;
  background: var(--paper-3);
}

/* 案例墙 */
.wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

.cc {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cc-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line);
}

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

.cc:hover .cc-img img { transform: scale(1.04); }

.cc-meta { padding: 12px 2px 0; border-top: 1px solid var(--line); margin-top: 12px; }

.cc-meta .loc {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ochre-deep);
  margin-bottom: 6px;
}

.cc-meta h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* 详情页 */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 3.6vw, 48px); align-items: start; }
.detail-media { position: sticky; top: 24px; }
.detail-media #mainImg { width: 100%; display: block; border: 1px solid var(--line); background: var(--paper-3); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 7px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; border: 1px solid var(--line); opacity: .82; transition: .2s; }
.thumbs img:hover { opacity: 1; border-color: var(--ochre); }

.spec { border-top: 1px solid var(--line-2); margin-top: clamp(18px, 2.6vw, 28px); }
.spec-row { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row dt, .spec-row b { color: var(--ink-4); font-weight: 400; font-size: 12.5px; letter-spacing: .08em; }
.spec-row dd, .spec-row span { margin: 0; color: var(--ink-2); }

.prose { max-width: 44em; font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 600; margin: 2em 0 .7em; }
.prose h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 1.6em 0 .6em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose img { display: block; margin: 1.6em 0; border: 1px solid var(--line); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ochre-soft); color: var(--ink-3); }

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-row b { color: var(--ink-4); font-weight: 400; font-size: 12.5px; letter-spacing: .12em; }
.contact-row span, .contact-row a { color: var(--ink-2); text-decoration: none; font-size: 16px; }
.contact-row a:hover { color: var(--ochre-deep); }

.empty { text-align: center; padding: clamp(48px, 8vw, 96px) 20px; }
.empty h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 10px; }
.empty p { color: var(--ink-3); margin: 0; }

/* ---------- 17. 搜索 / 分享层 ---------- */
.search, .share {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(23, 19, 16, .62);
  backdrop-filter: blur(3px);
}

.search.on, .share.on { display: block; }

.search-close, .share-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(247, 241, 228, .3);
  color: var(--paper);
  cursor: pointer;
}

.search-in {
  max-width: 720px;
  margin: clamp(60px, 12vh, 130px) auto 0;
  padding: 0 var(--gutter);
  color: var(--paper);
}

.search-in h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  margin: 0 0 18px;
}

.search-box { position: relative; }

.search-box input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 18px;
  background: rgba(247, 241, 228, .06);
  border: 1px solid rgba(247, 241, 228, .38);
  color: var(--paper);
  font-size: 17px;
  font-family: var(--sans);
  outline: none;
}

.search-box input::placeholder { color: rgba(247, 241, 228, .45); }
.search-box input:focus { border-color: var(--ochre-soft); }
.search-box svg { position: absolute; right: 18px; top: 19px; width: 20px; height: 20px; color: rgba(247, 241, 228, .6); }

.search-hint { font-size: 12.5px; color: rgba(247, 241, 228, .55); margin: 12px 0 0; letter-spacing: .04em; }

.search-res { margin-top: 20px; max-height: 52vh; overflow-y: auto; }

.sr-item {
  display: block;
  padding: 14px 16px;
  margin-bottom: 7px;
  background: rgba(247, 241, 228, .07);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--paper);
  transition: .2s;
}

.sr-item:hover { background: rgba(247, 241, 228, .13); border-left-color: var(--ochre-soft); }
.sr-item .t { font-size: 11px; letter-spacing: .2em; color: var(--ochre-soft); }
.sr-item .h { font-family: var(--serif); font-size: 17px; margin: 3px 0; }
.sr-item .d { font-size: 13px; color: rgba(247, 241, 228, .6); }
.sr-empty { padding: 20px 4px; color: rgba(247, 241, 228, .6); font-size: 14px; }

.share-card {
  position: relative;
  max-width: 420px;
  margin: clamp(60px, 14vh, 150px) auto 0;
  padding: 30px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line-2);
}

.share-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 6px; }
.share-card > p { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-3); }
.share-close { border-color: var(--line-2); color: var(--ink-3); top: 12px; right: 12px; width: 34px; height: 34px; }

.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.share-grid a, .share-grid button {
  display: grid;
  place-items: center;
  height: 46px;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: .2s;
}

.share-grid a:hover, .share-grid button:hover { border-color: var(--ochre); color: var(--ochre-deep); }

.share-qr { display: none; margin-top: 16px; text-align: center; }
.share-qr.on { display: block; }
.share-qr img { width: 180px; height: 180px; border: 1px solid var(--line); }
.share-qr span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 6px; }

/* ---------- 18. 浮动工具（仅移动端，桌面由书脊承担） ---------- */
.fab {
  position: fixed;
  right: 14px;
  bottom: 82px;
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.fab a, .fab button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: .22s var(--ease);
}

.fab a:hover, .fab button:hover { border-color: var(--ochre); color: var(--ochre-deep); }
.fab svg { width: 17px; height: 17px; }

.fab .top-btn { opacity: 0; pointer-events: none; transition: .3s; }
.fab .top-btn.show { opacity: 1; pointer-events: auto; }

/* ---------- 19. 滚动显现 ---------- */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .plates img, .scene-img img, .pcard .pcard-img img { transition: none; }
}

/* ---------- 20. 断点 ---------- */
@media (max-width: 1180px) {
  .lgr-h { grid-template-columns: 48px 1fr 200px 34px; gap: 14px; }
  .scene-card { max-width: 440px; }
  .chr { grid-template-columns: 112px 1fr 78px; }
}

@media (max-width: 959px) {
  body { padding-right: 0; padding-bottom: 66px; }

  .spine { display: none; }

  .mtop {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 55;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(247, 241, 228, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  .mtop .b {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
  }

  .mtop .b svg { width: 26px; height: 26px; color: var(--ochre); }

  .mtop .b b { font-family: var(--serif); font-size: 16.5px; font-weight: 600; letter-spacing: .08em; }

  .mtop .b i {
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: .16em;
    color: var(--ink-4);
    display: block;
  }

  .mtop-act { display: flex; gap: 6px; align-items: center; }

  .mtop-act button, .mtop-act a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink-2);
    cursor: pointer;
  }

  .mtop-act svg { width: 17px; height: 17px; }

  .dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    z-index: 58;
    background: rgba(35, 29, 24, .975);
    border-top: 1px solid rgba(247, 241, 228, .12);
    backdrop-filter: blur(8px);
  }

  .dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(247, 241, 228, .68);
    font-size: 10.5px;
    letter-spacing: .06em;
  }

  .dock a svg { width: 18px; height: 18px; }
  .dock a.on { color: var(--ochre-soft); }
  .dock a.tel { background: var(--ochre); color: #fffdf8; }

  .fab { display: flex; right: 14px; bottom: 80px; }
  .fab .top-btn { display: none; }

  .opening-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .opening h1 { font-size: clamp(1.7rem, 7.2vw, 2.5rem); line-height: 1.28; }
  .op-dossier { grid-template-columns: 1fr 1fr; margin-top: 26px; }
  .op-dossier div { padding: 12px 8px 0 0; }
  .op-dossier div:nth-child(2n) { border-right: 0; }
  .op-dossier div:nth-child(n+3) { margin-top: 6px; }

  .plates { min-height: 300px; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; gap: 6px; }
  .plates figure:first-child { grid-row: 1; grid-column: 1 / 2; }
  .seal-mark { width: 62px; height: 62px; font-size: 12px; left: -6px; bottom: 12px; }

  .lgr-h {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    column-gap: 10px;
    row-gap: 3px;
    padding: 14px 2px;
    align-items: start;
  }
  .lgr-no { grid-row: 1 / 3; padding-top: 7px; }
  .lgr-h h3 { grid-column: 2; grid-row: 1; }
  .lgr-f { grid-column: 2; grid-row: 2; display: block; font-size: 12.5px; color: var(--ink-4); line-height: 1.5; }
  .lgr-t { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .lgr-b { grid-template-columns: repeat(2, 1fr); }
  .lgr.open .lgr-b { height: 244px; }
  .lgr-b img { height: 118px; }
  .lgr-b .go-tile { display: none; }

  .vs-h, .vs-r { grid-template-columns: 1fr; gap: 12px; }
  .vs-h span + span { display: none; }
  .vs-r .a { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .vs-r .a h4 { font-size: 15px; }
  .vs-r .b h4 { font-size: 16.5px; }
  .vs-r .a p, .vs-r .b p { font-size: 13.5px; }

  .scene { min-height: 0; padding: 0 0 26px; display: block; }
  .scene-img { position: relative; left: auto; right: auto; height: 240px; }
  .scene.alt .scene-img { left: auto; right: auto; }
  .scene-in { padding: 0 var(--gutter); }
  .scene-card { max-width: none; margin: -34px 0 0; padding: 22px 18px; }
  .scene.alt .scene-card { margin-left: 0; }
  .scene-no { font-size: 2rem; }

  .chr { grid-template-columns: 1fr; gap: 4px; padding: 15px 2px; }
  .chr time { font-size: 11.5px; }
  .chr .k { display: none; }

  .closing-in { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .closing-act { text-align: left; }

  .pgrid { grid-template-columns: 1fr 1fr; }
  .wall { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-media { position: static; }
  .contact-row { grid-template-columns: 92px 1fr; gap: 12px; }
  .spec-row { grid-template-columns: 88px 1fr; gap: 12px; }
  .atlas-line { line-height: 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .opening h1 { font-size: clamp(1.6rem, 8.2vw, 2.1rem); }
  .pgrid { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr; }
  .plates { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; min-height: 268px; }
  .plates figure:first-child { grid-row: 1; grid-column: auto; }
  .plates figure:nth-child(3) { display: none; }
  .col-meta { font-size: 12.5px; }
  .search-in { margin-top: 54px; }
  .share-card { margin: 54px 16px 0; }
}

/* ---------- 21. 内页结构与旧类兼容 ---------- */

/* 关于页：左栏说明 + 右栏长文 */
.adv {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.adv-side { position: sticky; top: 28px; }

.adv-side h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 12px 0 14px;
}

.adv-side p { margin: 0; color: var(--ink-3); font-size: 14.5px; }

/* 结尾行动区（内页通用） */
.cta {
  border-top: 2px solid var(--soot);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 4vw, 50px) 0;
}

.cta-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(22px, 4vw, 52px);
  align-items: end;
}

.cta-in h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 8px;
}

.cta-in p { margin: 0; color: var(--ink-3); font-size: 14.5px; }

.cta-act { text-align: right; }

.cta-tel {
  display: inline-block;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  color: var(--ochre-deep);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  border-bottom: 1px solid var(--ochre-soft);
  padding-bottom: 2px;
}

.cta-tel:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.cta-note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--ink-4);
}

/* 资讯列表（旧类） */
.news-list { border-top: 1px solid var(--line-2); }

.news-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 34px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .25s var(--ease);
}

.news-row:hover { background: linear-gradient(90deg, rgba(169, 107, 46, .045), transparent 70%); }

.news-row time {
  font-size: 12.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.news-row h3 {
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  transition: color .2s;
}

.news-row:hover h3 { color: var(--ochre-deep); }

.news-row .arw { color: var(--ink-4); text-align: right; font-size: 15px; }

/* 联系页 */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(26px, 3.6vw, 52px);
  align-items: start;
}

.contact-block { margin: 0; border-top: 1px solid var(--line-2); }

.contact-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-row dt {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-4);
}

.contact-row dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.contact-row dd a { color: var(--ochre-deep); text-decoration: none; border-bottom: 1px solid var(--ochre-soft); }
.contact-row dd a:hover { color: var(--cinnabar); }

.map-card {
  background: var(--soot);
  color: rgba(247, 241, 228, .78);
  padding: clamp(24px, 3vw, 34px);
  position: sticky;
  top: 28px;
}

.map-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 12px;
}

.map-card p { margin: 0; font-size: 14px; line-height: 1.8; }

.map-card .tel-btn {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ochre-soft);
  text-decoration: none;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 9px;
}

.map-card .tel-btn:hover { color: var(--paper); }

/* 详情页 */
.detail-info { min-width: 0; }

.detail-info .cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ochre-deep);
  border-bottom: 1px solid var(--ochre-soft);
  padding-bottom: 3px;
  margin-bottom: 16px;
}

.detail-info .desc {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.detail-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  height: 50px;
  padding: 0 22px;
  background: var(--soot);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: background .22s var(--ease);
}

.detail-tel:hover { background: var(--ochre-deep); }

.detail-tel svg { color: var(--ochre-soft); }

@media (max-width: 959px) {
  .adv { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .adv-side { position: static; }
  .cta-in { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .cta-act { text-align: left; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card { position: static; }
  .contact-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .news-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 15px 2px; }
  .news-row .arw { display: none; }
}
