/* ==========================================================================
   产品卡片视觉升级（覆盖层，不改 style.css）
   作用范围：products.html、c/*.html 分类页、*-manufacturer.html 落地页
   ========================================================================== */

/* ---------- 栅格节奏 ---------- */
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 32px);
}

/* ---------- 卡片本体：去边框，改成“图板 + 文字” ---------- */
.product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
}

/* 图片区：独立浅色板 */
.product-card .thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid #e9f0ec;
  border-radius: 20px;
  background: linear-gradient(168deg, #fbfdfc 0%, #f2f7f4 100%);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.product-card:hover .thumb {
  border-color: #d8e7df;
  box-shadow: 0 22px 40px -30px rgba(17, 48, 37, 0.55);
}
.product-card .thumb img {
  object-fit: contain;
  padding: 0;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-card:hover .thumb img {
  transform: scale(1.035);
}

/* 型号：胶囊，压在图片左上角 */
.product-card .model {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;   /* 关键：原样式有 bottom/right，不重置会被拉伸成圆 */
  bottom: auto;
  width: auto;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: #1f6b4f;
  border: 1px solid #dcebe4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 14px -12px rgba(17, 48, 37, 0.6);
}

/* 文字区：留白更大，标题更重 */
.product-card .body {
  padding: 18px 2px 0;
  gap: 8px;
  background: transparent;
}
.product-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.012em;
  margin: 0;
}
.product-card h3 a {
  color: #14261f;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.25s ease;
}
.product-card h3 a:hover {
  color: #1f6b4f;
  background-size: 100% 1px;
}

/* 描述：两行截断，弱化成辅助信息 */
.product-card .desc {
  font-size: 13.5px;
  line-height: 1.62;
  color: #6b7c74;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
  margin: 0;
}

/* 参数：不再用色块，改成一行浅色小字 */
.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 2px;
  font-size: 12.5px;
  color: #7d8f87;
}
.product-card .meta span {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #7d8f87;
  display: inline-flex;
  gap: 5px;
}
.product-card .meta span + span::before {
  content: "·";
  margin: 0 8px;
  color: #b9c8c1;
}
.product-card .meta span > span:first-child {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  color: #9aaba3;
  font-weight: 700;
}

/* 按钮：一个实心主按钮 + 一个描边次按钮 */
.product-card .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.product-card .actions .btn {
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
/* 主按钮：报价（页面里是 .btn 不带 outline） */
.product-card .actions .btn:not(.btn-outline) {
  background: #1f6b4f;
  border: 1.5px solid #1f6b4f;
  color: #fff;
  order: 1;
  box-shadow: 0 14px 22px -18px rgba(31, 107, 79, 0.95);
}
.product-card .actions .btn:not(.btn-outline):hover {
  background: #17553e;
  border-color: #17553e;
  color: #fff;
  transform: translateY(-1px);
}
/* 次按钮：详情 */
.product-card .actions .btn-outline {
  border: 1.5px solid #d5e4dd;
  color: #274a3d;
  background: #fff;
  order: 2;
}
.product-card .actions .btn-outline:hover {
  border-color: #1f6b4f;
  color: #1f6b4f;
  background: #f7fbf9;
}

/* ---------- 无图卡片：保持体面 ---------- */
.product-card .thumb.no-photo {
  background: repeating-linear-gradient(135deg, #f6faf8 0 10px, #f1f6f3 10px 20px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-card .thumb {
    border-radius: 16px;
  }
  .product-card .actions .btn {
    flex: 1 1 0;
    text-align: center;
  }
}
