/* Product Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  overflow: hidden;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb a:hover {
  color: #526CAC;
}

.breadcrumb span {
  color: #999;
  flex-shrink: 0;
}

/* 产品名称省略号 */
.breadcrumb-container span:last-child {
  color: #212529;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

/* Product Detail Section */
.product-detail-section {
  padding: 3rem 0;
  background: #fff;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Product Images */
.product-images {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.main-image {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.main-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
}

.image-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.thumbnail {
  width: 120px;
  height: 120px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.thumbnail:hover {
  border-color: #526CAC;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
  border-color: #526CAC;
  background: #e8ecf5;
}

.thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: contain;
}

.thumbnail-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

/* Product Info Section */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-category-badge {
  display: inline-block;
  background: #526CAC;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
  line-height: 1.3;
}

.product-meta-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.meta-label {
  font-weight: 600;
  color: #666;
  min-width: 100px;
}

.meta-value {
  color: #212529;
}

/* Product Tabs */
.product-tabs {
  margin-top: 1rem;
}

.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: #526CAC;
}

.tab-btn.active {
  color: #526CAC;
  border-bottom-color: #526CAC;
}

.tabs-content {
  min-height: 200px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spec-content,
.features-content {
  line-height: 1.8;
  color: #495057;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.no-data {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* Packaging Grid */
.packaging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.packaging-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #526CAC;
}

.packaging-label {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.packaging-value {
  font-size: 1.125rem;
  color: #212529;
  font-weight: 700;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  flex: 1;
}

.btn-primary {
  background: #526CAC;
  color: white;
}

.btn-primary:hover {
  background: #3f5889;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(82, 108, 172, 0.3);
}

.btn-secondary {
  background: #fff;
  color: #526CAC;
  border: 2px solid #526CAC;
}

.btn-secondary:hover {
  background: #526CAC;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(82, 108, 172, 0.2);
}

/* Responsive Design */
@media (max-width: 968px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-images {
    position: static;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .packaging-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .breadcrumb-container {
    font-size: 0.8rem;
  }

  .product-detail-section {
    padding: 1.5rem 0;
  }

  .main-image {
    padding: 1rem;
    min-height: 250px;
  }

  .thumbnail {
    width: 90px;
    height: 90px;
  }

  .thumbnail img {
    height: 60px;
  }
}

