/* ============ 商品列表页 & 详情页（静态生成页共用） ============ */

.page-banner {
  margin-top: 88px;
  background: linear-gradient(180deg, #eaf3ff 0%, #f7fbff 100%);
  border-bottom: 1px solid #e3edf9;
}
.page-banner .content-wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding: 46px 16px 40px;
}
.page-banner h1 {
  font-size: 42px;
  color: #0252bb;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
}

/* ---- 面包屑 ---- */
.crumbs {
  margin-top: 10px;
  font-size: 14px;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a { color: #646464; text-decoration: none; }
.crumbs a:hover { color: #0252bb; }
.crumbs .sep { color: #c8c8c8; }
.crumbs .cur-crumb {
  color: #505050;
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 商品列表 ---- */
.products-page { background: #fff; padding-bottom: 56px; }
.products-page .content-wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding: 28px 16px 0;
}
.products-page .products-list .item { height: 470px; }

/* 筛选 chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-bar button {
  border: 1px solid #d8dde5;
  background: #fff;
  color: #505050;
  font-size: 14px;
  font-family: Arial;
  padding: 8px 18px;
  border-radius: 22px;
  cursor: pointer;
  transition: all .25s;
  text-transform: capitalize;
}
.filter-bar button:hover { border-color: #0252bb; color: #0252bb; }
.filter-bar button.active {
  background: #0252bb;
  border-color: #0252bb;
  color: #fff;
}

/* 二级分类 chips（选中一级分类后出现） */
.sub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 26px;
  padding: 12px 14px;
  background: #f7fbff;
  border: 1px solid #e3edf9;
  border-radius: 8px;
}
.sub-filter-bar[hidden] { display: none; }
.sub-filter-bar button {
  border: 1px solid #d8dde5;
  background: #fff;
  color: #646464;
  font-size: 13px;
  font-family: Arial;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all .25s;
}
.sub-filter-bar button:hover { border-color: #0252bb; color: #0252bb; }
.sub-filter-bar button.active {
  background: #0252bb;
  border-color: #0252bb;
  color: #fff;
}

/* 卡片上的分类标签 */
.products-page .cat-tag {
  display: inline-block;
  background: #eaf3ff;
  color: #0252bb;
  font-size: 12px;
  border-radius: 4px;
  padding: 3px 10px;
  margin: 0 10px 8px;
}

.empty-tip {
  text-align: center;
  color: #a0a0a0;
  font-size: 16px;
  padding: 80px 0;
}

/* ---- 商品详情 ---- */
.detail-page { background: #fff; padding: 30px 0 60px; }
.detail-page .content-wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 16px;
}
.detail-box {
  margin-top: 24px;
  display: flex;
  gap: 48px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
  padding: 36px;
}
.detail-img {
  flex: 0 0 480px;
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f6f8;
  align-self: flex-start;
}
.detail-img img {
  width: 100%;
  height: auto;
  display: block;
}
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 {
  font-size: 28px;
  color: #323232;
  line-height: 1.35;
  margin-bottom: 14px;
  text-transform: capitalize;
}
.detail-cat {
  display: inline-block;
  background: #eaf3ff;
  color: #0252bb;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  margin-bottom: 18px;
}
.detail-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #646464;
  margin-bottom: 22px;
}
.specs-title {
  font-size: 18px;
  font-weight: 600;
  color: #323232;
  margin-bottom: 12px;
}
.detail-specs {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.detail-specs li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #505050;
  line-height: 1.6;
  padding: 5px 0;
}
.detail-specs .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #0252bb;
}
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-btn {
  display: inline-block;
  text-decoration: none;
  font-family: Arial;
  font-size: 16px;
  padding: 12px 34px;
  border-radius: 26px;
  transition: all .3s;
  text-transform: capitalize;
}
.detail-btn.primary { background: #0252bb; color: #fff; }
.detail-btn.primary:hover { background: #0092e4; color: #fff; }
.detail-btn.plain { border: 1px solid #0252bb; color: #0252bb; }
.detail-btn.plain:hover { background: #eaf3ff; color: #0252bb; }

/* 生成页的 header 顶部内边距（列表页 banner 承担，详情页需补） */
.detail-page { padding-top: 118px; }

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .page-banner { margin-top: 56px; }
  .page-banner h1 { font-size: 30px; }
  .detail-box { flex-direction: column; gap: 24px; padding: 24px; }
  .detail-img { flex: 0 0 auto; max-width: 100%; }
  .detail-page { padding-top: 86px; }
  .products-page .products-list .item { height: auto; min-height: 438px; }
}
@media (max-width: 640px) {
  .page-banner .content-wrap { padding: 30px 12px 26px; }
  .page-banner h1 { font-size: 24px; }
  .filter-bar button { padding: 6px 14px; font-size: 13px; }
  .detail-info h1 { font-size: 20px; }
  .detail-page .content-wrap { padding: 0 12px; }
  .products-page .content-wrap { padding: 20px 12px 0; }
}
