/* ============================================================
   产品详情页 · 样式（清淡配色 + 深色模式）
   通过 [data-product-color] 自动注入产品品牌色
   ============================================================ */
.product-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 70% 90% at 80% 10%, color-mix(in srgb, var(--p) 12%, transparent), transparent),
    var(--bg);
}
.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.ph-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.ph-back:hover { color: var(--p); }
.ph-cat {
  display: inline-block;
  background: var(--p-soft);
  color: var(--p);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.product-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.product-hero .ph-tagline {
  font-size: 19px;
  color: var(--p);
  font-weight: 600;
  margin-bottom: 18px;
}
.product-hero .ph-desc {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 520px;
}
.ph-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 26px; }
.ph-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.ph-meta div { font-size: 13px; color: var(--text-mute); }
.ph-meta strong { display: block; color: var(--text); font-size: 15px; }

/* Hero 右侧：产品截图占位 */
.ph-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p-soft), var(--bg-elev));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.ph-mockup {
  position: absolute;
  inset: 20px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ph-mockup-bar {
  height: 34px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.ph-mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.ph-mockup-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ph-mockup-line { height: 12px; border-radius: 6px; background: var(--bg-soft); }
.ph-mockup-line.w60 { width: 60%; }
.ph-mockup-line.w80 { width: 80%; }
.ph-mockup-line.w40 { width: 40%; }
.ph-mockup-block {
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--p), var(--p-mid));
  opacity: 0.85;
  display: grid;
  place-items: center;
  font-size: 44px;
}

/* 特性网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--p-soft); }
.fc-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--p-soft);
  color: var(--p);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-soft); font-size: 14px; }

/* 亮点列表 */
.highlights-list { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.hl-num {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--p);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hl-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.hl-text p { color: var(--text-soft); font-size: 14px; }

/* 适用场景标签 */
.scene-tags { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scene-tag {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all var(--transition);
}
.scene-tag:hover { border-color: var(--p); color: var(--p); background: var(--p-soft); }

/* 详情页价格 */
.product-price-section .price-card { --p: var(--p); }
.product-price-section .price-card.featured { border-color: var(--p); }

/* 详情页案例 */
.product-cases .case-card { border-left: 4px solid var(--p); }

/* CTA 区块（详情页用产品色） */
.product-cta .cta-box {
  background: linear-gradient(135deg, var(--p), var(--p-mid));
}

@media (max-width: 900px) {
  .product-hero { padding: 48px 0 56px; }
  .product-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .product-hero h1 { font-size: 33px; }
  .ph-visual { max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   整合区块：SEO 关键词 / 亮点条 / 功能 Tabs + 截图预览
   ============================================================ */

/* SEO 关键词 */
.seo-keywords {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: center;
  margin-top: 4px;
}
.seo-title { color: var(--p); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.seo-title .fas { margin-right: 6px; }
.seo-keywords .keywords { font-size: 13.5px; color: var(--text-soft); }

/* 亮点条 */
.highlights {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.highlights .highlight-item {
  /* 复用列表样式，覆盖为横排胶囊 */
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.highlights .highlight-item .fas {
  color: var(--p);
  font-size: 17px;
  margin-right: 9px;
}

/* 功能 + 截图 左右布局 */
.demo-main {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.demo-main .feature-tabs { flex: 1; min-width: 0; }
.demo-main .screenshots { width: 46%; flex-shrink: 0; }

/* Tabs */
.tab-header {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.tab-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.tab-btn.active { background: var(--bg-elev); color: var(--p); border-bottom-color: var(--p); }
.tab-btn:hover { color: var(--p); background: var(--bg-elev); }
.tab-content {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 30px;
  min-height: 340px;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.feature-title {
  font-size: 17px;
  color: var(--p);
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--p-soft);
}
.tab-pane .feature-title:not(:first-child) { margin-top: 22px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 4px; }
.feature-item {
  margin-bottom: 13px;
  padding-left: 26px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.feature-item::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 11px;
  background: var(--p);
  border-radius: 50%;
  opacity: .8;
}
.feature-item strong { color: var(--p); font-weight: 600; }

/* 截图预览 */
.screenshot-container {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screenshot-display {
  height: 300px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.screenshot-display .placeholder-screen,
.preview-container .placeholder-screen {
  background: linear-gradient(135deg, var(--p-soft), var(--bg-soft));
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--p);
  padding: 20px;
  text-align: center;
  transition: all .3s ease;
}
.screenshot-display .placeholder-screen .fas,
.preview-container .placeholder-screen .fas {
  font-size: 46px;
  margin-bottom: 12px;
  color: var(--p);
}
.screenshot-display .placeholder-screen h3,
.preview-container .placeholder-screen h4 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.screenshot-display .placeholder-screen p,
.preview-container .placeholder-screen p { font-size: 13px; color: var(--text-mute); margin: 0; }
.screenshot-description {
  background: var(--bg-soft);
  padding: 14px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
#caption-text { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.preview-container { display: flex; flex-direction: column; align-items: center; }
.preview-caption {
  font-size: 12.5px;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
}
.thumb {
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: all .25s;
}
.thumb .fas { font-size: 20px; color: var(--p); opacity: .75; }
.thumb:hover { transform: translateY(-3px); border-color: var(--p); color: var(--p); }
.thumb.active { outline: 2px solid var(--p); background: var(--p-soft); color: var(--p); }
.thumb.active .fas { opacity: 1; }

/* 下载 CTA 内的图标间距 */
.cta-btn .fas { margin-right: 8px; }

@media (max-width: 900px) {
  .demo-main { flex-direction: column; }
  .demo-main .screenshots { width: 100%; order: -1; }
  .tab-content { min-height: auto; }
  .screenshot-display { height: 240px; }
  .screenshot-grid { grid-template-columns: repeat(3, 1fr); }
}
