/* 产品详情 */
.detail-head h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.detail-head .lead {
  max-width: 760px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* gallery-layout — 主图置顶，缩略图 + 参数条横排 */
.gallery-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 46%;
  overflow: hidden;
  background: #e8e4dc;
  border-radius: 6px;
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 7px 14px;
  background: rgba(18, 22, 20, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  border-radius: 2px;
}

.gallery-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.gallery-foot:has(.thumbs):not(:has(.spec-grid)),
.gallery-foot:has(.spec-grid):not(:has(.thumbs)) {
  grid-template-columns: minmax(0, 1fr);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
  min-height: 92px;
  align-self: stretch;
}

.thumbs button {
  position: relative;
  border: 2px solid transparent;
  padding: 0;
  background: #e8e4dc;
  cursor: pointer;
  height: 100%;
  min-height: 92px;
  overflow: hidden;
  border-radius: 4px;
}

.thumbs button.is-on {
  border-color: #236e39;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spec-grid {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  align-self: stretch;
  background: #f5efe6;
  border-radius: 10px;
  padding: 12px 14px 10px;
  min-height: 92px;
  box-sizing: border-box;
}

.spec-card {
  position: relative;
  background: transparent;
  padding: 0 10px;
  min-height: 0;
  text-align: center;
}

.spec-card + .spec-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(112, 102, 90, 0.14);
}

.spec-card .label {
  font-size: 11px;
  font-weight: 400;
  color: #70665a;
  margin-bottom: 5px;
  line-height: 1.3;
}

.spec-card b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 4px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.spec-card span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #9a9288;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* eco-banner — 圆角横幅 + 左下文案 */
.eco-banner {
  background: var(--cream);
  padding: 4px 0 40px;
  color: #fff;
}

.eco-banner-inner {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1f18;
}

.eco-banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.eco-banner .mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(12, 20, 16, 0.78) 0%,
    rgba(12, 20, 16, 0.35) 42%,
    rgba(12, 20, 16, 0.08) 100%
  );
  pointer-events: none;
}

.eco-banner .copy {
  position: absolute;
  left: 40px;
  right: auto;
  bottom: 36px;
  z-index: 1;
  max-width: 560px;
  text-align: left;
}

.eco-banner .en {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a8d4b0;
  margin-bottom: 12px;
}

.eco-banner h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #fff;
}

/* 产品概述 — 白卡片 + 双栏正文 */
.inner-section.product-overview {
  background: var(--cream);
  padding: 0 0 56px;
}

.overview-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(36, 32, 26, 0.05);
  padding: 36px 44px 44px;
}

.product-overview .overview-head {
  padding-bottom: 22px;
  margin-bottom: 0;
  border-bottom: 1px solid #e8e2d8;
}

.product-overview .sec-kicker {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #2f6b3a;
  letter-spacing: 0.04em;
}

.product-overview .sec-kicker::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

.product-overview .overview-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.42;
  color: #121212;
  margin: 0;
  letter-spacing: 0.03em;
  max-width: 920px;
}

.product-overview .overview-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 52px;
  align-items: start;
  padding-top: 28px;
}

.product-overview .overview-col p {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  line-height: 1.85;
  margin: 0;
  text-align: left;
}

/* 旧版 content 富文本回退 */
.overview.overview--legacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 52px;
  align-items: start;
  padding-top: 28px;
}

.overview.overview--legacy > h3 {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.42;
  color: #121212;
  margin: 0;
  letter-spacing: 0.03em;
}

.overview.overview--legacy h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.42;
  color: #121212;
  margin: 0 0 16px;
}

.overview.overview--legacy p {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
  margin: 0;
  text-align: left;
}

/* 落地案例 / 户型探索 — 区块标题 */
.product-cases-section,
.product-more-section {
  background: #fff;
  padding-top: 48px;
  padding-bottom: 56px;
}

.product-more-section {
  padding-top: 8px;
}

.product-sec-head {
  align-items: flex-start;
  margin-bottom: 32px;
}

.product-sec-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #121212;
  margin: 0;
  letter-spacing: 0.02em;
  max-width: 720px;
}

.product-sec-slash {
  margin: 0 12px;
  font-weight: 400;
  color: #c4bdb2;
  font-family: var(--sans, "Noto Sans SC", sans-serif);
}

.product-sec-sub {
  font-weight: 600;
}

.product-sec-link {
  color: #2d5a3f;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding-top: 8px;
}

.product-sec-link:hover {
  color: var(--green);
}

.product-sec-link--muted {
  color: #666;
  font-weight: 400;
}

.product-sec-link--muted:hover {
  color: #333;
}

