/* ==========================================================================
   常青 / EVERGREEN · 植物绿植详情页（内容与样式从零重写）
   --------------------------------------------------------------------------
   只负责 product_detail 页本体：令牌与顶部 / 底部来自 theme.css。
   深色 banner、图集与信息不等宽分栏、规格表、正文、摆放养护、相关推荐、询价 CTA。
   系统字体栈，不外链字体；内容始终 100% 可见，不做隐藏式入场动画。
   ========================================================================== */

.pd-main { display: block; background: var(--g-cream); color: var(--g-text); }
.pd-wrap { width: min(var(--g-wrap), calc(100% - 64px)); margin-inline: auto; }
.pd-sec { padding: clamp(72px, 8vw, 116px) 0; }
.pd-main h1, .pd-main h2, .pd-main h3 { text-wrap: balance; }
.pd-main :focus-visible { outline: 3px solid var(--g-leaf); outline-offset: 3px; }
.pd-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 通用分节标题区：标题铺满内容区，说明文字才限制阅读宽度 */
.pd-sec-head { margin-bottom: 44px; }
.pd-sec-head h2 { font-size: clamp(28px, 3.15vw, 42px); line-height: 1.3; margin: 16px 0 0; color: var(--g-ink); }
.pd-sec-head > p { font-size: 15.5px; line-height: 1.9; color: var(--g-muted); max-width: 68ch; margin-top: 14px; }
.pd-sec-head--split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.pd-sec-head--split > div { min-width: 0; }
.pd-sec-head--split > p { margin: 0 0 6px; }
.pd-sec-lead { font-size: 16px; line-height: 1.9; color: var(--g-muted); max-width: 68ch; }

/* ---------- 1. 深色 banner ---------- */
.pd-hero { position: relative; overflow: hidden; color: #fff; background: var(--g-deep); padding: 32px 0 clamp(64px, 7vw, 104px); }
.pd-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(90deg, rgba(13,47,34,.97) 0%, rgba(13,47,34,.9) 46%, rgba(13,47,34,.62) 100%),
    url('/images/services/lvzhi-zulin.jpg') center / cover no-repeat;
}
.pd-hero::after {
  content: ""; position: absolute; right: -220px; top: -300px; width: 680px; height: 680px;
  border-radius: 50%; background: radial-gradient(circle, rgba(98,173,123,.22), transparent 68%); pointer-events: none;
}
.pd-hero-in { position: relative; z-index: 1; }
.pd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 30px; }
.pd-crumb a:hover { color: var(--g-leaf); }
.pd-crumb span[aria-current] { color: #fff; font-weight: 600; }
.pd-hero .g-eyebrow { color: var(--g-leaf); }
.pd-hero .g-eyebrow::before { background: var(--g-leaf); }
.pd-hero h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.16; letter-spacing: -.03em; margin: 18px 0 22px; color: #fff; }
.pd-h1-sub { display: block; margin-top: 12px; font-size: clamp(20px, 2.3vw, 32px); font-weight: 700; color: var(--g-leaf); letter-spacing: 0; }
.pd-hero-lead { font-size: 17.5px; line-height: 1.85; color: rgba(255,255,255,.86); max-width: 62ch; }
.pd-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.68); }
.pd-hero-meta b { color: #fff; font-weight: 700; margin-left: 6px; }
.pd-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.pd-hero-btns .g-btn-primary { background: #fff; color: var(--g-deep); box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.pd-hero-btns .g-btn-primary:hover { background: var(--g-leaf); color: var(--g-deep); }
.pd-hero-btns .g-btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.pd-hero-btns .g-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- 2. 左图集 / 右信息 ---------- */
.pd-overview { background: #fff; }
.pd-overview-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(38px, 5vw, 76px); align-items: start; }
.pd-gallery { min-width: 0; }
.pd-stage { border-radius: var(--g-r-lg); overflow: hidden; border: 1px solid var(--g-line); background: var(--g-mint); box-shadow: var(--g-shadow); }
.pd-stage img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pd-thumb { width: 82px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 11px; overflow: hidden; background: var(--g-mint); cursor: pointer; transition: border-color .25s, transform .25s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--g-green); }
.pd-gallery-note { font-size: 12.5px; line-height: 1.75; color: var(--g-muted); margin-top: 16px; }

.pd-info { min-width: 0; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-cat, .pd-badge { font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; }
.pd-cat { background: var(--g-mint); color: var(--g-green); border: 1px solid var(--g-mint-2); }
.pd-badge { background: var(--g-sand); color: var(--g-ink); }
.pd-badge.is-hot { background: var(--g-green); color: #fff; }
.pd-info h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.28; color: var(--g-ink); }
.pd-subtitle { font-size: 17px; color: var(--g-green); margin-top: 10px; }
.pd-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 26px 0 22px; }
.pd-highlights li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 600; color: var(--g-text); }
.pd-highlights svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--g-green); }
.pd-summary { font-size: 15px; line-height: 1.9; color: var(--g-muted); max-width: 62ch; }
.pd-brief { margin: 24px 0; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
.pd-brief > div { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--g-line); }
.pd-brief > div:last-child { border-bottom: 0; }
.pd-brief dt { font-size: 13px; color: var(--g-muted); }
.pd-brief dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--g-ink); }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 6px; }
.pd-price span { font-size: 13px; color: var(--g-muted); }
.pd-price strong { font-size: 30px; font-weight: 800; color: var(--g-green); letter-spacing: -.03em; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd-info-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.pd-info-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--g-green); }
.pd-info-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pd-info-links svg { width: 16px; height: 16px; }

