/* ================================================================
   主题 20 / muta 木塔层檐 —— 朔州
   结构语言：塔刹导航 · 塔身五层收分首屏 · 平坐斗栱分隔产品行 ·
            营造标尺工序 · 外廊案例带 · 塔层收分城市 · 台基页脚
   配色：木褐 #8B5E34 / 朱漆 #9E2B25 / 麻灰 #E7DFD2 / 深木 #4A3524
   与定西(titian 土层色带)区分：对称收分塔形+朱漆+木色；与庆阳(gongquan 圆拱)区分
   ================================================================ */
:root {
  --wood: #8B5E34;
  --wood-d: #4A3524;
  --wood-xd: #35261A;
  --qi: #9E2B25;
  --qi-d: #7C211D;
  --linen: #E7DFD2;
  --linen-2: #DDD2BE;
  --paper: #F5F0E6;
  --ink: #33291F;
  --ink-2: #6B5D4C;
  --ink-3: #A2937E;
  --line: #CFC2AB;
  --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-muta {
  font-family: var(--song);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.8;
}
.t-muta ::selection { background: var(--qi); color: #fff; }
.t-muta img { display: block; max-width: 100%; }
.t-muta h1, .t-muta h2, .t-muta h3 { font-weight: 600; letter-spacing: .06em; }

/* ---------------- 塔刹导航 ---------------- */
.suta {
  position: sticky; top: 0; z-index: 60;
  background: var(--wood-xd);
}
.suta-fin {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 16px; background: var(--qi);
}
.suta-fin::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--qi);
}
.suta-in {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut); height: 68px; position: relative;
}
.suta-brand { display: flex; align-items: center; gap: 11px; color: var(--linen); text-decoration: none; flex: none; }
.suta-brand > svg { width: 36px; height: 36px; flex: none; }
.suta-brand span { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.suta-brand b { font-size: 15.5px; letter-spacing: .14em; }
.suta-brand i { font-style: normal; font-size: 9px; letter-spacing: .26em; color: rgba(231, 223, 210, .5); font-family: var(--mono); }
.suta-links { display: flex; align-items: stretch; height: 68px; }
.suta-links a {
  display: inline-flex; align-items: center; padding: 0 15px;
  color: rgba(231, 223, 210, .8); text-decoration: none;
  font-size: 14.5px; letter-spacing: .14em; position: relative;
}
.suta-links a + a::before {
  content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px;
  background: rgba(231, 223, 210, .22);
}
.suta-links a:hover, .suta-links a.on { color: var(--linen); }
.suta-links a.on::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px;
  background: var(--qi);
}
.suta-act { display: flex; align-items: center; gap: 12px; flex: none; }
.suta-act button { background: none; border: none; cursor: pointer; color: rgba(231, 223, 210, .8); display: inline-flex; padding: 6px; }
.suta-act button:hover { color: var(--linen); }
.suta-act .tel {
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: #fff; text-decoration: none;
  background: var(--qi); padding: 7px 13px;
}
.suta-act .tel:hover { background: var(--qi-d); }
.suta-burger { display: none; }

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

