/* ================================================================
   主题 25 / maoliang 峁梁剪影 —— 吕梁
   结构语言：峁丘导航 · 峁梁剖面首屏（双图+SVG剖面折线） ·
            梯田色带产品条（黄土→枯绿逐行渐变） · 窑拱并列工序 ·
            塬上案例 · 梁峁点线城市 · 崖畔笔记手记 · 峁丘剪影页脚
   配色：黄土 #BE9455 / 枯绿 #7A8450 / 窑深 #4A3B26 / 塬白 #F2EEE6
   与临汾(hukou 浊金)区分：枯绿+剖面折线；与全组无交集
   ================================================================ */
:root {
  --loess: #BE9455;
  --loess-d: #99743E;
  --wither: #7A8450;
  --wither-d: #5F683C;
  --cave: #4A3B26;
  --cave-xd: #382C1B;
  --yuan: #F2EEE6;
  --yuan-2: #E8E2D4;
  --paper: #F5F2EA;
  --ink: #37301F;
  --ink-2: #6E6653;
  --ink-3: #A69C87;
  --line: #D3CCBC;
  --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-maoliang {
  font-family: var(--song);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.8;
}
.t-maoliang ::selection { background: var(--wither); color: #fff; }
.t-maoliang img { display: block; max-width: 100%; }
.t-maoliang h1, .t-maoliang h2, .t-maoliang h3 { font-weight: 600; letter-spacing: .06em; }

/* ---------------- 峁丘导航 ---------------- */
.mna {
  position: sticky; top: 0; z-index: 60;
  background: var(--cave-xd);
  border-bottom: 3px solid var(--loess);
}
.mna-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;
}
.mna-brand { display: flex; align-items: center; gap: 11px; color: var(--yuan); text-decoration: none; flex: none; }
.mna-brand > svg { width: 36px; height: 36px; flex: none; }
.mna-brand span { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.mna-brand b { font-size: 15.5px; letter-spacing: .14em; }
.mna-brand i { font-style: normal; font-size: 9px; letter-spacing: .26em; color: rgba(242, 238, 230, .5); font-family: var(--mono); }
.mna-links { display: flex; align-items: stretch; height: 66px; }
.mna-links a {
  display: inline-flex; align-items: center; padding: 0 15px;
  color: rgba(242, 238, 230, .8); text-decoration: none;
  font-size: 14.5px; letter-spacing: .14em; position: relative;
}
.mna-links a:hover, .mna-links a.on { color: var(--yuan); }
.mna-links a.on::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 14px; height: 10px;
  background: var(--loess);
  border-radius: 10px 10px 0 0;
}
.mna-act { display: flex; align-items: center; gap: 12px; flex: none; }
.mna-act button { background: none; border: none; cursor: pointer; color: rgba(242, 238, 230, .8); display: inline-flex; padding: 6px; }
.mna-act button:hover { color: var(--yuan); }
.mna-act .tel {
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: #fff; text-decoration: none;
  background: var(--wither-d); padding: 7px 13px;
}
.mna-act .tel:hover { background: var(--wither); }
.mna-burger { display: none; }

.mdrawer {
  position: fixed; inset: 0; z-index: 90; background: var(--cave-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(242, 238, 230, .2); }
.mdrawer-top b { letter-spacing: .16em; font-size: 17px; color: var(--yuan); }
.mdrawer-top button { background: none; border: none; cursor: pointer; color: var(--yuan); 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(242, 238, 230, .85); text-decoration: none;
  border-bottom: 1px solid rgba(242, 238, 230, .1);
}
.mdrawer nav a:hover { color: var(--yuan); }
.mdrawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: rgba(242, 238, 230, .6); padding-top: 18px; }
.mdrawer-foot a { color: var(--loess); text-decoration: none; font-family: var(--mono); }
.mdrawer-foot button { align-self: flex-start; background: none; border: 1px solid var(--loess); padding: 8px 18px; cursor: pointer; font-family: var(--song); font-size: 14px; color: var(--yuan); letter-spacing: .2em; }

/* ---------------- 峁梁剖面首屏 ---------------- */
.ridge {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(190, 148, 85, .1), transparent 40%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.ridge-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;
}
.ridge-copy { position: relative; z-index: 2; }
.ridge-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;
}
.ridge-kicker::before {
  content: '吕'; width: 24px; height: 24px; display: inline-grid; place-items: center;
  background: var(--loess-d); color: #fff; font-family: var(--kai); font-size: 13px;
  border-radius: 50%;
}
.ridge-copy h1 {
  margin: 0 0 20px; font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.42; color: var(--cave); text-wrap: balance;
}
.ridge-copy h1 em { font-style: normal; color: var(--wither-d); }
.ridge-sub { color: var(--ink-2); font-size: clamp(14.5px, 1.2vw, 16px); margin: 0 0 26px; max-width: 44em; }
.ridge-act { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ridge-act .a1 {
  text-decoration: none; padding: 12px 26px; font-size: 15px; letter-spacing: .18em;
  background: var(--cave); color: var(--yuan); transition: background .2s;
}
.ridge-act .a1:hover { background: var(--wither-d); }
.ridge-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;
}
.ridge-act .a2:hover { border-color: var(--loess-d); color: var(--loess-d); }
.ridge-facts {
  display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.ridge-facts span { padding: 10px 20px 0 0; margin-right: 14px; display: inline-flex; align-items: baseline; gap: 7px; }
.ridge-facts b { font-family: var(--mono); font-size: 19px; color: var(--loess-d); font-weight: 700; }

/* 双图 + 剖面折线 */
.profile { position: relative; }
.profile .peaks { display: flex; gap: 12px; }
.profile .peak { flex: 1; background: var(--cave); border: 1px solid var(--cave-xd); }
.profile .peak img { width: 100%; height: clamp(130px, 16vw, 210px); object-fit: cover; opacity: .88; }
.profile .peak figcaption {
  position: absolute; font-family: var(--kai); font-size: 11px; letter-spacing: .24em;
  color: var(--yuan); background: rgba(74, 59, 38, .62); padding: 2px 10px;
}
.profile .peak:first-child figcaption { left: 10px; top: 10px; }
.profile .peak:last-child figcaption { right: 10px; bottom: 10px; }
.profile svg.cross { width: 100%; height: auto; display: block; margin-top: 10px; }

/* ---------------- 节头 ---------------- */
.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(--loess-d); border-bottom: 2px solid var(--loess); 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(--cave); text-decoration: none; font-size: 14px; letter-spacing: .12em; border-bottom: 1px solid var(--loess); padding-bottom: 2px; }
.m-head a.more:hover { color: var(--wither-d); border-color: var(--wither); }

