:root{
  --bg: #efece4;
  --paper: #f7f5ef;
  --ink: #221f1b;
  --muted: #746d63;
  --accent: #8a6f4e;
  --line: #d9d2c3;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg: #2b2621;
    --paper: #332d27;
    --ink: #ece6da;
    --muted: #a89f92;
    --accent: #d4b483;
    --line: #4a423a;
  }
}
:root[data-theme="dark"]{
  --bg: #2b2621; --paper: #332d27; --ink: #ece6da; --muted: #a89f92; --accent: #d4b483; --line: #4a423a;
}
:root[data-theme="light"]{
  --bg: #efece4; --paper: #f7f5ef; --ink: #221f1b; --muted: #746d63; --accent: #8a6f4e; --line: #d9d2c3;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a{ color: inherit; }
img{ max-width: 100%; display: block; }

.page{ max-width: 960px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 36px); }
.full{ max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---- Topbar ---- */
.topbar{
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 36px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand{
  font-family: 'Songti SC', 'STSong', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.topbar nav a{
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
}
.topbar nav a:hover{ color: var(--accent); }

/* ---- Shared background music control ---- */
.page-audio-control{
  position: fixed;
  top: 74px;
  right: clamp(16px, 3vw, 32px);
  z-index: 30;
  max-width: 190px;
}
.page-audio-toggle{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.page-audio-toggle:hover,
.page-audio-toggle:focus-visible{
  border-color: var(--accent);
  color: var(--accent);
}
.page-audio-toggle:focus-visible{ outline: 1px solid currentColor; outline-offset: 4px; }
.page-audio-bars{
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 14px;
  height: 13px;
  flex: 0 0 14px;
}
.page-audio-bars i{
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
}
.page-audio-bars i:nth-child(2){ height: 10px; }
.page-audio-bars i:nth-child(3){ height: 7px; }
.page-audio-control.is-playing .page-audio-bars i{
  animation: pageAudioPulse 1s ease-in-out infinite alternate;
}
.page-audio-control.is-playing .page-audio-bars i:nth-child(2){ animation-delay: -.35s; }
.page-audio-control.is-playing .page-audio-bars i:nth-child(3){ animation-delay: -.65s; }
.page-audio-copy{ display: block; min-width: 0; line-height: 1.15; }
.page-audio-state{
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.page-audio-track{
  display: block;
  max-width: 142px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-audio-media{ display: none; }
@keyframes pageAudioPulse{
  from{ transform: scaleY(.55); opacity: .58; }
  to{ transform: scaleY(1.08); opacity: 1; }
}
@media (max-width: 640px){
  .page-audio-control{ top: 70px; right: 14px; max-width: 170px; }
  .page-audio-toggle{ padding: 7px 9px; }
  .page-audio-track{ max-width: 122px; }
}

/* ---- Hero (homepage) ---- */
.hero{
  padding: clamp(56px, 12vw, 108px) 0 clamp(40px, 8vw, 64px);
  text-align: center;
}
.hero h1{
  font-family: 'Songti SC', 'STSong', serif;
  font-weight: 700;
  font-size: clamp(40px, 9vw, 60px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.hero .en{
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero .slogan{
  font-family: 'Songti SC', 'STSong', serif;
  font-size: clamp(16px, 3vw, 19px);
  color: var(--accent);
  margin: 0 0 28px;
}
.hero .intro{
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto;
}

/* ---- Category nav ---- */
.cat-section{ padding: clamp(28px, 6vw, 48px) 0; }
.cat-label{
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.cat-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cat-card{
  background: var(--paper); padding: 28px 20px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; transition: background .15s ease;
}
.cat-card:hover{ background: var(--bg); }
.cat-card .name{ font-family: 'Songti SC','STSong',serif; font-size: 19px; }
.cat-card .count{ font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.cat-card.disabled{ opacity: 0.45; pointer-events: none; }
.secondary-link{
  display: inline-block; margin-top: 18px; font-size: 13px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.secondary-link:hover{ color: var(--accent); border-color: var(--accent); }

/* ---- Project card grid (category listing) ---- */
.project-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.project-card{ text-decoration: none; color: var(--ink); }
.project-card .cover{ aspect-ratio: 4/3; overflow: hidden; background: var(--paper); }
.project-card .cover img{ width: 100%; height: 100%; object-fit: cover; }
.project-card .title{ font-family: 'Songti SC','STSong',serif; font-size: 18px; margin-top: 12px; }
.project-card .meta{ font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.03em; }
.project-card .summary{ margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.project-card .facts{ display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-card .facts b{ color: var(--ink); font-weight: 500; margin-right: 4px; }

/* ---- Detail page hero ---- */
.detail-hero{ padding: clamp(40px, 8vw, 72px) 0 clamp(28px, 5vw, 40px); }
.detail-hero .eyebrow{
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.detail-hero h1{
  font-family: 'Songti SC','STSong',serif; font-weight: 700;
  font-size: clamp(32px, 7vw, 48px); margin: 0 0 6px; letter-spacing: -0.01em;
}
.detail-hero .en{ font-size: 13px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 18px; }
.meta-row{
  display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 16px;
}
.meta-row span b{ color: var(--ink); font-weight: 500; }

/* ---- Section headers ---- */
.section{ padding: clamp(36px, 7vw, 56px) 0; border-top: 1px solid var(--line); }
.section-head{ margin-bottom: clamp(20px, 4vw, 32px); }
.section-head .num{ font-family: 'Songti SC','STSong',serif; color: var(--accent); font-size: 13px; margin-right: 8px; }
.section-head h2{ font-family: 'Songti SC','STSong',serif; font-size: clamp(22px, 4vw, 28px); display: inline; }
.section-sub{ font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---- Room info list ---- */
.room-list{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px;
}
.room-list .item{ background: var(--paper); padding: 16px 18px; }
.room-list .item .n{ font-family: 'Songti SC','STSong',serif; font-size: 22px; color: var(--accent); }
.room-list .item .t{ font-size: 13px; color: var(--muted); margin-top: 2px; }
.room-list .item.total{ background: var(--bg); }
.room-list .item.total .n{ color: var(--ink); }

/* ---- Gallery ---- */
.gallery-group{ margin-bottom: clamp(28px, 5vw, 40px); }
.gallery-group h3{
  font-family: 'Songti SC','STSong',serif; font-size: 16px; font-weight: 400;
  color: var(--ink); margin: 0 0 14px; padding-left: 2px; border-left: 2px solid var(--accent); padding-left: 10px;
}
.gallery{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px;
}
.gallery img, .gallery video{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery .wide{ grid-column: 1 / -1; aspect-ratio: 16/9; }
.gallery .wide img, .gallery .wide video{ aspect-ratio: 16/9; }

/* 手机竖拍实景图专用:小图走竖版比例 */
/* 竖图按图片实际方向单独标记 class="v",不按整组图片统一强制横/竖 */
.gallery img.v, .gallery video.v{ aspect-ratio: 3/4; }
.gallery .wide.v{ aspect-ratio: 3/4; }
.gallery .wide.v img, .gallery .wide.v video{ aspect-ratio: 3/4; }

/* 竖图首图:比下方小图大一些,右侧留白配文字描述 */
.gallery-feature{
  display: flex; gap: clamp(16px, 3vw, 32px); align-items: flex-start;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.gallery-feature .feature-img{
  width: 42%; max-width: 360px; flex-shrink: 0;
  aspect-ratio: 3/4; object-fit: cover;
}
.gallery-feature .feature-text{
  flex: 1; color: var(--muted); font-size: 14px; line-height: 1.9;
}
.section-intro{
  font-size: 14px; color: var(--muted); line-height: 1.9;
  max-width: 42em; margin: 0 0 clamp(20px, 4vw, 32px);
}
@media (max-width: 640px){
  .gallery-feature{ flex-direction: column; align-items: stretch; }
  .gallery-feature .feature-img{ width: 100%; max-width: none; }
}

/* ---- Floor plan ---- */
.plan-img{ border: 1px solid var(--line); background: var(--paper); }
.plan-img-sm{ max-width: 480px; margin: 0 auto; }
.plan-note{ font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* 平面图左右分栏:图缩小放左边,房型信息放右边 */
.plan-layout{
  display: flex; gap: clamp(20px, 4vw, 40px); align-items: flex-start;
}
.plan-layout .plan-img{ width: 55%; max-width: 460px; flex-shrink: 0; }
.plan-info{ flex: 1; font-size: 13px; color: var(--muted); line-height: 1.9; }
.plan-info .plan-lead{ font-size: 14px; color: var(--ink); margin: 0 0 16px; }
.plan-info .plan-lead b{ font-weight: 500; }
.plan-group{ margin-bottom: 18px; }
.plan-group-label{ font-size: 12px; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 6px; }
.plan-row{ display: flex; justify-content: space-between; max-width: 220px; padding: 3px 0; }
.plan-row b{ color: var(--ink); font-weight: 500; }
.plan-zone{ font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 10px; }
.plan-zone:last-child{ margin-bottom: 0; }
.plan-zone b{ color: var(--ink); font-weight: 500; }
.plan-tone{ font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 16px; font-style: italic; }
@media (max-width: 680px){
  .plan-layout{ flex-direction: column; }
  .plan-layout .plan-img{ width: 100%; max-width: none; }
}

/* ---- Cyber case study: editorial project layout ---- */
.cyber-case, .case-study{ --case-dark: #201a1d; --case-soft: #e6dfd4; --case-line: #d4cbc0; }
.case-study--green{ --case-dark: #1d2723; --accent: #6f846f; }
.case-study--warm{ --case-dark: #2d241f; --accent: #a7795b; }
.case-study--restaurant{ --case-dark: #20231d; --accent: #7e8e6f; }
.cyber-case main, .case-study main{ overflow: hidden; }
.case-study .topbar{ position: relative; z-index: 2; background: var(--bg); }
.cyber-case .topbar{ position: relative; z-index: 2; background: var(--bg); }
.case-page{ max-width: 1180px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 48px); }

.case-hero{
  position: relative; height: min(78vh, 820px); min-height: 560px; overflow: hidden; background: var(--case-dark); color: #f7f2e9;
}
.case-hero > img{ width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-hero-shade{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,14,18,.74) 0%, rgba(20,14,18,.12) 63%, rgba(20,14,18,.28) 100%), linear-gradient(0deg, rgba(20,14,18,.72) 0%, transparent 40%);
}
.case-hero-content{ position: absolute; left: clamp(24px, 7vw, 96px); bottom: clamp(72px, 11vw, 126px); }
.case-hero-kicker{ font: 10px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .2em; opacity: .74; margin-bottom: 18px; }
.case-hero h1{ margin: 0; font-family: 'Songti SC','STSong',serif; font-size: clamp(48px, 9vw, 112px); line-height: .98; letter-spacing: -.04em; font-weight: 600; }
.case-hero h1 span{ display: block; margin-left: .78em; }
.case-hero-en{ margin-top: 20px; font: 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .18em; opacity: .78; }
.case-hero-foot{ position: absolute; left: clamp(24px, 7vw, 96px); right: clamp(24px, 7vw, 96px); bottom: 25px; display: flex; justify-content: space-between; border-top: 1px solid rgba(247,242,233,.4); padding-top: 12px; color: rgba(247,242,233,.82); font-size: 11px; letter-spacing: .08em; }

.case-intro{ display: grid; grid-template-columns: 1fr minmax(320px, 1.5fr) minmax(180px, .85fr); gap: clamp(28px, 6vw, 76px); padding: clamp(72px, 10vw, 132px) 0 clamp(54px, 8vw, 96px); border-bottom: 1px solid var(--case-line); }
.case-intro-label{ font-size: 11px; line-height: 1.5; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.case-intro-label span{ display: block; margin-top: 8px; font: 10px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .15em; color: var(--muted); }
.case-intro-lead{ font-family: 'Songti SC','STSong',serif; font-size: clamp(24px, 3.3vw, 40px); line-height: 1.42; letter-spacing: -.02em; }
.case-intro-lead em{ color: var(--accent); font-style: normal; }
.case-intro-side{ align-self: end; color: var(--muted); font-size: 13px; line-height: 1.9; }
.case-intro-side p{ margin: 0 0 20px; }
.case-facts{ border-top: 1px solid var(--case-line); }
.case-facts div{ display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--case-line); }
.case-facts span{ color: var(--muted); }
.case-facts b{ color: var(--ink); font-weight: 500; text-align: right; }

.case-index{ display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--case-line); }
.case-index a{ display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-decoration: none; letter-spacing: .05em; transition: color .2s ease; }
.case-index a:hover{ color: var(--accent); }
.case-index span{ color: var(--accent); font: 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .1em; }

.case-section{ padding: clamp(72px, 10vw, 132px) 0; border-bottom: 1px solid var(--case-line); }
.case-section-head{ display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; margin-bottom: clamp(34px, 5vw, 62px); }
.case-section-number{ color: var(--accent); font: 12px/1 Arial, Helvetica, sans-serif; letter-spacing: .12em; padding-top: 7px; }
.case-section-kicker{ color: var(--muted); font: 10px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .18em; margin-bottom: 11px; }
.case-section h2{ margin: 0; font-family: 'Songti SC','STSong',serif; font-size: clamp(30px, 4.2vw, 48px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.case-section-head p{ margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.case-plan-layout{ display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(220px, .72fr); gap: clamp(28px, 6vw, 78px); align-items: center; }
.case-plan-figure{ margin: 0; }
.case-plan-figure img{ width: 100%; border: 1px solid var(--case-line); background: var(--paper); }
.case-plan-figure figcaption{ margin-top: 12px; display: flex; justify-content: space-between; color: var(--muted); font: 10px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.case-plan-aside{ color: var(--muted); font-size: 13px; line-height: 1.9; }
.case-aside-mark{ color: var(--ink); font-family: 'Songti SC','STSong',serif; font-size: clamp(44px, 6vw, 70px); line-height: 1; margin-bottom: 20px; letter-spacing: -.06em; }
.case-aside-mark span{ font-size: .42em; letter-spacing: 0; margin-left: 4px; }
.case-plan-aside p{ margin: 0 0 28px; }
.case-plan-aside dl{ margin: 0; border-top: 1px solid var(--case-line); }
.case-plan-aside dl div{ display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--case-line); }
.case-plan-aside dt{ color: var(--accent); font: 10px/1.4 Arial, Helvetica, sans-serif; letter-spacing: .08em; }
.case-plan-aside dd{ margin: 0; color: var(--ink); }

.case-room-group{ margin-bottom: clamp(76px, 11vw, 142px); }
.case-room-group--last{ margin-bottom: 0; }
.case-room-title{ display: grid; grid-template-columns: 48px auto 1fr; gap: 14px; align-items: baseline; margin-bottom: 22px; }
.case-room-title > span{ color: var(--accent); font: 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .1em; }
.case-room-title h3{ margin: 0; font-family: 'Songti SC','STSong',serif; font-size: 25px; font-weight: 500; }
.case-room-title p{ margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.case-gallery{ display: grid; gap: 12px; }
.case-gallery figure{ position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--paper); }
.case-gallery figure img, .case-gallery figure video{ width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; transition: transform .45s ease; }
.case-gallery figure.case-image-portrait img{ aspect-ratio: 3 / 4; }
.case-gallery figure:hover img{ transform: scale(1.025); }
.case-gallery figcaption{ display: flex; justify-content: space-between; gap: 12px; padding: 9px 1px 0; color: var(--muted); font: 10px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.case-gallery figcaption em{ color: var(--accent); font-style: normal; }
.case-gallery--five{ grid-template-columns: repeat(12, minmax(0, 1fr)); }
.case-gallery--five .case-image-feature{ grid-column: span 8; grid-row: span 2; }
.case-gallery--five .case-image-feature img{ aspect-ratio: 16 / 9; }
.case-gallery--five > figure:not(.case-image-feature){ grid-column: span 4; }
.case-gallery--cafe{ grid-template-columns: repeat(12, minmax(0, 1fr)); }
.case-gallery--cafe .case-image-feature{ grid-column: span 7; grid-row: span 2; }
.case-gallery--cafe .case-image-feature img{ aspect-ratio: 16 / 9; }
.case-gallery--cafe > figure:not(.case-image-feature){ grid-column: span 5; }
.case-gallery--two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-gallery--two .case-image-wide{ grid-column: 1 / -1; }
.case-gallery--two figure img{ aspect-ratio: 16 / 10; }

.case-built-band{ background: var(--case-dark); color: #f7f2e9; }
.case-built-band .case-page{ padding-top: clamp(72px, 10vw, 132px); padding-bottom: clamp(76px, 11vw, 150px); }
.case-built-band .case-section{ border-bottom: 0; padding: 0; }
.case-built-band .case-section-head{ margin-bottom: clamp(42px, 6vw, 70px); }
.case-built-band .case-section-kicker, .case-built-band .case-section-head p{ color: rgba(247,242,233,.56); }
.case-built-band .case-section-number{ color: #d8aa83; }
.case-built-grid{ display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); gap: clamp(32px, 7vw, 100px); }
.case-built-copy{ position: sticky; top: 34px; align-self: start; }
.case-built-statement{ font-family: 'Songti SC','STSong',serif; font-size: clamp(22px, 3vw, 32px); line-height: 1.45; letter-spacing: -.03em; }
.case-built-copy p{ margin: 24px 0 0; color: rgba(247,242,233,.62); font-size: 13px; line-height: 1.9; }
.case-built-images{ min-width: 0; }
.case-built-group{ margin-bottom: clamp(64px, 8vw, 110px); }
.case-built-group--last{ margin-bottom: 0; }
.case-built-group h3{ display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: 'Songti SC','STSong',serif; font-size: 21px; font-weight: 400; }
.case-built-group h3::before{ content: ''; display: block; width: 20px; height: 1px; background: #d8aa83; }
.case-built-band .case-gallery{ gap: 10px; }
.case-built-band .case-gallery figure{ background: #2b2225; }
.case-built-band .case-gallery figure img{ aspect-ratio: 3 / 4; }
.case-built-band .case-gallery figcaption{ color: rgba(247,242,233,.58); }
.case-built-band .case-gallery figcaption em{ color: #d8aa83; }
.case-built-band .case-gallery figure video{ aspect-ratio: 16 / 9; }
.case-built-band .case-gallery--landscape figure img{ aspect-ratio: 4 / 3; }
.case-gallery--four{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-gallery--four .case-image-wide{ grid-column: span 2; }
.case-gallery--landscape figure img{ aspect-ratio: 4 / 3; }
.case-gallery--eight .case-image-wide{ grid-column: span 2; }
.case-gallery--eight .case-image-wide img{ aspect-ratio: 1.5 / 1; }
.case-gallery--three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-gallery--room-compact{ max-width: 660px; }
.case-gallery--room-compact figure img{ aspect-ratio: 3 / 4; }

.case-details{ border-bottom: 0; }
.case-detail-layout{ display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 2fr); gap: clamp(32px, 7vw, 100px); align-items: start; }
.case-detail-copy{ color: var(--muted); font-size: 13px; line-height: 1.9; }
.case-detail-copy p{ margin: 20px 0 0; max-width: 18em; }
.case-detail-copy p + p{ margin-top: 18px; }
.case-detail-line{ width: 36px; height: 1px; background: var(--accent); }
.case-details .case-gallery figure img{ aspect-ratio: 3 / 4; }

@media (max-width: 760px){
  .case-intro{ grid-template-columns: 1fr; gap: 24px; }
  .case-intro-label{ display: flex; gap: 12px; align-items: baseline; }
  .case-intro-label span{ display: inline; margin-top: 0; }
  .case-intro-side{ max-width: 34em; }
  .case-index{ overflow-x: auto; justify-content: flex-start; padding-bottom: 16px; }
  .case-index a{ flex: 0 0 auto; }
  .case-plan-layout, .case-detail-layout{ grid-template-columns: 1fr; }
  .case-plan-aside{ max-width: 34em; }
  .case-room-title{ grid-template-columns: 36px auto; gap: 10px; }
  .case-room-title p{ grid-column: 2; text-align: left; }
  .case-built-grid{ grid-template-columns: 1fr; gap: 46px; }
  .case-built-copy{ position: static; max-width: 34em; }
}
@media (max-width: 560px){
  .case-hero{ min-height: 520px; height: 70vh; }
  .case-hero > img{ object-position: 58% center; }
  .case-hero h1{ font-size: clamp(48px, 17vw, 78px); }
  .case-hero-foot{ font-size: 10px; }
  .case-section-head{ grid-template-columns: 42px 1fr; gap: 10px; }
  .case-gallery--five, .case-gallery--cafe{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery--five .case-image-feature, .case-gallery--cafe .case-image-feature{ grid-column: 1 / -1; grid-row: auto; }
  .case-gallery--five > figure:not(.case-image-feature), .case-gallery--cafe > figure:not(.case-image-feature){ grid-column: auto; }
  .case-gallery--five .case-image-feature img, .case-gallery--cafe .case-image-feature img{ aspect-ratio: 4 / 3; }
  .case-gallery--four{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery--four .case-image-wide{ grid-column: 1 / -1; }
  .case-gallery--eight .case-image-wide{ grid-column: 1 / -1; }
  .case-gallery--three{ grid-template-columns: 1fr; }
  .case-gallery--three figure img{ aspect-ratio: 4 / 3; }
  .case-gallery--room-compact{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
  .case-gallery--room-compact figure img{ aspect-ratio: 3 / 4; }
  .case-gallery--two{ grid-template-columns: 1fr; }
}

/* ---- Poem block (vertical text transition) ---- */
.poem-block{
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 6vw, 56px);
  justify-content: center;
  padding: 8px 0 clamp(24px, 5vw, 40px);
}
.poem-col{
  font-family: 'Songti SC', 'STSong', serif;
  font-weight: 300;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.9;
  writing-mode: vertical-rl;
  color: var(--ink);
  letter-spacing: 0.08em;
  height: fit-content;
  white-space: nowrap;
}
.poem-col.accent{ color: var(--accent); }
.poem-link{
  display: flex; gap: clamp(28px, 6vw, 56px); align-items: flex-start;
  text-decoration: none; transition: opacity .15s ease;
}
.poem-link:hover{ opacity: 0.7; }

.breath-line{
  text-align: center;
  font-family: 'Songti SC', 'STSong', serif;
  font-size: clamp(17px, 3vw, 21px);
  color: var(--ink);
  max-width: 26em;
  margin: 0 auto clamp(32px, 6vw, 56px);
  line-height: 1.8;
}

/* ---- Textured band (subtle grain over existing color, no new hue) ---- */
.textured{ position: relative; }
.textured::before{
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (prefers-color-scheme: dark){
  .textured::before{ opacity: 0.12; mix-blend-mode: overlay; }
}
:root[data-theme="dark"] .textured::before{ opacity: 0.12; mix-blend-mode: overlay; }
:root[data-theme="light"] .textured::before{ opacity: 0.05; mix-blend-mode: multiply; }
.textured > *{ position: relative; z-index: 1; }

/* ---- Video band (homepage) ---- */
.video-band{
  position: relative; width: 100%; height: min(80vh, 640px);
  overflow: hidden; background: #000;
}
.video-band video{
  width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92;
}
.video-band .caption{
  position: absolute; left: clamp(20px, 5vw, 48px); bottom: clamp(20px, 5vw, 40px);
  color: #f2ede1; text-decoration: none;
}
.video-band .caption .eyebrow{
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-bottom: 6px;
}
.video-band .caption .name{
  font-family: 'Songti SC','STSong',serif; font-size: clamp(22px, 4vw, 32px);
}

/* ---- Feature band (homepage category rows) ---- */
.feature-band{
  display: grid; grid-template-columns: 1fr 1fr; min-height: 460px;
  border-top: 1px solid var(--line);
}
.feature-band.reverse{ direction: rtl; }
.feature-band.reverse > *{ direction: ltr; }
.feature-band .fb-img{ overflow: hidden; background: var(--paper); }
.feature-band .fb-img img{ width: 100%; height: 100%; object-fit: cover; }
.feature-band .fb-text{
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(28px, 5vw, 64px);
}
.feature-band .fb-eyebrow{ font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.feature-band .fb-name{ font-family: 'Songti SC','STSong',serif; font-size: clamp(26px, 4vw, 36px); }
.feature-band .fb-desc{ font-size: 14px; color: var(--muted); max-width: 30em; }
.feature-band .fb-meta{ font-size: 14px; color: var(--muted); letter-spacing: 0.03em; }
.feature-band .fb-link{
  font-size: 13px; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; width: fit-content;
}
.feature-band .fb-link:hover{ color: var(--accent); border-color: var(--accent); }
.feature-band.placeholder .fb-img{
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; letter-spacing: 0.1em;
}
.feature-band.placeholder .fb-name{ color: var(--muted); }

@media (max-width: 760px){
  .feature-band{ grid-template-columns: 1fr; min-height: auto; }
  .feature-band .fb-img{ aspect-ratio: 4/3; }
  .feature-band.reverse{ direction: ltr; }
  .feature-band.reverse .fb-img{ order: -1; }
}

/* ---- Showcase grid (homepage, "热销推荐"-style) ---- */
.showcase{ padding: clamp(36px, 7vw, 56px) 0; border-top: 1px solid var(--line); }
.showcase-head{
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: clamp(20px, 4vw, 32px);
}
.showcase-head h2{ font-family: 'Songti SC','STSong',serif; font-size: clamp(20px, 4vw, 26px); }
.showcase-head a{
  font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.03em;
}
.showcase-head a:hover{ color: var(--accent); }

/* ---- More-links (compact category jump list) ---- */
.more-links{ padding: clamp(24px, 5vw, 40px) 0; border-top: 1px solid var(--line); }
.more-link{
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.more-link:last-child{ border-bottom: none; }
.more-link img{ width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.more-link span{ font-size: 14px; letter-spacing: 0.02em; }
.more-link:hover span{ color: var(--accent); }

/* ---- Big CTA band:四宫格案例入口 + 探索更多链接 ---- */
/* 深棕渐变至暖白,只取色调不取实景图 */
.cta-photo{
  position: relative; width: 100%;
  padding: clamp(32px, 6vw, 56px) 0;
  background: linear-gradient(180deg, #2a2320 0%, #6b5d47 55%, #e8dfc8 100%);
}
.cta-photo .cta-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.5vw, 20px);
  max-width: 960px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 36px);
}
.cta-photo .cta-grid a{ display: block; aspect-ratio: 1/1; overflow: hidden; border: 1px solid rgba(255,255,255,0.35); }
.cta-photo .cta-grid img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-photo .overlay{
  max-width: 960px; margin: clamp(20px, 4vw, 32px) auto 0;
  padding: 0 clamp(20px, 5vw, 36px);
  color: #2a2320;
}
.cta-photo .overlay a{
  font-size: 13px; letter-spacing: 0.04em; color: #2a2320;
  text-decoration: underline; text-underline-offset: 4px;
}
.cta-photo .overlay a:hover{ color: var(--accent); }

/* ---- Footer contact ---- */
.footer-contact{
  padding: clamp(32px, 6vw, 48px) clamp(20px,5vw,36px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
}
.footer-contact .col-label{
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.footer-contact .col-item{ font-size: 14px; color: var(--ink); }
.footer-contact .qr-placeholder{
  width: 96px; height: 96px; border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5;
}
.footer-contact .qr-code{
  width: 96px; height: 96px; border: 1px solid var(--line); object-fit: cover;
}

/* ---- Footer nav ---- */
.detail-footer{
  padding: clamp(32px, 6vw, 48px) 0 clamp(48px, 8vw, 72px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.detail-footer a{
  font-size: 13px; letter-spacing: 0.06em; text-decoration: none; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
}
.detail-footer a:hover{ color: var(--accent); border-color: var(--accent); }

footer.site-footer{
  padding: 24px clamp(20px,5vw,36px); text-align: center; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---- Before / after comparison slider ---- */
.case-compare-block{
  margin-top: clamp(74px, 10vw, 128px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--case-line);
}
.case-compare-intro{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.case-compare-kicker{
  margin-bottom: 10px;
  color: var(--accent);
  font: 10px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
}
.case-compare-intro h3{
  margin: 0;
  font-family: 'Songti SC','STSong',serif;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.case-compare-intro p{
  max-width: 28em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}
.case-compare{
  --compare-position: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.case-compare > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.case-compare-top{
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}
.case-compare-label{
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(32,26,29,.68);
  color: #f7f2e9;
  font: 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
}
.case-compare-label--left{ left: 16px; }
.case-compare-label--right{ right: 16px; }
.case-compare-divider{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  z-index: 2;
  width: 1px;
  background: rgba(247,242,233,.95);
  box-shadow: 0 0 0 1px rgba(32,26,29,.16);
  pointer-events: none;
}
.case-compare-handle{
  position: absolute;
  top: 50%;
  left: var(--compare-position);
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(247,242,233,.9);
  border-radius: 50%;
  background: var(--accent);
  color: #f7f2e9;
  font: 19px/1 Arial, Helvetica, sans-serif;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  box-shadow: 0 8px 22px rgba(25,18,18,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-compare.is-dragging .case-compare-handle,
.case-compare-handle:focus-visible{
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(25,18,18,.3);
  outline: none;
}
.case-compare:focus-visible{ outline: 1px solid var(--accent); outline-offset: 6px; }
.case-compare-caption{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  color: var(--muted);
  font: 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-compare-caption span:last-child{ color: var(--accent); }

@media (max-width: 560px){
  .case-compare-intro{ display: block; }
  .case-compare-intro p{ margin-top: 14px; text-align: left; }
  .case-compare{ aspect-ratio: 4 / 3; }
  .case-compare-label{ top: 10px; padding: 7px 8px; font-size: 9px; }
  .case-compare-label--left{ left: 10px; }
  .case-compare-label--right{ right: 10px; }
  .case-compare-handle{ width: 40px; height: 40px; font-size: 17px; }
}

/* ---- Motion layer: slow editorial reveals for the case-study template ---- */
html.has-motion .case-hero > img{
  transform: scale(1.035);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
}
html.has-motion .case-hero.is-loaded > img{ transform: scale(1); }
html.has-motion .case-hero-content > *,
html.has-motion .case-hero-foot{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1);
}
html.has-motion .case-hero.is-loaded .case-hero-content > *,
html.has-motion .case-hero.is-loaded .case-hero-foot{ opacity: 1; transform: none; }
html.has-motion .case-hero.is-loaded .case-hero-kicker{ transition-delay: .08s; }
html.has-motion .case-hero.is-loaded h1{ transition-delay: .16s; }
html.has-motion .case-hero.is-loaded .case-hero-en{ transition-delay: .24s; }
html.has-motion .case-hero.is-loaded .case-hero-foot{ transition-delay: .34s; }

html.has-motion [data-reveal]{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.has-motion [data-reveal].is-visible{ opacity: 1; transform: none; }
html.has-motion [data-reveal="mask"]{
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: opacity .35s ease, clip-path .9s cubic-bezier(.2,.7,.2,1);
}
html.has-motion [data-reveal="mask"].is-visible{ clip-path: inset(0 0 0 0); }

.case-index a{
  position: relative;
  padding-bottom: 5px;
}
.case-index a::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.case-index a.is-active::after{ transform: scaleX(1); }

/* ---- Motion layer: homepage brand entrance and section reveals ---- */
html.has-home-motion .home-mark-row > span{
  opacity: 0;
  transform: translateY(110%);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
html.has-home-motion .home-mark.is-ready .home-mark-row:nth-child(1) > span{ opacity: 1; transform: none; transition-delay: .08s; }
html.has-home-motion .home-mark.is-ready .home-mark-row:nth-child(2) > span{ opacity: 1; transform: none; transition-delay: .18s; }
html.has-home-motion .home-mark.is-ready .home-mark-row:nth-child(3) > span{ opacity: 1; transform: none; transition-delay: .28s; }
html.has-home-motion .home-tagline > *{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
html.has-home-motion .home-tagline.is-ready > *{ opacity: 1; transform: none; }
html.has-home-motion .home-tagline.is-ready > *:nth-child(2){ transition-delay: .1s; }
html.has-home-motion .home-reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .78s cubic-bezier(.2,.7,.2,1), transform .78s cubic-bezier(.2,.7,.2,1);
}
html.has-home-motion .home-reveal.is-visible{ opacity: 1; transform: none; }
html.has-home-motion .home-reveal.video-band{ transform: scale(.985); }
html.has-home-motion .home-reveal.video-band.is-visible{ transform: scale(1); }

@media (prefers-reduced-motion: reduce){
  html.has-motion .case-hero > img,
  html.has-motion .case-hero-content > *,
  html.has-motion .case-hero-foot,
  html.has-motion [data-reveal],
  html.has-home-motion .home-mark-row > span,
  html.has-home-motion .home-tagline > *,
  html.has-home-motion .home-reveal{
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

/* ---- Page transition loader ---- */
html.page-loading body > *:not(.page-loader){ opacity: 0; visibility: hidden; }
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}
.page-loader.is-done{ opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader-inner{ width: min(320px, 100%); }
.page-loader-brand{
  margin-bottom: 26px;
  font-family: 'Songti SC','STSong',serif;
  font-size: 24px;
  letter-spacing: .16em;
  text-align: center;
}
.page-loader-track{ height: 1px; background: var(--line); overflow: hidden; }
.page-loader-progress{ display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .28s ease; }
.page-loader-meta{ display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.page-loader-percent{ color: var(--ink); }
html.page-ready body > *:not(.page-loader){ opacity: 1; visibility: visible; transition: opacity .45s ease; }

@media (prefers-reduced-motion: reduce){
  .page-loader, .page-loader-progress, html.page-ready body > *:not(.page-loader){ transition: none; }
}