/* ---------------- 塔身五层首屏 ---------------- */
.pagoda {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 94, 52, .1), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.pagoda-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.15fr);
  gap: clamp(26px, 4.2vw, 56px); align-items: center;
}
.pagoda-copy { position: relative; z-index: 2; }
.pagoda-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;
}
.pagoda-kicker::before {
  content: '朔'; width: 24px; height: 24px; display: inline-grid; place-items: center;
  background: var(--wood); color: #fff; font-family: var(--kai); font-size: 13px;
  border-radius: 50%;
}
.pagoda-copy h1 {
  margin: 0 0 20px; font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.42; color: var(--wood-d); text-wrap: balance;
}
.pagoda-copy h1 em { font-style: normal; color: var(--qi); }
.pagoda-sub { color: var(--ink-2); font-size: clamp(14.5px, 1.2vw, 16px); margin: 0 0 26px; max-width: 44em; }
.pagoda-act { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.pagoda-act .a1 {
  text-decoration: none; padding: 12px 26px; font-size: 15px; letter-spacing: .18em;
  background: var(--wood-d); color: var(--linen); transition: background .2s;
}
.pagoda-act .a1:hover { background: var(--qi); }
.pagoda-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;
}
.pagoda-act .a2:hover { border-color: var(--qi); color: var(--qi); }
.pagoda-facts {
  display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.pagoda-facts span { padding: 10px 20px 0 0; margin-right: 14px; display: inline-flex; align-items: baseline; gap: 7px; }
.pagoda-facts b { font-family: var(--mono); font-size: 19px; color: var(--qi); font-weight: 700; }

/* 五层收分塔身 */
.tiers { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tier {
  position: relative; overflow: hidden; background: var(--wood-xd);
  border-top: 4px solid var(--wood);
  box-shadow: 0 2px 0 rgba(53, 38, 26, .35);
}
.tier img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.tier:hover img { opacity: 1; }
.tier .tl {
  position: absolute; left: 12px; bottom: 8px; z-index: 2;
  font-family: var(--kai); font-size: 12px; letter-spacing: .3em;
  color: var(--linen); background: rgba(53, 38, 26, .55); padding: 2px 10px;
}
.tier:nth-child(1) { width: 58%; height: 62px; }
.tier:nth-child(2) { width: 70%; height: 76px; }
.tier:nth-child(3) { width: 82%; height: 92px; }
.tier:nth-child(4) { width: 94%; height: 108px; }
.tier:nth-child(5) { width: 100%; height: 124px; }
.tier-base {
  width: 100%; height: 14px; background: repeating-linear-gradient(90deg, var(--wood) 0 40px, var(--wood-d) 40px 44px);
  border-top: 2px solid var(--qi);
}

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

/* ---------------- 平坐斗栱产品行 ---------------- */
.doug-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.dougs { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); }
.doug {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 200px; gap: clamp(12px, 2vw, 26px); align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); position: relative;
}
.doug::before {
  content: ''; position: absolute; left: 150px; right: 200px; bottom: -1px; height: 1px;
  background-image: linear-gradient(90deg, var(--qi) 0 30%, transparent 30% 50%, var(--wood) 50% 65%, transparent 65% 80%, var(--qi) 80% 100%);
  background-size: 90px 1px;
  opacity: 0; transition: opacity .2s;
}
.doug:hover::before { opacity: 1; }
.doug .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
.doug .nm { font-size: 17px; font-weight: 600; letter-spacing: .1em; color: var(--wood-d); }
.doug .nm i { display: block; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--ink-2); margin-top: 3px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doug .thumb { height: clamp(56px, 6vw, 84px); overflow: hidden; background: var(--wood-xd); }
.doug .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.doug:hover .thumb img { transform: scale(1.06); }
.doug:hover .nm { color: var(--qi-d); }

/* ---------------- 营造标尺工序 ---------------- */
.scale-sec { padding: var(--sec-y) 0; background: var(--wood-xd); color: var(--linen); }
.scale-sec .m-head h2 { color: var(--linen); }
.scale-sec .m-head .no { color: var(--wood); border-color: var(--wood); }
.scale-sec .m-head > p { color: rgba(231, 223, 210, .7); }
.scales { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); position: relative; }
.scales-rail { position: absolute; left: 44px; top: 20px; bottom: 20px; width: 2px; background: rgba(231, 223, 210, .25); }
.scales-rail i { position: absolute; left: 0; width: 2px; height: 8px; background: rgba(231, 223, 210, .4); }
.srow { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: clamp(14px, 2.4vw, 30px); padding: 18px 0; }
.srow .mark { position: relative; text-align: right; padding-right: 22px; }
.srow .mark::after {
  content: ''; position: absolute; right: -6px; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--qi); border: 3px solid var(--wood-xd);
  box-shadow: 0 0 0 1px rgba(231, 223, 210, .3);
}
.srow:nth-child(2) .mark::after { background: var(--wood); }
.srow:nth-child(3) .mark::after { background: #B98A4A; }
.srow:nth-child(4) .mark::after { background: var(--linen); }
.srow .ft { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: rgba(231, 223, 210, .55); }
.srow h3 { margin: 6px 0 8px; font-size: 17px; letter-spacing: .12em; color: var(--linen); }
.srow p { margin: 0; font-size: 14px; color: rgba(231, 223, 210, .72); max-width: 52em; }

/* ---------------- 外廊案例带 ---------------- */
.clois-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.clois { 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); }
.cloi { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--wood); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cloi:hover { border-color: var(--wood-d); transform: translateY(-3px); }
.cloi .fig img { width: 100%; aspect-ratio: 4 / 2.7; object-fit: cover; }
.cloi .body { padding: 15px 18px 17px; display: flex; flex-direction: column; flex: 1; }
.cloi .loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--qi); }
.cloi h3 { margin: 7px 0 7px; font-size: 16px; line-height: 1.55; }
.cloi:hover h3 { color: var(--wood-d); }
.cloi 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; }
.cloi .go { margin-top: auto; font-size: 13px; color: var(--wood-d); letter-spacing: .14em; }
.cloi:hover .go { color: var(--qi); }

