@import "../../common/base/index.css";
@import "../../common/layout/index.css";
@import "../../common/header/index.css";
@import "../../common/footer/index.css";
/* 导入表单样式 */
@import "../../common/dynamicForm/defaultForm.css";
/* 产品详情页面样式 */
.product-detail-section {
  min-height: 80vh;
}

/* 面包屑导航 */
.breadcrumb-list a:hover {
  color: #f97316;
}
.breadcrumb-list a:nth-last-of-type(1):hover {
  color: unset;
}

/* 产品图片区域样式 */
.product-images {
  height: fit-content;
}

.main-image {
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.main-image:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.thumbnail-images {
  cursor: pointer;
}

.thumbnail {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
  transition: background 0.3s ease;
}
.thumbnail:hover {
  border-color: #f97316;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.thumbnail.active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

/* 产品信息样式 */
.product-info h1 {
  line-height: 1.2;
  color: #111827;
}

.sku {
  font-size: 1.125rem;
  color: #6b7280;
}

.description {
  font-size: 1.125rem;
  line-height: 1.7;
}

.features ul {
  list-style: none;
}

.features li {
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.features li:hover {
  transform: translateX(8px);
  color: #111827;
}

.features i {
}

/* 行动按钮样式 */
.action-buttons .btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-buttons .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
  );
  transition: left 0.5s ease;
}

.action-buttons .btn-primary:hover::before {
  left: 100%;
}

.action-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 标签页样式 */
.product-tabs-section {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.tabs-navigation {
  border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tab-btn:hover {
  color: #111827;
}

.tab-btn.active {
  color: #111827;
  border-bottom-color: #111827;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #111827;
}

/* 标签页内容样式 */
.tab-content {
  min-height: 400px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 产品规格表格样式 */
.product-specs h3 {
  color: #111827;
  margin-bottom: 1.5rem;
}

.specs-table {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spec-row {
  transition: all 0.3s ease;
}

.spec-row:hover {
  background-color: #f9fafb;
}

.spec-label {
  font-weight: 600;
  color: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.spec-value {
  color: #374151;
}

/* 使用说明样式 */
.usage-instructions h3 {
  color: #111827;
  margin-bottom: 1.5rem;
}

.step h4 {
  color: #111827;
  margin-bottom: 0.75rem;
}

.step p {
  color: #6b7280;
  line-height: 1.6;
}

.storage h4 {
  color: #111827;
  margin-bottom: 0.75rem;
}

.storage p {
  color: #6b7280;
  line-height: 1.6;
}

/* 相关产品样式 */
.related-products-section {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.related-products-section h2 {
  color: #111827;
}

.related-products-carousel {
  position: relative;
  padding: 0 4rem;
}

.related-products-carousel .carousel-arrow {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.related-products-carousel .carousel-arrow.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.related-products-carousel .carousel-arrow.disabled:hover {
  transform: none;
  box-shadow: none;
}

.related-products-carousel .carousel-arrow:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


/* 产品卡片样式 */
.products-grid {
  gap: 2rem;
}

.product-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-info .btn-primary {
  transition: all 0.3s ease;
  font-weight: 600;
}

.product-info .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .product-images {
    position: static;
    margin-bottom: 2rem;
  }


  .related-products-carousel {
    padding: 0 3rem;
  }
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 3rem 0;
  }

  .main-image {
    height: 300px;
  }

  .thumbnail-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .thumbnail {
    height: 80px;
  }

  .product-info h1 {
    font-size: 2rem;
  }

  .tabs-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .product-tabs-section .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .related-products-carousel {
    padding: 0 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .carousel-arrow i {
    font-size: 0.875rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-detail-section {
    padding: 2rem 0;
  }

  .main-image {
    height: 250px;
  }

  .thumbnail {
    height: 60px;
  }

  .product-info h1 {
    font-size: 1.75rem;
  }

  .description {
    font-size: 1rem;
  }

  .features li {
    font-size: 0.875rem;
  }

  .action-buttons .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .tabs-navigation {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-btn {
    text-align: center;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 1rem;
  }

  .tab-btn.active {
    border-left-color: #111827;
    border-bottom: none;
  }

  .product-tabs-section {
    padding: 2rem 0;
  }

  .related-products-carousel {
    padding: 0 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .carousel-arrow {
    width: 2rem;
    height: 2rem;
  }

  .carousel-arrow i {
    font-size: 0.75rem;
  }

  .cta-section {
    padding: 2rem 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .cta-section .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-images {
  animation: slideInUp 0.8s ease-out;
}

.product-info {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.product-specs {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.usage-instructions {
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.product-card {
  animation: slideInUp 0.6s ease-out;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.2s;
}

.product-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* 加载状态 */
.products-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

.products-grid.loading::after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.125rem;
  color: #6b7280;
}

/* 空状态 */
.products-grid.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.products-grid.empty::before {
  content: "📦";
  font-size: 4rem;
  margin-bottom: 1rem;
}

.products-grid.empty::after {
  content: "No related products found";
  font-size: 1.125rem;
  color: #6b7280;
}
