@charset "UTF-8";
/* ============================================================
   case_details.css —— 成功案例详情页
   结构：面包屑 / 标题横幅 / 正文（项目概况·项目描述·标书展示）/ 公众号引导条
   ============================================================ */

/* ---------- 标题横幅（背景图 Rectangle 1980@2x，3840×600） ---------- */
.pd-hero {
  position: relative;
  padding: 52px 0 46px;
  background: #f7f9ff url(../img/Rectangle%201980@2x.png) center center / cover no-repeat;
}

.pd-hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  text-align: center;
}

.pd-title {
  max-width: 100%;
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 1px;
  color: #111;
}

/* 「中标」印章：img/Group 1140@2x（240×116） */
.pd-badge {
  flex: none;
  width: 92px;
  height: auto;
}

.pd-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  font-size: 15px;
  color: #6b7280;
}

.pd-meta-sep {
  width: 1px;
  height: 13px;
  margin: 0 14px;
  background: #c9d0db;
}

/* ---------- 正文 ---------- */
.pd-art {
  /* 底部留白：让公众号二维码向上探出时只压白底，不压正文/图片 */
  padding: 54px 0 60px;
  background: #fff;
}

.pd-sec + .pd-sec { margin-top: 52px; }

/* 小节标题 + 右下角红蓝小旗（Group 1057@2x） */
.pd-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .5px;
  color: #111;
}

.pd-mark {
  flex: none;
  display: inline-block;
  width: 17px;
  height: 17px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* 项目概况：键值行 */
.pd-facts { margin-top: 20px; }

.pd-fact {
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 2.3;
  color: var(--text);
}

.pd-fact dt { flex: none; font-weight: 600; color: #111; }

.pd-fact dd { margin: 0; }

/* 项目描述 */
.pd-desc { margin-top: 16px; }

.pd-desc p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  text-indent: 2em;
}

.pd-desc p + p { margin-top: 8px; }

/* 案例详情富文本（后台编辑器输出）：图片自适应、列表与标题不缩进 */
/* tag 锚文本：加粗变红 */
.pd-desc--rich a.tag-anchor,
.pd-desc--rich a.tag-anchor:visited {
  color: #e60012;
  font-weight: 700;
  text-decoration: none;
}

.pd-desc--rich a.tag-anchor:hover {
  text-decoration: underline;
}

.pd-desc--rich img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
}

.pd-desc--rich p {
  text-indent: 2em;
}

.pd-desc--rich h3,
.pd-desc--rich h4 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  text-indent: 0;
}

.pd-desc--rich ul,
.pd-desc--rich ol {
  margin: 10px 0 10px 1.6em;
  padding: 0;
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
}

.pd-desc--rich li { list-style: disc; }
.pd-desc--rich ol li { list-style: decimal; }

.pd-desc--rich blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--blue);
  background: #f6f9ff;
  color: #4a5568;
}

.pd-desc--rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.pd-desc--rich th,
.pd-desc--rich td {
  border: 1px solid #e8ecf3;
  padding: 8px 12px;
}

/* ---------- 标书展示 ---------- */
.pd-gallery { margin-top: 24px; }

.pd-track { overflow: hidden; }

.pd-slide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* 每张：白底 + 极浅描边，hover/当前项变蓝框 */
.pd-shot {
  position: relative;
  display: block;
  padding: 1px;
  background: #fff;
  border: 1px solid #eef1f6;
  box-shadow: 0 2px 10px rgba(24, 44, 96, .04);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.pd-shot img {
  width: 100%;
  height: auto;
  background: #fafbfd;
}

/* 悬停：蓝框 + 放大镜（设计图首张是 hover 示意，不常显） */
.pd-shot:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(47, 107, 246, .16);
  transform: translateY(-3px);
}

/* 放大镜：img/Group 1289@2x（84×84 蓝色圆底） */
.pd-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.pd-shot:hover .pd-zoom {
  opacity: 1;
  transform: scale(1);
}

/* 分页圆点：页数由 JS 按 .pd-slide 数量生成，只有 1 页时自动隐藏 */
.pd-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.pd-dots:empty { display: none; }

