/* Products Page - 语义化样式 */

/* 页面容器 */
.products-page {
  background-color: white;
  color: #111827;
}

/* 主内容区域 */
.products-main {
  padding-bottom: 3rem;
  background-color: white;
  min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.breadcrumb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .breadcrumb-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .breadcrumb-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.breadcrumb-link {
  color: #4b5563;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #1d4ed8;
}

.breadcrumb-separator {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.breadcrumb-current {
  color: #111827;
}

/* 产品系列区域 */
.products-section {
  margin-top: 0rem;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .products-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .products-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.product-category {
  scroll-margin-top: 6rem;
  /* 桌面端：左右布局 */
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding-top: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.product-category:first-child {
  padding-top: 0px;
}

.product-category::after {
  content: "";
  display: inline-block;
  width: 260px;
  height: 1px;
  background-color: #0001F9;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

/* 小屏：产品块上下排布，更适合窄屏阅读 */
@media (max-width: 767.98px) {
  .product-category {
    flex-direction: column;
    align-items: stretch;
  }
}

.category-title {
  font-size: 1.875rem;
  color: #111827;
  font-weight: 700;
}

.category-description {
  color: #4b5563;
  line-height: 1.75;
}

/* 产品网格 */
.product-category-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-series {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* 默认桌面：两列为主，最大间距 100px */
  column-gap: 100px;
  row-gap: 8px;
  padding-top: 20px;
}

/* 平板及以下：缩小列间距，避免过于分散 */
@media (max-width: 1023.98px) {
  .product-series {
    column-gap: 40px;
  }
}

.product-series-image-wrapper {
  height: 240px;
  width: 410px;
  background-color: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}

/* 小屏：图片宽度占满容器，高度自适应 */
@media (max-width: 767.98px) {
  .product-series-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .product-series-image {
    width: 100%;
    height: auto;
  }
}

.product-series-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-series-content {
  /* 内容区域 */
}

.product-series-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  /* 默认（>= 768px）：列数不固定，由内容与容器宽度自然决定 */
  flex: 0 0 auto;
  max-width: none;
}

/* 小屏（< 768px）：固定两列布局 */
@media (max-width: 767.98px) {
  .product-series-title {
    display: inline-flex;
    /* 两列布局：每个标题占据约一半宽度（减去间距） */
    flex: 0 0 calc(50% - 20px);
    max-width: none;
    font-size: 16px;
  }
}

/* 更多产品链接样式（显示在分类模块和定制服务模块中间） */
.product-more-link-wrapper {
  margin: 40px auto;
  /* padding: 20px 0; */
  text-align: center;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-more-link {
  font-size: 18px;
  font-weight: 600;
  color: #0033CC;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-block;
  text-align: center;
}

.product-more-link:hover {
  color: #0029A3;
}

@media (max-width: 767.98px) {
  .product-more-link-wrapper {
    margin: 30px auto;
    /* padding: 16px 0; */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .product-more-link {
    font-size: 16px;
    text-align: center;
  }
}

.product-series-title::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #333333;
  border-bottom: 2px solid #333333;
  transform: rotate(-45deg);
  margin-left: 8px;
}

.product-series-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
}

.product-series-link {
  font-size: 0.875rem;
  color: #374151;
  transition: color 0.2s;
}

.product-series-link:hover {
  color: #1d4ed8;
}

/* 定制服务区域 */
.custom-service-section {
  margin-top: 40px;
  padding: 2rem;
  border-radius: 0.75rem;
  background-color: #f9fafb;
}

.custom-service-button {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 20px;
  background-color: #1d4ed8;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-service-button:hover {
  background-color: #1e40af;
}

@media (min-width: 768px) {
  .custom-service-section {
    padding: 3rem;
  }
}

.custom-service-title {
  font-size: 1.5rem;
  color: #111827;
  font-weight: 700;
  margin-bottom: 1rem;
}

.custom-service-description {
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.product-coming-soon {
  font-size: 0.875rem;
  color: #6b7280;
}

