/* ========================================
   产品详情页 - Figma node 1:831
   ======================================== */

.product-back-wrap {
  padding-top: 24px;
  padding-bottom: 0;
  background: #f9fafb;
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--primary);
  text-decoration: none;
}

.product-back-icon {
  width: 16px;
  height: 16px;
}

.product-detail-section {
  padding: 48px 0 80px;
  background: #f9fafb;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-main-img {
  height: 400px;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.product-main-img:focus {
  outline: none;
}

.product-main-img:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.32s ease;
  pointer-events: none;
  will-change: opacity;
}

.product-main-img img.is-gallery-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .product-main-img img {
    transition: none;
    will-change: auto;
  }
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-thumb {
  height: 98px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-thumb:hover:not(.active) {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.product-thumb:active:not(:disabled) {
  transform: translateY(0);
}

.product-thumb:focus {
  outline: none;
}

.product-thumb:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.product-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(21, 93, 252, 0.15);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  user-select: none;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-title {
  font-size: 36px;
  font-weight: 700;
  color: #101828;
  line-height: 1.2;
}

/* 技术参数卡片 - 优化 */
.product-params {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.params-title {
  font-size: 18px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.params-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.params-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
}

.params-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.params-row:first-of-type {
  padding-top: 0;
}

.params-row dt {
  font-size: 15px;
  color: #6b7280;
  font-weight: 400;
  flex-shrink: 0;
}

.params-row dd {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
  text-align: right;
  padding-left: 16px;
}

.product-detail-content {
  margin-top: 0;
}

.detail-heading {
  font-size: 24px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 24px;
}

.detail-body {
  font-size: 16px;
  line-height: 1.625;
  color: #4a5565;
}

.detail-body p {
  margin-bottom: 16px;
}

.detail-body .detail-subheading {
  font-weight: 700;
  color: #101828;
  margin-top: 24px;
  margin-bottom: 8px;
}

.detail-body .detail-subheading:first-of-type {
  margin-top: 0;
}

@media (max-width: 900px) {
  .product-detail-section {
    padding: 32px 0 56px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .product-main-img {
    height: 300px;
  }

  .product-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .product-back-wrap {
    padding-top: 16px;
  }

  .product-back {
    font-size: 15px;
  }

  .product-detail-section {
    padding: 20px 0 48px;
  }

  .product-detail-grid {
    gap: 24px;
    margin-bottom: 32px;
  }

  .product-gallery {
    gap: 12px;
  }

  .product-main-img {
    height: 240px;
    border-radius: 8px;
  }

  .product-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .product-thumb {
    height: 76px;
  }

  .product-info {
    gap: 18px;
  }

  .product-title {
    font-size: 22px;
    line-height: 1.3;
  }

  .product-params {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .params-title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .params-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    padding: 10px 0;
  }

  .params-row dd {
    text-align: left;
    padding-left: 0;
    max-width: 100%;
    font-size: 14px;
    word-break: break-word;
  }

  .params-row dt {
    font-size: 13px;
  }

  .detail-heading {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .detail-body {
    font-size: 15px;
  }

  .detail-body p {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .product-main-img {
    height: 200px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-thumb {
    height: 68px;
  }

  .product-params {
    padding: 16px 12px;
  }
}
