/* Product Detail Page Styles */

/* Page Banner - Reuse from products.css */
.page-banner {
  position: relative;
  height: 330px;
  /* 背景图片改为在 HTML 中通过 inline style 设置 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.banner-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.banner-underline {
  width: 64px;
  height: 6px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-section {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
}

.breadcrumb-link {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-gray);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

/* Product Detail Section */
.product-detail-section {
  padding: 48px 0;
  background-color: var(--white);
}

/* Main Product Info */
.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

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

.product-image-main {
  position: relative;
  width: 100%;
  height: 455px;
  background-color: var(--bg-light);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.download-btn:hover {
  background-color: #B52E25;
  transform: scale(1.1);
}

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

.thumbnail {
  width: 100%;
  height: 100px;
  background-color: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  border-color: var(--primary-color);
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.spec-label {
  font-weight: 700;
  color: #364153;
  min-width: 160px;
}

.spec-value {
  color: #364153;
}

.download-all-btn {
  margin-top: auto;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 32px;
}

/* Product Recommendation */
.product-recommendation {
  margin-bottom: 64px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recommendation-item {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.recommendation-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.recommendation-image {
  width: 100%;
  height: 208px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommendation-item:hover .recommendation-image img {
  transform: scale(1.05);
}

.recommendation-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommendation-title {
  font-size: 16px;
  font-weight: 700;
  color: #101828;
  line-height: 1.5;
}

.recommendation-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Product Details */
.product-details {
  margin-bottom: 48px;
}

.details-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.details-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-title {
  font-size: 16px;
  color: #364153;
  line-height: 1.6;
}

.details-specs p,
.details-specs-extended p {
  font-size: 16px;
  color: #364153;
  line-height: 1.6;
  margin-bottom: 8px;
}

.details-specs strong,
.details-specs-extended strong {
  font-weight: 700;
}

.details-image {
  position: relative;
  width: 100%;
  max-width: 672px;
  height: 569px;
  background-color: var(--bg-light);
  border-radius: 4px;
  padding: 32px;
  margin: 0 auto;
}

.details-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-btn-small {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-btn-small:hover {
  background-color: #B52E25;
  transform: scale(1.1);
}

/* Specifications Table */
.specs-table {
  margin: 32px 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  text-align: left;
  width: 44%;
}

.specs-table td {
  background-color: var(--white);
  color: #0a0a0a;
  font-size: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
}

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

/* Product Gallery */
.product-gallery {
  margin-top: 48px;
}

.gallery-title {
  font-size: 20px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 24px;
}

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

.gallery-item {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 200px;
  }

  .banner-title {
    font-size: 24px;
  }

  .banner-underline {
    width: 48px;
    height: 4px;
  }

  .breadcrumb-section {
    padding: 16px 0;
  }

  .breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
  }

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

  .product-main {
    gap: 24px;
    margin-bottom: 48px;
  }

  .product-image-main {
    height: 300px;
    padding: 16px;
  }

  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .thumbnail {
    height: 70px;
  }

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

  .spec-item {
    flex-direction: column;
    gap: 4px;
  }

  .spec-label {
    min-width: auto;
  }

  .section-subtitle {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .recommendation-image {
    height: 180px;
  }

  .details-image {
    height: 400px;
    padding: 16px;
  }

  .specs-table th,
  .specs-table td {
    font-size: 14px;
    padding: 10px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item {
    height: 180px;
  }

  .download-btn {
    width: 40px;
    height: 40px;
  }

  .download-btn svg {
    width: 16px;
    height: 16px;
  }

  .download-btn-small {
    width: 32px;
    height: 32px;
  }

  .download-btn-small svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .product-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumbnail {
    height: 80px;
  }
}