.pd-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dfe4ee;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.pd-dot:hover { background: #b9c6de; }

.pd-dot.on {
  background: var(--blue);
  transform: scale(1.1);
}

/* ---------- 公众号引导条 ---------- */
.pd-cta {
  margin-top: 64px;
  padding: 46px 0 48px;
  background: var(--blue);
  text-align: center;
  margin-bottom: 20px;
}

/* 二维码白底托：图片本身是蓝码白底，加白框让边缘更干净 */
.pd-qr {
  display: inline-block;
  padding: 8px;
  background: #fff;
  /*border-radius: 6px;*/
  box-shadow: 17px 17px 0px #3A64DD;

  margin-top: -100px;
}

.pd-qr img {
  width: 200px;
  height: 200px;
}

.pd-cta-t {
  margin-top: 20px;
  font-size: 18px;
  letter-spacing: .5px;
  color: #fff;
}

/* ---------- 图片放大层（Swiper 3 承载：左右箭头 + 分页器） ---------- */
.pd-viewer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: block;
  padding: 0;
  background: rgba(10, 16, 30, .88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}

.pd-viewer.on { opacity: 1; visibility: visible; }

/* 轮播容器铺满，四周留出箭头与分页器的位置 */
.pd-viewer-swiper {
  position: absolute;
  inset: 56px 96px 82px;
  width: auto;
  height: auto;
}

/* Swiper 3 容器必须有尺寸，这里用绝对定位给足 */
.pd-viewer-swiper .swiper-wrapper { height: 100%; }

.pd-viewer-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-viewer-swiper img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

/* 左右切换按钮（Swiper 通过 prevButton / nextButton 绑定） */
.pd-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  background: rgba(18, 26, 40, .52);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .22);
  backdrop-filter: blur(2px);
  transition: background-color .25s var(--ease);
}

.pd-viewer-nav .ic { width: 26px; height: 26px; }

.pd-viewer-nav:hover { background: rgba(18, 26, 40, .78); }

.pd-viewer-nav.swiper-button-disabled { opacity: .3; cursor: default; }

.pd-viewer-prev { left: 22px; }

.pd-viewer-prev .ic { transform: rotate(180deg); }

.pd-viewer-next { right: 22px; }

/* 图片下方分页器（Swiper 生成的圆点） */
.pd-viewer-page {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
}

.pd-viewer-page .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  opacity: 1;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.pd-viewer-page .swiper-pagination-bullet:hover { background: rgba(255, 255, 255, .7); }

.pd-viewer-page .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.15);
}

.pd-viewer-x {
  position: absolute;
  right: 26px;
  top: 22px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 46px;
  text-align: center;
  transition: background-color .25s var(--ease);
}

.pd-viewer-x:hover { background: rgba(255, 255, 255, .26); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .pd-title { font-size: 34px; }
  .pd-slide { gap: 16px; }
}

@media (max-width: 992px) {
  .pd-hero { padding: 40px 0 36px; }
  .pd-title { font-size: 28px; }
  .pd-badge { width: 76px; }
  .pd-art { padding-top: 40px; }
  .pd-h2 { font-size: 24px; }
  .pd-mark { width: 15px; height: 15px; }
  .pd-sec + .pd-sec { margin-top: 40px; }
  .pd-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pd-cta { margin-top: 93px; padding: 36px 0 38px; }
  .pd-cta-t { font-size: 16px; }
}

@media (max-width: 640px) {
  .pd-hero { padding: 28px 0 26px; }
  .pd-title { font-size: 21px; letter-spacing: 0; }
  .pd-badge { width: 64px; }
  .pd-meta { margin-top: 10px; font-size: 13px; }
  .pd-meta-sep { margin: 0 10px; }

  .pd-art { padding-top: 30px; }
  .pd-sec + .pd-sec { margin-top: 32px; }
  .pd-h2 { font-size: 20px; gap: 9px; }
  .pd-mark { width: 13px; height: 13px; }

  .pd-facts { margin-top: 12px; }
  /* 手机上改为整段流式，长项目名不再另起一行 */
  .pd-fact { display: block; font-size: 14.5px; line-height: 1.95; }
  .pd-fact dt { display: inline; }
  .pd-fact dd { display: inline; }
  .pd-desc p { font-size: 14.5px; line-height: 1.95; }

  .pd-slide { gap: 10px; }
  .pd-zoom { right: 6px; bottom: 6px; width: 26px; height: 26px; }
  .pd-dots { margin-top: 24px; gap: 10px; }
  .pd-dot { width: 8px; height: 8px; }

  .pd-cta { margin-top: 40px; padding: 30px 0 32px; }
  .pd-qr{margin:  0}
  .pd-qr img { width: 110px; height: 110px; }
  .pd-cta-t { margin-top: 16px; font-size: 14.5px; }

  /* 手机端左右留出箭头位置，避免压住图片内容 */
  .pd-viewer-swiper { inset: 46px 50px 70px; }
  .pd-viewer-nav { width: 40px; height: 40px; margin-top: -20px; }
  .pd-viewer-nav .ic { width: 19px; height: 19px; }
  .pd-viewer-prev { left: 4px; }
  .pd-viewer-next { right: 4px; }
  .pd-viewer-page { bottom: 26px; gap: 8px; }
  .pd-viewer-page .swiper-pagination-bullet { width: 7px; height: 7px; }
  .pd-viewer-x { right: 12px; top: 10px; width: 40px; height: 40px; line-height: 40px; }
}