/* ---------------- 塔层收分城市 ---------------- */
.city-sec { padding: var(--sec-y) 0; background: var(--linen-2); border-bottom: 1px solid var(--line); }
.citytiers { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); }
.ctier { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.ctier a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 20px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 15px; letter-spacing: .12em;
  transition: color .2s, border-color .2s;
}
.ctier a i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }
.ctier a:hover { color: var(--wood-d); border-color: var(--wood); }
.ctier a.cur { background: var(--wood-d); border-color: var(--wood-d); color: var(--linen); }
.ctier a.cur i { color: rgba(231, 223, 210, .6); }
.ctier:nth-child(1) a { width: 46%; }
.ctier:nth-child(2) a { width: 54%; }
.ctier:nth-child(3) a { width: 62%; }
.ctier:nth-child(4) a { width: 70%; }
.ctier:nth-child(5) a { width: 78%; }
.ctier:nth-child(6) a { width: 86%; }
.ctier:nth-child(7) a { width: 94%; }
.ctier:nth-child(8) a { width: 100%; }
.ctier:nth-child(9) a { width: 88%; margin-left: 6%; }
.ctier:nth-child(10) a { width: 76%; margin-left: 12%; }
.ctier:nth-child(11) a { width: 64%; margin-left: 18%; }
.ctier .tier-no { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .16em; }

/* ---------------- 塔砖手记 ---------------- */
.brick-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.bricks { 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); }
.brick {
  text-decoration: none; color: var(--ink); background: var(--linen-2);
  border: 1px solid var(--line); padding: 20px 18px 16px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: transform .2s;
}
.brick::before, .brick::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 2px solid var(--wood);
}
.brick::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.brick::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }
.brick:hover { transform: translateY(-3px); }
.brick .n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--qi); }
.brick h3 { margin: 0; font-size: 15px; line-height: 1.65; font-weight: 500; letter-spacing: .04em; }
.brick:hover h3 { color: var(--wood-d); }
.brick time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }

/* ---------------- 台基页脚 ---------------- */
.pfoot2 { background: var(--wood-xd); color: var(--linen); }
.pfoot2-plinth { height: 20px; background: repeating-linear-gradient(90deg, var(--wood) 0 46px, #7A5230 46px 50px, var(--wood-d) 50px 96px, #7A5230 96px 100px); border-top: 2px solid var(--qi); }
.pfoot2-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);
}
.pfoot2 h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; letter-spacing: .14em; }
.pfoot2 h3 svg { width: 32px; height: 32px; flex: none; }
.pfoot2 p { margin: 0 0 8px; font-size: 13.5px; color: rgba(231, 223, 210, .75); line-height: 2.05; }
.pfoot2 p b { font-weight: 600; color: var(--linen); margin-right: 4px; }
.pfoot2 p a { color: #D89A5C; text-decoration: none; font-family: var(--mono); font-size: 13px; }
.pfoot2 p a:hover { text-decoration: underline; }
.pfoot2-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; font-size: 13px; }
.pfoot2-links a { color: rgba(231, 223, 210, .72); text-decoration: none; padding: 3px 0; margin-right: 18px; letter-spacing: .1em; }
.pfoot2-links a:hover { color: var(--linen); }
.pfoot2-links button { background: none; border: none; cursor: pointer; font-family: var(--song); font-size: 13px; color: rgba(231, 223, 210, .72); letter-spacing: .1em; padding: 3px 0; }
.pfoot2-links button:hover { color: var(--linen); }
.pfoot2-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.pfoot2-motto { font-family: var(--kai); font-size: 15px; color: rgba(231, 223, 210, .55); letter-spacing: .5em; writing-mode: vertical-rl; height: 126px; }
.pfoot2-copy {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 22px;
  border-top: 1px solid rgba(231, 223, 210, .18);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(231, 223, 210, .5); letter-spacing: .08em;
}

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

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .suta-links { display: none; }
  .suta-burger { display: inline-flex; background: none; border: none; cursor: pointer; color: var(--linen); padding: 6px; }
  .suta-fin { display: none; }
  .pagoda-in { grid-template-columns: 1fr; }
  .doug { grid-template-columns: 110px minmax(0, 1fr); }
  .doug .thumb { display: none; }
  .doug::before { left: 110px; right: 0; }
  .clois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bricks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfoot2-in { grid-template-columns: 1fr; }
  .pfoot2-right { align-items: flex-start; }
  .pfoot2-motto { height: auto; writing-mode: horizontal-tb; }
}
@media (max-width: 640px) {
  body.t-muta { font-size: 15.5px; }
  .suta-in { height: 60px; gap: 12px; }
  .suta-act .tel { display: none; }
  .pagoda-in { padding-top: 30px; }
  .tier .tl { font-size: 10px; }
  .doug { grid-template-columns: 1fr; gap: 8px; }
  .doug .no { display: none; }
  .doug::before { display: none; }
  .clois { grid-template-columns: 1fr; }
  .ctier:nth-child(n) a { width: 100%; margin-left: 0; }
  .bricks { grid-template-columns: 1fr; }
  .mbarB { display: flex; }
  body.t-muta { padding-bottom: 58px; }
  .pfoot2-copy { flex-direction: column; gap: 4px; }
}
