/* ==================================================
   产品详情页专属样式 (product-show.css) - 净化绿主题
   ================================================== */
:root {
  --accent-green: #29924D;
  --accent-hover: #1b6e3a;
  --bg-soft-green: #F0FDF4;
  --primary-dark: #1a2432;
  --text-dark: #1F2937;
  --text-gray: #6B7280;
  --border-color: #E5E7EB;
  --paper: #F9FAFB;
}

/* 最外层包裹 */
.pd-page-wrapper {
  width: 100%;
  position: relative;
  background: #fff;
}

.pd-wrap {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== 顶部 Banner (与全站统一遮罩) ===== */
.pd-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: #fff;
  overflow: hidden;
  background: var(--primary-dark);
  margin-top: 72px; 
}
.pd-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(31, 41, 55, 0.95) 0%, rgba(31, 41, 55, 0.86) 50%, rgba(31, 41, 55, 0.6) 100%), url('/images/banner.jpg') center right / cover no-repeat;
}
.pd-hero .pd-wrap { position: relative; z-index: 2; }
.pd-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .16em;
  color: #fff; text-transform: uppercase; margin-bottom: .8rem;
}
.pd-eyebrow::before {
  content: ""; width: 22px; height: 6px; background: #fff; transform: skewX(-30deg);
}
.pd-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.3; margin: 0 0 1rem; text-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.pd-hero-desc {
  color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 0; max-width: 800px; line-height: 1.6;
}

/* ===== 面包屑 ===== */
.pd-breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.pd-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--text-gray); margin: 0; list-style: none; padding: 0;
}
.pd-breadcrumb a { color: var(--text-dark); text-decoration: none; transition: color .2s; }
.pd-breadcrumb a:hover { color: var(--accent-green); }
.pd-breadcrumb .sep { color: #D1D5DB; }
.pd-breadcrumb .cur { color: var(--accent-green); font-weight: 600; }

/* ===== 布局 ===== */
.pd-section { padding: 3.5rem 0 5rem; }
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

/* ===== 左侧主体 ===== */
.pd-article-content { min-width: 0; }
.pd-article-header { margin: 0 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.pd-article-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-dark);
  line-height: 1.4; margin: 0;
}

/* 信息卡片 */
.pd-info-card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border: 1px solid var(--border-color); border-top: 4px solid var(--accent-green);
  border-radius: 12px; padding: 1.5rem 1.7rem; margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.pd-info-title { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .5rem; }
.pd-info-title::before { content: ""; width: 14px; height: 14px; background: var(--accent-green); transform: rotate(45deg); flex: 0 0 14px; }
.pd-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; margin: 0; }
.pd-info-item { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--border-color); font-size: 1rem; }
.pd-info-item dt { flex: 0 0 5.6em; color: var(--text-gray); font-weight: 600; white-space: nowrap; }
.pd-info-item dt::after { content: "："; }
.pd-info-item dd { margin: 0; color: var(--text-dark); font-weight: 700; flex: 1 1 auto; }
.pd-info-tel { color: var(--accent-green); font-weight: 800; text-decoration: none; }
.pd-info-tel:hover { color: var(--accent-hover); }

/* 轮播 */
.pd-gallery {
  position: relative; max-width: 100%; margin: 0 0 2.5rem;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,.05); background: var(--paper); user-select: none;
}
.pd-gallery-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.pd-gallery-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.pd-gallery-slide.is-active { opacity: 1; visibility: visible; }
.pd-gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(0,0,0,.4); color: #fff; border: 0; border-radius: 50%;
  cursor: pointer; z-index: 3; transition: all .2s ease;
}
.pd-gallery-btn:hover { background: var(--accent-green); color: #fff; }
.pd-gallery-prev { left: 14px; } .pd-gallery-next { right: 14px; }
.pd-gallery-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: .4rem; z-index: 3; }
.pd-gallery-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: all .2s; }
.pd-gallery-dot.is-active { background: var(--accent-green); transform: scale(1.25); }
.pd-gallery-counter {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  padding: .25rem .7rem; background: rgba(0,0,0,.6); color: #fff;
  font-size: .78rem; font-weight: 700; border-radius: 4px;
}

/* 正文 */
.pd-article-body { font-size: 1.05rem; line-height: 1.95; color: #374151; word-wrap: break-word; margin-bottom: 2rem; }
.pd-article-body p { margin: 0 0 1.2rem; }
.pd-article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.5rem auto; display: block; }
.pd-article-body h2 { font-size: 1.45rem; font-weight: 800; color: var(--text-dark); margin: 2.5rem 0 1.2rem; border-left: 4px solid var(--accent-green); padding-left: .8rem; }
.pd-article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin: 1.8rem 0 1rem; }
.pd-article-body strong { color: var(--accent-green); font-weight: 700; }
.pd-article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.pd-article-body th, .pd-article-body td { border: 1px solid var(--border-color); padding: .8rem 1rem; text-align: left; }
.pd-article-body th { background: var(--paper); font-weight: 700; }

