/* ==========================================================================
   工业产品详情页专属样式 (Product Detail Page Stylesheet)
   严格适配 industrial-materials 主题的原生视觉系统与设计规范
   ========================================================================== */

/* 主容器间距 */
.product-detail-section {
  padding: 50px 0 80px;
  background-color: var(--bg-light, #f8fafc);
}

/* 顶部两列产品英雄区 */
.product-detail-hero {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .product-detail-hero {
    grid-template-columns: 420px 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ==========================================================================
   左侧：产品画廊交互系统 (1:1 主图框 + 6张长方形缩略图)
   ========================================================================== */
.product-gallery-sticky {
  position: sticky;
  top: 90px;
  width: 100%;
}

/* 1:1 正方形主展示框 */
.product-main-view {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-view img,
.product-main-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease, transform 0.4s ease;
}

.product-main-view:hover img {
  transform: scale(1.03);
}

/* 主图左上角悬浮角标 */
.product-main-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(6px);
  color: var(--accent-amber, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 5;
  pointer-events: none;
}

/* 左右箭头切换控件 */
.pg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 50%;
  color: var(--primary-dark, #0b132b);
  font-size: 20px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  z-index: 6;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-nav-btn:hover {
  background: #ffffff;
  color: var(--accent-amber, #f59e0b);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transform: translateY(-50%) scale(1.08);
}

.pg-nav-prev { left: 12px; }
.pg-nav-next { right: 12px; }

/* 左下：六张长方形缩略图 */
.product-thumbs-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .product-thumbs-strip {
    gap: 6px;
  }
}

.product-thumb-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 2px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-slot:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* 选中的长方形缩略图高亮边框（主题琥珀橙） */
.product-thumb-slot.is-active {
  border-color: var(--accent-amber, #f59e0b) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

/* 视频标记 */
.thumb-video-icon {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  transition: background 0.2s;
}

.product-thumb-slot:hover .thumb-video-icon {
  background: rgba(245, 158, 11, 0.75);
}

/* ==========================================================================
   右侧：产品核心信息、规格参数与询价系统
   ========================================================================== */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.product-cat-pill:hover {
  background: var(--accent-amber, #f59e0b);
  color: #ffffff;
}

.product-model-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: var(--primary-dark, #0b132b);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-light, #e2e8f0);
}

/* 标题 */
.product-heading-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-dark, #0b132b);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.3px;
}

@media (max-width: 600px) {
  .product-heading-title {
    font-size: 24px;
  }
}

.product-heading-en {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: -12px;
}

/* 摘要简介 */
.product-summary-box {
  background: #ffffff;
  border-radius: var(--radius-sm, 6px);
  border-left: 4px solid var(--accent-amber, #f59e0b);
  padding: 16px 20px;
  font-size: 14px;
  color: #334155;
  line-height: 1.75;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  border-top: 1px solid var(--border-light, #e2e8f0);
  border-right: 1px solid var(--border-light, #e2e8f0);
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}

/* 规格参数卡片 (右下) */
.product-specs-container {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  overflow: hidden;
}

.specs-card-header {
  background: linear-gradient(135deg, #070d1d 0%, #0b132b 100%);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.specs-card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.specs-card-tag {
  font-size: 12px;
  color: var(--accent-amber, #f59e0b);
  background: rgba(245, 158, 11, 0.18);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.specs-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-data-table tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s;
}

.specs-data-table tr:last-child {
  border-bottom: none;
}

.specs-data-table tr:nth-child(even) {
  background-color: #fafbfc;
}

.specs-data-table tr:hover {
  background-color: #f1f5f9;
}

.spec-key {
  padding: 11px 20px;
  width: 32%;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  vertical-align: middle;
}

.spec-val {
  padding: 11px 20px;
  color: var(--primary-dark, #0b132b);
  font-weight: 700;
  vertical-align: middle;
}

/* 询价与技术对接按钮区 */
.product-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.product-inquiry-primary-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #e28743 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm, 6px);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.product-inquiry-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
}

.product-inquiry-primary-btn svg {
  flex-shrink: 0;
}

.product-inquiry-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .product-inquiry-secondary-row {
    grid-template-columns: 1fr;
  }
}

.secondary-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  color: var(--primary-dark, #0b132b);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
}

.secondary-contact-link:hover {
  border-color: var(--accent-amber, #f59e0b);
  color: var(--accent-amber, #f59e0b);
  transform: translateY(-1px);
}

/* 厂家服务承诺条 */
.product-trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light, #e2e8f0);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.trust-item svg {
  color: #059669;
  flex-shrink: 0;
}

/* ==========================================================================
   相似产品推荐 (4 列卡片流)
   ========================================================================== */
.detail-section-block {
  margin-top: 60px;
}

.detail-section-header {
  margin-bottom: 28px;
  position: relative;
}

.detail-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark, #0b132b);
  padding-bottom: 12px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-section-title .en-sub {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-amber, #f59e0b), var(--accent-orange, #e28743));
  border-radius: 2px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

.related-card-item {
  background: #ffffff;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-light, #e2e8f0);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  transition: var(--transition, all 0.3s ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.related-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg, 0 16px 36px rgba(0,0,0,0.12));
  border-color: #cbd5e1;
}

.related-card-img {
  position: relative;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card-item:hover .related-card-img img {
  transform: scale(1.06);
}

.related-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark, #0b132b);
  line-height: 1.45;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-model {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}

.related-card-action {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.related-card-item:hover .related-card-action {
  color: var(--accent-amber, #f59e0b);
  gap: 8px;
}

/* ==========================================================================
   下部详情多选项卡系统 (Tabs)
   ========================================================================== */
.product-tabs-wrapper {
  margin-top: 60px;
  background: #ffffff;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.05));
  overflow: hidden;
}

.product-tabs-nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  padding: 0 20px;
  overflow-x: auto;
  gap: 8px;
}

.tab-nav-trigger {
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-nav-trigger:hover {
  color: var(--primary-dark, #0b132b);
}

.tab-nav-trigger.is-active {
  color: var(--primary-dark, #0b132b);
}

.tab-nav-trigger.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--accent-amber, #f59e0b);
  border-radius: 2px 2px 0 0;
}

.product-tab-pane {
  display: none;
  padding: 36px 32px;
}

.product-tab-pane.is-active {
  display: block;
  animation: fadeInPane 0.25s ease;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: 正文排版 */
.tab-content-typography {
  font-size: 15px;
  color: #334155;
  line-height: 1.85;
}

.tab-content-typography p {
  margin-bottom: 18px;
}

.tab-content-typography h2,
.tab-content-typography h3 {
  color: var(--primary-dark, #0b132b);
  font-weight: 700;
  margin: 28px 0 14px;
}

.tab-content-typography ul,
.tab-content-typography ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.tab-content-typography li {
  margin-bottom: 8px;
  list-style: disc;
}

/* 核心技术图示与卡片 */
.tech-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

@media (max-width: 800px) {
  .tech-features-row {
    grid-template-columns: 1fr;
  }
}

.tech-feature-card {
  background: #f8fafc;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 22px;
}

.tech-feature-card h4 {
  font-size: 16px;
  color: var(--primary-dark, #0b132b);
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-feature-card p {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.6;
  margin: 0;
}

/* 工艺流程步骤条 */
.process-steps-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 28px 0;
}

@media (max-width: 768px) {
  .process-steps-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step-node {
  background: #f8fafc;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 14px 10px;
  text-align: center;
}

.process-step-num {
  font-size: 11px;
  color: var(--accent-amber, #f59e0b);
  font-weight: 700;
  margin-bottom: 4px;
}

.process-step-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark, #0b132b);
}

/* Tab 2: 对比表格 */
.comparison-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.comparison-data-table th,
.comparison-data-table td {
  padding: 14px 18px;
  border: 1px solid var(--border-light, #e2e8f0);
  text-align: left;
}

.comparison-data-table th {
  background: #0b132b;
  color: #ffffff;
  font-weight: 700;
}

.comparison-data-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* Tab 3: FAQ 手风琴 */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-qa-item {
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  background: #ffffff;
}

.faq-q-btn {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark, #0b132b);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-q-btn:hover {
  background: #f8fafc;
}

.faq-q-btn.is-open {
  background: #f8fafc;
  color: #b45309;
}

.faq-toggle-icon {
  font-size: 18px;
  color: var(--accent-amber, #f59e0b);
  transition: transform 0.25s;
}

.faq-q-btn.is-open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-a-body {
  display: none;
  padding: 16px 20px 20px;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
  border-top: 1px solid var(--border-light, #e2e8f0);
  background: #fafbfc;
}

.faq-a-body.is-open {
  display: block;
}
