/* ================================================================
   主题 18 / pingzhang 太行屏障 —— 长治
   结构语言：山字三峰导航（中峰凸起）· 峡谷对峙首屏（两壁夹一线）·
            崖层横条产品 · 栈道折线工序 · 关隘城市名录 · 山根页脚
   配色：紫灰 #5C5470 / 钢青 #7D8CA3 / 米白 #F0EDE6 / 层理 #3E3852
   与平凉(shanjing 等高线椭圆+阶梯)区分：竖崖+横层+山字结构
   ================================================================ */
:root {
  --violet: #5C5470;
  --violet-d: #46405A;
  --violet-xd: #37324A;
  --steel: #7D8CA3;
  --stone: #F0EDE6;
  --stone-2: #E7E2D6;
  --ink: #33303B;
  --ink-2: #655F6E;
  --ink-3: #99939F;
  --line: #CBC5B8;
  --line-v: #B9B2C4;
  --hei: 'PingFang SC', 'Microsoft YaHei', '黑体', sans-serif;
  --song: 'Songti SC', 'SimSun', '宋体', serif;
  --mono: 'SF Mono', 'Consolas', monospace;
  --wrap: 1240px;
  --gut: clamp(18px, 3.4vw, 40px);
  --sec-y: clamp(58px, 8vw, 104px);
}

