/* =====================================================================
   product-detail.css — 产品详情页高转化布局专用样式（v14）
   仅在 product-detail.html 引用，沿用全局 CSS 变量，自动适配深/浅主题
   ===================================================================== */

/* ---------- 通用区块标题 ---------- */
.pd-section { padding: 64px 0; }
.pd-section.alt { background: var(--bg-secondary); }
.pd-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.pd-head .section-label {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 14px; font-weight: 700;
}
.pd-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 14px; }
.pd-head p { color: var(--text-tertiary); font-size: 15px; line-height: 1.7; margin: 0; }

/* ---------- 1. 核心卖点条 ---------- */
.pd-highlights {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.pd-highlight-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px;
}
.pd-hl {
  text-align: center; padding: 22px 14px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease;
}
.pd-hl:hover { transform: translateY(-6px); border-color: var(--border-accent); }
.pd-hl .pd-hl-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: rgba(0, 200, 255, .1); border: 1px solid var(--border-accent);
}
.pd-hl h4 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.pd-hl p { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.55; margin: 0; }

/* ---------- 2. 主图 / 视频 / 信息 ---------- */
.product-detail { padding: 64px 0; }
.product-detail-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start;
}
.product-gallery { position: sticky; top: 96px; }
.product-main-img {
  width: 100%; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
#product-main-real { display: none; }
#product-main-real[src] { display: block; }
#product-main-real[src] ~ .pd-placeholder { display: none; }
.product-main-img[data-wsd-replaced-bg="1"] .pd-placeholder { display: none; }
.product-main-img .pd-placeholder { color: var(--text-tertiary); text-align: center; padding: 20px; }
.product-main-img .pd-placeholder .ph-ico { font-size: 46px; margin-bottom: 10px; }
/* 视频 */
.product-video-wrap {
  margin-top: 16px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-accent); background: #000;
}
.product-video-wrap video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
/* 缩略图 */
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.product-thumb {
  aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--bg-card); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center; padding: 6px;
  transition: border-color .2s ease;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.product-thumb.active, .product-thumb:hover { border-color: var(--accent); }
.product-thumb svg { width: 70%; height: 70%; opacity: .55; }

/* 信息区 */
.product-info .info-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: rgba(0,200,255,.1); border: 1px solid var(--border-accent);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 16px;
}
.product-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 0 0 10px; }
.product-info .product-tagline { font-size: 16px; color: var(--accent); font-weight: 600; margin: 0 0 20px; }
.product-info .product-desc { color: var(--text-secondary); font-size: 14.5px; line-height: 1.85; margin: 0 0 28px; }

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.spec-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text-tertiary); width: 26%; white-space: nowrap; }
.spec-table td:last-child { color: var(--text-primary); font-weight: 600; text-align: right; }
.spec-table tr:hover td { background: var(--bg-card); }

.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 150px; justify-content: center; }

/* ---------- 3. 切割能力表 ---------- */
.cap-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.cap-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--bg-card); }
.cap-table th, .cap-table td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.cap-table th {
  background: rgba(0,200,255,.08); color: var(--accent); font-weight: 700;
  font-size: 13.5px; letter-spacing: .5px;
}
.cap-table td:first-child { text-align: left; font-weight: 600; color: var(--text-secondary); }
.cap-table .cap-num { font-weight: 700; color: var(--text-primary); }
.cap-table .cap-note { font-size: 12px; color: var(--text-tertiary); }
.cap-foot { text-align: center; color: var(--text-tertiary); font-size: 13px; margin-top: 18px; }
.cap-power-banner {
  margin-bottom: 16px; padding: 14px 20px; border-radius: 12px; text-align: center;
  font-size: 14px; color: var(--text-secondary);
  background: rgba(0, 200, 255, .08); border: 1px solid var(--border-accent);
}
.cap-power-banner b { color: var(--accent); font-size: 16px; }
/* “回到本机型”按钮 */
.cap-revert-btn {
  display: inline-block; margin-left: 12px; padding: 6px 14px;
  border-radius: 100px; border: 1px solid var(--border-accent);
  background: var(--bg-card); color: var(--accent);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cap-revert-btn:hover {
  background: rgba(0, 200, 255, .14); transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px var(--accent-glow);
}

/* ---------- 4. 应用场景 ---------- */
.pd-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pd-app-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 22px; text-align: center; transition: transform .3s, border-color .3s;
}
.pd-app-card:hover { transform: translateY(-6px); border-color: var(--border-accent); }
.app-img-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.app-img {
  width: 96px; height: 96px; object-fit: contain; display: block;
  filter: drop-shadow(0 10px 16px rgba(15, 60, 110, .18));
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}
.pd-app-card:hover .app-img {
  transform: translateY(-5px) scale(1.07);
  filter: drop-shadow(0 18px 26px rgba(0, 150, 220, .3));
}
.pd-app-card h4 { font-size: 16px; margin: 0 0 8px; }
.pd-app-card p { font-size: 13px; color: var(--text-tertiary); line-height: 1.6; margin: 0; }