/* ---------------- 梯田色带产品条 ---------------- */
.terra-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.terraces { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); display: flex; flex-direction: column; gap: 8px; }
.terra {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 170px; gap: clamp(12px, 2vw, 24px); align-items: center;
  padding: 12px 18px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-left-width: 8px;
  transition: border-color .2s;
}
.terra:hover { border-color: var(--wither); }
.terra .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
.terra .nm { min-width: 0; }
.terra .nm b { display: block; font-size: 16.5px; letter-spacing: .1em; color: var(--cave); font-weight: 600; }
.terra:hover .nm b { color: var(--wither-d); }
.terra .nm i { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terra .thumb { height: clamp(54px, 6vw, 76px); overflow: hidden; background: var(--cave); }
.terra .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.terra:hover .thumb img { opacity: 1; }
.terra:nth-child(1) { border-left-color: #D8B075; background: #F7F1E4; }
.terra:nth-child(2) { border-left-color: #CDA765; background: #F5EEDF; }
.terra:nth-child(3) { border-left-color: #C29E56; background: #F3EBDA; }
.terra:nth-child(4) { border-left-color: #B5934C; background: #F1E8D5; }
.terra:nth-child(5) { border-left-color: #A88A48; background: #EFE5D0; }
.terra:nth-child(6) { border-left-color: #9A8748; background: #ECE2CC; }
.terra:nth-child(7) { border-left-color: #8C824A; background: #EADFC9; }
.terra:nth-child(8) { border-left-color: #7E7D4C; background: #E8DCC5; }
.terra:nth-child(9) { border-left-color: #71794E; background: #E5D9C1; }
.terra:nth-child(10) { border-left-color: var(--wither); background: #E3D5BC; }

/* ---------------- 窑拱并列工序 ---------------- */
.arch-sec { padding: var(--sec-y) 0; background: var(--cave-xd); color: var(--yuan); }
.arch-sec .m-head h2 { color: var(--yuan); }
.arch-sec .m-head .no { color: var(--loess); border-color: var(--loess); }
.arch-sec .m-head > p { color: rgba(242, 238, 230, .7); }
.arches {
  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(12px, 1.8vw, 22px);
}
.arch { text-align: center; }
.arch .archhole {
  height: 86px; margin: 0 auto;
  border-top-left-radius: 60px; border-top-right-radius: 60px;
  display: grid; place-items: center;
  font-family: var(--kai); font-size: 18px; letter-spacing: .16em; color: #fff;
}
.arch:nth-child(1) .archhole { background: var(--loess-d); width: 82%; }
.arch:nth-child(2) .archhole { background: #A8874B; width: 88%; }
.arch:nth-child(3) .archhole { background: var(--wither-d); width: 94%; }
.arch:nth-child(4) .archhole { background: var(--wither); width: 100%; }
.arch .an { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: rgba(242, 238, 230, .55); }
.arch h3 { margin: 6px 0 8px; font-size: 17px; letter-spacing: .12em; color: var(--yuan); }
.arch p { margin: 0; font-size: 13.6px; color: rgba(242, 238, 230, .72); line-height: 1.8; text-align: left; }

/* ---------------- 塬上案例 ---------------- */
.yuan-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.yuans { 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); }
.yuan-card { text-decoration: none; color: var(--ink); background: var(--yuan); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.yuan-card:hover { border-color: var(--wither); transform: translateY(-3px); }
.yuan-card .fig { position: relative; }
.yuan-card .fig img { width: 100%; aspect-ratio: 4 / 2.7; object-fit: cover; }
.yuan-card .fig::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--loess);
  border-radius: 10px 10px 0 0;
}
.yuan-card .body { padding: 15px 18px 17px; display: flex; flex-direction: column; flex: 1; }
.yuan-card .loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--wither-d); }
.yuan-card h3 { margin: 7px 0 7px; font-size: 16px; line-height: 1.55; }
.yuan-card:hover h3 { color: var(--cave); }
.yuan-card 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; }
.yuan-card .go { margin-top: auto; font-size: 13px; color: var(--cave); letter-spacing: .14em; }
.yuan-card:hover .go { color: var(--wither-d); }

/* ---------------- 梁峁点线城市 ---------------- */
.knot-sec { padding: var(--sec-y) 0; background: var(--yuan-2); border-bottom: 1px solid var(--line); }
.knots {
  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(24px, 3vw, 48px);
}
.knot {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 13px 6px; border-bottom: 1px dashed var(--line);
  text-decoration: none; color: var(--ink);
}
.knot::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--loess); box-shadow: 0 0 0 3px rgba(190, 148, 85, .25);
}
.knot .kn { font-size: 15px; letter-spacing: .12em; }
.knot i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: .08em; }
.knot:hover .kn { color: var(--wither-d); }
.knot.cur::before { background: var(--wither-d); box-shadow: 0 0 0 3px rgba(95, 104, 60, .3); }
.knot.cur { background: rgba(122, 132, 80, .08); }
.knot.cur .kn { color: var(--wither-d); font-weight: 600; }
.knot a { text-decoration: none; color: inherit; display: contents; }

/* ---------------- 崖畔笔记手记 ---------------- */
.scrib-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.scribs { 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); }
.scrib {
  text-decoration: none; color: var(--ink); background: var(--yuan);
  border: 1px solid var(--line); padding: 18px 16px 15px;
  display: flex; flex-direction: column; gap: 9px; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: transform .2s;
}
.scrib:hover { transform: translateY(-3px); }
.scrib .n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--loess-d); }
.scrib h3 { margin: 0; font-size: 15px; line-height: 1.65; font-weight: 500; letter-spacing: .04em; }
.scrib:hover h3 { color: var(--wither-d); }
.scrib time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }

