/* SuperCue 产品详情页 v3 — 布局严格对齐参考页 bokongdashi/products/detail/86
   首屏：一个白色大卡片包住左右两栏；左=方形大图+缩略图(箭头在缩略图两侧)；
   右=标题 / 三按钮一行 / 简介 / 参数表格(就在首屏内)。
   下方：一个白色卡片包住四个内容 Tab。仅产品详情页引用。 */

/* ============ 顶部 header 中的产品名称（紧跟 logo） ============ */
.header-product-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #1f2430;
  white-space: nowrap;
  letter-spacing: .5px;
  text-align: center;
}
/* 产品页 logo 内联宽度 400px，中宽屏会压到居中的名称，统一收到 260px 与首页一致 */
@media (min-width: 769px) { .header .logogo .pic { width: 260px !important; } }
@media (max-width: 1024px) { .header-product-name { font-size: 19px; } }
@media (max-width: 768px)  { .header-product-name { font-size: 15px; } }
@media (max-width: 480px)  { .header-product-name { font-size: 13px; } }

/* ============ 面包屑 ============ */
.breadcrumb-nav { padding: 16px 0 12px; }
.breadcrumb-list { list-style: none; display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; font-size: 13px; color: #9a9eae; flex-wrap: wrap; }
.breadcrumb-list li:not(:last-child)::after { content: "›"; margin-left: 8px; color: #cfccd8; }
.breadcrumb-list a { color: #9a9eae; text-decoration: none; }
.breadcrumb-list a:hover { color: #7C3AED; }
.breadcrumb-list .current { color: #4a4a5a; }

/* ============ 首屏整块白卡片 ============ */
/* 覆盖 product-shared.css 的 min-height:100vh + 120px/100px padding，
   否则首屏被强制撑满视口，卡片下方出现大片留白 */
.hero {
  min-height: 0;
  display: block;
  padding: 16px 0 26px;
  background: transparent;
}

/* 修复：common.css 的 .bg-gradient/.bg-grid 为 position:fixed;z-index:0，
   .hero 有 z-index:1 故能显示，但后续板块为 static 会被固定背景层遮住成纯紫色空白。
   统一给主体板块提升层级，确保内容显示在背景之上。 */
.breadcrumb-nav, .tabs-card, .related-section, .action-section, .footer, .sc-pagebar {
  position: relative;
  z-index: 1;
}
/* 主体板块宽度与首页 .section / .section-inner 完全一致：
   内容宽 = min(1280px, 视口宽 - 2 * gutter)，居中；gutter 跟随首页断点 60/40/16px。 */
.breadcrumb-nav, .hero, .tabs-card, .related-section, .action-section {
  --sc-gutter: 60px;
  width: min(1280px, calc(100% - var(--sc-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.product-main-card {
  background: #fff;
  border: 1px solid #eceaf2;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(60, 40, 120, .06);
  padding: 30px;
}
.product-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ---- 左栏：图库 ---- */
.gallery-column { min-width: 0; }
.main-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #efedf4;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.main-image-box::after {
  content: "点击放大"; position: absolute; right: 12px; bottom: 12px;
  padding: 6px 14px; border-radius: 18px; background: rgba(17,12,30,.55);
  color: #fff; font-size: 12px; letter-spacing: .5px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 3;
}
.main-image-box:hover::after { opacity: 1; transform: translateY(0); }
.main-image-box img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: opacity .25s, transform .35s;
}
.thumb-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.thumb-arrow {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #e4e1ec; background: #fff; color: #9a9eae;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.thumb-arrow:hover { border-color: #7C3AED; color: #7C3AED; }
.thumb-track { display: flex; gap: 10px; flex: 1; justify-content: center; min-width: 0; overflow: hidden; }
.thumb {
  flex: 0 0 auto; width: 58px; height: 58px; padding: 4px; cursor: pointer;
  background: #fff; border: 2px solid transparent; border-radius: 6px;
  box-shadow: 0 0 0 1px #eceaf2 inset; overflow: hidden; transition: all .2s;
}
.thumb:hover { border-color: #b9a3ee; }
.thumb.active { border-color: #7C3AED; box-shadow: 0 0 0 1px #7C3AED inset; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---- 右栏：信息 ---- */
.info-column { min-width: 0; }
.product-title { font-size: 26px; line-height: 1.35; font-weight: 800; color: #1f2430; margin: 0 0 14px; }
.price-line { font-size: 14px; color: #e04040; font-weight: 700; margin: 0 0 16px; }
.price-line .lbl { color: #9a9eae; font-weight: 400; margin-right: 6px; }
.price-line .note { color: #b0b3c0; font-weight: 400; font-size: 12px; margin-left: 8px; }

.buy-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 6px; border: 1px solid #e4e1ec; border-radius: 8px;
  background: #fff; color: #4a4a5a; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: all .2s;
}
.buy-btn:hover { border-color: #7C3AED; color: #7C3AED; background: #faf8ff; }
.buy-btn .bico { width: 15px; height: 15px; border-radius: 50%; flex: 0 0 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; font-weight: 700; }
.buy-btn .bico.tb { background: #ff7a1a; }
.buy-btn .bico.jd { background: #e1251b; }
.buy-btn .bico.cs { background: #7C3AED; }

.product-intro { font-size: 13px; line-height: 1.8; color: #7b7f93; margin: 0 0 22px; }
.spec-title { font-size: 16px; font-weight: 800; color: #1f2430; margin: 0 0 12px; }
.spec-table { border: 1px solid #eceaf2; border-radius: 8px; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-td {
  padding: 9px 14px; min-height: 66px;
  display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid #f1eff6; border-right: 1px solid #f1eff6;
}
.spec-row:last-child .spec-td { border-bottom: none; }
.spec-td:nth-child(3n) { border-right: none; }
.spec-td .k { display: block; font-size: 12.5px; color: #9a9eae; margin-bottom: 6px; line-height: 1.3; }
.spec-td .v { display: block; font-size: 14px; line-height: 1.45; font-weight: 700; color: #2a2f3d; word-break: break-word; }

/* ============ 内容 Tab（整块白卡片） ============ */
.tabs-card {
  background: #fff; border: 1px solid #eceaf2; border-radius: 16px;
  box-shadow: 0 8px 30px rgba(60, 40, 120, .06);
  padding: 0 30px 30px; margin-bottom: 26px;
}
.tab-bar { display: flex; border-bottom: 2px solid #efedf4; margin-bottom: 24px; }
.tab-btn {
  flex: 1; padding: 17px 8px; border: none; background: transparent;
  font-size: 15px; font-weight: 700; color: #9a9eae; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.tab-btn:hover { color: #7C3AED; }
.tab-btn.active { color: #7C3AED; border-bottom-color: #7C3AED; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.detail-images { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 100%; margin: 0 auto; padding: 0; box-sizing: border-box; }
.detail-images img { width: 100%; height: auto; display: block; border-radius: 8px; }
.doc-list, .download-empty, .video-empty { max-width: 720px; margin: 0 auto; }
.doc-card {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg,#fbfaff,#f6f3ff); border: 1px solid #e8e2f5; border-left: 4px solid #7C3AED; border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
  transition: transform .18s, box-shadow .18s;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(107,70,193,.10); }
.doc-icon {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#7C3AED,#5B21B6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px rgba(124,58,237,.25);
}
.doc-meta { flex: 1; min-width: 0; }
.doc-title { font-size: 16px; font-weight: 700; color: #1f2430; }
.doc-desc { font-size: 12px; color: #8a8fa3; margin-top: 6px; }
.doc-dl { display:inline-flex; align-items:center; gap:6px; padding: 10px 20px; border-radius: 8px; background: linear-gradient(135deg,#7C3AED,#5B21B6); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow:0 4px 12px rgba(124,58,237,.22); transition: transform .18s, box-shadow .18s; }
.doc-dl::after { content:'↓'; font-size:16px; line-height:1; font-weight:400; }
.doc-dl:hover { transform: translateY(-2px); box-shadow:0 6px 18px rgba(124,58,237,.32); }
.empty-note { text-align: center; padding: 50px 20px; color: #9a9eae; font-size: 15px; }
.doc-note { text-align: center; margin: 0 0 18px; color: #6B7280; font-size: 14px; line-height: 1.7; }

/* ---- 资料下载 / 相关视频 卡片 ---- */
.res-card {
  display: flex; align-items: center; gap: 16px;
  background: #faf9fd; border: 1px solid #eceaf2; border-radius: 10px;
  padding: 18px 22px; margin-bottom: 12px;
}
.res-icon {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg,#7C3AED,#5B21B6);
}
.res-icon.video { background: linear-gradient(135deg,#e11d48,#be123c); }
.res-meta { flex: 1; min-width: 0; }
.res-title { font-size: 15px; font-weight: 700; color: #1f2430; }
.res-desc { font-size: 12px; color: #9a9eae; margin-top: 4px; line-height: 1.6; }
.res-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding: 10px 20px; border-radius: 8px; background: linear-gradient(135deg,#7C3AED,#5B21B6); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124,58,237,.22);
  transition: transform .18s, box-shadow .18s;
}
.res-btn::after { content:'↓'; font-size:16px; line-height:1; font-weight:400; }
.res-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(124,58,237,.32); }

/* ---- 视频播放组件（点击播放，视频源由 data-video 提供） ---- */
.video-gallery { max-width: 860px; margin: 0 auto; }
.video-player-card {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  background: #1a1a2e; cursor: pointer; box-shadow: 0 10px 30px rgba(20,15,50,.18);
}
.video-player-card video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-play-btn {
  position: absolute; width: 78px; height: 78px; border-radius: 50%; border: none;
  background: linear-gradient(135deg,#7C3AED,#5B21B6); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 30px; padding-left: 6px;
  box-shadow: 0 6px 24px rgba(124,58,237,.5); transition: transform .2s;
}
.video-player-card:hover .video-play-btn { transform: scale(1.1); }
.video-cover-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.video-note { font-size: 13px; color: #8a8fa3; text-align: center; margin-top: 14px; line-height: 1.7; }
/* 多视频列表：主播放器下方的一排视频条目 */
.video-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.video-item {
  flex: 0 0 150px; max-width: 150px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  background: #faf9fd; overflow: hidden; cursor: pointer; text-align: left;
  transition: border-color .18s, transform .18s;
}
.video-item:hover { transform: translateY(-2px); }
.video-item.active { border-color: #7C3AED; }
.video-item .vi-thumb { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eceaf2; }
.video-item .vi-title { display: block; padding: 8px 10px; font-size: 12px; color: #4a4a5a; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-item.active .vi-title { color: #7C3AED; font-weight: 700; }
@media (max-width: 640px) {
  .video-item { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); }
}
.video-guide {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg,#faf8ff,#f3efff);
  border: 1px solid #e9e2f8; border-radius: 12px; padding: 22px;
}
.video-guide-qr {
  flex: 0 0 128px; width: 128px; height: 128px; border-radius: 10px;
  background: #fff; border: 1px solid #e4e1ec; padding: 8px; box-sizing: border-box;
}
.video-guide-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-guide-text h4 { font-size: 16px; color: #1f2430; margin: 0 0 8px; }
.video-guide-text p { font-size: 13px; color: #7b7f93; line-height: 1.8; margin: 0 0 12px; }
.video-guide-text a { color: #7C3AED; font-weight: 700; text-decoration: none; font-size: 13px; }
@media (max-width: 640px) {
  .video-guide { flex-direction: column; text-align: center; }
  .res-card { flex-wrap: wrap; }
}

/* ============ 相关产品 ============ */
.related-section { padding: 6px 0 30px; }
.related-section .section-header { text-align: left; margin-bottom: 18px; }
.related-section .section-header h2 { font-size: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.related-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #eceaf2; border-radius: 12px; overflow: hidden;
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(107,70,193,.12); }
.related-card .thumb-wrap { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; }
.related-card .thumb-wrap img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.related-card .body { padding: 14px 16px 18px; }
.related-card h4 { font-size: 15px; color: #1f2430; margin: 0 0 8px; }
.related-card p { font-size: 12px; line-height: 1.7; color: #9a9eae; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card .rp { font-size: 16px; font-weight: 800; color: #e04040; }

/* ============ 行动区 ============ */
.action-section { padding: 10px 0 50px; text-align: center; }
.action-section .cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 40px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(135deg,#7C3AED,#5B21B6); color: #fff;
  font-size: 16px; font-weight: 800; box-shadow: 0 10px 26px rgba(124,58,237,.22);
}

/* ============ 灯箱 ============ */
.gallery-modal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.gallery-modal.active { display: flex; }
.gallery-modal img { max-width: 90%; max-height: 88%; object-fit: contain; border-radius: 8px; cursor: zoom-out; }
.gallery-modal-close {
  position: absolute; top: 18px; right: 28px; font-size: 42px; color: #fff;
  cursor: pointer; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .product-main-card, .tabs-card { padding: 20px; }
  .product-main-grid { grid-template-columns: 1fr; gap: 26px; }
  .product-title { font-size: 23px; }
  .breadcrumb-nav, .hero, .tabs-card, .related-section, .action-section { --sc-gutter: 40px; }
}
@media (max-width: 768px) {
  .breadcrumb-nav, .hero, .tabs-card, .related-section, .action-section { --sc-gutter: 16px; }
}
@media (max-width: 640px) {
  .product-main-card, .tabs-card { padding: 14px; border-radius: 12px; }
  .thumb { width: 48px; height: 48px; }
  .buy-buttons { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-td:nth-child(3n) { border-right: 1px solid #f1eff6; }
  .spec-td:nth-child(2n) { border-right: none; }
  .tab-btn { padding: 13px 4px; font-size: 12px; }
  .product-title { font-size: 20px; }
}

/* 超级演说家核心特性介绍 */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.feature-card{background:#fff;border:1px solid #ece9f5;border-radius:12px;padding:18px 20px;transition:transform .2s,box-shadow .2s}
.feature-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(107,70,193,.1)}
.feature-card h3{font-size:16px;font-weight:800;color:#2d2a3c;margin:0 0 8px;line-height:1.5}
.feature-card p{font-size:13.5px;color:#6f7282;line-height:1.7;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:640px){.feature-grid{grid-template-columns:1fr}}
