/* 付费内容预览样式 */
.paid-content-restriction {
    position: relative;
    border: 2px solid #f39c12;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.1);
}

.paid-content-restriction::before {
    content: "🔒 付费内容";
    position: absolute;
    top: -1px;
    left: 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
}

.paid-content-restriction .free-content {
    padding: 25px 20px 20px 20px;
    background: transparent;
    position: relative;
}

.paid-content-restriction .free-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 249, 230, 0.95));
    pointer-events: none;
}

.restriction-notice {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 25px;
    text-align: center;
    border-top: 1px dashed #f39c12;
}

.restriction-message {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #e67e22;
    text-shadow: none;
}

.membership-info {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 8px;
    padding: 18px;
    margin-top: 15px;
}

.membership-info p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: #666;
}

.required-level {
    font-size: 1.1em !important;
    font-weight: 700 !important;
    color: #e67e22 !important;
    margin: 0 !important;
}

.required-level strong {
    color: #f39c12;
    text-shadow: none;
}

/* 升级模态框样式 */
.paid-upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.paid-upgrade-modal.show {
    opacity: 1;
    visibility: visible;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.upgrade-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    transform: scale(1.05);
}

.plan-card.recommended::before {
    content: "推荐";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.plan-header h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.plan-price {
    font-size: 28px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 5px;
}

.plan-price span {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.plan-discount {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.select-plan-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* 会员等级徽章 */
.membership-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-badge.regular {
    background: #6c757d;
    color: #fff;
}

.membership-badge.monthly {
    background: #007cba;
    color: #fff;
}

.membership-badge.yearly {
    background: #00a32a;
    color: #fff;
}

.membership-badge.lifetime {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #333;
}

/* 升级提示按钮 */
.upgrade-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

.upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
    text-decoration: none;
    color: #333;
}

/* 登录提示 */
.login-prompt {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.login-prompt .login-message {
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 15px;
}

.login-button {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background: #005a87;
    text-decoration: none;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .paid-content-restriction {
        margin: 15px -15px;
        border-radius: 0;
    }
    
    .restriction-notice {
        padding: 20px 15px;
    }
    
    .membership-info {
        padding: 12px;
    }
    
    .upgrade-button {
        display: block;
        text-align: center;
        margin: 15px 0 0 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paid-content-restriction {
    animation: fadeInUp 0.5s ease-out;
}

/* 内容渐变遮罩 */
.content-fade-mask {
    position: relative;
    overflow: hidden;
}

.content-fade-mask::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

/* 会员特权说明 */
.membership-benefits {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.membership-benefits h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.membership-benefits ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.membership-benefits li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

.membership-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

/* 加载状态 */
.paid-content-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.paid-content-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误状态 */
.paid-content-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.paid-content-error .error-message {
    font-weight: 500;
    margin: 0;
}