/* ---------- 3. 规格参数表 ---------- */
.pd-specs { background: var(--g-mint); }
.pd-specs-box { background: #fff; border: 1px solid var(--g-mint-2); border-radius: var(--g-r-lg); overflow: hidden; box-shadow: var(--g-shadow); }
.pd-specs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pd-specs-table thead th { background: var(--g-deep); color: #fff; text-align: left; font-size: 13px; letter-spacing: .04em; padding: 16px 24px; }
.pd-specs-table tbody tr + tr { border-top: 1px solid var(--g-line); }
.pd-specs-table tbody th, .pd-specs-table tbody td { padding: 16px 24px; line-height: 1.8; vertical-align: top; }
.pd-specs-table tbody th { width: 26%; text-align: left; font-weight: 700; color: var(--g-ink); background: var(--g-cream); }
.pd-specs-table tbody td { color: var(--g-text); }
.pd-spec-only { text-align: center; color: var(--g-muted); }

/* ---------- 4. 正文（已净化 HTML 直接输出） ---------- */
.pd-prose-sec { background: var(--g-cream); }
.pd-prose { max-width: 900px; font-size: 16px; line-height: 1.95; color: var(--g-text); }
.pd-prose > .pd-block { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-lg); padding: clamp(26px, 3.4vw, 46px); box-shadow: var(--g-shadow); }
.pd-prose > .pd-block + .pd-block { margin-top: 20px; }
.pd-prose h3 { font-size: 21px; color: var(--g-ink); margin: 26px 0 12px; }
.pd-prose h3:first-child { margin-top: 0; }
.pd-prose h4 { font-size: 17px; color: var(--g-ink); margin: 20px 0 10px; }
.pd-prose p { margin: 0 0 16px; }
.pd-prose p:last-child { margin-bottom: 0; }
.pd-prose img { max-width: 100%; height: auto; border-radius: var(--g-r); margin: 14px 0; }
.pd-prose ul, .pd-prose ol { padding-left: 22px; margin: 0 0 18px; }
.pd-prose ul { list-style: disc; }
.pd-prose ol { list-style: decimal; }
.pd-prose li { margin-bottom: 8px; }
.pd-prose a { color: var(--g-green); text-decoration: underline; text-underline-offset: 4px; }
.pd-prose strong { color: var(--g-ink); font-weight: 700; }
.pd-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.pd-prose table th, .pd-prose table td { border: 1px solid var(--g-line); padding: 10px 14px; text-align: left; }
.pd-prose blockquote { margin: 18px 0; padding: 12px 20px; border-left: 3px solid var(--g-green); background: var(--g-mint); color: var(--g-muted); }

/* ---------- 5. 摆放与养护建议 ---------- */
.pd-care { background: var(--g-sand); }
.pd-care-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(34px, 5vw, 72px); align-items: center; }
.pd-care-copy h2 { font-size: clamp(28px, 3.15vw, 42px); line-height: 1.3; margin: 16px 0 18px; color: var(--g-ink); }
.pd-care-copy > .pd-sec-lead { margin-bottom: 30px; }
.pd-care-list { display: grid; gap: 16px; margin-bottom: 32px; }
.pd-care-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 18px 20px; }
.pd-care-n { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--g-mint); color: var(--g-green); font-size: 12px; font-weight: 800; }
.pd-care-list h3 { font-size: 16.5px; color: var(--g-ink); margin: 0 0 6px; }
.pd-care-list p { font-size: 14px; line-height: 1.8; color: var(--g-muted); }
.pd-care-media { margin: 0; }
.pd-care-media img { width: 100%; height: auto; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--g-r-lg); box-shadow: var(--g-shadow); }
.pd-care-media figcaption { font-size: 12.5px; line-height: 1.7; color: var(--g-muted); margin-top: 12px; }