html { background: var(--stone); }
body.t-pingzhang {
  font-family: var(--hei);
  color: var(--ink);
  background: var(--stone);
  font-size: 16px;
  line-height: 1.85;
}
.t-pingzhang ::selection { background: var(--violet); color: #fff; }
.t-pingzhang img { display: block; max-width: 100%; }
.t-pingzhang h1, .t-pingzhang h2, .t-pingzhang h3 { font-weight: 600; letter-spacing: .05em; }

/* ---------------- 山字三峰导航 ---------------- */
.mount {
  position: sticky; top: 0; z-index: 60;
  background: var(--violet-d);
}
.mount-in {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(auto, 1fr); align-items: end;
  padding: 0 var(--gut); height: 58px; gap: 10px;
  position: relative;
}
.mount-brand {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  color: var(--stone); background: var(--violet-xd);
  padding: 0 22px; height: 74px;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  align-self: start; justify-self: center;
  position: relative; z-index: 2;
}
.mount-brand > svg { width: 34px; height: 34px; flex: none; }
.mount-brand span { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.mount-brand b { font-size: 15px; letter-spacing: .14em; }
.mount-brand i { font-style: normal; font-size: 8.5px; letter-spacing: .24em; color: rgba(240, 237, 230, .5); font-family: var(--mono); }
.mount-right { display: flex; align-items: center; justify-content: flex-end; height: 58px; gap: 8px; }
.mount-links { display: flex; justify-content: flex-end; gap: 0; height: 58px; align-items: stretch; }
.mount-links.left { justify-content: flex-start; }
.mount-links a {
  display: inline-flex; align-items: center; padding: 0 12px;
  color: rgba(240, 237, 230, .78); text-decoration: none;
  font-size: 14px; letter-spacing: .08em; white-space: nowrap; flex: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.mount-links a:hover { color: #fff; border-color: var(--steel); }
.mount-links a.on { color: #fff; border-color: var(--steel); background: rgba(125, 140, 163, .14); }
.mount-act { display: flex; align-items: center; gap: 10px; height: 58px; }
.mount-act button { background: none; border: none; cursor: pointer; color: rgba(240, 237, 230, .8); display: inline-flex; padding: 6px; }
.mount-act button:hover { color: var(--steel); }
.mount-act .tel {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; line-height: 1;
  color: var(--violet-xd); text-decoration: none; white-space: nowrap; flex: none;
  background: var(--stone); padding: 8px 11px;
}
.mount-burger { display: none; }

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

/* ---------------- 峡谷对峙首屏 ---------------- */
.gorge {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--stone) 0%, var(--stone-2) 100%);
  border-bottom: 1px solid var(--line);
}
.gorge-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.5fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px); align-items: stretch;
  min-height: clamp(420px, 46vw, 560px);
}
.gorge-wall {
  position: relative; overflow: hidden;
  background: var(--violet-xd);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.gorge-wall.r { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.gorge-wall img { width: 100%; height: 100%; object-fit: cover; opacity: .8; position: absolute; inset: 0; }
.gorge-wall::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(55, 50, 74, .3), rgba(55, 50, 74, .55));
}
.gorge-wall .wl {
  position: absolute; z-index: 2; bottom: 18px;
  writing-mode: vertical-rl; color: rgba(240, 237, 230, .85);
  font-family: var(--song); letter-spacing: .4em; font-size: 15px;
}
.gorge-wall.l .wl { left: 14px; }
.gorge-wall.r .wl { right: 14px; }

.gorge-mid {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 10px clamp(4px, 1vw, 14px);
}
.gorge-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  color: var(--ink-3); margin-bottom: 16px;
}
.gorge-mid h1 {
  margin: 0 0 18px; font-size: clamp(1.7rem, 2.75vw, 2.55rem);
  line-height: 1.46; color: var(--violet-xd); text-wrap: balance;
}
.gorge-mid h1 em { font-style: normal; color: var(--violet); text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 8px; text-decoration-thickness: 3px; }
.gorge-sub { color: var(--ink-2); font-size: clamp(14px, 1.1vw, 15.5px); margin: 0 0 24px; }
.gorge-act { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gorge-act .a1 {
  text-decoration: none; padding: 12px 30px; font-size: 15px; letter-spacing: .18em;
  background: var(--violet); color: #fff; width: 100%; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 92% 100%, 8% 100%, 0 82%);
  transition: background .2s;
}
.gorge-act .a1:hover { background: var(--violet-xd); }
.gorge-act .a2 {
  text-decoration: none; padding: 11px 30px; font-size: 15px; letter-spacing: .18em;
  color: var(--ink); border: 1px solid var(--ink-2); width: 100%; text-align: center;
  transition: border-color .2s, color .2s;
}
.gorge-act .a2:hover { border-color: var(--violet); color: var(--violet); }
.gorge-facts {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 18px;
  font-size: 13px; color: var(--ink-2); flex-wrap: wrap;
}
.gorge-facts span { display: inline-flex; align-items: baseline; gap: 6px; }
.gorge-facts b { font-family: var(--mono); font-size: 17px; color: var(--violet); font-weight: 700; }

/* ---------------- 节头 ---------------- */
.g-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; }
.g-head .l { display: flex; align-items: baseline; gap: 16px; }
.g-head .no { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--violet); border-bottom: 2px solid var(--violet); padding-bottom: 3px; }
.g-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin: 0; }
.g-head > p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 30em; }
.g-head a.more { color: var(--violet); text-decoration: none; font-size: 14px; letter-spacing: .12em; border-bottom: 1px solid var(--violet); padding-bottom: 2px; }
.g-head a.more:hover { color: var(--steel); border-color: var(--steel); }

/* ---------------- 崖层横条产品 ---------------- */
.strata-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); background: var(--stone-2); }
.strata { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); }
.stratum {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(14px, 2.4vw, 28px); align-items: center;
  padding: 16px clamp(10px, 1.6vw, 22px); margin-bottom: 8px;
  background: var(--stone); border: 1px solid var(--line);
  border-left: 5px solid var(--violet);
  text-decoration: none; color: var(--ink); position: relative;
  transition: transform .2s, border-color .2s;
}
.stratum:nth-child(even) { transform: translateX(clamp(14px, 2.6vw, 42px)); border-left-color: var(--steel); }
.stratum:hover { border-color: var(--violet); border-left-color: var(--violet); transform: translateX(0); z-index: 2; }
.stratum:nth-child(even):hover { transform: translateX(clamp(14px, 2.6vw, 42px)); }
.stratum .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
.stratum .cat { font-size: 17px; font-weight: 600; letter-spacing: .1em; color: var(--violet-xd); }
.stratum .cat i { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); font-weight: 400; margin-top: 4px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stratum .fig { position: relative; height: clamp(64px, 7vw, 96px); overflow: hidden; }
.stratum .fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.stratum:hover .fig img { transform: scale(1.05); }

