/* VIP视频支付弹窗样式 */

/* 试看横幅 */
.vip-trial-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

.trial-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.trial-banner-content strong {
    font-size: 16px;
    font-weight: 700;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ✅ 试看结束提示（友好版） */
.vip-trial-end-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vip-trial-end-notice.show {
    opacity: 1;
}

.trial-notice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.trial-notice-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.vip-trial-end-notice.show .trial-notice-content {
    transform: scale(1);
}

.notice-icon {
    text-align: center;
    margin-bottom: 15px;
}

.notice-icon i {
    font-size: 56px;
    color: #4A90E2;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notice-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

.notice-message {
    text-align: center;
    margin-bottom: 25px;
}

.notice-message p {
    margin: 8px 0;
    font-size: 15px;
    color: #666;
}

.notice-message strong {
    color: #4A90E2;
    font-weight: 700;
}

.video-price {
    margin: 15px 0 !important;
    padding: 15px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: 12px;
    border: 2px solid #ffd699;
}

.price-label {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: #ff6b35;
    letter-spacing: 1px;
}

.benefits-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: #52c41a;
    margin-top: 12px;
}

.benefits-hint i {
    margin-right: 4px;
}

.notice-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.notice-actions button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #07c160 0%, #05a04e 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #05a04e 0%, #038a42 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
}

.notice-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 0;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

/* ✅ 暂不购买提示 */
.vip-decline-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

.vip-decline-hint.fade-out {
    animation: fadeOut 0.3s ease;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 支付弹窗 */
.vip-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.vip-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.1);
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close-btn:hover {
    background: rgba(0,0,0,0.2);
    color: #333;
}

.modal-header {
    padding: 30px 20px 20px;
    text-align: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.vip-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.modal-body {
    padding: 25px 20px;
}

.video-info {
    margin-bottom: 20px;
    text-align: center;
}

.video-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.video-info .text-muted {
    font-size: 14px;
    color: #888;
}

.price-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-weight: 700;
}

.price-symbol {
    font-size: 24px;
    color: #ff6b6b;
    margin-right: 2px;
}

.price-amount {
    font-size: 42px;
    color: #ff6b6b;
}

.benefits-section {
    border-top: 1px dashed #ddd;
    padding-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.benefit-item i {
    color: #4CAF50;
    font-size: 16px;
}

.blocked-info {
    padding: 20px 0;
}

.blocked-info p {
    font-size: 16px;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.modal-footer {
    padding: 0 20px 25px;
}

.btn-purchase {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #09BB07 0%, #07C160 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(9, 187, 7, 0.3);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 187, 7, 0.4);
}

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

.btn-purchase:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-purchase i {
    font-size: 20px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .vip-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .modal-header {
        padding: 25px 15px 15px;
    }
    
    .vip-icon {
        font-size: 40px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .modal-footer {
        padding: 0 15px 20px;
    }
}

/* PC端适配 */
@media (min-width: 768px) {
    .vip-trial-banner {
        top: 80px;
    }
}
