@charset "UTF-8";
/* ============================================================
   产品详情页样式（/products/<slug>.html）
   ------------------------------------------------------------
   版式按参考站产品详情页（sinostone.cn/list_110/1174.html）复刻：
     ① 上部 .pd-introduce —— 左图（可切换缩略图）+ 右栏
        （产品名 / 系列·型号 / 产品详情简介 / 线下专款按钮）
     ② 下部 .pd-detail    —— 「产品详情」长图区 + 上一个/下一个产品
   页头页脚沿用站点本身，所有选择器都限定在 .pd-introduce / .pd-detail 内，
   不会影响 WordPress 主题的页头、页脚和其它页面。
   改本文件后，后台保存产品会自动带上新的 ?v= 版本号。
   ============================================================ */

/* ---------------- ① 上部：左图 + 右栏 ---------------- */
.pd-introduce { padding: 48px 0 51px; background: #fff; }

/* 参考站 .main.container 左右各留 100px（本站外层已有 10px），
   这样内容区宽度与参考站逐像素一致：视口 - 200px */
.pd-intro-in {
  display: flex;
  align-items: flex-start;
  gap: 6.2%;
  padding: 0 90px;
}

.pd-left { flex: 0 0 50%; max-width: 50%; min-width: 0; }
.pd-right { flex: 1 1 auto; min-width: 0; padding-top: 80px; }

/* 图集：主图 + 左右切换箭头 + 缩略图 */
.pd-gallery { width: 100%; }

.pd-view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 446px;
}

.pd-view-link { display: block; width: 100%; text-align: center; }

.pd-view-img {
  display: inline-block;
  max-width: 100%;
  max-height: 446px;
  height: auto;
  vertical-align: middle;
}

.pd-view-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 446px;
  color: #ccc;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.pd-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #999;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.pd-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -6px 0 0 -4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-135deg);
}

.pd-arrow-prev { left: 0; }
.pd-arrow-next { right: 0; }
.pd-arrow-next::before { margin-left: -6px; transform: rotate(45deg); }

.pd-arrow:hover,
.pd-arrow:focus-visible { border-color: #a9906b; color: #a9906b; }

.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.pd-thumb {
  width: 100px;
  height: 100px;
  padding: 0;
  border: 1px solid #dcdcdc;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s;
}

.pd-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-thumb:hover,
.pd-thumb.is-on { border-color: #a9906b; }

/* 只有一张图时不显示箭头和缩略图（与参考站一致） */
.pd-gallery.is-single .pd-arrow,
.pd-gallery.is-single .pd-thumbs { display: none; }

/* ---------------- 右栏文字 ---------------- */
.pd-text {
  max-width: 500px;
  min-height: 446px;
  /* 参考站 .text 左右内边距 11px / 14px，正文实际宽度 475px */
  padding: 0 11px 0 14px;
  color: #999;
}

.pd-name {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 40px;
  color: #333;
}

.pd-size {
  padding: 25px 0 40px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.pd-size ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-size li { margin: 0 40px 0 0; max-width: 100%; }

.pd-size b,
.pd-size i {
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 30px;
  color: #999;
}

.pd-mdesc {
  padding-bottom: 25px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #666;
}

.pd-single {
  font-size: 16px;
  line-height: 30px;
  color: #999;
}

.pd-single p { margin: 0 0 8px; }

.pd-after { margin-top: 50px; }

/* 「线下专款」胶囊按钮：参考站 a.same-btn 与 .after a 叠加后的实际尺寸为 174×48，
   左右 padding 50px、行高 48px；悬停时金色从左往右铺满 */
.pd-same {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  padding: 0 50px;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 38px;
  color: #999;
  font-size: 14px;
  line-height: 46px;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.5s;
}

.pd-same::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: 0;
  height: 100%;
  background: #a9906b;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-same:hover,
.pd-same:focus-visible { color: #fff; }

.pd-same:hover::before,
.pd-same:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.pd-same > span { display: block; position: relative; z-index: 3; }

/* 箭头只加在外层 span 上（内层还有中/英两个 span，否则会出现两个三角） */
.pd-same > span::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 7px;
  margin-top: -1px;
  vertical-align: middle;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ---------------- ② 下部：产品详情 ---------------- */
/* 与上部一样左右各留 90px（加外层 10px = 参考站的 100px） */
.pd-detail { margin: 52px 0 77px; padding: 0 90px; }

.pd-detail-title { display: flex; padding-bottom: 17px; }

.pd-detail-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #263147;
}

.pd-detail-content {
  padding: 44px 42px 108px;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  font-size: 14px;
  line-height: 25px;
  color: #333;
}

.pd-detail-content p { margin: 0 0 12px; }

.pd-detail-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.pd-detail-content a { color: #a9906b; text-decoration: underline; }

/* 正文里并排的图片：后台「+ 并排插入」会把多张图放在同一行，
   这里按张数等分宽度；一排放不下时自动换行。单张图片仍是普通的一段。 */
.cms-img-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
}

.cms-img-row > img {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .cms-img-row > img { flex: 1 1 46%; }
}

.pd-detail-link {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 9px 0;
}

.pd-detail-link a,
.pd-detail-link .is-none {
  color: #696969;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.5s;
}

.pd-detail-link a:hover { color: #3e8d7e; }

.pd-detail-link b { font-weight: 400; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 1024px) {
  .pd-introduce { padding: 28px 0 12px; }

  .pd-intro-in { flex-direction: column; gap: 0; padding: 0 16px; }

  .pd-left { flex: 1 1 auto; max-width: 100%; width: 100%; }

  .pd-right { padding-top: 32px; }

  .pd-view { min-height: 0; }
  .pd-view-img { max-height: none; }
  .pd-view-empty { min-height: 220px; }

  .pd-text { max-width: none; min-height: 0; }

  /* 参考站窄屏不缩小字号（产品名 30px、详情标题 24px），这里保持一致 */
  .pd-name { line-height: 1.3; word-break: break-word; }

  .pd-size { padding: 18px 0 24px; margin-bottom: 24px; }
  .pd-size li { margin-right: 24px; }

  .pd-after { margin-top: 30px; }

  .pd-thumb { width: 76px; height: 76px; }

  .pd-detail { margin: 24px 0 32px; padding: 0 16px; }

  .pd-detail-content { padding: 24px 16px 32px; }

  .pd-detail-link { flex-direction: column; gap: 8px; padding: 16px 4px 0; }
}