/* ---------------- 栈道折线工序 ---------------- */
.plank-sec { padding: var(--sec-y) 0; background: var(--violet-xd); color: #EFEDE8; }
.plank-sec .g-head h2 { color: #F4F2EC; }
.plank-sec .g-head .no { color: var(--steel); border-color: var(--steel); }
.plank-sec .g-head > p { color: rgba(239, 237, 232, .72); }
.planks { max-width: var(--wrap); margin: clamp(30px, 4vw, 54px) auto 0; padding: 0 var(--gut); position: relative; }
.planks-path {
  position: absolute; left: var(--gut); right: var(--gut); top: 44px; height: 60px;
  pointer-events: none;
}
.planks-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); position: relative; }
.plank { text-align: center; padding: 0 6px; }
.plank .node {
  width: 88px; height: 88px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  font-family: var(--song); font-size: 26px;
}
.plank:nth-child(2) .node { background: var(--steel); color: var(--violet-xd); }
.plank:nth-child(3) .node { background: #A99BC0; color: var(--violet-xd); }
.plank:nth-child(4) .node { background: var(--stone); color: var(--violet-xd); }
.plank h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: .14em; color: #F4F2EC; }
.plank h3 i { display: block; font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: rgba(239, 237, 232, .45); margin-top: 6px; }
.plank p { margin: 0; font-size: 13.5px; color: rgba(239, 237, 232, .72); }

/* ---------------- 峡谷双列案例 ---------------- */
.ravine-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.ravines { 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: clamp(16px, 2.4vw, 30px); }
.ravine { text-decoration: none; color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; background: var(--stone); border: 1px solid var(--line); padding: 14px; transition: border-color .22s, box-shadow .22s; }
.ravine:hover { border-color: var(--violet); box-shadow: 0 12px 28px -18px rgba(70, 64, 90, .5); }
.ravine .fig { position: relative; overflow: hidden; }
.ravine .fig img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.ravine .body { display: flex; flex-direction: column; }
.ravine .loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--violet); }
.ravine h3 { margin: 8px 0 8px; font-size: 16px; line-height: 1.5; letter-spacing: .04em; }
.ravine:hover h3 { color: var(--violet-d); }
.ravine p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ravine .go { margin-top: auto; font-size: 13px; color: var(--violet); letter-spacing: .14em; }
.ravine:hover .go { color: var(--steel); }

