/* 产品列表（线阵列）页面样式 */

:root {
  --db-black: #0c0812;
  --db-bg: #f3f3f3;
  --db-card: #ffffff;
  --db-lime: #c9ff52; /* 参考站酸橙色 */
  --db-purple: #333;
  --db-gray: #e9e9e9;
}

/* 顶部英雄区 */
.product-hero {
  background: var(--db-black);
  padding: 0; /* 取消底部内边距，让右侧绿色背景贴合容器底部 */
}
.product-hero .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.product-hero .hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0; /* 左图与右侧绿色背景紧贴，无间隙 */
  align-items: stretch;
  width: 1905px; /* 固定宽度 */
  height: 480px; /* 固定高度 */
  max-width: 100%; /* 响应式：在小屏幕上允许缩小 */
}
.product-hero .hero-media {
  height: 480px; /* 固定高度 */
  background-size: cover;
  background-position: left bottom; /* 拉伸到最左边与容器最下方 */
}
.product-hero .hero-info {
  background: var(--db-lime);
  display: flex;
  align-items: stretch; /* 使内部内容高度拉伸，背景充满底部 */
  height: 480px; /* 固定高度 */
}
.product-hero .hero-info-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 文案贴近容器下方 */
  padding: 24px 24px 12px;
  height: 480px; /* 固定高度 */
}
.product-hero .hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000; /* 标题改为黑色 */
}
.product-hero .hero-desc {
  font-size: 16px; /* 增大字体 */
  line-height: 1.7;
  color: #111;
}
.product-hero .hero-link {
  display: inline-block;
  margin-top: 8px;
  color: #111;
  text-decoration: underline;
}

/* 面包屑复用新闻页样式（press-breadcrumb） */
.press-hero {
  background: var(--db-bg);
}
.press-breadcrumb {
  margin: 0 0 32px 0; /* 只保留底部间距，与产品卡片对齐 */
  padding: 0;
  display: flex;
  justify-content: center; /* 与产品网格居中对齐 */
}
.press-breadcrumb .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  width: calc(4 * 365px + 3 * 24px); /* 与4列网格总宽度相同：4*365 + 3*24 = 1532px */
  max-width: 100%;
  display: flex;
  justify-content: flex-start; /* 面包屑内容左对齐，与第一张卡片对齐 */
}
.press-breadcrumb .breadcrumb-item a {
  color: #222;
  text-decoration: none;
}
.press-breadcrumb .breadcrumb-item a:hover {
  color: #000;
  text-decoration: underline;
}
.press-breadcrumb .breadcrumb-item.active {
  color: #666;
}
.press-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 8px;
  color: rgba(0, 0, 0, 0.45);
}

