/* ============================================================
   张掖 · 丹霞色阶
   骨架：顶部渐变条导航 + 斜切色阶首屏（多层 clip-path 色带 + 四图斜列）
        + 色卡式构件（顶部色带）+ 斜切案例墙 + 色点城市表 + 渐变编号手记
   特征：紫—赭—金—苔四色渐变贯穿，全站斜切边（clip-path），无圆角
   ============================================================ */

:root {
  --plum: #3A1E28;
  --plum-2: #55283A;
  --wine: #6E2E45;
  --brick: #B0512F;
  --amber: #D9A257;
  --moss: #6F7A54;
  --paper: #F6EFE3;
  --paper-2: #EDE2D0;
  --ink: #2A1A20;
  --ink-2: #574048;
  --ink-3: #8B7378;
  --line: #DCCDB8;
  --line-2: #C3B099;
  --grad: linear-gradient(90deg, var(--plum) 0%, var(--wine) 28%, var(--brick) 58%, var(--amber) 82%, var(--moss) 100%);
  --accent: var(--brick);
  --font-h: 'Songti SC', 'STSong', 'SimSun', serif;
  --font-b: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --wrap: 1300px;
  --gut: 34px;
  --sec-y: 84px;
  --hw: 700;
  --htrack: .02em;
}

/* ---------------- 渐变条导航 ---------------- */
.gnav {
  position: sticky; top: 0; z-index: 92;
  background: var(--grad);
  color: #FBF4E8;
}
.gnav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gnav-brand { display: flex; align-items: center; gap: 9px; }
.gnav-brand svg { width: 24px; height: 24px; color: #FBF4E8; }
.gnav-brand b { font-family: var(--font-h); font-size: 16px; letter-spacing: .14em; }
.gnav-brand i { font-style: normal; font-size: 9.5px; letter-spacing: .2em; color: rgba(251,244,232,.66); }
.gnav-links { display: flex; gap: clamp(12px, 2vw, 26px); }
.gnav-links a {
  font-size: 13px; letter-spacing: .1em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.gnav-links a:hover, .gnav-links a.on { border-bottom-color: #FBF4E8; }
.gnav-act { display: flex; align-items: center; gap: 8px; }
.gnav-act a, .gnav-act button {
  height: 34px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(251,244,232,.34);
  font-size: 12px; color: #FBF4E8;
  font-variant-numeric: tabular-nums;
}
.gnav-act a:hover, .gnav-act button:hover { background: rgba(251,244,232,.16); }
.gnav-act svg { width: 15px; height: 15px; }
.gnav-burger { display: none; }

.gdrawer2 {
  position: fixed; inset: 0; z-index: 160;
  background: var(--plum); color: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  padding: 26px 22px; overflow-y: auto;
}
.gdrawer2.on { opacity: 1; visibility: visible; }
.gdrawer2-top { display: flex; justify-content: space-between; align-items: center; }
.gdrawer2-top b { font-family: var(--font-h); font-size: 16px; letter-spacing: .14em; }
.gdrawer2-top button { width: 38px; height: 38px; color: var(--paper); }
.gdrawer2 nav { margin-top: 26px; }
.gdrawer2 nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(246,239,227,.18); font-family: var(--font-h); font-size: 19px; letter-spacing: .12em; }
.gdrawer2-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(246,239,227,.7); }
.gdrawer2-foot a { color: var(--amber); }

/* ---------------- 斜切色阶首屏 ---------------- */
.dx-hero {
  position: relative;
  min-height: calc(100vh - 62px);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 34px;
}
.dx-bands { position: absolute; inset: 0; z-index: 0; }
.dx-bands i {
  position: absolute; left: -10%; right: -10%;
  display: block;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 84%);
}
.dx-bands i:nth-child(1) { top: 0; height: 34%; background: var(--plum); clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.dx-bands i:nth-child(2) { top: 22%; height: 30%; background: var(--wine); opacity: .92; clip-path: polygon(0 18%, 100% 0, 100% 84%, 0 100%); }
.dx-bands i:nth-child(3) { top: 44%; height: 30%; background: var(--brick); opacity: .9; clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 76%); }
.dx-bands i:nth-child(4) { top: 64%; height: 34%; background: var(--amber); opacity: .85; clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 82%); }
.dx-bands i:nth-child(5) { top: 82%; height: 22%; background: var(--moss); opacity: .9; clip-path: polygon(0 0, 100% 34%, 100% 100%, 0 100%); }

