/* ============================================================
   定西 · 梯田层叠
   骨架：山顶剖面式页头（导航下方是阶梯状山脊）+ 满幅图 + 压边纸板（左侧四道土层书脊）
        + 三带剖切构件卡（图片被两条缝隙切成三段）+ 满幅土层工序带
        + 瀑布流案例（双列不等高）+ 点线引导城市索引 + 土层层积页脚
   特征：全站唯一的「横向层积」语言：所有图与区块都按水平层来切、来叠
   ============================================================ */

:root {
  --earth: #C08D4E;
  --earth-d: #96682F;
  --earth-l: #E3C89C;
  --moss: #7A8A46;
  --clay: #B4643C;
  --soil-1: #E7D8BB;
  --soil-2: #D6BE95;
  --soil-3: #B08A56;
  --soil-4: #6E5334;
  --deep: #33291C;
  --paper: #F6F0E3;
  --paper-2: #EFE7D6;
  --ink: #33291C;
  --ink-2: #4B3D2B;
  --ink-3: #8A7A62;
  --line: #DACCB2;
  --line-2: #C0AA86;
  --accent: #96682F;
  --serif: 'Songti SC', 'STSong', 'Noto Serif SC', 'SimSun', serif;
  --font-h: var(--serif);
  --font-b: var(--serif);
  --wrap: 1180px;
  --gut: 32px;
  --sec-y: 76px;
}

body { background: var(--paper); color: var(--ink); font-family: var(--font-b); }