/* ---------- 6. 相关绿植 / 相关文章 ---------- */
.pd-related { background: var(--g-mint); }
.pd-rel-sub { font-size: 18px; color: var(--g-ink); margin: 0 0 20px; padding-left: 13px; border-left: 4px solid var(--g-green); }
.pd-rel-sub:not(:first-of-type) { margin-top: 46px; }
.pd-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-rel-card { display: block; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pd-rel-card:hover { transform: translateY(-4px); box-shadow: var(--g-shadow); border-color: var(--g-mint-2); }
.pd-rel-media { display: block; }
.pd-rel-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-rel-body { display: block; padding: 16px 18px 20px; }
.pd-rel-body strong { display: block; font-size: 15.5px; color: var(--g-ink); }
.pd-rel-body > span { display: block; font-size: 13px; line-height: 1.7; color: var(--g-muted); margin-top: 7px; }
.pd-art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pd-art-card { display: flex; flex-direction: column; gap: 9px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 22px 22px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pd-art-card:hover { transform: translateY(-4px); box-shadow: var(--g-shadow); border-color: var(--g-mint-2); }
.pd-art-date { font-size: 12px; color: var(--g-green-2); font-weight: 700; letter-spacing: .04em; }
.pd-art-card strong { font-size: 16px; line-height: 1.5; color: var(--g-ink); }
.pd-art-card > span { font-size: 13.5px; line-height: 1.75; color: var(--g-muted); }
.pd-art-card em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--g-green); margin-top: auto; }
.pd-art-card em svg { width: 15px; height: 15px; }
.pd-rel-empty { font-size: 14.5px; line-height: 1.9; color: var(--g-muted); background: #fff; border: 1px dashed var(--g-mint-2); border-radius: var(--g-r); padding: 20px 24px; }
.pd-rel-empty a { color: var(--g-green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pd-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 46px; border-top: 1px solid var(--g-line); padding-top: 26px; }
.pd-neighbors a { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 16px 20px; transition: border-color .25s; }
.pd-neighbors a:hover { border-color: var(--g-green); }
.pd-neighbors a span { font-size: 12px; color: var(--g-muted); }
.pd-neighbors a strong { font-size: 15px; color: var(--g-ink); }
.pd-neighbor-empty { min-height: 1px; }

/* ---------- 6.5 常见问题（按品类输出，无数据整段不渲染） ---------- */
.pd-faq { background: #fff; }
.pd-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: start; }
.pd-faq-item { background: var(--g-cream); border: 1px solid var(--g-line); border-radius: var(--g-r); overflow: hidden; transition: border-color .25s, background .25s, box-shadow .25s; }
.pd-faq-item:hover { border-color: var(--g-mint-2); }
.pd-faq-item[open] { background: #fff; border-color: var(--g-mint-2); box-shadow: var(--g-shadow); }
.pd-faq-q { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; margin: 0; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600; line-height: 1.6; color: var(--g-ink); user-select: none; }
.pd-faq-q::-webkit-details-marker { display: none; }
.pd-faq-q::marker { content: ""; }
.pd-faq-mark { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; background: var(--g-green); }
.pd-faq-mark--a { background: var(--g-mint); color: var(--g-green); }
.pd-faq-arrow { position: relative; flex: 0 0 auto; width: 16px; height: 16px; margin: 4px 0 0 auto; }
.pd-faq-arrow::before, .pd-faq-arrow::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px; background: var(--g-muted); transform: translate(-50%, -50%); }
.pd-faq-arrow::before { width: 11px; height: 1.6px; }
.pd-faq-arrow::after { width: 1.6px; height: 11px; transition: opacity .25s; }
.pd-faq-item[open] .pd-faq-arrow::after { opacity: 0; }
.pd-faq-a { display: flex; align-items: flex-start; gap: 12px; padding: 0 20px 20px; }
.pd-faq-a p { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--g-muted); }
.pd-faq-more { margin: 28px 0 0; font-size: 14px; line-height: 1.8; color: var(--g-muted); }
.pd-faq-more a { color: var(--g-green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 7. 询价 CTA ---------- */
.pd-inquiry { background: var(--g-deep); color: #fff; padding: clamp(68px, 8vw, 112px) 0; }
.pd-inquiry .g-eyebrow { color: var(--g-leaf); }
.pd-inquiry .g-eyebrow::before { background: var(--g-leaf); }
.pd-inquiry-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 76px); align-items: start; }
.pd-inquiry-copy h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.32; color: #fff; margin: 18px 0 20px; }
.pd-inquiry-copy > p { font-size: 15.5px; line-height: 1.9; color: rgba(255,255,255,.76); max-width: 56ch; }
.pd-inquiry-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 20px; margin: 26px 0 32px; }
.pd-inquiry-facts li { position: relative; padding-left: 20px; font-size: 14px; color: rgba(255,255,255,.82); }
.pd-inquiry-facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--g-leaf); }
.pd-inquiry-act { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-inquiry-btn { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.pd-inquiry-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.pd-inquiry-note { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 24px; }
.pd-inquiry-note a { color: var(--g-leaf); text-decoration: underline; text-underline-offset: 4px; }
.pd-form-card { background: #fff; border-radius: var(--g-r-lg); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.7); }
.pd-form-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 26px; border-bottom: 1px solid var(--g-line); }
.pd-form-head > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--g-mint); color: var(--g-green); }
.pd-form-head strong { font-size: 16px; color: var(--g-ink); }
.pd-form-head small { flex: 0 0 100%; font-size: 12.5px; color: var(--g-muted); }
.pd-form-body { padding: 24px 26px 28px; min-height: 90px; }
.pd-form-fallback { display: grid; place-items: center; }