.dx-hero-in {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
}
.dx-copy {
  color: #FBF4E8;
  padding: 24px 26px 26px;
  background: linear-gradient(120deg, rgba(42, 26, 32, .82), rgba(42, 26, 32, .42) 78%, rgba(42, 26, 32, .18));
  border-left: 2px solid rgba(255, 226, 180, .6);
}
.dx-kicker { font-size: 10.5px; letter-spacing: .28em; color: rgba(251,244,232,.72); }
.dx-copy h1 {
  margin: 14px 0 0;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.55vw, 2.25rem);
  line-height: 1.4;
  letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(42,26,32,.28);
}
.dx-copy h1 em { font-style: normal; color: #FFE2B4; }
.dx-sub { margin-top: 16px; font-size: 14px; line-height: 1.9; color: rgba(251,244,232,.82); max-width: 40em; }
.dx-act { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.dx-act a {
  height: 44px; padding: 0 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; letter-spacing: .06em;
  border: 1px solid rgba(251,244,232,.6);
  color: #FBF4E8;
}
.dx-act a.solid { background: #FBF4E8; color: var(--plum); border-color: #FBF4E8; }
.dx-act a:hover { background: rgba(251,244,232,.16); }
.dx-act a.solid:hover { background: #FFE2B4; border-color: #FFE2B4; }

.dx-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: end; }
.dx-figs figure { margin: 0; overflow: hidden; min-width: 0; }
.dx-figs figure:nth-child(1) { clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%); }
.dx-figs figure:nth-child(2) { clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); }
.dx-figs img { width: 100%; height: 168px; object-fit: cover; }
.dx-figs figure:nth-child(2) img { height: 208px; }

.dx-tape {
  position: relative; z-index: 2;
  margin-top: 26px;
  background: rgba(42,26,32,.86);
  color: rgba(251,244,232,.82);
}
.dx-tape-in {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gut);
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between;
  font-size: 11px; letter-spacing: .14em;
}
.dx-tape b { color: #FFE2B4; font-variant-numeric: tabular-nums; }

/* ---------------- 色卡式构件 ---------------- */
.dx-sec { padding: var(--sec-y) 0; }
.dx-head {
  max-width: var(--wrap); margin: 0 auto 24px; padding: 0 var(--gut);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.dx-head .l { display: flex; align-items: baseline; gap: 14px; }
.dx-head .no { font-size: 10.5px; letter-spacing: .24em; color: var(--brick); }
.dx-head h2 { font-family: var(--font-h); font-size: clamp(1.35rem, 2.3vw, 1.9rem); letter-spacing: .04em; }
.dx-head p { font-size: 12.5px; color: var(--ink-3); max-width: 40ch; }

.swatches {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sw { display: block; background: #fff; min-width: 0; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.sw:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42,26,32,.1); }
.sw-band { display: block; height: 8px; background: var(--grad); }
.sw:nth-child(3n+2) .sw-band { background: linear-gradient(90deg, var(--wine), var(--brick), var(--amber)); }
.sw:nth-child(3n) .sw-band { background: linear-gradient(90deg, var(--plum), var(--wine), var(--moss)); }
.sw-img { aspect-ratio: 4 / 2.6; overflow: hidden; }
.sw-img img { width: 100%; height: 100%; object-fit: cover; }
.sw-body { padding: 13px 15px 16px; }
.sw-body .k { font-size: 10px; letter-spacing: .2em; color: var(--brick); }
.sw-body h3 { margin-top: 5px; font-family: var(--font-h); font-size: 16.5px; letter-spacing: .04em; }
.sw-body p { margin-top: 5px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

/* ---------------- 斜切案例墙 ---------------- */
.dx-cases { background: var(--plum); padding: var(--sec-y) 0; }
.dx-cases .dx-head h2 { color: var(--paper); }
.dx-cases .dx-head .no { color: var(--amber); }
.dx-cases .dx-head p { color: rgba(246,239,227,.55); }
.cw { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cw a { position: relative; display: block; overflow: hidden; min-width: 0; }
.cw a:nth-child(1) { clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
.cw a:nth-child(2) { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); }
.cw img { width: 100%; height: 340px; object-fit: cover; transition: transform .8s; }
.cw a:hover img { transform: scale(1.04); }
.cw .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(42,26,32,.86));
  color: var(--paper);
}
.cw .cap span { font-size: 10px; letter-spacing: .18em; color: var(--amber); }
.cw .cap h3 { margin-top: 5px; font-family: var(--font-h); font-size: 18px; letter-spacing: .04em; }
.cw .cap p { margin-top: 4px; font-size: 11.5px; color: rgba(246,239,227,.62); }

/* ---------------- 色点城市表 ---------------- */
.dots {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px;
}
.dot {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
  transition: border-color .2s, background .2s;
}
.dot::before {
  content: ''; flex: none;
  width: 9px; height: 9px;
  background: var(--brick);
}
.dot:nth-child(4n+2)::before { background: var(--wine); }
.dot:nth-child(4n+3)::before { background: var(--amber); }
.dot:nth-child(4n)::before { background: var(--moss); }
.dot b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.dot i { font-style: normal; font-size: 8.5px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.dot:hover { border-color: var(--brick); }
.dot.cur { background: var(--plum); border-color: var(--plum); }
.dot.cur b { color: var(--paper); }
.dot.cur i { color: rgba(246,239,227,.6); }

/* ---------------- 渐变编号手记 ---------------- */
.gnotes { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.gnote {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 92px 18px;
  gap: 14px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.gnote:first-child { border-top: 1px solid var(--line); }
.gnote .n {
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.gnote h3 { font-family: var(--font-h); font-size: 16.5px; letter-spacing: .04em; }
.gnote time { font-size: 11px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.gnote .ar { color: var(--ink-3); text-align: right; }
.gnote:hover h3 { color: var(--brick); }

/* ---------------- 渐变页脚 ---------------- */
.dx-foot { background: var(--plum); color: rgba(246,239,227,.68); }
.dx-foot-band { height: 8px; background: var(--grad); }
.dx-foot-in {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 26px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
}
.dx-foot h3 { display: flex; align-items: center; gap: 9px; font-family: var(--font-h); font-size: 16px; letter-spacing: .12em; color: var(--paper); }
.dx-foot h3 svg { width: 22px; height: 22px; color: var(--amber); }
.dx-foot p { margin-top: 10px; font-size: 12px; line-height: 2; }
.dx-foot p b { color: rgba(246,239,227,.4); font-weight: 400; margin-right: 7px; }
.dx-foot p a { color: var(--paper); border-bottom: 1px solid rgba(246,239,227,.26); }
.dx-foot-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 11.5px; }
.dx-foot-links a:hover, .dx-foot-links button:hover { color: var(--amber); }
.dx-copy { border-top: 1px solid rgba(246,239,227,.14); padding: 11px var(--gut); text-align: center; font-size: 10.5px; letter-spacing: .06em; color: rgba(246,239,227,.4); }

.mbar4 {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  height: 56px; background: var(--plum); border-top: 3px solid transparent;
  border-image: var(--grad) 1;
}
.mbar4 > * { flex: 1 1 0; display: grid; place-content: center; gap: 1px; text-align: center; font-size: 10.5px; color: rgba(246,239,227,.72); }
.mbar4 > * + * { border-left: 1px solid rgba(246,239,227,.14); }
.mbar4 b { font-size: 11.5px; color: var(--paper); font-variant-numeric: tabular-nums; }
.mbar4 .hot { background: var(--brick); color: #fff; }
.mbar4 .hot b { color: #fff; }

/* ---------------- 内页 ---------------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: clamp(26px, 3.6vw, 44px) 0 22px; position: relative; }
.page-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.page-head h1 { letter-spacing: .03em; }
.crumb { letter-spacing: .14em; }

.pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); padding-bottom: 14px; }
.pcard-img { aspect-ratio: 4 / 2.8; }
.pcard-body { padding: 11px 14px 0; }
.pcard-idx { color: var(--brick); letter-spacing: .14em; }
.pcard-body h3 { font-size: 15.5px; margin: 4px 0; }
.pcard-body p { font-size: 11.5px; line-height: 1.6; }
.pcard-go { font-size: 10.5px; margin-top: 7px; }

.wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc-img { aspect-ratio: 16 / 10; }
.cc-meta { padding-top: 9px; }
.cc-meta h3 { font-size: 17px; }

.news-row { grid-template-columns: 80px minmax(0, 1fr) 20px; }
.news-row h3 { font-size: 16.5px; }

.contact-row { border-bottom: 1px solid var(--line); }
.map-card { background: var(--plum); }
.detail-tel { background: var(--plum); }
.spec-row { border-bottom: 1px solid var(--line); }
.adv-side h2 { letter-spacing: .04em; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  :root { --gut: 16px; --sec-y: 50px; }
  body { padding-bottom: 56px; }
  .gnav-links, .gnav-act a { display: none; }
  .gnav-burger { display: inline-flex; }
  .gnav-in { height: 54px; }

  .dx-hero { min-height: 0; padding-bottom: 24px; }
  .dx-bands i:nth-child(1) { height: 40%; }
  .dx-hero-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 26px; }
  .dx-copy { padding: 18px 18px 20px; }
  .dx-copy h1 { font-size: clamp(1.55rem, 6.6vw, 2.1rem); }
  .dx-figs img { height: 116px; }
  .dx-figs figure:nth-child(2) img { height: 140px; }
  .dx-tape-in { font-size: 10px; gap: 6px 14px; }

  .swatches { grid-template-columns: minmax(0, 1fr); }
  .cw { grid-template-columns: minmax(0, 1fr); }
  .cw img { height: 220px; }
  .cw a:nth-child(1), .cw a:nth-child(2) { clip-path: none; }
  .dots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gnote { grid-template-columns: 42px minmax(0, 1fr); }
  .gnote time, .gnote .ar { display: none; }

  .dx-foot-in { grid-template-columns: minmax(0, 1fr); }
  .mbar4 { display: flex; }

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