/* ---------------- 山顶剖面页头 ---------------- */
.tnav { position: sticky; top: 0; z-index: 60; }
.tnav-in {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tnav-row {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.tnav-brand { display: flex; align-items: center; gap: 10px; }
.tnav-brand svg { width: 32px; height: 32px; color: var(--earth-d); flex: none; }
.tnav-brand b { display: block; font-size: 15px; letter-spacing: .1em; }
.tnav-brand i {
  display: block; margin-top: 2px; font-style: normal;
  font-size: 10px; letter-spacing: .2em; color: var(--ink-3);
}
.tnav-links { display: flex; align-items: center; gap: 4px; }
.tnav-links a {
  position: relative;
  padding: 8px 13px;
  font-size: 13.5px; letter-spacing: .08em; color: var(--ink-2);
}
.tnav-links a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--earth-d);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.tnav-links a:hover::after, .tnav-links a.on::after { transform: scaleX(1); }
.tnav-links a.on { color: var(--earth-d); }
.tnav-act { display: flex; align-items: center; gap: 10px; }
.tnav-act button {
  width: 34px; height: 34px; display: grid; place-content: center;
  color: var(--ink-2);
  transition: color .2s;
}
.tnav-act button:hover { color: var(--earth-d); }
.tnav-tel {
  height: 36px; padding: 0 15px;
  display: inline-flex; align-items: center;
  background: var(--deep); color: var(--soil-1);
  font-size: 12.5px; letter-spacing: .06em;
}
.tnav-tel:hover { background: var(--earth-d); }
.tnav-burger { display: none !important; }

/* 阶梯状山脊 */
.tnav-hill { display: block; width: 100%; height: 34px; margin-bottom: -1px; }

.tdrawer {
  position: fixed; inset: 0; z-index: 170;
  background: var(--paper-2);
  padding: 24px 22px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.tdrawer.on { opacity: 1; visibility: visible; }
.tdrawer-top { display: flex; justify-content: space-between; align-items: center; }
.tdrawer-top b { font-size: 14px; letter-spacing: .14em; }
.tdrawer nav { margin-top: 24px; }
.tdrawer nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; letter-spacing: .1em;
}
.tdrawer nav a i { font-style: normal; font-size: 10px; color: var(--earth-d); letter-spacing: .16em; }
.tdrawer-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.tdrawer-foot a { color: var(--earth-d); align-self: flex-start; border-bottom: 1px solid var(--line-2); }

/* ---------------- 满幅图 + 压边纸板 ---------------- */
.tq { position: relative; }
.tq-media { position: relative; height: min(60vh, 540px); overflow: hidden; background: var(--paper-2); }
.tq-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tq-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,41,28,.18), rgba(51,41,28,.02) 45%, rgba(51,41,28,.3));
}
.tq-contour {
  position: absolute; inset: auto 0 0 0; height: 70px; z-index: 1;
  pointer-events: none; opacity: .55;
}
.tq-plate {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: min(-96px, -8vw) auto 0;
  display: grid; grid-template-columns: 14px minmax(0, 1fr) 260px;
  background: var(--paper);
  box-shadow: 0 18px 40px -28px rgba(51,41,28,.5);
}
/* 左侧四道土层书脊 */
.tq-spine { display: grid; grid-template-rows: repeat(4, 1fr); }
.tq-spine span { display: block; }
.tq-spine span:nth-child(1) { background: var(--soil-1); }
.tq-spine span:nth-child(2) { background: var(--soil-2); }
.tq-spine span:nth-child(3) { background: var(--earth); }
.tq-spine span:nth-child(4) { background: var(--moss); }
.tq-copy { padding: clamp(26px, 3.4vw, 44px) clamp(22px, 3vw, 40px); min-width: 0; }
.tq-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: .26em; color: var(--earth-d);
}
.tq-kicker::before { content: ''; width: 22px; height: 2px; background: var(--earth); }
.tq-copy h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.34; letter-spacing: .04em; font-weight: 600;
}
.tq-copy h1 em { font-style: normal; color: var(--earth-d); }
.tq-copy p { margin-top: 14px; font-size: 13.5px; line-height: 2; color: var(--ink-2); max-width: 40em; }
.tq-copy .act { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.tq-btn {
  height: 44px; padding: 0 22px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); color: var(--ink);
  font-size: 13px; letter-spacing: .08em;
  transition: background .22s, color .22s, border-color .22s;
}
.tq-btn:hover { background: var(--paper-2); border-color: var(--earth-d); }
.tq-btn.solid { background: var(--deep); border-color: var(--deep); color: var(--soil-1); }
.tq-btn.solid:hover { background: var(--earth-d); border-color: var(--earth-d); color: #fff; }
.tq-side {
  border-left: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.tq-side div { min-width: 0; }
.tq-side .k { font-size: 10px; letter-spacing: .2em; color: var(--ink-3); }
.tq-side .v { margin-top: 3px; font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.tq-side .v i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }

/* ---------------- 通用节头 ---------------- */
.t-sec { padding: var(--sec-y) 0; }
.t-head {
  max-width: var(--wrap); margin: 0 auto 26px; padding: 0 var(--gut);
}
.t-head .row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.t-head .no {
  display: inline-block; margin-bottom: 8px;
  font-size: 10.5px; letter-spacing: .24em; color: var(--earth-d);
}
.t-head h2 { font-family: var(--serif); font-size: clamp(1.28rem, 2.1vw, 1.7rem); letter-spacing: .06em; font-weight: 600; }
.t-head p { font-size: 12.5px; color: var(--ink-3); }
.t-head .rule { margin-top: 14px; height: 3px; background: linear-gradient(90deg, var(--soil-3) 0 62px, var(--line) 62px); }

/* ---------------- 三带剖切构件卡 ---------------- */
.tfields {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px;
}
.tfield { display: block; min-width: 0; }
.tfield .cut {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--paper-2);
}
.tfield .cut img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.tfield .cut::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, transparent 0 33%, var(--paper) 33% calc(33% + 3px), transparent calc(33% + 3px) 66%, var(--paper) 66% calc(66% + 3px), transparent calc(66% + 3px));
  pointer-events: none;
}
.tfield:hover .cut img { transform: scale(1.05); }
.tfield .tx { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.tfield .tx .c { font-size: 10.5px; letter-spacing: .2em; color: var(--earth-d); }
.tfield .tx h3 { margin: 6px 0 5px; font-size: 16px; letter-spacing: .04em; }
.tfield .tx p { font-size: 12px; line-height: 1.75; color: var(--ink-3); }

/* ---------------- 满幅土层工序带 ---------------- */
.tstrat { position: relative; }
.tlayer {
  position: relative;
  display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 360px);
  gap: 24px; align-items: center;
  padding: 30px max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  min-width: 0;
}
.tlayer:nth-child(1) { background: var(--soil-1); }
.tlayer:nth-child(2) { background: var(--soil-2); }
.tlayer:nth-child(3) { background: var(--soil-3); color: #2C2418; }
.tlayer:nth-child(4) { background: var(--soil-4); color: var(--soil-1); }
.tlayer + .tlayer { border-top: 1px solid rgba(51,41,28,.14); }
.tlayer .n {
  font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: .02em;
  opacity: .5;
}
.tlayer h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: .1em; }
.tlayer p { font-size: 12.5px; line-height: 1.95; opacity: .82; }
.tlayer .tag {
  justify-self: end; text-align: right;
  font-size: 10.5px; letter-spacing: .2em; opacity: .6;
}