/* ---------- 5. 核心配件品牌墙 ---------- */
.pd-acc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pd-acc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 18px; text-align: center;
}
.pd-acc .acc-role { font-size: 12px; color: var(--text-tertiary); letter-spacing: 1px; margin-bottom: 10px; }
.pd-acc .acc-brand { font-size: 17px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.pd-acc .acc-desc { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.55; margin: 0; }

/* ---------- 6. 客户案例 / 社会证明 ---------- */
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.pd-stat { text-align: center; padding: 24px 10px; }
.pd-stat .stat-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--accent); line-height: 1; }
.pd-stat .stat-label { font-size: 13.5px; color: var(--text-tertiary); margin-top: 10px; }
.pd-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pd-case {
  border-radius: 16px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border);
}
.pd-case .case-img { aspect-ratio: 16/10; background: var(--bg-card-hover); display:flex; align-items:center; justify-content:center; font-size:34px; color:var(--text-tertiary); }
.pd-case .case-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-case .case-body { padding: 20px; }
.pd-case h4 { font-size: 15.5px; margin: 0 0 6px; }
.pd-case p { font-size: 13px; color: var(--text-tertiary); margin: 0; line-height: 1.6; }

/* ---------- 7. 服务保障 ---------- */
.pd-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pd-svc {
  display: flex; gap: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.pd-svc .svc-ico {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,.1); border: 1px solid var(--border-accent);
}
.pd-svc h4 { font-size: 15.5px; margin: 0 0 6px; }
.pd-svc p { font-size: 13px; color: var(--text-tertiary); margin: 0; line-height: 1.6; }

