/* 基础样式 */
.ncewpv-video-container {
    margin: 20px 0;
    max-width: 100%;
}

.ncewpv-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.ncewpv-video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* 预览区域 */
.ncewpv-preview-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.ncewpv-free-video {
    margin-bottom: 30px;
}

.ncewpv-free-video h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.ncewpv-preview-info {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

/* 购买区域 */
.ncewpv-purchase-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border: 2px solid #e9ecef;
    text-align: center;
}

.ncewpv-purchase-info h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.ncewpv-price-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ncewpv-original-price {
    display: block;
    color: #6c757d;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
}

.ncewpv-final-price {
    display: block;
    color: #dc3545;
    font-size: 24px;
    font-weight: 700;
}

.ncewpv-fee-notice {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* 购买按钮 */
.ncewpv-purchase-btn {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    width: 100%;
    max-width: 300px;
}

.ncewpv-purchase-btn:hover {
    background: linear-gradient(135deg, #005a87, #004670);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.ncewpv-purchase-btn:active {
    transform: translateY(0);
}

.ncewpv-purchase-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.ncewpv-purchase-success h4 {
    margin: 0 0 10px 0;
    color: #155724;
}

.ncewpv-video-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

/* 支付模态框 */
.ncewpv-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.ncewpv-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.ncewpv-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ncewpv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.ncewpv-modal-header h3 {
    margin: 0;
    color: #1d2327;
    font-size: 20px;
    font-weight: 600;
}

.ncewpv-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ncewpv-modal-close:hover {
    background: #e9ecef;
    color: #1d2327;
}

.ncewpv-modal-body {
    padding: 25px;
}

.ncewpv-payment-info h4 {
    margin: 0 0 20px 0;
    color: #1d2327;
    font-size: 18px;
    text-align: center;
}

.ncewpv-price-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.total {
    font-weight: 700;
    font-size: 18px;
    color: #dc3545;
}

.ncewpv-total-price {
    color: #dc3545;
    font-weight: 700;
}

.ncewpv-paypal-container {
    margin: 20px 0;
    min-height: 100px;
}

.config-message, .error-message {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
}

.config-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ncewpv-payment-status {
    margin-top: 15px;
}

.ncewpv-payment-status .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.ncewpv-payment-status .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.ncewpv-payment-status .processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ncewpv-loading {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: ncewpv-spin 1s linear infinite;
}

@keyframes ncewpv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ncewpv-preview-section {
        padding: 15px;
    }
    
    .ncewpv-purchase-section {
        padding: 20px;
    }
    
    .ncewpv-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .ncewpv-modal-header {
        padding: 15px 20px;
    }
    
    .ncewpv-modal-body {
        padding: 20px;
    }
    
    .ncewpv-final-price {
        font-size: 20px;
    }
}