/* ==================== 产品精选（P12） ====================
   沿用站点主色板：--primary #2457d6 / 浅底 #f4f7fb / 圆角 14px
   形态对齐 19 楼「产品精选」：卡片网格 + 左图右参详情页 + 规格参数表 + 右侧企业卡
   ====================================================== */

/* ---------- 列表页 hero ---------- */
.product-hero .product-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.product-hero .product-hero-stats li {
  min-width: 132px;
  padding: 12px 20px;
  border: 1px solid var(--border, #e2e8f2);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.product-hero .product-hero-stats strong {
  display: block;
  font-size: 22px;
  color: var(--primary, #2457d6);
  line-height: 1.2;
}
.product-hero .product-hero-stats span {
  font-size: 13px;
  color: var(--text-secondary, #66738f);
}

/* ---------- 产品网格 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border, #e2e8f2);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover {
  border-color: #c7d8f5;
  box-shadow: 0 10px 26px rgba(31, 61, 116, .10);
  transform: translateY(-2px);
}
.product-card-media {
  position: relative;
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #eef4ff 0%, #e3edfd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-photo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #9db8e6;
}
.product-card-body {
  flex: 1;
  padding: 12px 14px 8px;
}
.product-card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, #17233c);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.product-card-model {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted, #9aa8ba);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card-company {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary, #66738f);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px dashed var(--border, #e2e8f2);
}
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: #e2571f;
}
.product-price.is-ask { color: var(--text-secondary, #66738f); font-weight: 600; font-size: 13.5px; }
.product-card-tag {
  font-size: 11.5px;
  color: var(--primary, #2457d6);
  background: var(--primary-light, #eaf0ff);
  border-radius: 999px;
  padding: 2px 9px;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 详情页 ---------- */
.product-detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 14px;
}
.product-main { flex: 1; min-width: 0; }
.product-side { width: 320px; flex: none; }
@media (max-width: 980px) {
  .product-detail { flex-direction: column; }
  .product-side { width: 100%; }
}

.product-card-lg {
  display: flex;
  gap: 24px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f2);
  border-radius: 14px;
  margin-bottom: 16px;
}
.product-media {
  flex: none;
  width: 380px;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff 0%, #e3edfd 100%);
  border: 1px solid var(--border, #e2e8f2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-media-photo { font-size: 30px; font-weight: 700; letter-spacing: 3px; color: #9db8e6; text-align: center; padding: 0 16px; }
.product-info { flex: 1; min-width: 0; }
.product-info h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text, #17233c);
}
.product-updated { margin: 0 0 12px; font-size: 12.5px; color: var(--text-muted, #9aa8ba); }
.product-price-row {
  background: #fff8f0;
  border: 1px solid #ffe3c7;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
}
.product-price-label { color: var(--text-muted, #9aa8ba); font-size: 12.5px; margin-right: 6px; }
.product-price-value { color: #e2571f; font-size: 22px; font-weight: 700; }
.product-price-value.is-ask { font-size: 17px; color: var(--text-secondary, #66738f); }
.product-attr {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border, #e2e8f2);
  font-size: 13.5px;
}
.product-attr .k { width: 76px; flex: none; color: var(--text-muted, #9aa8ba); }
.product-attr .v { flex: 1; color: var(--text, #17233c); word-break: break-word; }
.product-btn-row { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-tel {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #e2571f);
  color: #fff;
  padding: 11px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}
.btn-tel:hover { color: #fff; filter: brightness(1.05); }
.btn-shop {
  display: inline-block;
  border: 1px solid var(--primary, #2457d6);
  color: var(--primary, #2457d6);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.btn-shop:hover { background: var(--primary-light, #eaf0ff); color: var(--primary, #2457d6); }
@media (max-width: 680px) {
  .product-card-lg { flex-direction: column; padding: 16px; }
  .product-media { width: 100%; height: 210px; }
}

.product-block {
  background: #fff;
  border: 1px solid var(--border, #e2e8f2);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
.product-block-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border, #e2e8f2);
}
.product-block-hd h2 {
  margin: 0;
  font-size: 17px;
  color: var(--text, #17233c);
  display: flex;
  align-items: center;
  gap: 9px;
}
.product-block-hd h2::before {
  content: "";
  width: 4px;
  height: 17px;
  background: var(--primary, #2457d6);
  border-radius: 2px;
}
.product-block-bd { padding: 4px 20px 18px; }
.product-spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 14px; }
.product-spec-table th,
.product-spec-table td { padding: 10px 14px; border: 1px solid var(--border, #e2e8f2); text-align: left; }
.product-spec-table th { background: #f5f8ff; width: 150px; color: var(--text-secondary, #66738f); font-weight: 600; }
.product-spec-table td { color: var(--text, #17233c); word-break: break-word; }
.product-body { padding: 16px 22px 24px; font-size: 15px; line-height: 2; color: #33405a; word-break: break-word; }
.product-body img { max-width: 100%; height: auto; border-radius: 8px; }
.product-body h2 { font-size: 17px; margin: 22px 0 10px; color: var(--text, #17233c); }
.product-body h3 { font-size: 15.5px; margin: 18px 0 8px; color: var(--text, #17233c); }
.product-body ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.product-body li { margin: 6px 0; }
.product-body strong { color: #1f2d4d; }

/* ---------- 右侧栏 ---------- */
.product-side-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f2);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
.product-side-card h2 {
  margin: 0;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text, #17233c);
  border-bottom: 1px solid var(--border, #e2e8f2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-side-card h2::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--primary, #2457d6);
  border-radius: 2px;
}
.side-contact { padding: 14px 16px 4px; }
.side-contact p { margin: 6px 0; font-size: 13.5px; color: var(--text-secondary, #66738f); }
.side-contact-name { font-size: 15px !important; font-weight: 700; color: var(--text, #17233c) !important; }
.side-contact-phone a { color: #e2571f; font-weight: 700; font-size: 16px; }
.side-goshop {
  display: block;
  margin: 12px 16px 16px;
  padding: 9px 0;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #2457d6, #3f7ae8);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.side-goshop:hover { color: #fff; filter: brightness(1.05); }
.side-list { margin: 0; padding: 8px 16px 12px; list-style: none; }
.side-list li { padding: 7px 0; border-bottom: 1px dashed var(--border, #e2e8f2); font-size: 13px; }
.side-list li:last-child { border-bottom: none; }
.side-list li a {
  color: var(--text-secondary, #66738f);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-list li a:hover { color: var(--primary, #2457d6); }

/* ---------- 首页板块 ---------- */
.home-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .home-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 店铺页产品区 ---------- */
.shop-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shop-product-grid { grid-template-columns: 1fr; } }