/* ---------- 8. FAQ 手风琴 ---------- */
.pd-faq-list { max-width: 860px; margin: 0 auto; }
.pd-faq-item {
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px;
  background: var(--bg-card); overflow: hidden;
}
.pd-faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 15.5px; font-weight: 700; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.pd-faq-q .faq-toggle { color: var(--accent); font-size: 22px; transition: transform .3s; flex: 0 0 auto; }
.pd-faq-item.open .faq-toggle { transform: rotate(45deg); }
.pd-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.pd-faq-a p { padding: 0 22px 20px; margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

/* ---------- 9. 询价表单 ---------- */
.pd-inquiry {
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(0,200,255,.12), transparent),
    var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.pd-inquiry-card {
  max-width: 920px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 22px; padding: 38px;
}
.pd-inquiry-card h3 { font-size: 26px; margin: 0 0 8px; text-align: center; }
.pd-inquiry-card .inquiry-sub { color: var(--text-tertiary); text-align: center; font-size: 14px; margin: 0 0 26px; }
.pd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pd-fgroup { display: flex; flex-direction: column; }
.pd-fgroup.full { grid-column: 1 / -1; }
.pd-fgroup label { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.pd-fgroup input, .pd-fgroup select, .pd-fgroup textarea {
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 14px; font-size: 14px; color: var(--text-primary); font-family: inherit;
  outline: none; transition: border-color .2s;
}
.pd-fgroup input:focus, .pd-fgroup select:focus, .pd-fgroup textarea:focus { border-color: var(--accent); }
.pd-fgroup textarea { resize: vertical; min-height: 96px; }
.pd-inquiry-card .btn-primary { width: 100%; justify-content: center; margin-top: 26px; }

/* ---------- 10. 悬浮 CTA ---------- */
.pd-sticky-cta {
  position: fixed; right: 22px; bottom: 26px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.pd-sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pd-sticky-cta a {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px;
  border-radius: 100px; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); white-space: nowrap;
}
.pd-sticky-cta .sticky-inquiry { background: var(--accent); color: #04101f; }
.pd-sticky-cta .sticky-call { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-accent); }

/* ---------- 11. 功率选型工具 ---------- */
.pd-picker {
  max-width: 860px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 20px; padding: 38px;
}
.pd-picker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.pd-picker label { display:block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.pd-picker select, .pd-picker input {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 14px; font-size: 14px; color: var(--text-primary);
  font-family: inherit; outline: none;
}
.pd-picker-result {
  margin-top: 8px; border-radius: 14px; padding: 24px; text-align: center;
  background: rgba(0,200,255,.08); border: 1px solid var(--border-accent);
  font-size: 15px; line-height: 1.7; color: var(--text-secondary);
}
.pd-picker-result .rec-power { font-size: 30px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 6px; }

/* 两步选型引导：序号徽章 + 提示 + 首次呼吸高亮 */
.pd-picker label { display: flex; align-items: center; gap: 8px; }
.pk-step {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #04101f;
  background: linear-gradient(135deg, #36d8ff, #00b6e8);
}
.pk-guide-hint {
  margin: -6px 0 16px; text-align: center; font-size: 13.5px; font-weight: 600;
  color: var(--text-secondary);
  animation: pkHintBlink 1.4s ease-in-out infinite;
}
@keyframes pkHintBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pk-arrow { color: var(--accent); font-weight: 800; margin-left: 4px; }
.pd-picker.guide .pd-picker-row select,
.pd-picker.guide .pd-picker-row input {
  animation: pkGuidePulse 1.6s ease-in-out infinite;
}
@keyframes pkGuidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 255, 0); border-color: var(--border); }
  50% { box-shadow: 0 0 0 4px rgba(0, 200, 255, .22); border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .pk-guide-hint,
  .pd-picker.guide .pd-picker-row select,
  .pd-picker.guide .pd-picker-row input { animation: none; }
}

/* ---------- 图片灯箱自由缩放 ---------- */
#pd-lightbox .lightbox-img {
  transform-origin: center center;
  transition: transform .12s ease-out;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
#pd-lightbox .lightbox-img.dragging { cursor: grabbing; transition: none; }
.pd-lb-zoombar {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px; border-radius: 100px;
}
.pd-lb-zoombar button {
  background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
}
.pd-lb-zoombar button:hover { background: rgba(255,255,255,.15); }
.pd-lb-zoombar #pd-lb-zoomval { color: rgba(255,255,255,.8); font-size: 13px; min-width: 46px; text-align: center; }

/* 主图可点击提示 */
#product-main-img { cursor: zoom-in; }

/* =====================================================================
   统一卡片悬浮质感（v5）：上浮 + 高亮边框 + 投影 + 微光晕
   ===================================================================== */
:root {
  --pd-lift: 0 18px 42px -14px rgba(0, 0, 0, .55);
  --pd-lift-glow: 0 12px 30px -12px var(--accent-glow);
}

/* 数据统计做成卡片，便于与其他卡片统一悬浮 */
.pd-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 12px;
}

/* 过渡：让所有卡片变化顺滑 */
.pd-acc, .pd-stat, .pd-case, .pd-svc, .pd-faq-item,
.product-main-img, .product-video-wrap, .product-thumb {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

/* 统一悬浮：上浮 + 高亮边框 + 投影 + 微光晕 */
.pd-acc:hover, .pd-stat:hover, .pd-case:hover, .pd-svc:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--pd-lift), var(--pd-lift-glow);
}

/* 案例图内轻微放大（外层 .pd-case 已 overflow:hidden） */
.pd-case .case-img img { transition: transform .45s ease; }
.pd-case:hover .case-img img { transform: scale(1.06); }

/* FAQ：宽列表不整体上浮，仅边框高亮 + 轻光晕 */
.pd-faq-item:hover { border-color: var(--border-accent); box-shadow: var(--pd-lift-glow); }

/* 主图 / 视频：可点击/播放容器高亮 */
.product-main-img:hover, .product-video-wrap:hover {
  border-color: var(--border-accent);
  box-shadow: var(--pd-lift), var(--pd-lift-glow);
}

/* 缩略图：轻微上浮 */
.product-thumb:hover { transform: translateY(-3px); }

/* 能力表行 hover */
.cap-table tr { transition: background .2s ease; }
.cap-table tr:hover td { background: var(--bg-card-hover); }

/* 让已有卖点 / 应用卡悬浮也带统一投影 */
.pd-hl:hover, .pd-app-card:hover { box-shadow: var(--pd-lift), var(--pd-lift-glow); }

