/* ============================================================
   product_detail_case 案例详情页 · EVERGREEN v2
   依赖 theme.css 设计令牌；复用 /js/productdetail.js（pdGallery/pdMainImg/pd-thumb 相册切换 + 图片保护）
   ============================================================ */

.pdc-main { display: block; background: var(--g-cream); }
.pdc-wrap { width: min(var(--g-wrap), calc(100% - 64px)); margin-inline: auto; }
.pdc-main :focus-visible { outline: 3px solid var(--g-leaf); outline-offset: 3px; }
.pdc-main .g-eyebrow { color: var(--g-green); }
.pdc-main .g-eyebrow::before { background: var(--g-green); }
.pdc-main .g-btn svg { width: 18px; height: 18px; }

/* ===== 1. Hero ===== */
.pdc-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--g-deep) var(--pdc-hero-img, none) center 42% / cover no-repeat;
}
.pdc-hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,47,34,.8) 0%, rgba(13,47,34,.62) 46%, rgba(13,47,34,.26) 100%);
}
.pdc-hero-in { position: relative; z-index: 1; padding: clamp(44px, 5vw, 72px) 0 clamp(38px, 4.4vw, 58px); }
.pdc-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.66); margin-bottom: 26px; }
.pdc-crumb a { color: rgba(255,255,255,.66); text-decoration: none; transition: color .2s; }
.pdc-crumb a:hover { color: #fff; }
.pdc-crumb [aria-current] { color: rgba(255,255,255,.92); font-weight: 600; }
.pdc-hero .g-eyebrow { color: var(--g-leaf); }
.pdc-hero .g-eyebrow::before { background: var(--g-leaf); }
.pdc-hero h1 {
  color: #fff; font-size: clamp(30px, 3.8vw, 50px); font-weight: 800;
  letter-spacing: -.025em; margin: 14px 0 16px; line-height: 1.22;
}
.pdc-hero-lead { max-width: 66ch; font-size: 15.5px; line-height: 1.9; color: rgba(255,255,255,.82); margin: 0; }
.pdc-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pdc-hero-tags span {
  font-size: 12.5px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px;
  background: rgba(255,255,255,.1);
}

/* ===== 2. 主体布局 ===== */
.pdc-sec { padding: clamp(48px, 5.4vw, 76px) 0; }
.pdc-layout { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, .78fr); gap: clamp(28px, 3.4vw, 52px); align-items: start; }

/* 图集 */
.pdc-gallery { margin: 0 0 clamp(28px, 3vw, 40px); }
.pdc-stage {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--g-radius, 18px); background: var(--g-mint);
  border: 1px solid var(--g-line);
}
.pdc-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdc-stage-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--g-green);
  background: linear-gradient(135deg, var(--g-mint), var(--g-mint-2));
}
.pdc-stage-ph svg { width: 64px; height: 64px; }
.pdc-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pdc-thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--g-mint);
  transition: border-color .2s, opacity .2s; opacity: .78;
}
.pdc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdc-thumb:hover { opacity: 1; }
.pdc-thumb.is-active { border-color: var(--g-green); opacity: 1; }
.pdc-gallery-cap { margin-top: 14px; font-size: 12.5px; color: var(--g-muted); text-align: center; letter-spacing: .04em; }

/* 项目概况 / 正文 */
.pdc-brief, .pdc-article {
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius, 18px);
  padding: clamp(24px, 2.8vw, 36px); margin-bottom: 22px;
}
.pdc-brief h2, .pdc-article h2 {
  font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.01em; margin: 0 0 14px; color: var(--g-ink);
}
.pdc-brief p { margin: 0; font-size: 15px; line-height: 1.95; color: var(--g-muted); }
.pdc-article h2:not(:first-child) { margin-top: 34px; }
.pdc-prose { font-size: 15px; line-height: 2; color: var(--g-muted); }
.pdc-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pdc-prose p { margin: 0 0 14px; }
.pdc-prose ul, .pdc-prose ol { padding-left: 22px; margin: 0 0 14px; }
.pdc-prose li { margin-bottom: 6px; }
.pdc-prose h3, .pdc-prose h4 { color: var(--g-ink); margin: 22px 0 10px; }

