/* 返利弹窗样式 - 优化版 */

.rebate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.rebate-modal.fade-out {
    opacity: 0;
}

.rebate-modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 24px;
    width: 92%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: rebateModalFadeIn 0.3s ease-out;
    margin: 0 auto;
    border: 1px solid rgba(0, 200, 83, 0.15);
}

@keyframes rebateModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 关闭按钮 */
.rebate-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #666;
    font-size: 18px;
    z-index: 10;
}

.rebate-modal-close:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

/* 商品信息区域 */
.rebate-product-info {
    display: flex;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rebate-product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rebate-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rebate-product-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.rebate-product-platform {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rebate-platform-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 6px;
}

.rebate-platform-name {
    font-size: 14px;
    color: #666;
}

.rebate-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #ff5722;
}

.rebate-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 返利信息区域 */
.rebate-info-section {
    background-color: rgba(0, 200, 83, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 200, 83, 0.15);
    box-shadow: 0 3px 8px rgba(0, 200, 83, 0.1);
}

.rebate-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rebate-info-icon {
    width: 36px;
    height: 36px;
    background-color: #00c853;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.rebate-info-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.rebate-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #00c853;
}

.rebate-amount {
    font-size: 28px;
    font-weight: 700;
    color: #00c853;
    text-align: center;
    margin: 10px 0;
}

.rebate-rate {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

/* 购买按钮区域 */
.rebate-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.rebate-buy-btn {
    background-color: #00c853;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rebate-buy-btn:hover {
    background-color: #009940;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 200, 83, 0.4);
}

.rebate-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 200, 83, 0.3);
}

.rebate-cancel-btn {
    background-color: #f5f5f7;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rebate-cancel-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.rebate-cancel-btn:active {
    transform: translateY(0);
}

/* 提示信息 */
.rebate-tips {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.rebate-tips-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
}

.rebate-tips-title svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.rebate-tips-content {
    padding-left: 22px;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 200, 83, 0.5);
    }
    100% {
        box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3);
    }
}

.rebate-buy-btn {
    animation: pulse 2s infinite;
}