/* 尊重系统“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  .pd-acc, .pd-stat, .pd-case, .pd-svc, .pd-faq-item,
  .product-main-img, .product-video-wrap, .product-thumb,
  .pd-hl, .pd-app-card, .pd-case .case-img img { transition: none; }
  .pd-acc:hover, .pd-stat:hover, .pd-case:hover, .pd-svc:hover,
  .pd-hl:hover, .pd-app-card:hover { transform: none; }
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1024px) {
  .pd-highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-acc-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-gallery { position: static; }
  .pd-svc-grid, .pd-case-grid { grid-template-columns: 1fr; }
  .pd-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pd-picker-row, .pd-form-grid { grid-template-columns: 1fr; }
  .pd-inquiry-card, .pd-picker { padding: 26px 20px; }
  .pd-section { padding: 46px 0; }
  .pd-sticky-cta { right: 14px; bottom: 16px; }
  .pd-sticky-cta a { padding: 12px 16px; font-size: 13px; }
}
@media (max-width: 560px) {
  .pd-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-acc-grid { grid-template-columns: repeat(2, 1fr); }
  .product-actions { flex-direction: column; }
}

/* =====================================================================
   12. 产品速切悬浮球 + 面板
   ===================================================================== */
.pd-switcher-ball {
  position: fixed; z-index: 9200;
  height: 46px; padding: 0 18px;
  right: 14px; top: 42%;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #04101f; font-size: 14px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #36d8ff 0%, #00b6e8 100%);
  box-shadow: 0 10px 26px rgba(0, 200, 255, .45), 0 4px 12px rgba(0, 0, 0, .25);
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: transform .25s ease, box-shadow .25s ease,
              left .3s cubic-bezier(.22, 1, .36, 1), top .3s cubic-bezier(.22, 1, .36, 1);
}
.pd-switcher-ico { flex: none; height: 26px; width: auto; display: block; }
.pd-switcher-ball:hover { transform: scale(1.05); box-shadow: 0 14px 32px rgba(0, 200, 255, .6), 0 6px 16px rgba(0, 0, 0, .3); }
.pd-switcher-ball.dragging { cursor: grabbing; transition: none; transform: scale(1.1); }
.pd-switcher-ball:focus-visible { outline: 3px solid rgba(0, 200, 255, .5); outline-offset: 3px; }

.pd-switcher-panel {
  position: fixed; z-index: 9300;
  width: 284px; max-width: calc(100vw - 28px);
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.pd-switcher-panel.edge-right { right: 12px; }
.pd-switcher-panel.edge-left { left: 12px; }
.pd-switcher-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.sp-title { font-size: 13.5px; font-weight: 800; letter-spacing: 1.5px; }
.sp-close {
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: var(--bg-card-hover); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, color .2s;
}
.sp-close:hover { background: var(--accent); color: #04101f; }

.sp-back {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(0, 200, 255, .12);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s;
}
.sp-back:hover { background: rgba(0, 200, 255, .22); transform: translateX(2px); }

.sp-list { display: flex; flex-direction: column; gap: 2px; max-height: 48vh; overflow-y: auto; }
.sp-group-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-tertiary); padding: 9px 6px 4px; }
.sp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .18s, color .18s;
}
.sp-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.sp-item .sp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item .sp-pw { flex: none; font-size: 11.5px; color: var(--text-tertiary); font-weight: 600; }
.sp-item.active { background: rgba(0, 200, 255, .14); color: var(--accent); cursor: default; }
.sp-item.active .sp-pw { color: var(--accent); }

@media (max-width: 560px) {
  .pd-switcher-ball { height: 42px; padding: 0 14px; font-size: 13px; }
  .pd-switcher-ico { height: 22px; }
  .pd-switcher-panel { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-switcher-ball, .pd-switcher-panel { transition: none; }
  .pd-switcher-ball:hover { transform: none; }
}

/* =====================================================================
   工艺视频中心（大播放器 + 通用/专属视频卡片）
   ===================================================================== */
.vsec-player {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  aspect-ratio: 16/9;
  background: #05070d;
  border: 1px solid var(--border-accent);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.vsec-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vsec-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-tertiary);
}
.vsec-empty-ico { font-size: 52px; opacity: .8; }
.vsec-empty p { margin: 0; font-size: 15px; }

