/* ========================================
   产品详情页 - 自定义样式
   创建时间: 2026-07-25
   ======================================== */

/* ---------- 咨询按钮样式 ---------- */
.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: background-color 0.3s ease;
    height: 32px;
    gap: 4px;
    box-sizing: border-box;
}

.consult-btn:hover {
    background: linear-gradient(135deg, #4E8CFF, #3A78E0);
    color: white;
    text-decoration: none;
}

.consult-btn:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 100%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: ripple 3s infinite ease-out;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(12);
        opacity: 0;
    }
}

.consult-btn i {
    font-size: 13px;
}



/* ---------- 左对齐 ---------- */
.article .post {
    text-align: left !important;
}
.article .post p,
.article .post h1,
.article .post .ey-price,
.article .post .ey-spec,
.article .post .ey-number,
.article .post .ey-buyaction,
.article .post .consult-btn {
    text-align: left !important;
}

/* ---------- 产品推荐标题背景去掉 ---------- */
.title-l {
    background: transparent !important;
}

/* ---------- 产品推荐卡片样式 ---------- */
.carousel-pro .item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 图片容器 - 正方形 */
.carousel-pro .item a {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-pro .item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
}

/* 卡片信息区 */
.carousel-pro .item-info {
    padding: 12px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 标题样式 - 两行省略 */
.carousel-pro .item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.carousel-pro .item-title a {
    color: #333;
    text-decoration: none;
}

.carousel-pro .item-title a:hover {
    color: #4285F4;
}

/* 价格和浏览量 */
.carousel-pro .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.carousel-pro .item-price {
    font-weight: 700;
    color: #FF4400;
    font-size: 16px;
}

.carousel-pro .item-views {
    color: #999;
    font-size: 12px;
}

.carousel-pro .item-views i {
    margin-right: 3px;
}

/* 产品推荐区块上边距 */
.product-recommendation {
    padding-top: 25px;
}