/* ================================================================
   主题 21 / dayuan 大院深巷 —— 晋中
   结构语言：门钉横带导航 · 门楼递进首屏（灯笼垂点+错位图） ·
            砖墙错缝产品格 · 上梁四步工序 · 影壁案例 · 灯笼串城市 ·
            挂签手记 · 灯笼墙基页脚
   配色：青砖灰蓝 #46566A / 灯笼红 #C3272B / 砖白 #EFEAE0 / 深巷 #2B3440
   与朔州(muta 塔身收分)区分：错缝砖格+灯笼串；与太原(piaohao 账册)区分
   ================================================================ */
:root {
  --brick: #46566A;
  --brick-d: #333F4E;
  --brick-xd: #2B3440;
  --lan: #C3272B;
  --lan-d: #9E1F23;
  --wall: #EFEAE0;
  --wall-2: #E4DDD0;
  --paper: #F7F4ED;
  --ink: #2E333B;
  --ink-2: #5D6570;
  --ink-3: #9AA2AC;
  --line: #CFC8BA;
  --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-dayuan {
  font-family: var(--song);
  color: var(--ink);
  background: var(--paper);
  font-size: 16.5px;
  line-height: 1.8;
}
.t-dayuan ::selection { background: var(--lan); color: #fff; }
.t-dayuan img { display: block; max-width: 100%; }
.t-dayuan h1, .t-dayuan h2, .t-dayuan h3 { font-weight: 600; letter-spacing: .06em; }

/* ---------------- 门钉横带导航 ---------------- */
.dna {
  position: sticky; top: 0; z-index: 60;
  background: var(--brick-xd);
  border-bottom: 4px solid var(--lan);
}
.dna-studs {
  height: 5px;
  background: repeating-linear-gradient(90deg, rgba(239, 234, 224, .28) 0 7px, transparent 7px 26px);
}
.dna-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;
}
.dna-brand { display: flex; align-items: center; gap: 11px; color: var(--wall); text-decoration: none; flex: none; }
.dna-brand > svg { width: 36px; height: 36px; flex: none; }
.dna-brand span { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.dna-brand b { font-size: 15.5px; letter-spacing: .14em; }
.dna-brand i { font-style: normal; font-size: 9px; letter-spacing: .26em; color: rgba(239, 234, 224, .5); font-family: var(--mono); }
.dna-links { display: flex; align-items: stretch; height: 66px; }
.dna-links a {
  display: inline-flex; align-items: center; padding: 0 15px;
  color: rgba(239, 234, 224, .8); text-decoration: none;
  font-size: 14.5px; letter-spacing: .14em; position: relative;
}
.dna-links a:hover, .dna-links a.on { color: var(--wall); }
.dna-links a.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px;
  background: var(--lan);
}
.dna-links a.on::before {
  content: ''; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--lan);
}
.dna-act { display: flex; align-items: center; gap: 12px; flex: none; }
.dna-act button { background: none; border: none; cursor: pointer; color: rgba(239, 234, 224, .8); display: inline-flex; padding: 6px; }
.dna-act button:hover { color: var(--wall); }
.dna-act .tel {
  font-family: var(--mono); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: #fff; text-decoration: none;
  background: var(--lan); padding: 7px 13px;
}
.dna-act .tel:hover { background: var(--lan-d); }
.dna-burger { display: none; }

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

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

/* 灯笼垂点 + 错位双图 */
.foyer { position: relative; padding-top: 26px; }
.foyer-strings {
  position: absolute; top: 0; left: 8%; right: 8%; height: 26px;
  display: flex; justify-content: space-between;
}
.foyer-strings i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lan); position: relative;
}
.foyer-strings i::before {
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 12px; background: var(--ink-3);
}
.foyer-strings i::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 3px; background: var(--lan-d);
}
.foyer .gate {
  position: relative; background: var(--brick-xd);
  border: 1px solid var(--brick-d); outline: 1px solid var(--line); outline-offset: 5px;
}
.foyer .gate img { width: 100%; height: clamp(190px, 24vw, 300px); object-fit: cover; opacity: .88; }
.foyer .gate .gl {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--kai); font-size: 12px; letter-spacing: .3em;
  color: var(--wall); background: rgba(43, 52, 64, .62); padding: 2px 12px;
}
.foyer .yard {
  width: 72%; margin: 18px 0 0 auto;
  background: var(--brick); border: 1px solid var(--brick-d);
  position: relative; transform: translateY(-8px);
}
.foyer .yard img { width: 100%; height: clamp(120px, 15vw, 190px); object-fit: cover; opacity: .9; }
.foyer .yard .yl {
  position: absolute; right: 12px; top: 10px;
  font-family: var(--kai); font-size: 11px; letter-spacing: .24em;
  color: var(--wall); background: rgba(43, 52, 64, .62); padding: 2px 10px;
}
.foyer .path {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--ink-3);
}
.foyer .path i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px); }

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

