/* ============================================================
   核心产品 · 详细介绍弹窗（product/）
   商务直角风格 · 与站点主色统一（深蓝 #1a2540 / 橙 #ff4a17）
   ============================================================ */

/* ---------- 首页入口增强（由 product-modal.js 自动注入） ---------- */
.cp-cell[data-pid] { cursor: pointer; }
.cp-cell[data-pid]:focus-visible { outline: 2px solid #ff4a17; outline-offset: 2px; }
.cp-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px; color: #ff4a17; }
.cp-more::after { content: "\2192"; transition: transform .3s cubic-bezier(.25,.7,.3,1); }
.cp-cell[data-pid]:hover .cp-more::after,
.cp-cell[data-pid]:focus-visible .cp-more::after { transform: translateX(4px); }

/* 清单机型行：整行可点击开窗，悬停轻微高亮 */
#products-grid .cp-list li.cp-jump[data-pid] { cursor: pointer; }
#products-grid .cp-list li.cp-jump[data-pid]:hover { color: #ff4a17; }
#products-grid .cp-list li.cp-jump[data-pid]:focus-visible { outline: 2px solid #ff4a17; outline-offset: 2px; }

/* 轮播大图上的“查看详情”按钮 */
.cp-detail-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 18px; background: rgba(10,18,38,.35); border: 1px solid rgba(255,255,255,.75);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .3s, border-color .3s, transform .3s; }
.cp-detail-btn:hover, .cp-detail-btn:focus-visible { background: #ff4a17; border-color: #ff4a17;
  transform: translateY(-1px); outline: none; }
.cp-detail-btn i { font-style: normal; font-size: 14px; transition: transform .3s; }
.cp-detail-btn:hover i { transform: translateX(3px); }

/* ---------- 弹窗遮罩与面板 ---------- */
.pdm-overlay { position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 28px;
  background: rgba(9,16,32,.62); backdrop-filter: blur(4px); }
.pdm-overlay.pdm-show { display: flex; animation: pdmFade .3s ease both; }
@keyframes pdmFade { from { opacity: 0; } to { opacity: 1; } }

.pdm-panel { width: 100%; max-width: 940px; max-height: 90vh; background: #fff;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 30px 80px rgba(5,12,28,.45);
  transform: translateY(22px) scale(.985);
  animation: pdmUp .4s cubic-bezier(.25,.7,.3,1) forwards; }
.pdm-overlay.pdm-closing .pdm-panel { animation: pdmDown .28s cubic-bezier(.4,0,.6,1) forwards; }
.pdm-overlay.pdm-closing { animation: pdmFadeOut .28s ease forwards; }
@keyframes pdmUp { to { transform: translateY(0) scale(1); } }
@keyframes pdmDown { to { transform: translateY(18px) scale(.985); opacity: .4; } }
@keyframes pdmFadeOut { to { opacity: 0; } }

/* 顶部产品大图 */
.pdm-banner { position: relative; flex: none; height: 250px; overflow: hidden; background: #dfe4eb; }
.pdm-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdm-banner::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,15,32,.9) 0%, rgba(8,15,32,.28) 52%, rgba(8,15,32,.08) 100%); }
.pdm-banner-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 34px 130px 24px 40px; }
.pdm-cat { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2px;
  color: #fff; background: #ff4a17; padding: 4px 12px; margin-bottom: 12px; }
.pdm-title { color: #fff; font-size: 25px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.pdm-summary { color: rgba(255,255,255,.88); font-size: 13.5px; margin: 0; letter-spacing: .3px; }
.pdm-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.55); background: rgba(10,18,38,.35); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; backdrop-filter: blur(4px);
  transition: background .3s, border-color .3s, transform .3s; }
.pdm-close:hover, .pdm-close:focus-visible { background: #ff4a17; border-color: #ff4a17;
  transform: rotate(90deg); outline: none; }

/* 正文滚动区 */
.pdm-body { flex: 1 1 auto; overflow-y: auto; padding: 32px 40px 8px; }
.pdm-desc { margin: 0 0 26px; font-size: 14px; line-height: 1.95; color: #465065;
  padding-left: 14px; border-left: 3px solid #ff4a17; background: #f7f9fc; padding: 16px 18px; }
.pdm-sec { margin: 0 0 26px; }
.pdm-sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 15px; font-weight: 700; color: #1a2540; }
.pdm-sec-title::before { content: ""; width: 4px; height: 16px; background: #ff4a17; }
.pdm-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 0; padding: 0; list-style: none; }
.pdm-features li { position: relative; padding: 12px 14px 12px 40px; font-size: 13px; line-height: 1.65;
  color: #3a4458; background: #f6f8fb; border: 1px solid #eaeef4;
  transition: border-color .3s, background .3s, transform .3s; }
.pdm-features li:hover { border-color: rgba(255,74,23,.4); background: #fff; transform: translateY(-2px); }
.pdm-features li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px;
  background: #ff4a17;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat; }
.pdm-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.pdm-apps span { font-size: 12.5px; color: #1a2540; background: #fff;
  border: 1px solid #d7deea; padding: 7px 15px; letter-spacing: .3px;
  transition: all .3s; }
.pdm-apps span::before { content: "\25CF"; color: #ff4a17; font-size: 9px; margin-right: 8px;
  vertical-align: 1px; }
.pdm-apps span:hover { border-color: #ff4a17; color: #ff4a17; }

/* 底部操作条 */
.pdm-footer { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  padding: 16px 40px; border-top: 1px solid #e9edf3; background: #fafbfd; }
.pdm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .5px; cursor: pointer;
  border: 1px solid transparent; transition: all .3s; }
.pdm-btn-primary { background: #ff4a17; color: #fff; }
.pdm-btn-primary:hover { background: #e63e0e; box-shadow: 0 8px 20px rgba(255,74,23,.3);
  transform: translateY(-1px); }
.pdm-btn-ghost { background: #fff; color: #5a6478; border-color: #d2d9e4; }
.pdm-btn-ghost:hover { color: #1a2540; border-color: #1a2540; }

/* 响应式 */
@media (max-width: 767px) {
  .pdm-overlay { padding: 0; }
  .pdm-panel { max-width: 100%; max-height: 100vh; height: 100%; }
  .pdm-banner { height: 190px; }
  .pdm-banner-inner { padding: 26px 64px 18px 20px; }
  .pdm-title { font-size: 19px; }
  .pdm-body { padding: 24px 20px 6px; }
  .pdm-features { grid-template-columns: 1fr; }
  .pdm-footer { padding: 14px 20px; }
  .pdm-btn { flex: 1; justify-content: center; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdm-overlay.pdm-show, .pdm-panel, .pdm-overlay.pdm-closing .pdm-panel { animation: none; }
}
