@import "../../common/base/index.css";
@import "../../common/layout/index.css";
@import "../../common/header/index.css";
@import "../../common/footer/index.css";

/* 产品列表页面样式 */
.products-section {
  min-height: 80vh;
}

/* 产品侧边栏样式 */
.product-sidebar {
  height: fit-content;
}

.product-sidebar .bg-gray-100 {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}
a.category-header.active,
.category-group .category-header.active a {
  color: #f97316;
  transform: translateX(8px);
  font-weight: 500;
}

.category-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-header {
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}
.category-header.active {
  color: #f97316;
}
.category-header:hover {
  color: #f97316;
}

.category-header i {
  transition: transform 0.3s ease;
}

.category-header.expanded i {
  transform: rotate(180deg);
}

.subcategories {
  /* transition: all 0.3s ease; */
}

.subcategories.hidden {
  display: none;
}

.subcategory-item {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
}

.subcategory-item:hover {
  transform: translateX(4px);
  color: #f97316;
}

.subcategory-item.active {
  color: #f97316;
  font-weight: 500;
}
.category-group .category-header.active a::before,
a.category-header.active::before,
.subcategory-item.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: #f97316;
  border-radius: 50%;
}

/* 产品网格样式 */
.products-grid {

}

.product-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1;
}

.product-image img {
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  background: white;
}

.product-title {
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分页样式 */
.pagination {
  margin-top: 2rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover {
  background-color: #f3f4f6;
}

.pagination-numbers {
  display: flex;
  align-items: center;
}

.pagination-number {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  transform: scale(1.1);
}

.pagination-number.active {
  background-color: #000;
  color: white;
}

/* 产品材料展示盒子样式 */
.product-materials-section {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  position: relative;
  overflow: hidden;
}

.product-materials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/static/image/bg/pattern-bg.png") center/cover;
  opacity: 0.05;
  z-index: 0;
}

.product-materials-section .container {
  position: relative;
  z-index: 1;
}

/* 材料表格样式 */
.materials-table {
  /* 基础样式 */
}

.materials-table .bg-gray-800 {
  background: #374151;
}

.materials-table h3 {
  position: relative;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

.materials-table h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #f97316;
}

.materials-table .materials-table-item_list > div {
  padding: 1rem 0.75rem;
}

.materials-table .bg-gray-700 {
  background: #4b5563;
}

.materials-table .bg-gray-800 {
  background: #374151;
}

/* 推广内容样式 */
.promotional-content {
  min-height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.promotional-content .absolute {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.promotional-content h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.promotional-content p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 行动按钮样式 */
.promotional-content button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-color: rgb(55 65 81);
  color: #fff;
}
.promotional-content button.active {
  background-color: #fff;
  color: #000;
}

.promotional-content button::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;
}

.promotional-content button:hover::before {
  left: 100%;
}

.promotional-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 联系链接样式 */
.promotional-content a {
  position: relative;
  transition: all 0.3s ease;
}

.promotional-content a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  transition: width 0.3s ease;
}

.promotional-content a:hover::after {
  width: 100%;
}

.promotional-content a:hover {
  transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .product-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-materials-section .grid {
    gap: 2rem;
  }

  .materials-table .grid {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: 2rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    margin-bottom: 1rem;
  }

  .product-image {
    height: 200px;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-numbers {
    order: 2;
  }

  .pagination-btn.prev-btn {
    order: 1;
  }

  .pagination-btn.next-btn {
    order: 3;
  }

  /* 材料展示盒子移动端样式 */
  .product-materials-section {
    padding: 3rem 0;
  }

  .product-materials-section .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .materials-table .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .materials-table .bg-gray-800 {
    padding: 1.5rem;
  }

  .promotional-content {
    min-height: 400px;
  }

  .promotional-content .relative {
    padding: 1.5rem;
  }

  .promotional-content h2 {
    font-size: 2rem;
  }

  .promotional-content .flex {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .product-sidebar .bg-gray-100 {
    padding: 1rem;
  }

  .category-header {
    padding: 0.75rem 0;
  }

  .subcategory-item {
    padding: 0.75rem 0;
  }

  /* 材料展示盒子小屏幕样式 */
  .materials-table .bg-gray-800 {
    padding: 1rem;
  }

  .materials-table h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .materials-table .space-y-3 > div {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .promotional-content .relative {
    padding: 1rem;
  }

  .promotional-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .promotional-content button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 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;
}
.product-card:nth-child(5) {
  animation-delay: 0.5s;
}
.product-card:nth-child(6) {
  animation-delay: 0.6s;
}
.product-card:nth-child(7) {
  animation-delay: 0.7s;
}
.product-card:nth-child(8) {
  animation-delay: 0.8s;
}
.product-card:nth-child(9) {
  animation-delay: 0.9s;
}

/* 加载状态 */
.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;
}

/* Customize Steps 轮播图样式 */
.customize-steps-section {
  position: relative;
}

.customize-steps-carousel {
  margin: 0 auto;
  padding: 0 4rem;
}

.customize-steps-container {
  position: relative;
}

.customize-steps-wrapper {
  display: flex;
  gap: 2rem;
}

.customize-step {
  text-align: center;
  padding: 2rem 1rem;
}

.customize-step-icon {
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.customize-step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.customize-step p {
  color: #000;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* 箭头样式 */
.customize-arrow {
  width: 3rem;
  height: 3rem;
  color: #000000;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.customize-arrow:hover {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.customize-arrow:active {
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .customize-steps-carousel {
    padding: 0 3rem;
  }

  .customize-steps-wrapper {
    gap: 1.5rem;
  }

  .customize-step {
    padding: 1.5rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .customize-steps-section {
    padding: 3rem 0;
  }

  .customize-steps-carousel {
    padding: 0 2rem;
  }

  .customize-steps-wrapper {
    gap: 1rem;
  }

  .customize-step {
    padding: 1rem 0.5rem;
  }

  .customize-step h3 {
    font-size: 1.25rem;
  }

  .customize-step p {
    font-size: 0.875rem;
  }

  .customize-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 480px) {
  .customize-steps-carousel {
    padding: 0 1rem;
  }

  .customize-steps-wrapper {
    gap: 0.5rem;
  }

  .customize-step {
    padding: 0.75rem 0.25rem;
  }

  .customize-step-icon {
    width: 5rem;
    height: 5rem;
  }

  .customize-step-icon i {
    font-size: 1.5rem;
  }

  .customize-arrow {
    width: 2rem;
    height: 2rem;
  }

  .customize-arrow i {
    font-size: 0.875rem;
  }
}
