/* ================================================================
   主题 23 / xuangsi 悬空栈道 —— 忻州
   结构语言：崖壁导航 · 悬挑栈板首屏（错位横带+朱色斜撑） ·
            栈板双列产品（钉点） · 悬挑菱形节点工序 · 崖龛案例 ·
            折返栈道城市 · 岩壁刻记手记 · 岩层斜纹页脚
   配色：崖褐 #5E4A38 / 栈朱 #B5541D / 云白 #F1EDE6 / 深崖 #3A2E24
   与朔州(muta 塔身)区分：横挑栈板+斜撑；与阳泉(lutang 窑门拱)区分
   ================================================================ */
:root {
  --cliff: #5E4A38;
  --cliff-d: #463729;
  --cliff-xd: #3A2E24;
  --zhu: #B5541D;
  --zhu-d: #8F4115;
  --cloud: #F1EDE6;
  --cloud-2: #E6E0D5;
  --paper: #F6F2EB;
  --ink: #362C22;
  --ink-2: #6E6053;
  --ink-3: #A4978A;
  --line: #D2C7B6;
  --song: 'Songti SC', 'SimSun', '宋体', serif;
  --kai: 'Kaiti SC', 'KaiTi', '楷体', serif;
  --mono: 'SF Mono', 'Consolas', monospace;
  --wrap: 1240px;
  --gut: clamp(18px, 3.4vw, 40px);
  --sec-y: clamp(58px, 8vw, 104px);
}

html { background: var(--paper); }
body.t-xuangsi {
  font-family: var(--song);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.8;
}
.t-xuangsi ::selection { background: var(--zhu); color: #fff; }
.t-xuangsi img { display: block; max-width: 100%; }
.t-xuangsi h1, .t-xuangsi h2, .t-xuangsi h3 { font-weight: 600; letter-spacing: .06em; }

/* ---------------- 崖壁导航 ---------------- */
.xna {
  position: sticky; top: 0; z-index: 60;
  background: var(--cliff-xd);
  border-bottom: 3px solid var(--zhu);
}
.xna-in {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut); height: 66px; position: relative;
}
.xna-brand { display: flex; align-items: center; gap: 11px; color: var(--cloud); text-decoration: none; flex: none; }
.xna-brand > svg { width: 36px; height: 36px; flex: none; }
.xna-brand span { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.xna-brand b { font-size: 15.5px; letter-spacing: .14em; }
.xna-brand i { font-style: normal; font-size: 9px; letter-spacing: .26em; color: rgba(241, 237, 230, .5); font-family: var(--mono); }
.xna-links { display: flex; align-items: stretch; height: 66px; }
.xna-links a {
  display: inline-flex; align-items: center; padding: 0 15px;
  color: rgba(241, 237, 230, .8); text-decoration: none;
  font-size: 14.5px; letter-spacing: .14em; position: relative;
}
.xna-links a:hover, .xna-links a.on { color: var(--cloud); }
.xna-links a.on::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 14px; height: 4px;
  background: var(--zhu);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}
.xna-act { display: flex; align-items: center; gap: 12px; flex: none; }
.xna-act button { background: none; border: none; cursor: pointer; color: rgba(241, 237, 230, .8); display: inline-flex; padding: 6px; }
.xna-act button:hover { color: var(--cloud); }
.xna-act .tel {
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: #fff; text-decoration: none;
  background: var(--zhu); padding: 7px 13px;
}
.xna-act .tel:hover { background: var(--zhu-d); }
.xna-burger { display: none; }

.xdrawer {
  position: fixed; inset: 0; z-index: 90; background: var(--cliff-xd);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
  display: flex; flex-direction: column; padding: 24px var(--gut); overflow-y: auto;
}
.xdrawer.on { opacity: 1; visibility: visible; }
.xdrawer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(241, 237, 230, .2); }
.xdrawer-top b { letter-spacing: .16em; font-size: 17px; color: var(--cloud); }
.xdrawer-top button { background: none; border: none; cursor: pointer; color: var(--cloud); padding: 4px; }
.xdrawer nav { display: flex; flex-direction: column; padding-top: 10px; }
.xdrawer nav a {
  padding: 15px 6px; font-size: 16.5px; letter-spacing: .2em;
  color: rgba(241, 237, 230, .85); text-decoration: none;
  border-bottom: 1px solid rgba(241, 237, 230, .1);
}
.xdrawer nav a:hover { color: var(--cloud); }
.xdrawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: rgba(241, 237, 230, .6); padding-top: 18px; }
.xdrawer-foot a { color: var(--zhu); text-decoration: none; font-family: var(--mono); }
.xdrawer-foot button { align-self: flex-start; background: none; border: 1px solid var(--zhu); padding: 8px 18px; cursor: pointer; font-family: var(--song); font-size: 14px; color: var(--cloud); letter-spacing: .2em; }