/* ---------------- 砖墙错缝产品格 ---------------- */
.wall-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.bricks-grid {
  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: 14px 16px;
}
.bwall {
  display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 14px; align-items: center;
  background: var(--wall); border: 1px solid var(--line);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line);
  transition: transform .2s, border-color .2s;
}
.bwall:nth-child(even) { transform: translateX(18px); }
.bwall:hover { transform: translateX(0); border-color: var(--brick); }
.bwall:nth-child(even):hover { transform: translateX(18px); }
.bwall .no { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--lan); }
.bwall h3 { margin: 5px 0 4px; font-size: 16.5px; letter-spacing: .08em; color: var(--brick-d); }
.bwall:hover h3 { color: var(--lan); }
.bwall 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; }
.bwall .thumb { height: 74px; overflow: hidden; background: var(--brick-d); }
.bwall .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s; }
.bwall:hover .thumb img { opacity: 1; }

/* ---------------- 上梁四步工序 ---------------- */
.beam-sec { padding: var(--sec-y) 0; background: var(--brick-xd); color: var(--wall); }
.beam-sec .m-head h2 { color: var(--wall); }
.beam-sec .m-head .no { color: var(--lan); border-color: var(--lan); }
.beam-sec .m-head > p { color: rgba(239, 234, 224, .7); }
.steps {
  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);
  align-items: end;
}
.step { position: relative; padding-top: 18px; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  background: repeating-linear-gradient(90deg, rgba(239, 234, 224, .3) 0 5px, transparent 5px 13px);
  height: 4px;
}
.step:nth-child(1)::after { content: ''; display: block; height: 14px; background: var(--brick); margin-top: 16px; }
.step:nth-child(2)::after { content: ''; display: block; height: 24px; background: var(--brick); margin-top: 16px; }
.step:nth-child(3)::after { content: ''; display: block; height: 34px; background: #56687E; margin-top: 16px; }
.step:nth-child(4)::after { content: ''; display: block; height: 44px; background: var(--lan); margin-top: 16px; }
.step .sn { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: rgba(239, 234, 224, .55); }
.step h3 { margin: 7px 0 8px; font-size: 17px; letter-spacing: .12em; color: var(--wall); }
.step p { margin: 0; font-size: 13.6px; color: rgba(239, 234, 224, .72); line-height: 1.8; }

/* ---------------- 影壁案例 ---------------- */
.screen-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.screens { 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); }
.screen { text-decoration: none; color: var(--ink); background: var(--wall); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.screen:hover { border-color: var(--brick); transform: translateY(-3px); }
.screen .fig { position: relative; }
.screen .fig img { width: 100%; aspect-ratio: 4 / 2.7; object-fit: cover; }
.screen .fig::after {
  content: ''; position: absolute; inset: 8px; border: 1px solid rgba(239, 234, 224, .75); pointer-events: none;
}
.screen .body { padding: 15px 18px 17px; display: flex; flex-direction: column; flex: 1; }
.screen .loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--lan); }
.screen h3 { margin: 7px 0; font-size: 16px; line-height: 1.55; }
.screen:hover h3 { color: var(--brick-d); }
.screen 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; }
.screen .go { margin-top: auto; font-size: 13px; color: var(--brick-d); letter-spacing: .14em; }
.screen:hover .go { color: var(--lan); }