/* 侧栏 */
.pdc-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.pdc-side-card {
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius, 18px);
  padding: 26px 26px 28px;
}
.pdc-side-card h3 { margin: 0 0 18px; font-size: 17px; color: var(--g-ink); letter-spacing: -.01em; }
.pdc-facts { margin: 0; }
.pdc-facts div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed var(--g-line); font-size: 13.5px;
}
.pdc-facts div:last-child { border-bottom: 0; }
.pdc-facts dt { color: var(--g-muted); flex-shrink: 0; }
.pdc-facts dd { margin: 0; color: var(--g-ink); font-weight: 600; text-align: right; }
.pdc-side-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pdc-side-tags span {
  font-size: 12px; font-weight: 600; color: var(--g-green);
  background: var(--g-mint); border-radius: 999px; padding: 4px 11px;
}
.pdc-side-contact { background: var(--g-deep); border-color: var(--g-deep); color: #fff; }
.pdc-side-contact h3 { color: #fff; }
.pdc-side-contact p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,.78); }
.pdc-side-contact .g-btn-primary { width: 100%; justify-content: center; background: #fff; color: var(--g-ink); }
.pdc-side-contact .g-btn-primary:hover { background: var(--g-leaf); color: var(--g-deep); }
.pdc-side-tel {
  display: block; margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 700;
  color: rgba(255,255,255,.85); text-decoration: none;
}
.pdc-side-tel:hover { color: var(--g-leaf); }

/* ===== 3. 相似案例 ===== */
.pdc-sec-rel { background: var(--g-mint); }
.pdc-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: clamp(24px, 2.8vw, 38px);
}
.pdc-sec-head h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; margin: 12px 0 0; }
.pdc-more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  color: var(--g-green); text-decoration: none; white-space: nowrap;
}
.pdc-more svg { width: 16px; height: 16px; transition: transform .25s; }
.pdc-more:hover { text-decoration: underline; text-underline-offset: 5px; }
.pdc-more:hover svg { transform: translateX(4px); }
.pdc-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.pdc-rel-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--g-line);
  border-radius: var(--g-radius, 18px); overflow: hidden; text-decoration: none;
  transition: box-shadow .25s, transform .25s;
}
.pdc-rel-card:hover { box-shadow: var(--g-shadow); transform: translateY(-4px); }
.pdc-rel-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g-mint-2); }
.pdc-rel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--g-ease, ease); }
.pdc-rel-card:hover .pdc-rel-media img { transform: scale(1.04); }
.pdc-rel-body { display: flex; flex-direction: column; gap: 7px; padding: 17px 19px 20px; }
.pdc-rel-title { font-size: 15.5px; font-weight: 700; color: var(--g-ink); line-height: 1.5; }
.pdc-rel-card:hover .pdc-rel-title { color: var(--g-green); }
.pdc-rel-sub { font-size: 13px; line-height: 1.7; color: var(--g-muted); }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .pdc-layout { grid-template-columns: 1fr; }
  .pdc-side { position: static; }
}
@media (max-width: 900px) {
  .pdc-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body .cs-float { display: none; } /* 底部四宫格客服栏已覆盖联系入口 */
}
@media (max-width: 620px) {
  .pdc-wrap { width: calc(100% - 36px); }
  .pdc-sec { padding: 56px 0; }
  .pdc-hero h1 { font-size: 27px; }
  .pdc-hero-lead { font-size: 14.5px; }
  .pdc-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdc-rel-grid { grid-template-columns: 1fr; }
  .pdc-brief, .pdc-article { padding: 20px 18px; }
  .pdc-side-card { padding: 20px 18px 22px; }
}
