/* 内容扣点 - 前端样式 */

/* 付费遮罩 - 紧凑样式 */
.cp-paywall {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
}

.cp-paywall-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.cp-paywall-icon {
    font-size: 18px;
    line-height: 1;
}

.cp-paywall-title {
    display: none;
}

.cp-paywall-cost {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.cp-paywall-cost strong {
    font-size: 16px;
    color: #e74c3c;
}

.cp-paywall-balance {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.cp-paywall-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.cp-paywall-login {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.cp-paywall-purchase {
    font-size: 12px;
    color: #999;
    margin: 0;
    width: 100%;
}

/* 移动端自适应 */
@media (max-width: 480px) {
    .cp-paywall {
        padding: 10px 12px;
        margin: 10px 0;
    }
    .cp-paywall-inner {
        gap: 6px 10px;
    }
    .cp-paywall-cost,
    .cp-paywall-balance {
        font-size: 12px;
    }
    .cp-paywall-actions {
        margin-left: 0;
        width: 100%;
    }
    .cp-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* 按钮 */
.cp-btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: opacity .2s;
}

.cp-btn:hover {
    opacity: 0.85;
}

.cp-btn-primary {
    background: #2271b1;
    color: #fff;
}

.cp-btn-secondary {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.cp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 弹窗 */
.cp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
}

.cp-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0,0,0,.3);
    z-index: 1;
}

.cp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

.cp-modal-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.cp-modal-content p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.cp-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.cp-msg {
    margin-top: 10px;
    font-size: 13px;
}

.cp-msg-success {
    color: #28a745;
}

.cp-msg-error {
    color: #dc3545;
}

/* 确认弹窗 */
.cp-modal-confirm {
    text-align: center;
    max-width: 360px;
}

.cp-confirm-msg {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px !important;
}

.cp-confirm-msg strong {
    color: #e74c3c;
    font-size: 18px;
}

.cp-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 购买链接 */
.cp-paywall-purchase {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

.cp-paywall-purchase a {
    color: #2271b1;
    word-break: break-all;
}