/* ---------------- 灯笼串城市 ---------------- */
.lan-sec { padding: var(--sec-y) 0; background: var(--wall-2); border-bottom: 1px solid var(--line); }
.lanterns { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); display: flex; flex-wrap: wrap; gap: 22px 26px; }
.lant { position: relative; }
.lant::before {
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 12px; background: var(--ink-3);
}
.lant a {
  display: flex; align-items: baseline; gap: 8px;
  min-width: 92px; justify-content: center;
  padding: 12px 20px 14px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font-size: 15px; letter-spacing: .12em;
  transition: color .2s, border-color .2s, background .2s;
}
.lant a i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: .08em; }
.lant a:hover { border-color: var(--brick); color: var(--brick-d); }
.lant a.cur {
  background: var(--lan); border-color: var(--lan); color: #fff;
  box-shadow: 0 0 0 3px rgba(195, 39, 43, .18);
}
.lant a.cur i { color: rgba(255, 255, 255, .65); }

/* ---------------- 挂签手记 ---------------- */
.tag-sec { padding: var(--sec-y) 0; border-bottom: 1px solid var(--line); }
.tags { max-width: var(--wrap); margin: clamp(26px, 3.6vw, 44px) auto 0; padding: 0 var(--gut); }
.tagrow {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background .2s;
}
.tagrow:hover { background: var(--wall); }
.tagrow::before {
  content: ''; width: 12px; height: 26px; background: var(--lan);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.tagrow h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: .04em; line-height: 1.6; }
.tagrow:hover h3 { color: var(--brick-d); }
.tagrow time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 灯笼墙基页脚 ---------------- */
.dfoot { background: var(--brick-xd); color: var(--wall); }
.dfoot-lant {
  height: 22px;
  background:
    radial-gradient(circle 5px at 12px 11px, var(--lan) 98%, transparent) ,
    repeating-linear-gradient(90deg, transparent 0 24px);
  background-size: 24px 22px, auto;
  border-top: 2px solid var(--lan-d);
}
.dfoot-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);
}
.dfoot h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; letter-spacing: .14em; }
.dfoot h3 svg { width: 32px; height: 32px; flex: none; }
.dfoot p { margin: 0 0 8px; font-size: 13.5px; color: rgba(239, 234, 224, .75); line-height: 2.05; }
.dfoot p b { font-weight: 600; color: var(--wall); margin-right: 4px; }
.dfoot p a { color: #E08A86; text-decoration: none; font-family: var(--mono); font-size: 13px; }
.dfoot p a:hover { text-decoration: underline; }
.dfoot-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; font-size: 13px; }
.dfoot-links a { color: rgba(239, 234, 224, .72); text-decoration: none; padding: 3px 0; margin-right: 18px; letter-spacing: .1em; }
.dfoot-links a:hover { color: var(--wall); }
.dfoot-links button { background: none; border: none; cursor: pointer; font-family: var(--song); font-size: 13px; color: rgba(239, 234, 224, .72); letter-spacing: .1em; padding: 3px 0; }
.dfoot-links button:hover { color: var(--wall); }
.dfoot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.dfoot-motto { font-family: var(--kai); font-size: 15px; color: rgba(239, 234, 224, .55); letter-spacing: .5em; writing-mode: vertical-rl; height: 126px; }
.dfoot-copy {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 22px;
  border-top: 1px solid rgba(239, 234, 224, .18);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: rgba(239, 234, 224, .5); letter-spacing: .08em;
}

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

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .dna-links { display: none; }
  .dna-burger { display: inline-flex; background: none; border: none; cursor: pointer; color: var(--wall); padding: 6px; }
  .dna-studs { display: none; }
  .court-in { grid-template-columns: 1fr; }
  .bricks-grid { grid-template-columns: 1fr; }
  .bwall:nth-child(even) { transform: none; }
  .bwall:nth-child(even):hover { transform: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(n)::after { height: 18px; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dfoot-in { grid-template-columns: 1fr; }
  .dfoot-right { align-items: flex-start; }
  .dfoot-motto { height: auto; writing-mode: horizontal-tb; }
}
@media (max-width: 640px) {
  body.t-dayuan { font-size: 15.5px; }
  .dna-in { height: 60px; gap: 12px; }
  .dna-act .tel { display: none; }
  .court-in { padding-top: 30px; }
  .foyer-strings { left: 4%; right: 4%; }
  .foyer .yard { width: 88%; }
  .bwall { grid-template-columns: 1fr; }
  .bwall .thumb { height: 110px; }
  .steps { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; }
  .tagrow { grid-template-columns: 20px minmax(0, 1fr); }
  .tagrow time { display: none; }
  .mbarB { display: flex; }
  body.t-dayuan { padding-bottom: 58px; }
  .dfoot-copy { flex-direction: column; gap: 4px; }
}
