/**
 * Vending Machine Detail Page Styles
 */

/* 推荐项目卡片样式 - 完整显示图片 */
.project-card-thumb {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

/* 产品内容详情 AI分析 */
.product-analysis{
    margin-top: 20px;
}
.user-reviews h3{
    margin-bottom: 20px;
}


/* ========================================
   粘性购买按钮 (Sticky Buy Button)
   ======================================== */

/* 固定在底部的购买按钮容器 */
.sticky-buy-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none; /* 默认隐藏 */
}

/* 显示状态 */
.sticky-buy-button.show {
    display: block;
    transform: translateY(0);
}

/* 按钮容器 */
.sticky-buy-button .sticky-btn-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 产品信息 */
.sticky-buy-button .sticky-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0; /* 允许文本截断 */
}

/* 产品图片 */
.sticky-buy-button .sticky-product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 产品标题 */
.sticky-buy-button .sticky-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 购买按钮 */
.sticky-buy-button .sticky-inquiry-btn {
    background: #AB47BC;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-buy-button .sticky-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sticky-buy-button {
        padding: 12px 15px;
    }
    
    .sticky-buy-button .sticky-btn-container {
        gap: 10px;
    }
    
    .sticky-buy-button .sticky-product-info {
        gap: 10px;
    }
    
    .sticky-buy-button .sticky-product-image {
        width: 40px;
        height: 40px;
    }
    
    .sticky-buy-button .sticky-product-title {
        font-size: 13px;
    }
    
    .sticky-buy-button .sticky-inquiry-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 超小屏幕 - 隐藏产品信息，只显示按钮 */
@media (max-width: 480px) {
    .sticky-buy-button .sticky-product-info {
        display: none;
    }
    
    .sticky-buy-button .sticky-btn-container {
        justify-content: center;
    }
    
    .sticky-buy-button .sticky-inquiry-btn {
        width: 100%;
        justify-content: center;
    }
}
