/* =========================================
   产品详情子页面样式
   ========================================= */

/* 面包屑导航 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--border-dark);
}

/* 产品详情卡片 */
.product-detail-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scroll-margin-top: 90px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.product-detail-card:hover {
  box-shadow: var(--shadow);
}

.product-detail-header {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
}

@media (max-width: 900px) {
  .product-detail-header {
    grid-template-columns: 1fr;
  }
}

.product-detail-image {
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-right: 1px solid var(--border);
  padding: 24px;
}

@media (max-width: 900px) {
  .product-detail-image {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.product-detail-image img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.product-detail-image .img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

.product-detail-text {
  padding: 32px;
}

.product-detail-text .product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.product-detail-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.product-detail-text .product-subtitle {
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.product-detail-text .product-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-detail-text .product-highlights {
  list-style: none;
  padding: 0;
}

.product-detail-text .product-highlights li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}

.product-detail-text .product-highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.7rem;
  top: 6px;
}

/* 规格参数表格 */
.specs-section {
  padding: 0 32px 32px;
}

.specs-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  color: var(--text);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.specs-table th,
.specs-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  width: 35%;
  white-space: nowrap;
}

.specs-table td {
  color: var(--text-secondary);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

/* 应用领域 */
.application-section {
  padding: 0 32px 32px;
}

.application-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  color: var(--text);
}

.application-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-tags .app-tag {
  padding: 6px 16px;
  background: var(--surface-alt);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.application-tags .app-tag:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}

/* 功能特性 */
.features-section {
  padding: 0 32px 32px;
}

.features-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--success);
  display: inline-block;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* 分类标题 */
.category-intro {
  padding: 48px 0 24px;
}

.category-intro h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.category-intro p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.8;
}

/* 来源说明 */
.source-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 12px 20px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  border-left: 3px solid var(--primary);
}

.source-note a {
  color: var(--primary);
}

/* 返回按钮 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 24px;
  background: var(--primary-bg);
  margin-top: 32px;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.back-link:hover {
  background: var(--primary);
  color: #fff;
}

/* 占位说明区域 */
.placeholder-notice {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.placeholder-notice h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 16px;
}

.placeholder-notice p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.placeholder-notice .icon-large {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* 多产品比较表 */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.compare-table tbody th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.compare-table tbody td {
  color: var(--text-secondary);
  background: var(--surface);
}

.compare-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.06);
}

/* 响应式 */
@media (max-width: 768px) {
  .product-detail-text {
    padding: 20px;
  }

  .specs-section,
  .application-section,
  .features-section {
    padding: 0 20px 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-text h2 {
    font-size: 1.2rem;
  }
}