.related-grid,
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 落地案例卡片 */
.rel-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: #f8f6f2;
}

.rel-card .thumb {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.rel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rel-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
  background: #f8f6f2;
}

.rel-card .rel-place {
  margin: 0 0 8px;
  font-size: 13px;
  color: #8c867a;
  line-height: 1.4;
}

.rel-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
}

.rel-card .rel-summary {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.65;
}

.rel-card .rel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 2px;
  font-size: 13px;
  color: #5c5c5c;
}

.rel-card .rel-meta span {
  flex: 1;
  min-width: 0;
}

.rel-card .rel-meta a {
  flex-shrink: 0;
  color: #2d5a3f;
  font-weight: 500;
  text-decoration: none;
}

.rel-card .rel-meta a:hover {
  color: var(--green);
}

/* 户型探索 / 更多产品卡片 */
.more-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f6f2;
}

.more-card .thumb {
  height: 168px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}

.more-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background: #f8f6f2;
  border-radius: 0 0 10px 10px;
}

.more-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
}

.more-card .more-summary {
  margin: 0;
  flex: 1;
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.75;
}

.more-card .more-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: #8a8580;
}

.more-card .more-meta a {
  flex-shrink: 0;
  color: #8a8580;
  text-decoration: none;
}

.more-card .more-meta a:hover {
  color: #2d5a3f;
}

/* 底部宽幅 CTA（与关于页山野栖居横幅一致） */
.product-wide-shot {
  min-height: 220px;
}

.product-wide-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(16, 24, 20, 0.32);
  pointer-events: none;
}

.product-wide-shot .dream-bg {
  filter: brightness(0.78);
  object-position: center center;
}

.product-wide-shot .dream-inner {
  z-index: 2;
  min-height: 220px;
  padding: 52px 0;
  align-items: center;
}

.product-wide-shot .dream-copy h2 {
  margin: 0;
  max-width: none;
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.product-wide-shot .dream-subtitle {
  margin: 16px 0 0;
  max-width: 580px;
  font-size: 14px;
  line-height: 1.85;
  color: #8fd0a0;
  font-weight: 400;
}

.product-wide-shot .dream-cta-group {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 8px;
}

.product-wide-shot .dream-phone-btn,
.product-wide-shot .dream-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.product-wide-shot .dream-phone-btn {
  gap: 10px;
  background: #fff;
  color: #1d6b40;
}

.product-wide-shot .dream-phone-btn:hover {
  opacity: 0.92;
  color: #1d6b40;
}

.product-wide-shot .dream-phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6b40' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.product-wide-shot .dream-plan-btn {
  gap: 6px;
  background: #236d3d;
  color: #fff;
}

.product-wide-shot .dream-plan-btn:hover {
  background: #1e5f35;
  color: #fff;
}

.product-wide-shot .dream-plan-arrow {
  font-weight: 400;
}

@media (max-width: 1100px) {
  .product-overview .overview-cols,
  .overview.overview--legacy {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
  }

  .overview-card {
    padding: 28px 24px 32px;
  }

  .product-overview .overview-title,
  .overview.overview--legacy > h3 {
    font-size: 22px;
  }

  .eco-banner-inner {
    height: 300px;
  }

  .eco-banner .copy {
    left: 24px;
    bottom: 28px;
    max-width: calc(100% - 48px);
  }

  .eco-banner h2 {
    font-size: 24px;
  }

  .product-sec-title {
    font-size: 22px;
  }

  .product-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .product-sec-link {
    padding-top: 0;
  }

  .related-grid,
  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-main {
    padding-bottom: 52%;
  }

  .gallery-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
    padding: 18px 14px 16px;
    min-height: 0;
  }

  .spec-card span {
    white-space: normal;
  }

  .thumbs {
    min-height: 80px;
  }

  .thumbs button {
    min-height: 80px;
  }

  .spec-card + .spec-card::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .detail-head h1 {
    font-size: 26px;
  }

  .related-grid,
  .more-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 20px 14px 18px;
    border-radius: 8px;
  }

  .spec-card b {
    font-size: 20px;
  }

  .spec-card + .spec-card::before {
    display: none;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumbs button {
    height: 64px;
  }

  .gallery-main {
    padding-bottom: 58%;
  }

  .eco-banner {
    height: 260px;
  }

  .product-wide-shot .dream-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 0;
  }

  .product-wide-shot .dream-copy h2 {
    font-size: 26px;
  }

  .product-wide-shot .dream-cta-group {
    width: 100%;
    flex-direction: column;
  }

  .product-wide-shot .dream-phone-btn,
  .product-wide-shot .dream-plan-btn {
    width: 100%;
  }
}
