
/* 满件促销横幅 */
.bulk-promotion-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.bulk-promotion-banner h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.bulk-promotion-banner p {
    margin: 0;
    font-size: 1.1em;
}

.promotion-success {
    background: rgba(40, 167, 69, 0.9);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

.promotion-alert {
    background: rgba(255, 193, 7, 0.9);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    color: #856404;
}

.promotion-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    color: #17a2b8;
    font-weight: bold;
}

/* 拦截的结账按钮样式 */
.intercepted-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    to { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

.intercepted-button:before {
    content: '🎁 Click for Discount';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.95);
    font-weight: bold;
    color: white;
    z-index: 1;
}

/* 拦截模态框 */
.intercept-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.intercept-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.intercept-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.intercept-close:hover {
    color: #000;
}

.intercept-modal-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.intercept-modal-content p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #555;
}

.savings-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.savings-highlight span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.modal-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .button {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.continue-shopping {
    background: #28a745;
    color: white;
}

.continue-shopping:hover {
    background: #218838;
    transform: translateY(-2px);
}

.proceed-anyway {
    background: #6c757d;
    color: white;
}

.proceed-anyway:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .intercept-modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .button {
        width: 100%;
        margin: 5px 0;
    }
}

/* 简码样式 */
.bulk-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.bulk-quantity {
    color: #3498db;
    font-weight: bold;
}

.bulk-promotion-shortcode {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.95em;
    margin: 5px 0;
}

.bulk-promotion-shortcode .highlight {
    color: #ffd700;
    font-weight: bold;
}

.bulk-promotion-shortcode .price-highlight {
    color: #ffeb3b;
    font-weight: bold;
    font-size: 1.1em;
}

.promotion-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff6b6b;
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
}

.promo-icon {
    font-size: 1.2em;
}

.promo-text {
    flex: 1;
}

/* 拦截重定向通知样式 */
.intercept-redirect-notice {
    border-radius: 10px;
    padding: 20px;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intercept-redirect-notice h3 {
    font-size: 1.3em;
}

.intercept-redirect-notice p {
    font-size: 1.1em;
}

/* 满件价格预览样式 */
.bulk-discount-preview {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff6b6b);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bulk-discount-preview th,
.bulk-discount-preview td {
    color: white !important;
    padding: 15px !important;
    border: none !important;
}

.bulk-discount-preview td div {
    text-align: center;
}

.bulk-discount-preview small {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}