/**
 * 产品页专用样式 - 外部化版本
 * 路径：/template/pc/skin/style/view_product.css
 */

 /* 动画定义 */
  @keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(20); opacity: 0; }
  }
  @keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
  }
  
 /* 规格区域整体调整 */
.ey-spec {
  margin: 14px 0;
}

/* 每个属性组 */
.ey-spec .row {
  margin-bottom: 16px;
  align-items: center;
}

/* 属性名标签 */
.ey-spec .form-control-label {
  padding-right: 15px;
  font-weight: normal;
}

/* 属性值按钮 */
.ey-spec .btn-default {
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ey-spec .btn-default {
    margin: 0 5px 5px 0;
    padding: 4px 8px;
  }
} 
  


 /* 产品推荐价格字体样式 */
            .ey-price {
                font-size: 1.9em !important;
                font-weight: bold !important;
            }

 .layout.bg-gray {
  padding-top: 15px; /* 主容器上边距 */
} 
/* 主标题增大 */
.simple-title h2 {
    font-size: 1.8rem;  /* 原2rem */
    text-align: center;
    color: #333;
    margin: 0 auto;
    padding: 0.5rem 0;
    font-weight: 400;
}

/* 价格同行左对齐布局 */
.product-meta {
    display: flex;
    align-items: center;
    padding: 0 15px 15px;
    gap: 10px;  /* 元素间距 */
}
.price-box {
    flex-grow: 1;
    text-align: left !important;
}
.current-price {
    color: #ff0000;
    font-size: 1.1rem;
    font-family: 'DIN Alternate';
}

/* 保持其他原有样式 */
.product-card {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #fff;
}
.product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    line-height: 1.4em;
    height: 2.8em;
    padding: 0 15px;
    color: #2d3436;
}
.stats-box {
    color: #666;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .simple-title h2 {
        font-size: 2rem;  /* 移动端标题 */
    }
    .current-price {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .simple-title h2 {
        font-size: 1.8rem;
    }
}
/* 增加卡片内边距 */
.product-card {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    margin: 10px; /* 新增外间距 */
}

/* 内容区域增加内边距 */
.card-body {
    padding: 15px 10px; /* 上下20px 左右15px */
    border-radius: 0 0 11px 11px;
}

/* 标题间距调整 */
.product-title a {
    margin: 0 0 15px 0; /* 下边距增加5px */
}

/* 四角圆角卡片 */
.product-card {
    border-radius: 16px; /* 统一四角圆角 */
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* 增强阴影 */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 12px;
    position: relative;
    overflow: hidden;
}

/* 悬停浮动效果 */
.product-card:hover {
    transform: translateY(-8px) scale(1.02); /* 提升悬浮幅度 */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* 图片容器圆角继承 */
.img-hover-effect {
    border-radius: 16px 16px 0 0; /* 图片顶部圆角 */
}

/* 内容区域圆角匹配 */
.card-body {
    border-radius: 0 0 16px 16px;
    padding: 20px 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-card {
        border-radius: 12px;
        margin: 8px;
    }
    .img-hover-effect {
        border-radius: 12px 12px 0 0;
    }
    .card-body {
        border-radius: 0 0 12px 12px;
    }
}

/* 保持其他已有样式 */
.current-price {
    color: #ff0000;
    font-size: 1.1rem;
    font-family: 'DIN Alternate';
}
.product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
  /* 咨询按钮 */
  .consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #4285F4, #3367D6);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    height: 32px;
    gap: 4px;
    margin-top: 15px;
  }
  .consult-btn:hover {
    background: linear-gradient(135deg, #4E8CFF, #3A78E0);
    transform: translateY(-2px);
  }
  .consult-btn:before,
  .consult-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 100%;
    transform: translate(-50%, -50%);
  }
  .consult-btn:before {
    animation: ripple 2s infinite ease-out;
  }
  .consult-btn:after {
    animation: ripple 2s infinite 1s ease-out;
  }
  .consult-btn i {
    font-size: 13px;
    animation: blink 1.5s infinite ease-in-out;
  }

  