/* ---------------- 悬挑栈板首屏 ---------------- */
.plank-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(94, 74, 56, .09), transparent 40%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.plank-hero-in {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(36px, 5.4vw, 74px) var(--gut) clamp(40px, 5.6vw, 78px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4.2vw, 56px); align-items: center;
}
.plank-copy { position: relative; z-index: 2; }
.plank-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em;
  color: var(--ink-3); margin-bottom: 16px;
}
.plank-kicker::before {
  content: '忻'; width: 24px; height: 24px; display: inline-grid; place-items: center;
  background: var(--cliff); color: #fff; font-family: var(--kai); font-size: 13px;
  border-radius: 50%;
}
.plank-copy h1 {
  margin: 0 0 20px; font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.42; color: var(--cliff-d); text-wrap: balance;
}
.plank-copy h1 em { font-style: normal; color: var(--zhu); }
.plank-sub { color: var(--ink-2); font-size: clamp(14.5px, 1.2vw, 16px); margin: 0 0 26px; max-width: 44em; }
.plank-act { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.plank-act .a1 {
  text-decoration: none; padding: 12px 26px; font-size: 15px; letter-spacing: .18em;
  background: var(--cliff-d); color: var(--cloud); transition: background .2s;
}
.plank-act .a1:hover { background: var(--zhu); }
.plank-act .a2 {
  text-decoration: none; padding: 12px 26px; font-size: 15px; letter-spacing: .18em;
  color: var(--ink); border: 1px solid var(--ink-2); transition: border-color .2s, color .2s;
}
.plank-act .a2:hover { border-color: var(--zhu); color: var(--zhu); }
.plank-facts {
  display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.plank-facts span { padding: 10px 20px 0 0; margin-right: 14px; display: inline-flex; align-items: baseline; gap: 7px; }
.plank-facts b { font-family: var(--mono); font-size: 19px; color: var(--zhu); font-weight: 700; }

/* 错位栈板横带 + 斜撑 */
.walk { position: relative; display: flex; flex-direction: column; gap: 16px; }
.plank {
  position: relative; width: 86%; background: var(--cliff-xd);
  border: 1px solid var(--cliff-d); border-left: 6px solid var(--zhu);
}
.plank:nth-child(2) { width: 92%; margin-left: 8%; }
.plank:nth-child(3) { width: 100%; margin-left: 16%; }
.plank img { width: 100%; height: clamp(78px, 9.5vw, 118px); object-fit: cover; opacity: .86; }
.plank .pl {
  position: absolute; left: 12px; top: 8px;
  font-family: var(--kai); font-size: 11px; letter-spacing: .26em;
  color: var(--cloud); background: rgba(58, 46, 36, .62); padding: 2px 10px;
}
.plank::after {
  content: ''; position: absolute; left: -34px; bottom: -2px;
  width: 34px; height: 26px; background: var(--zhu);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: .9;
}
.plank:nth-child(2)::after { left: calc(-34px - 8%); }
.plank:nth-child(3)::after { left: calc(-34px - 16%); }
.walk .rail {
  margin-top: 6px; margin-left: 2%; width: 92%; height: 8px;
  background: repeating-linear-gradient(90deg, var(--cliff) 0 26px, var(--zhu) 26px 32px);
}

/* ---------------- 节头 ---------------- */
.m-head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.m-head .l { display: flex; align-items: baseline; gap: 16px; }
.m-head .no { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--zhu); border-bottom: 2px solid var(--zhu); padding-bottom: 3px; }
.m-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin: 0; }
.m-head > p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 30em; }
.m-head a.more { color: var(--cliff-d); text-decoration: none; font-size: 14px; letter-spacing: .12em; border-bottom: 1px solid var(--cliff); padding-bottom: 2px; }
.m-head a.more:hover { color: var(--zhu); border-color: var(--zhu); }