/* ---------- 继续了解 ---------- */
.pd-next { background: var(--g-cream); border-top: 1px solid var(--g-line); padding: 26px 0; }
.pd-next-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.pd-next-in > span { font-size: 13px; font-weight: 800; color: var(--g-green); letter-spacing: .06em; margin-right: 6px; }
.pd-next-in a { font-size: 14px; font-weight: 600; color: var(--g-text); }
.pd-next-in a:hover { color: var(--g-green); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 响应式：1180 / 980 / 620 逐级降列 ---------- */
@media (max-width: 1180px) {
  .pd-rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pd-overview-grid, .pd-care-grid, .pd-inquiry-grid { grid-template-columns: 1fr; }
  .pd-sec-head--split { grid-template-columns: 1fr; gap: 16px; }
  .pd-care-media { max-width: 620px; }
  .pd-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pd-wrap { width: calc(100% - 36px); }
  .pd-sec { padding: 60px 0; }
  .pd-hero h1 { font-size: 34px; }
  .pd-hero-lead { font-size: 16px; }
  .pd-highlights, .pd-inquiry-facts { grid-template-columns: 1fr; }
  .pd-rel-grid, .pd-art-grid, .pd-neighbors { grid-template-columns: 1fr; }
  .pd-specs-table thead th, .pd-specs-table tbody th, .pd-specs-table tbody td { padding: 13px 14px; }
  .pd-specs-table tbody th { width: 38%; }
  .pd-prose > .pd-block { padding: 22px 18px; }
  .pd-form-head, .pd-form-body { padding-left: 18px; padding-right: 18px; }
  .pd-next-in { gap: 10px 18px; }
}

/* 窄屏已有底部四宫格客服栏，隐藏右侧浮动客服避免压住正文。
   theme.css 最后加载，必须带 body 前缀提高优先级。 */
@media (max-width: 760px) {
  body .cs-float { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-rel-card, .pd-art-card, .pd-thumb, .pd-neighbors a { transition: none; }
  .pd-rel-card:hover, .pd-art-card:hover, .pd-thumb:hover { transform: none; }
}