/* 公司转化块 */
.pd-company-intro {
  position: relative; margin: 0 0 3rem; padding: 2.2rem; background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-hover) 100%);
  border-radius: 12px; color: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(41,146,77,.2);
}
.pd-ci-eyebrow { display: inline-flex; font-size: .8rem; font-weight: 900; letter-spacing: .1em; color: rgba(255,255,255,.8); margin-bottom: .6rem; }
.pd-company-intro h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 1rem; color: #fff; }
.pd-company-intro h2 .hl { color: #fff; }
.pd-company-intro p { font-size: .98rem; color: rgba(255,255,255,.9); line-height: 1.8; margin: 0 0 1.5rem; }
.pd-ci-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); }
.pd-ci-tel { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.5rem; font-weight: 900; color: #fff; text-decoration: none; }
.pd-ci-tel .pd-ci-ic { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.pd-ci-contact-text { font-size: .9rem; color: rgba(255,255,255,.9); }

/* 上下篇 */
.pd-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.pd-pn-item {
  display: block; padding: 1.2rem; background: var(--paper); border: 1px solid var(--border-color);
  border-radius: 8px; text-decoration: none; transition: all .3s;
}
.pd-pn-item:hover { border-color: var(--accent-green); background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pd-pn-label { display: block; font-size: .85rem; color: var(--text-gray); margin-bottom: .4rem; }
.pd-pn-title { display: block; font-size: 1rem; font-weight: 700; color: var(--text-dark); line-height: 1.5; }
.pd-pn-next { text-align: right; } .pd-pn-next .pd-pn-title { text-align: left; }
.pd-pn-disabled { opacity: 0.6; cursor: not-allowed; }

/* 相关产品 */
.pd-related-section h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1.5rem; border-left: 4px solid var(--accent-green); padding-left: .8rem; }
.pd-prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pd-prod-card { display: block; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; text-decoration: none; transition: all .3s; }
.pd-prod-card:hover { border-color: var(--accent-green); box-shadow: 0 10px 20px rgba(0,0,0,.05); transform: translateY(-3px); }
.pd-prod-media { aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.pd-prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pd-prod-card:hover .pd-prod-media img { transform: scale(1.05); }
.pd-prod-info { padding: 1rem 1.2rem; }
.pd-prod-info h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 右侧边栏 ===== */
.pd-sidebar { position: sticky; top: 100px; }
.pd-sidebar-box { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,.03); }
.pd-sidebar-title { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); margin: 0 0 1.2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--bg-soft-green); }
.pd-hot-list { list-style: none; padding: 0; margin: 0; }
.pd-hot-list li { border-bottom: 1px dashed var(--border-color); }
.pd-hot-list li:last-child { border-bottom: none; }
.pd-hot-list a { display: block; padding: 1rem 0; color: var(--text-dark); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.pd-hot-list a:hover { color: var(--accent-green); }
.pd-hot-date { display: block; font-size: .8rem; color: var(--text-gray); margin-top: .4rem; }
.pd-contact-box p { font-size: .95rem; color: var(--text-gray); margin-bottom: 1.2rem; line-height: 1.7; }
.pd-btn-brand { display: flex; justify-content: center; align-items: center; gap: .5rem; width: 100%; background: var(--accent-green); color: #fff; font-weight: 600; padding: .8rem; border-radius: 8px; text-decoration: none; transition: background .3s; }
.pd-btn-brand:hover { background: var(--accent-hover); }

/* ===== 底部 CTA ===== */
.pd-cta-section { padding: 0 0 5rem; background: #fff; }
.pd-cta { background: linear-gradient(135deg, #1a2432 0%, #0f1520 100%); border-radius: 20px; padding: 3.5rem 4rem; display: flex; justify-content: space-between; align-items: center; color: #fff; box-shadow: 0 20px 40px -10px rgba(0,0,0,.15); }
.pd-cta-text h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .8rem; }
.pd-cta-text p { font-size: 1rem; color: rgba(255,255,255,.7); margin: 0; }
.pd-cta-actions { display: flex; gap: 1rem; }
.pd-cta-actions .btn { padding: .8rem 1.8rem; font-size: 1rem; font-weight: 600; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.pd-cta-actions .btn-white { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); transition: all .3s; }
.pd-cta-actions .btn-white:hover { background: #fff; color: var(--primary-dark); }
.pd-cta-actions .btn-primary { background: var(--accent-green); color: #fff; border: none; transition: all .3s; }
.pd-cta-actions .btn-primary:hover { background: var(--accent-hover); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .pd-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .pd-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .pd-cta { flex-direction: column; text-align: center; gap: 2rem; padding: 2.5rem; }
}
@media (max-width: 768px) {
  .pd-hero { margin-top: 60px; }
  .pd-sidebar { grid-template-columns: 1fr; }
  .pd-prod-grid { grid-template-columns: 1fr; }
  .pd-post-nav { grid-template-columns: 1fr; }
  .pd-pn-next { text-align: left; }
  .pd-info-grid { grid-template-columns: 1fr; gap: .4rem; }
  .pd-cta-actions { flex-direction: column; width: 100%; }
  .pd-cta-actions .btn { width: 100%; justify-content: center; }
}