/* ---------------- 关隘城市名录 ---------------- */
.pass-sec { padding: var(--sec-y) 0; background: var(--stone-2); border-bottom: 1px solid var(--line); }
.passes { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); }
.pass {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  padding: 14px clamp(10px, 1.6vw, 22px); margin-bottom: 6px;
  background: var(--stone); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-2); font-size: 15.5px; letter-spacing: .12em;
  position: relative; transition: color .2s, border-color .2s;
}
.pass::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--line-v); transition: background .2s;
}
.pass i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .12em; }
.pass:hover { color: var(--violet-d); border-color: var(--violet); }
.pass:hover::before { background: var(--steel); }
.pass.cur { color: var(--violet-xd); border-color: var(--violet); background: #F6F4EE; }
.pass.cur::before { background: var(--violet); }
.pass.cur span::after { content: '太行腹地'; display: inline-block; font-size: 10.5px; letter-spacing: .2em; color: var(--violet); border: 1px solid var(--violet); padding: 2px 9px; margin-left: 14px; vertical-align: 1px; }

/* ---------------- 岩层编号手记 ---------------- */
.bed-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.beds { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.bed { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; padding: 18px 0 0; border-top: 3px solid var(--violet-xd); position: relative; }
.bed::before {
  content: ''; position: absolute; top: -3px; left: 0; width: 34px; height: 3px;
  background: var(--steel);
}
.bed:hover { border-color: var(--violet); }
.bed .n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
.bed h3 { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; letter-spacing: .03em; }
.bed:hover h3 { color: var(--violet-d); }
.bed time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: auto; padding-top: 12px; }

/* ---------------- 山根页脚 ---------------- */
.gfoot { background: var(--violet-xd); color: #EFEDE8; }
.gfoot-ridge { height: 34px; background: linear-gradient(180deg, var(--violet) 0%, var(--violet-d) 100%); clip-path: polygon(0 100%, 0 40%, 7% 62%, 15% 26%, 24% 55%, 33% 18%, 42% 52%, 52% 30%, 61% 60%, 70% 22%, 79% 55%, 88% 34%, 96% 58%, 100% 38%, 100% 100%); }
.gf-in {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 5vw, 58px) var(--gut) 26px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px);
}
.gf-in h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; letter-spacing: .14em; }
.gf-in h3 svg { width: 32px; height: 32px; flex: none; }
.gf-in p { margin: 0 0 8px; font-size: 13.5px; color: rgba(239, 237, 232, .75); line-height: 2.05; }
.gf-in p b { font-weight: 600; color: #F4F2EC; margin-right: 4px; }
.gf-in p a { color: var(--steel); text-decoration: none; font-family: var(--mono); font-size: 13px; }
.gf-in p a:hover { text-decoration: underline; }
.gf-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; font-size: 13px; }
.gf-links a { color: rgba(239, 237, 232, .72); text-decoration: none; padding: 3px 0; margin-right: 18px; letter-spacing: .1em; }
.gf-links a:hover { color: var(--steel); }
.gf-links button { background: none; border: none; cursor: pointer; font-family: var(--hei); font-size: 13px; color: rgba(239, 237, 232, .72); letter-spacing: .1em; padding: 3px 0; }
.gf-links button:hover { color: var(--steel); }
.gf-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.gf-motto { font-family: var(--song); font-size: 15px; color: rgba(239, 237, 232, .55); letter-spacing: .5em; writing-mode: vertical-rl; height: 126px; }
.gf-copy {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 22px;
  border-top: 1px solid rgba(239, 237, 232, .18);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(239, 237, 232, .5); letter-spacing: .08em;
}

/* ---------------- 移动快捷条 ---------------- */
.mbar9 {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  background: var(--violet-xd); color: #EFEDE8;
}
.mbar9 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; }
.mbar9 a b { font-size: 14px; font-weight: 500; font-family: var(--mono); letter-spacing: .04em; }
.mbar9 a.hot b { color: var(--steel); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .mount-in { display: flex; justify-content: space-between; }
  .mount-links { display: none; }
  .mount-right { height: 64px; }
  .mount-brand { height: 64px; }
  .mount-burger { display: inline-flex; background: none; border: none; cursor: pointer; color: var(--stone); padding: 6px; }
  .gorge-in { grid-template-columns: 1fr; }
  .gorge-wall { display: none; }
  .gorge-mid { text-align: left; align-items: flex-start; }
  .gorge-act { flex-direction: row; }
  .gorge-act .a1, .gorge-act .a2 { width: auto; }
  .gorge-facts { justify-content: flex-start; }
  .stratum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stratum .cat { grid-row: 1; grid-column: 1; }
  .stratum .fig { grid-row: 1; grid-column: 2; }
  .stratum .no { display: none; }
  .stratum:nth-child(even) { transform: none; }
  .stratum:nth-child(even):hover { transform: none; }
  .planks-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .planks-path { display: none; }
  .ravines { grid-template-columns: 1fr; }
  .beds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-in { grid-template-columns: 1fr; }
  .gf-right { align-items: flex-start; }
  .gf-motto { height: auto; writing-mode: horizontal-tb; }
}
@media (max-width: 640px) {
  body.t-pingzhang { font-size: 15px; }
  .mount-in { height: 54px; }
  .mount-act { gap: 4px; }
  .mount-act .tel { display: none; }
  .mount-brand { padding: 0 16px; }
  .gorge-in { min-height: 0; padding-top: 30px; }
  .stratum { grid-template-columns: 1fr; }
  .stratum .cat { grid-column: 1; grid-row: auto; }
  .stratum .fig { grid-column: 1; grid-row: auto; }
  .planks-in { grid-template-columns: 1fr; }
  .beds { grid-template-columns: 1fr; }
  .mbar9 { display: flex; }
  body.t-pingzhang { padding-bottom: 58px; }
  .gf-copy { flex-direction: column; gap: 4px; }
}