/* ---------------- 瀑布流案例 ---------------- */
.tmasonry {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  column-count: 3; column-gap: 18px;
}
.tm {
  display: block; break-inside: avoid; margin-bottom: 18px;
  background: var(--paper-2);
}
.tm img { width: 100%; display: block; height: auto; }
.tm .cap { padding: 13px 15px 15px; background: var(--paper); border-top: 2px solid var(--earth); }
.tm .cap .c { font-size: 10px; letter-spacing: .18em; color: var(--earth-d); }
.tm .cap h3 { margin-top: 5px; font-size: 15px; letter-spacing: .03em; }
.tm .cap p { margin-top: 5px; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }

/* ---------------- 点线引导城市索引 ---------------- */
.tindex { background: var(--paper-2); padding: var(--sec-y) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tindex-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px;
}
.tindex-l h2 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .06em; line-height: 1.5; font-weight: 600; }
.tindex-l p { margin-top: 12px; font-size: 12.5px; line-height: 1.95; color: var(--ink-2); }
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.toc a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 11px 0; border-bottom: 1px dotted var(--line-2);
  font-size: 14.5px; letter-spacing: .05em;
  min-width: 0;
}
.toc a .nm { flex: none; }
.toc a .dots { flex: 1 1 auto; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 5px); transform: translateY(-3px); }
.toc a .py { flex: none; font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.toc a:hover .nm { color: var(--earth-d); }
.toc a.cur { position: relative; }
.toc a.cur::before {
  content: ''; position: absolute; left: -13px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: var(--earth-d);
}
.toc a.cur .nm { color: var(--earth-d); font-weight: 700; }
.toc a.cur .py { color: var(--earth-d); }

/* ---------------- 手记 ---------------- */
.tnews { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.tnews a {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 100px;
  gap: 20px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  min-width: 0;
}
.tnews time { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.tnews h3 { font-size: 15.5px; letter-spacing: .03em; }
.tnews .ty { font-size: 10.5px; letter-spacing: .16em; color: var(--earth-d); text-align: right; }
.tnews a:hover h3 { color: var(--earth-d); }

/* ---------------- 土层层积页脚 ---------------- */
.tfoot { background: var(--deep); color: var(--soil-1); }
.tfoot-strata { display: grid; grid-template-rows: repeat(3, 6px); }
.tfoot-strata span:nth-child(1) { background: var(--soil-1); }
.tfoot-strata span:nth-child(2) { background: var(--soil-2); }
.tfoot-strata span:nth-child(3) { background: var(--earth); }
.tfoot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 42px var(--gut) 30px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
}
.tfoot h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .12em; }
.tfoot h3 svg { width: 30px; height: 30px; color: var(--earth); }
.tfoot p { margin-top: 12px; font-size: 12px; line-height: 2.1; color: rgba(231,216,187,.68); }
.tfoot p b { color: rgba(231,216,187,.4); font-weight: 400; margin-right: 6px; }
.tfoot p a { color: var(--soil-1); border-bottom: 1px solid rgba(231,216,187,.35); }
.tfoot-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; }
.tfoot-links a:hover, .tfoot-links button:hover { color: var(--earth); }
.tfoot-side { text-align: right; font-size: 11px; line-height: 2.2; color: rgba(231,216,187,.5); letter-spacing: .18em; }
.tfoot-side b { display: block; font-size: 26px; letter-spacing: .04em; color: var(--earth); font-weight: 400; }
.tfoot-copy { padding: 14px var(--gut); border-top: 1px solid rgba(231,216,187,.18); text-align: center; font-size: 11px; letter-spacing: .1em; color: rgba(231,216,187,.42); }

.mbar3 {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  height: 56px; background: var(--deep); border-top: 1px solid rgba(231,216,187,.22);
}
.mbar3 > * { flex: 1 1 0; display: grid; place-content: center; gap: 1px; text-align: center; font-size: 10.5px; color: rgba(231,216,187,.75); }
.mbar3 > * + * { border-left: 1px solid rgba(231,216,187,.18); }
.mbar3 b { font-size: 11.5px; color: var(--soil-1); }
.mbar3 .hot { background: var(--earth); color: var(--deep); }
.mbar3 .hot b { color: var(--deep); }