/* ---------------- 栈板双列产品 ---------------- */
.deck-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.decks {
  max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px;
}
.deck {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; align-items: center;
  background: var(--cloud); border: 1px solid var(--line);
  padding: 15px 18px; text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.deck::before, .deck::after {
  content: ''; position: absolute; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--zhu);
}
.deck::before { left: 10px; }
.deck::after { left: 24px; }
.deck:hover { border-color: var(--cliff); transform: translateY(-2px); }
.deck .dt { padding-left: 40px; }
.deck h3 { margin: 0 0 4px; font-size: 16.5px; letter-spacing: .08em; color: var(--cliff-d); }
.deck:hover h3 { color: var(--zhu); }
.deck p { margin: 0; font-size: 12.8px; color: var(--ink-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck .thumb { height: 72px; overflow: hidden; background: var(--cliff-xd); }
.deck .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.deck:hover .thumb img { opacity: 1; }

/* ---------------- 悬挑菱形节点工序 ---------------- */
.brace-sec { padding: var(--sec-y) 0; background: var(--cliff-xd); color: var(--cloud); }
.brace-sec .m-head h2 { color: var(--cloud); }
.brace-sec .m-head .no { color: var(--zhu); border-color: var(--zhu); }
.brace-sec .m-head > p { color: rgba(241, 237, 230, .7); }
.braces { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); position: relative; }
.braces::before {
  content: ''; position: absolute; left: 51px; top: 24px; bottom: 24px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(241, 237, 230, .35) 0 10px, transparent 10px 20px);
}
.brow { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: clamp(14px, 2.4vw, 30px); padding: 18px 0; position: relative; }
.brow .node {
  position: relative; text-align: right; padding-right: 30px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: rgba(241, 237, 230, .55);
}
.brow .node::after {
  content: ''; position: absolute; right: -9px; top: 12px;
  width: 16px; height: 16px; background: var(--zhu);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--cliff-xd);
}
.brow:nth-child(3) .node::after { background: var(--cliff); }
.brow:nth-child(4) .node::after { background: #C97B45; }
.brow:nth-child(5) .node::after { background: var(--cloud); }
.brow h3 { margin: 6px 0 8px; font-size: 17px; letter-spacing: .12em; color: var(--cloud); }
.brow p { margin: 0; font-size: 14px; color: rgba(241, 237, 230, .72); max-width: 52em; }

/* ---------------- 崖龛案例 ---------------- */
.cove-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.coves { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.cove { text-decoration: none; color: var(--ink); background: var(--cloud); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cove:hover { border-color: var(--cliff); transform: translateY(-3px); }
.cove .fig { position: relative; }
.cove .fig img { width: 100%; aspect-ratio: 4 / 2.7; object-fit: cover; }
.cove .fig::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--cliff) 0 30px, var(--zhu) 30px 36px);
}
.cove .body { padding: 15px 18px 17px; display: flex; flex-direction: column; flex: 1; }
.cove .loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--zhu); }
.cove h3 { margin: 7px 0 7px; font-size: 16px; line-height: 1.55; }
.cove:hover h3 { color: var(--cliff-d); }
.cove p { margin: 0 0 10px; font-size: 13.3px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cove .go { margin-top: auto; font-size: 13px; color: var(--cliff-d); letter-spacing: .14em; }
.cove:hover .go { color: var(--zhu); }

/* ---------------- 折返栈道城市 ---------------- */
.zig-sec { padding: var(--sec-y) 0; background: var(--cloud-2); border-bottom: 1px solid var(--line); }
.zigs { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); display: flex; flex-wrap: wrap; gap: 14px 0; align-items: center; }
.zig { display: flex; align-items: center; }
.zig a {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 10px 18px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); font-size: 14.5px; letter-spacing: .12em;
  transition: color .2s, border-color .2s;
}
.zig a i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }
.zig a:hover { color: var(--cliff-d); border-color: var(--cliff); }
.zig a.cur { background: var(--zhu); border-color: var(--zhu); color: #fff; }
.zig a.cur i { color: rgba(255, 255, 255, .65); }
.zig .link {
  width: 34px; height: 12px; margin: 0 8px;
  border-bottom: 2px dashed var(--ink-3);
  transform: translateY(-6px);
}
.zig:nth-child(even) .link { transform: translateY(6px); }

/* ---------------- 岩壁刻记手记 ---------------- */
.etch-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.etches { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.etch {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.etch::before {
  content: ''; width: 4px; height: 30px; background: var(--zhu);
  clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
}
.etch h3 { margin: 0; font-size: 15.5px; font-weight: 500; letter-spacing: .04em; line-height: 1.6; }
.etch:hover h3 { color: var(--cliff-d); }
.etch time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 岩层斜纹页脚 ---------------- */
.xfoot { background: var(--cliff-xd); color: var(--cloud); }
.xfoot-strata {
  height: 20px;
  background: repeating-linear-gradient(-45deg,
    var(--cliff) 0 18px, var(--cliff-d) 18px 34px, var(--zhu-d) 34px 38px, var(--cliff-d) 38px 54px);
  border-top: 2px solid var(--zhu);
}
.xfoot-in {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(34px, 4.6vw, 54px) var(--gut) 26px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px);
}
.xfoot h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; letter-spacing: .14em; }
.xfoot h3 svg { width: 32px; height: 32px; flex: none; }
.xfoot p { margin: 0 0 8px; font-size: 13.5px; color: rgba(241, 237, 230, .75); line-height: 2.05; }
.xfoot p b { font-weight: 600; color: var(--cloud); margin-right: 4px; }
.xfoot p a { color: #D89A62; text-decoration: none; font-family: var(--mono); font-size: 13px; }
.xfoot p a:hover { text-decoration: underline; }
.xfoot-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; font-size: 13px; }
.xfoot-links a { color: rgba(241, 237, 230, .72); text-decoration: none; padding: 3px 0; margin-right: 18px; letter-spacing: .1em; }
.xfoot-links a:hover { color: var(--cloud); }
.xfoot-links button { background: none; border: none; cursor: pointer; font-family: var(--song); font-size: 13px; color: rgba(241, 237, 230, .72); letter-spacing: .1em; padding: 3px 0; }
.xfoot-links button:hover { color: var(--cloud); }
.xfoot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.xfoot-motto { font-family: var(--kai); font-size: 15px; color: rgba(241, 237, 230, .55); letter-spacing: .5em; writing-mode: vertical-rl; height: 126px; }
.xfoot-copy {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 22px;
  border-top: 1px solid rgba(241, 237, 230, .18);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(241, 237, 230, .5); letter-spacing: .08em;
}

/* ---------------- 移动快捷条 ---------------- */
.mbarB {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  background: var(--cliff-d); color: var(--cloud); border-top: 2px solid var(--zhu);
}
.mbarB a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 9px; text-decoration: none; color: inherit; font-size: 10px; letter-spacing: .2em; }
.mbarB a b { font-size: 14px; font-weight: 500; font-family: var(--mono); letter-spacing: .04em; }
.mbarB a.hot b { color: #D89A62; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .xna-links { display: none; }
  .xna-burger { display: inline-flex; background: none; border: none; cursor: pointer; color: var(--cloud); padding: 6px; }
  .plank-hero-in { grid-template-columns: 1fr; }
  .decks { grid-template-columns: 1fr; }
  .coves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etches { grid-template-columns: 1fr; }
  .xfoot-in { grid-template-columns: 1fr; }
  .xfoot-right { align-items: flex-start; }
  .xfoot-motto { height: auto; writing-mode: horizontal-tb; }
}
@media (max-width: 640px) {
  body.t-xuangsi { font-size: 15.5px; }
  .xna-in { height: 60px; gap: 12px; }
  .xna-act .tel { display: none; }
  .plank-hero-in { padding-top: 30px; }
  .plank { width: 100% !important; margin-left: 0 !important; }
  .plank::after { display: none; }
  .brow { grid-template-columns: 1fr; }
  .braces::before { display: none; }
  .brow .node { text-align: left; padding-right: 0; }
  .coves { grid-template-columns: 1fr; }
  .zig .link { display: none; }
  .zig { width: 100%; }
  .zig a { width: 100%; justify-content: space-between; }
  .mbarB { display: flex; }
  body.t-xuangsi { padding-bottom: 58px; }
  .xfoot-copy { flex-direction: column; gap: 4px; }
}