/* ---------------- 峁丘剪影页脚 ---------------- */
.mfoot { background: var(--cave-xd); color: var(--yuan); }
.mfoot-hill {
  height: 26px;
  background: radial-gradient(ellipse 60px 26px at 40px 26px, var(--cave) 98%, transparent),
              radial-gradient(ellipse 80px 26px at 150px 26px, var(--loess-d) 98%, transparent),
              radial-gradient(ellipse 60px 26px at 250px 26px, var(--cave) 98%, transparent);
  background-repeat: repeat-x;
  background-size: 290px 26px, 290px 26px, 290px 26px;
  border-top: 2px solid var(--loess);
}
.mfoot-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);
}
.mfoot h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; letter-spacing: .14em; }
.mfoot h3 svg { width: 32px; height: 32px; flex: none; }
.mfoot p { margin: 0 0 8px; font-size: 13.5px; color: rgba(242, 238, 230, .75); line-height: 2.05; }
.mfoot p b { font-weight: 600; color: var(--yuan); margin-right: 4px; }
.mfoot p a { color: #D9B877; text-decoration: none; font-family: var(--mono); font-size: 13px; }
.mfoot p a:hover { text-decoration: underline; }
.mfoot-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; font-size: 13px; }
.mfoot-links a { color: rgba(242, 238, 230, .72); text-decoration: none; padding: 3px 0; margin-right: 18px; letter-spacing: .1em; }
.mfoot-links a:hover { color: var(--yuan); }
.mfoot-links button { background: none; border: none; cursor: pointer; font-family: var(--song); font-size: 13px; color: rgba(242, 238, 230, .72); letter-spacing: .1em; padding: 3px 0; }
.mfoot-links button:hover { color: var(--yuan); }
.mfoot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.mfoot-motto { font-family: var(--kai); font-size: 15px; color: rgba(242, 238, 230, .55); letter-spacing: .5em; writing-mode: vertical-rl; height: 126px; }
.mfoot-copy {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 22px;
  border-top: 1px solid rgba(242, 238, 230, .18);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(242, 238, 230, .5); letter-spacing: .08em;
}