/* 主网格区域 */
.product-main {
  background: var(--db-bg);
  font-family: "Montserrat","Space Grotesk", "Microsoft YaHei", sans-serif;
  padding: 32px 0 48px;
}
.product-main .container {
  max-width: 100%;
  padding-left: 40px; /* 增加左边距，让卡片不贴边 */
  padding-right: 40px;
}
/* 创建一个包装器来对齐面包屑和网格 */
.product-main .breadcrumb-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}
.product-main .breadcrumb-wrapper .press-breadcrumb {
  width: calc(4 * 365px + 3 * 24px); /* 与4列网格总宽度相同 */
  max-width: 100%;
  display: flex;
  justify-content: flex-start; /* 面包屑内容左对齐 */
  margin: 0 0 32px 0;
  padding: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 320px); /* 固定卡片宽度 365，超宽屏为4列 */
  column-gap: 24px; /* 列间距 */
  row-gap: 40px; /* 行间距增大 */
  justify-content: center; /* 居中显示 */
  align-items: stretch; /* 保证同一行的卡片等高 */
  width: calc(4 * 320px + 3 * 24px); /* 与面包屑容器宽度相同 */
  max-width: 100%;
  margin: 0 auto; /* 居中显示 */
}
@media (max-width: 1400px) {
  .product-grid { 
    grid-template-columns: repeat(3, 365px); 
    justify-content: center;
    width: calc(3 * 365px + 2 * 24px); /* 3列网格总宽度 */
  }
  .press-breadcrumb .breadcrumb {
    width: calc(3 * 365px + 2 * 24px); /* 与3列网格总宽度相同 */
  }
}
@media (max-width: 1200px) {
  .product-grid { 
    grid-template-columns: repeat(2, 365px); 
    justify-content: center;
    width: calc(2 * 365px + 1 * 24px); /* 2列网格总宽度 */
  }
  .press-breadcrumb .breadcrumb {
    width: calc(2 * 365px + 1 * 24px); /* 与2列网格总宽度相同 */
  }
}
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--db-card);
  border-radius: 16px; /* 增大圆角，更圆润 */
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  width: 320px;
  min-height: 600px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-thumb {
  background: var(--db-card);
  border-top-left-radius: 16px; /* 与卡片圆角一致 */
  border-top-right-radius: 16px; /* 与卡片圆角一致 */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 305.312px; /* 固定高度为 305.312px */
  width: 100%; /* 宽度占满卡片 */
  padding: 0; /* 移除内边距，让图片完全填充 */
  margin-top:20px;
}
.product-thumb img { 
  width: 305.312px; /* 固定宽度 */
  height: 305.312px; /* 固定高度 */
  object-fit: contain; /* 保持图片比例，不裁剪 */
}

.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.meta-left { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-block; font-size: 12px; line-height: 1; padding: 6px 8px; border-radius: 6px; }
.chip-series { background: var(--db-gray); color: #000; border-radius: 999px; font-weight: 600; }
.chip-category { display: none; }
.chip-tag { display: none; }
.product-name { font-size: 18px; font-weight: 500; color: #111; margin-bottom: 8px; }
.product-spec { margin: 0 0 12px; padding-left: 18px; }
.product-spec li { font-size: 14px; color: #333; margin-bottom: 6px; }

.product-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 6px 0 10px;
}

.product-compare { font-size: 14px; color: #333; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.product-compare::before { content: "+"; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #bbb; color: #bbb; font-weight: 700; }

.btn-product {
  display: block;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--db-purple);
  color: #fff;
  border-radius: 28px;
  margin-top: auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-product:hover {
  background: #000;
}

.product-notes {
  color: #0a0a0a;
  font-size: 15px;
  line-height: 1.85;
  margin-top: 24px;
  margin-bottom: 24px;
}
.product-notes p {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

/* 筛选/排序区域 */
.product-filters {
  background: var(--db-black);
  padding: 24px 0;
}

.filters-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.filters-left,
.filters-center,
.filters-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group label,
.search-group label {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  background: #1a1620;
  border: 1px solid #2a2530;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filter-select:hover {
  border-color: #3a3540;
}

.filter-select:focus {
  outline: none;
  border-color: var(--db-purple);
}

.search-wrapper {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 12px;
  background: #1a1620;
  border: 1px solid #2a2530;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

.search-input::placeholder {
  color: #888;
}

.search-input:focus {
  outline: none;
  border-color: var(--db-purple);
}

.search-btn {
  padding: 10px 24px;
  background: var(--db-purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #6a39e6;
}

.advanced-search {
  font-size: 12px;
  color: #aaa;
  text-decoration: none;
  margin-top: 4px;
}

.advanced-search:hover {
  color: #fff;
  text-decoration: underline;
}

/* 分页控件 */
.product-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 0;
}

.pagination-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: var(--db-purple);
  color: var(--db-purple);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 8px;
}

.page-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-number:hover {
  border-color: var(--db-purple);
  color: var(--db-purple);
}

.page-number.active {
  background: #000;
  border-color: #000;
  color: #fff;
}

@media (max-width: 992px) {
  .filters-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 线阵列页面的分享模块背景与周边统一 */
.share-section {
  background: var(--db-bg);
}
