/*
Theme Name:   Hello Elementor Child
Theme URI:    https://elementor.com/
Description:  Hello Elementor Child Theme
Author:       Your Name
Author URI:   https://yourwebsite.com/
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* 在下方添加你的自定义 CSS 代码 */

/* ============================================
   Products Five Cards Shortcode Styles
   ============================================ */

/* 5 列产品卡片自适应网格 */
.products-five-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 单个产品卡片 */
.product-item-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.product-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -4px rgba(0, 114, 206, 0.12), 0 6px 14px rgba(0, 0, 0, 0.04);
  border-color: #badcf7;
}

/* 图片展示容器 */
.product-img-box {
  position: relative;
  width: 100%;
  height: 185px;
  background-color: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-item-card:hover .product-img-box img {
  transform: scale(1.06);
}

/* 左上角玻璃质感标签 */
.product-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #0072ce;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 悬停毛玻璃询价遮罩 */
.product-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 44, 0.32);
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.product-item-card:hover .product-hover-overlay {
  opacity: 1;
}

.product-overlay-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #0072ce;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 114, 206, 0.4);
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.product-item-card:hover .product-overlay-badge {
  transform: translateY(0);
}

/* 卡片底部内容区 */
.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #ffffff;
  text-align: left;
  box-sizing: border-box;
}

.product-card-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
  line-height: 1.3;
}

.product-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0b192c;
  margin: 0 0 12px 0;
}

/* 底部探索链接 */
.product-card-link {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0072ce;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-link svg {
  transition: transform 0.2s ease;
}

.product-item-card:hover .product-card-link {
  color: #005fad;
}

.product-item-card:hover .product-card-link svg {
  transform: translateX(4px);
}

/* 响应式断点适配 */
@media (max-width: 1024px) {
  .products-five-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .products-five-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}