/* 产品详情页样式 */

/* 页面标题区域 */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 180px 0 80px;
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #e94560;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* 产品详情主体 */
.product-detail {
  padding: 60px 0;
  background: #f8f9fa;
}

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 产品图片画廊 */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;        /* 占满 Grid 给的空间 */
  min-width: 0;  
}

.main-image {
  position: relative;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s;
}

.main-image:hover img {
  transform: scale(1.05);
}

.detail-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #e94560;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.image-zoom-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.main-image:hover .image-zoom-hint {
  opacity: 1;
}

.thumbnail-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex-wrap:nowrap;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  background: #f8f9fa;
  flex-shrink:0;
}

.thumb-item:hover {
  border-color: #e94560;
}

.thumb-item.active {
  border-color: #e94560;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 产品信息 */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.product-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 20px;
}

.product-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.product-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.product-tags {
  display: flex;
  gap: 10px;
}

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-new {
  background: #e94560;
  color: #fff;
}

.tag-feature {
  background: #e9ecef;
  color: #495057;
}

.product-desc-short {
  color: #495057;
  line-height: 1.7;
  font-size: 1rem;
}

.product-highlights h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 15px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #495057;
}

.highlight-item i {
  color: #e94560;
  font-size: 1.1rem;
}

.product-actions-detail {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #e94560;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #d63d56;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #e94560;
  border: 2px solid #e94560;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #e94560;
  color: #fff;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.9rem;
}

.meta-item i {
  color: #e94560;
}

/* 产品标签页 */
.product-tabs {
  padding: 60px 0;
  background: #fff;
}

.tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 16px 32px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #e94560;
}

.tab-btn.active {
  color: #e94560;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e94560;
}

.tabs-content {
  min-height: 400px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 产品概述 */
.overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.overview-text p {
  color: #495057;
  line-height: 1.8;
  margin-bottom: 20px;
}

.overview-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 30px 0 15px;
}

.scene-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.scene-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
}

.scene-list i {
  color: #28a745;
}

.overview-image {
  border-radius: 12px;
  overflow: hidden;
}

.overview-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 功能特性 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: #e94560;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 1.8rem;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 技术参数 */
.specs-section {
  margin-bottom: 40px;
}

.specs-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e94560;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #e9ecef;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 15px 20px;
  font-size: 0.95rem;
}

.specs-table td:first-child {
  width: 200px;
  color: #6c757d;
  font-weight: 500;
  background: #f8f9fa;
}

.specs-table td:last-child {
  color: #1a1a2e;
}

/* 资料下载 */
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s;
}

.download-item:hover {
  background: #e9ecef;
}

.download-icon {
  width: 50px;
  height: 50px;
  background: #e94560;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon i {
  font-size: 1.3rem;
  color: #fff;
}

.download-info {
  flex: 1;
}

.download-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.download-info p {
  font-size: 0.85rem;
  color: #6c757d;
}

.btn-download {
  padding: 10px 20px;
  background: #e94560;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.btn-download:hover {
  background: #d63d56;
}

/* 相关产品 */
.related-products {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.section-header p {
  color: #6c757d;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.related-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.related-image {
  position: relative;
  aspect-ratio: 1;
  background: #f8f9fa;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-image .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e94560;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.related-info {
  padding: 20px;
}

.related-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.related-info p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.btn-view {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  color: #e94560;
  border: 1px solid #e94560;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-view:hover {
  background: #e94560;
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .product-detail-wrapper {
    gap: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .product-detail-wrapper {
    grid-template-columns: 1fr;
  }
  
  .overview-content {
    grid-template-columns: 1fr;
  }
  
  .overview-image {
    order: -1;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .product-detail-wrapper {
    padding: 25px;
  }
  
  .product-name {
    font-size: 1.6rem;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .product-actions-detail {
    flex-direction: column;
  }
  
  .tabs-header {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .scene-list {
    grid-template-columns: 1fr;
  }
  
  .specs-table td:first-child {
    width: 140px;
  }
  
  .download-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}