/* ---------------- 移动快捷条 ---------------- */
.mbarB {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  background: var(--cave); color: var(--yuan); border-top: 2px solid var(--loess);
}
.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: #D9B877; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .mna-links { display: none; }
  .mna-burger { display: inline-flex; background: none; border: none; cursor: pointer; color: var(--yuan); padding: 6px; }
  .ridge-in { grid-template-columns: 1fr; }
  .terra { grid-template-columns: 64px minmax(0, 1fr); }
  .terra .thumb { display: none; }
  .arches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yuans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knots { grid-template-columns: 1fr; }
  .scribs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfoot-in { grid-template-columns: 1fr; }
  .mfoot-right { align-items: flex-start; }
  .mfoot-motto { height: auto; writing-mode: horizontal-tb; }
}
@media (max-width: 640px) {
  body.t-maoliang { font-size: 15.5px; }
  .mna-in { height: 60px; gap: 12px; }
  .mna-act .tel { display: none; }
  .ridge-in { padding-top: 30px; }
  .profile .peaks { flex-direction: column; }
  .profile .peak img { height: 140px; }
  .terra { grid-template-columns: 1fr; gap: 8px; }
  .terra .no { display: none; }
  .arches { grid-template-columns: 1fr; }
  .arch .archhole { width: 100% !important; }
  .yuans { grid-template-columns: 1fr; }
  .scribs { grid-template-columns: 1fr; }
  .mbarB { display: flex; }
  body.t-maoliang { padding-bottom: 58px; }
  .mfoot-copy { flex-direction: column; gap: 4px; }
}