/* ---------------- 内页 ---------------- */
.page-head { background: var(--paper-2); border-bottom: 3px solid var(--soil-3); }
.page-head h1 { font-family: var(--serif); letter-spacing: .06em; }
.page-head .lead { color: var(--ink-2); }
.crumb { letter-spacing: .12em; color: var(--ink-3); }

.btn { border-color: var(--line-2); color: var(--ink); }
.btn-d { background: var(--deep); color: var(--soil-1); border-color: var(--deep); }
.btn-p { background: var(--earth-d); color: #fff; border-color: var(--earth-d); }
.chip { border-color: var(--line-2); color: var(--ink-2); }
.chip.on { background: var(--deep); border-color: var(--deep); color: var(--soil-1); }

.pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.pcard { min-width: 0; }
.pcard-img { position: relative; }
.pcard-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, transparent 0 33%, var(--paper) 33% calc(33% + 3px), transparent calc(33% + 3px) 66%, var(--paper) 66% calc(66% + 3px), transparent calc(66% + 3px));
  pointer-events: none;
}
.pcard-body { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.pcard-idx { font-size: 10.5px; letter-spacing: .2em; color: var(--earth-d); }
.pcard-body h3 { font-size: 16px; margin: 5px 0; }
.pcard-body p { font-size: 12px; line-height: 1.7; }
.pcard-go { font-size: 12px; margin-top: 8px; color: var(--earth-d); }

.wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.cc-meta { padding-top: 10px; border-top: 2px solid var(--earth); }
.cc-meta h3 { font-size: 16px; }
.cc-meta p { font-size: 11.5px; line-height: 1.75; }
.loc { font-size: 10.5px; letter-spacing: .18em; color: var(--earth-d); }

.news-row { grid-template-columns: 88px minmax(0, 1fr) 22px; border-bottom-color: var(--line); }
.news-row h3 { font-size: 15.5px; }
.spec-row { border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--ink-3); }
.spec-row dd { color: var(--ink-2); }
.contact-row { border-bottom: 1px solid var(--line); }
.map-card { background: var(--paper-2); border: 1px solid var(--line); }
.detail-tel { background: var(--deep); color: var(--soil-1); }
.prose p { color: var(--ink-2); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .tq-plate { grid-template-columns: 12px minmax(0, 1fr); }
  .tq-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; gap: 18px 34px; }
  .tfields, .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmasonry { column-count: 2; }
  .tindex-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tnav-links a:nth-child(n+4) { display: none; }
  .tlayer { grid-template-columns: 66px minmax(0, 1fr); }
  .tlayer .tag { display: none; }
}

@media (max-width: 880px) {
  :root { --gut: 16px; --sec-y: 46px; }
  body { padding-bottom: 56px; }
  .tnav-row { height: 58px; }
  .tnav-links { display: none; }
  .tnav-tel { height: 32px; padding: 0 10px; font-size: 11.5px; }
  .tnav-burger { display: grid !important; }
  .tnav-hill { height: 20px; }

  .tq-media { height: 210px; }
  .tq-plate { margin-top: -46px; grid-template-columns: 10px minmax(0, 1fr); }
  .tq-copy { padding: 22px 18px; }
  .tq-copy h1 { font-size: clamp(1.45rem, 6.2vw, 2rem); }
  .tq-copy p { font-size: 12.5px; }
  .tq-side { padding: 16px 18px; gap: 12px 24px; }
  .tq-side .v { font-size: 17px; }

  .tfields, .pgrid { grid-template-columns: minmax(0, 1fr); }
  .tmasonry { column-count: 2; column-gap: 12px; }
  .tm { margin-bottom: 12px; }
  .tm .cap { padding: 10px 11px 12px; }
  .tm .cap h3 { font-size: 13.5px; }
  .tm .cap p { display: none; }

  .tlayer { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 22px var(--gut); }
  .tlayer .n { font-size: 22px; }

  .toc { grid-template-columns: minmax(0, 1fr); }
  .tnews a { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
  .tnews .ty { display: none; }

  .tfoot-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 30px; }
  .tfoot-side { text-align: left; }
  .tfoot-side b { font-size: 20px; }
  .mbar3 { display: flex; }

  .wall { grid-template-columns: minmax(0, 1fr); }
  .news-row { grid-template-columns: 74px minmax(0, 1fr); }
  .news-row .arw { display: none; }
}