.vsec-cards { margin-top: 30px; display: flex; flex-direction: column; gap: 26px; }
.vsec-group-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 800; margin-bottom: 14px;
}
.vsec-group-label small { font-weight: 500; font-size: 12.5px; color: var(--text-tertiary); }
.vsec-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.vsec-dot.common { background: #00c8ff; box-shadow: 0 0 8px rgba(0, 200, 255, .7); }
.vsec-dot.product { background: #ffaa3c; box-shadow: 0 0 8px rgba(255, 170, 60, .7); }

/* 弹性居中：卡片保持理想宽度，无论几张都整体自动居中；窄屏自动换行仍居中 */
.vsec-group-cards, .vsec-flat-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.vsec-group-cards > .vsec-card, .vsec-flat-grid > .vsec-card {
  flex: 0 1 200px; width: 200px; max-width: 100%;
}
.vsec-group-empty {
  flex: 1 1 100%; width: 100%;
  padding: 26px; border: 1.5px dashed var(--border); border-radius: 14px;
  color: var(--text-tertiary); font-size: 13.5px; text-align: center;
}

.vsec-card {
  position: relative;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.vsec-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--pd-lift); }
.vsec-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 30px rgba(0, 200, 255, .25); }
.vsec-card.product .vsec-scope-badge { background: linear-gradient(135deg, #ffb347, #ff8a00); }
.vsec-scope-badge {
  position: absolute; top: 9px; left: 9px; z-index: 5;
  padding: 3px 9px; border-radius: 50px;
  font-size: 11px; font-weight: 700; color: #04101f;
  background: linear-gradient(135deg, #36d8ff, #00b6e8);
}

.vsec-card-thumb {
  position: relative; aspect-ratio: 16/9;
  background: rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: center;
}
.vsec-card-thumb img, .vsec-card-thumb video.vsec-thumb-video {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.vsec-thumb-ico { font-size: 34px; opacity: .75; }

.vsec-card-title {
  padding: 11px 12px 4px; font-size: 13.5px; font-weight: 700; line-height: 1.4;
  word-break: break-word;
}
.vsec-card-title[contenteditable] { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.vsec-card-actions {
  display: none; flex-wrap: wrap; gap: 7px; padding: 8px 12px 13px;
}
body.wsd-editing .vsec-card-actions { display: flex; }
.vsec-card-actions button {
  flex: 1 1 auto; padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  border: 1px solid transparent; white-space: nowrap;
}
.vsec-up { background: linear-gradient(135deg, #00c8ff, #0066ff); color: #fff; }
.vsec-up:hover { filter: brightness(1.08); }
.vsec-rmvid { background: rgba(220, 38, 38, .12); border-color: rgba(220, 38, 38, .55); color: #ff6b6b; }
.vsec-rmvid:hover { background: rgba(220, 38, 38, .22); }
.vsec-move { background: var(--bg-card-hover); border-color: var(--border); color: var(--text-secondary); }
.vsec-move:hover { color: var(--accent); border-color: var(--border-accent); }

.vsec-del-card {
  display: none; position: absolute; top: 8px; right: 8px; z-index: 6;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(220, 38, 38, .95); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; align-items: center; justify-content: center;
}
body.wsd-editing .vsec-del-card { display: flex; }
.vsec-del-card:hover { background: #dc2626; transform: scale(1.1); }

.vsec-add-row { display: none; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
body.wsd-editing .vsec-add-row { display: flex; }
.vsec-add {
  padding: 11px 24px; border-radius: 50px;
  border: 1.5px dashed rgba(0, 200, 255, .6); background: rgba(0, 200, 255, .06);
  color: var(--accent); font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all .2s ease;
}
.vsec-add#vsec-add-product { border-color: rgba(255, 170, 60, .7); background: rgba(255, 170, 60, .07); color: #ffaa3c; }
.vsec-add:hover { background: rgba(0, 200, 255, .14); box-shadow: 0 8px 22px rgba(0, 200, 255, .2); }
.vsec-add#vsec-add-product:hover { background: rgba(255, 170, 60, .15); box-shadow: 0 8px 22px rgba(255, 170, 60, .2); }

@media (max-width: 860px) {
  .vsec-group-cards, .vsec-flat-grid { gap: 12px; }
  .vsec-group-cards > .vsec-card, .vsec-flat-grid > .vsec-card { flex-basis: 160px; width: 160px; }
  .vsec-cards { gap: 22px; margin-top: 24px; }
}
@media (max-width: 560px) {
  .vsec-group-cards > .vsec-card, .vsec-flat-grid > .vsec-card { flex-basis: 150px; width: 150px; }
  .vsec-card-actions button { font-size: 11px; padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .vsec-card { transition: none; }
  .vsec-card:hover { transform: none; }
}

/* =====================================================================
   13. 折叠分组 + 吸顶快捷导航（压缩详情页长度，点模块展开内容）
   ===================================================================== */
.pd-collapse { margin-bottom: 14px; scroll-margin-top: 132px; }

/* Tab 模式：折叠头不再使用，统一隐藏（切换完全由卡片导航完成） */
.pd-collapse-head { display: none !important; }

/* 折叠体：grid 0fr/1fr 平滑展开，内容始终保留在 DOM 中（利于 SEO） */
.pd-collapse-body {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1);
}
.pd-collapse-body.collapsed { grid-template-rows: 0fr; }
.pd-collapse-inner { overflow: hidden; min-height: 0; }
.pd-collapse-body.collapsed .pd-collapse-inner { visibility: hidden; }
.pd-collapse-body .pd-collapse-inner { transition: visibility .38s; }

/* 吸顶 Tab 卡片导航 */
.pd-quicknav {
  position: sticky; top: 0; z-index: 1100;
  padding: 12px 22px; margin-bottom: 20px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
}
.pd-quicknav-inner {
  display: flex; align-items: stretch; justify-content: center; gap: 12px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.pd-quicknav-inner::-webkit-scrollbar { display: none; }
/* 紧凑图标卡片（图标 + 标题，无描述，避免与卖点卡重复） */
.pd-qn-btn {
  flex: 1 1 0; max-width: 168px; min-width: 106px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 10px; font-family: inherit; font-size: 14px; font-weight: 800;
  color: var(--text-secondary); white-space: normal;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.pd-qn-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 23px; line-height: 1;
  background: rgba(0, 200, 255, .1); border: 1px solid var(--border-accent);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pd-qn-btn > span:last-child { text-align: center; line-height: 1.3; }
.pd-qn-btn:hover {
  color: var(--accent); border-color: var(--border-accent);
  transform: translateY(-4px); box-shadow: 0 16px 30px -16px var(--accent-glow);
}
/* 选中卡片：品牌色高亮 + 图标实心渐变 */
.pd-qn-btn.active, .pd-qn-btn.current {
  color: var(--accent); border-color: var(--accent);
  box-shadow: 0 14px 28px -14px var(--accent-glow);
}
.pd-qn-btn.active .pd-qn-ico, .pd-qn-btn.current .pd-qn-ico {
  color: #04101f; border-color: transparent;
  background: linear-gradient(135deg, #36d8ff, #00b6e8);
}

/* 编辑模式：折叠头隐藏、所有分组强制展开；导航保留且卡片文字可编辑 */
.wsd-collapse-edit .pd-collapse-body { grid-template-rows: 1fr !important; display: grid; }
.wsd-collapse-edit .pd-collapse-inner { overflow: visible; visibility: visible !important; }
.wsd-collapse-edit .pd-collapse { margin-bottom: 0; }
/* 编辑态导航：取消吸顶与阴影，静态铺在顶部，方便直接改卡片文字 */
.pd-quicknav.is-edit {
  position: static; top: auto; z-index: auto;
  box-shadow: none; border: 1px dashed var(--border-accent);
  background: var(--bg);
}
.pd-quicknav.is-edit .pd-qn-btn { cursor: default; }
.pd-qn-label { outline: none; border-radius: 6px; }
.wsd-collapse-edit .pd-qn-btn:hover { transform: none; }
/* 可编辑文字在编辑态给出淡淡的聚焦提示 */
.pd-qn-label[data-wsd-text]:hover { background: rgba(0, 200, 255, .1); }
.pd-qn-label[data-wsd-text]:focus { background: rgba(0, 200, 255, .14); box-shadow: 0 0 0 2px rgba(0, 200, 255, .35); }

@media (max-width: 860px) {
  .pd-quicknav { top: 0; padding: 10px 14px; }
  .pd-quicknav-inner { justify-content: flex-start; }
  .pd-qn-btn { flex: 0 0 auto; min-width: 108px; padding: 13px 9px; gap: 8px; border-radius: 14px; }
  .pd-qn-ico { width: 42px; height: 42px; font-size: 20px; }
  .pd-collapse { scroll-margin-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-collapse-body, .pd-collapse-inner, .pd-qn-btn { transition: none; }
  .pd-qn-btn:hover { transform: none; }
}
