/* 右侧固定客服栏 + 抽屉面板 */

#pd-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 99996; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border-radius: 10px 0 0 10px;
  box-shadow: 0 6px 26px rgba(0,0,0,.14); overflow: hidden;
}
#pd-rail button {
  width: 56px; height: 56px; border: 0; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 20px; line-height: 1; color: #4b5563;
  transition: .18s; position: relative; font-family: inherit;
}
#pd-rail button:hover { background: #f7f8fa; color: #111827; }
#pd-rail button .lbl { font-size: 9px; letter-spacing: .2px; color: #6b7280; }
#pd-rail button:hover .lbl { color: #6b7280; }
#pd-rail button.wa { background: #25d366; color: #fff; }
#pd-rail button.wa:hover { background: #1ebe5a; }
#pd-rail button.wa .lbl { color: rgba(255,255,255,.85); }
#pd-rail button .n {
  position: absolute; top: 6px; right: 8px; background: #ee6f2d; color: #fff;
  border-radius: 9px; min-width: 17px; height: 17px; line-height: 17px;
  font-size: 10px; padding: 0 4px; display: none;
}
#pd-rail button.has .n { display: block; }
#pd-rail .sep { height: 1px; background: #f0f1f3; margin: 0 10px; }
#pd-rail button.top { font-size: 16px; }

/* 抽屉 */
#pd-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 380px; max-width: 92vw;
  background: #fff; z-index: 99999; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.3,1);
  box-shadow: -8px 0 34px rgba(0,0,0,.16);
}
#pd-drawer.on { transform: translateX(0); }
#pd-drawer .hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; border-bottom: 1px solid #eef0f3; font-size: 15.5px; font-weight: 600;
}
#pd-drawer .hd .x { cursor: pointer; font-size: 24px; color: #6b7280; line-height: 1; }
#pd-drawer .hd .x:hover { color: #111827; }
#pd-drawer .bd { flex: 1; overflow-y: auto; padding: 20px; }

#pd-drawer .big-ic { font-size: 40px; text-align: center; margin: 6px 0 10px; }
#pd-drawer .lead { text-align: center; color: #6b7280; font-size: 13.5px; line-height: 1.7; margin: 0 0 18px; }
#pd-drawer .pd-btn { display: block; text-align: center; }
#pd-drawer .qr-box { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px dashed #ececec; }
#pd-drawer .qr-box img { border: 1px solid #ececec; border-radius: 8px; padding: 8px; background: #fff; }
#pd-drawer .qr-box span { display: block; margin-top: 9px; font-size: 12.5px; color: #6b7280; }
#pd-drawer .mail-row {
  display: flex; align-items: center; gap: 8px; background: #f7f8fa;
  border-radius: 6px; padding: 11px 14px; font-size: 13.5px; word-break: break-all;
}
#pd-drawer .mail-row b { flex: 1; font-weight: 600; color: #111827; }
#pd-drawer .mail-row .cp { cursor: pointer; color: #ee6f2d; font-size: 12px; flex: 0 0 auto; }
#pd-drawer .tip { text-align: center; color: #6b7280; font-size: 12px; margin: 12px 0 0; }

/* FAQ 抽屉里的手风琴 */
#pd-drawer .pd-mini-faq { margin: 0 0 6px; }
#pd-drawer .pd-mini-item { border-bottom: 1px solid #f2f3f5; }
#pd-drawer .pd-mini-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 13px 0; font-size: 13.5px; font-weight: 600; color: #111827;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  line-height: 1.5; font-family: inherit;
}
#pd-drawer .pd-mini-q i {
  flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #8b919b;
  border-bottom: 2px solid #8b919b; transform: rotate(45deg); margin-top: 5px; transition: .2s;
}
#pd-drawer .pd-mini-item.open .pd-mini-q { color: #ee6f2d; }
#pd-drawer .pd-mini-item.open .pd-mini-q i { transform: rotate(-135deg); margin-top: 8px; border-color: #ee6f2d; }
#pd-drawer .pd-mini-a { display: none; padding: 0 0 14px; font-size: 13px; line-height: 1.8; color: #4b5563; }
#pd-drawer .pd-mini-a p { margin: 0 0 8px; }
#pd-drawer .faq-more {
  display: block; text-align: center; margin-top: 16px; font-size: 13px; color: #ee6f2d;
}

/* 右侧客服栏统一入口：隐藏原来单独的浮动按钮，避免重复 */
#pd-inq-btn, .pd-wa-float { display: none !important; }

/* ---------- 在线联系页卡片 ---------- */
.pd-contact-cards { max-width: 860px; margin: 0 auto; }
.pd-cc {
  background: #fff; border: 1px solid #eceef1; border-radius: 12px;
  padding: 28px 30px; margin-bottom: 20px;
}
.pd-cc-wa { display: flex; gap: 30px; align-items: center; background: linear-gradient(135deg,#f0fdf4,#ffffff); border-color: #cdf3d9; }
.pd-cc-left { flex: 1; }
.pd-cc .ic { font-size: 30px; margin-bottom: 8px; }
.pd-cc h3 { font-size: 19px; color: #111827; margin: 0 0 8px; font-weight: 600; }
.pd-cc p { font-size: 14px; color: #6b7280; line-height: 1.75; margin: 0 0 16px; }
.pd-cc .tip { font-size: 12.5px; color: #6b7280; margin: 12px 0 0; }
.pd-cc-right { text-align: center; flex: 0 0 auto; }
.pd-cc-right img { border: 1px solid #d9f0e2; border-radius: 10px; padding: 8px; background: #fff; }
.pd-cc-right span { display: block; margin-top: 8px; font-size: 12px; color: #6b7280; }
.pd-cc-form .pd-inq-form { background: transparent; padding: 0; }

@media (max-width: 900px) {
  #pd-rail { top: auto; bottom: 0; right: 0; left: 0; transform: none; flex-direction: row;
    border-radius: 12px 12px 0 0; justify-content: space-around; }
  #pd-rail button { width: auto; flex: 1; height: 54px; }
  #pd-rail .sep { display: none; }
  #pd-rail button.top { display: none; }
  #pd-drawer { top: auto; bottom: 0; height: 76vh; width: 100%; max-width: 100%;
    border-radius: 14px 14px 0 0; transform: translateY(105%); }
  #pd-drawer.on { transform: translateY(0); }
  .pd-cc { padding: 20px 18px; }
  .pd-cc-wa { flex-direction: column; gap: 18px; text-align: center; }
  body { padding-bottom: 56px; }
}
