/* ==========================================================
   付费资讯模块样式（单篇买断）
   只作用于 .paid-page，避免影响主题其它页面
   ========================================================== */
.paid-page {
    --paid-accent: #4A90E2;
    --paid-border: #e6e9ed;
    --paid-muted: #8a919b;
    background: #f6f7f9;
    min-height: 60vh;
    padding: 24px 0 48px;
    font-size: 15px;
    color: #2b2f36;
}
.paid-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.paid-page a { text-decoration: none; }

/* 页头标题区 */
.paid-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.paid-head h1 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: .5px; }
.paid-head .paid-sub { color: var(--paid-muted); font-size: 13px; margin-bottom: 4px; }
.paid-head .paid-actions { margin-left: auto; display: flex; gap: 8px; }
.paid-btn {
    display: inline-block; padding: 9px 20px; border-radius: 4px; border: 1px solid var(--paid-border);
    background: #fff; color: #444; font-size: 14px; cursor: pointer; transition: all .18s ease;
}
.paid-btn:hover { border-color: var(--paid-accent); color: var(--paid-accent); }
.paid-btn-primary { background: var(--paid-accent); border-color: var(--paid-accent); color: #fff; font-weight: 600; }
.paid-btn-primary:hover { background: #2D6FC0; border-color: #2D6FC0; color: #fff; }
.paid-btn-lg { padding: 13px 40px; font-size: 17px; border-radius: 5px; }

/* 搜索 */
.paid-search { display: flex; gap: 8px; margin-bottom: 22px; max-width: 460px; }
.paid-search input {
    flex: 1 1 auto; min-width: 0; width: auto; box-sizing: border-box;
    height: 40px; padding: 0 12px; border: 1px solid var(--paid-border);
    border-radius: 4px; background: #fff; font-size: 14px; outline: none;
}
.paid-search input:focus { border-color: var(--paid-accent); }
.paid-search button {
    flex: 0 0 auto;
    height: 40px; padding: 0 20px; border: 0; border-radius: 4px;
    background: linear-gradient(135deg, #4A90E2, #2D6FC0); color: #fff; font-size: 14px; cursor: pointer;
}

/* 列表卡片 */
.paid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.paid-card {
    background: #fff; border: 1px solid var(--paid-border); border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.paid-card:hover { box-shadow: 0 8px 24px rgba(20, 30, 50, .09); transform: translateY(-2px); }
.paid-cover { position: relative; display: block; height: 168px; background: #eef1f5; overflow: hidden; }
.paid-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paid-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e9eef6, #f6f7f9); color: #aeb6c2; font-size: 44px; }
.paid-badge {
    position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 12px;
    background: rgba(20, 25, 35, .66); color: #fff; font-size: 12px;
}
.paid-badge-ok { background: #1a9c62; }
.paid-card-body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.paid-card-title {
    font-size: 17px; font-weight: 700; line-height: 1.45; color: #22262d; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.paid-card-title:hover { color: var(--paid-accent); }
.paid-card-sub { color: var(--paid-muted); font-size: 13px; margin-bottom: 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paid-card-brief { color: #69707a; font-size: 13px; line-height: 1.7; min-height: 44px; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paid-card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.paid-price { color: var(--paid-accent); font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.paid-price small { font-size: 13px; font-weight: 500; margin-right: 1px; }
.paid-price-free { color: #1a9c62; font-size: 19px; }
.paid-original { color: #a9afb8; font-size: 13px; text-decoration: line-through; margin-left: 6px; }
.paid-meta { color: #a2a8b1; font-size: 12px; }

/* 空状态 / 分页 */
.paid-empty { background: #fff; border: 1px dashed var(--paid-border); border-radius: 8px;
    padding: 70px 20px; text-align: center; color: var(--paid-muted); }
.paid-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.paid-pager a, .paid-pager span {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--paid-border); border-radius: 4px; background: #fff; color: #555; font-size: 14px;
}
.paid-pager .cur { background: var(--paid-accent); border-color: var(--paid-accent); color: #fff; }

/* 详情 */
.paid-panel { background: #fff; border: 1px solid var(--paid-border); border-radius: 8px; padding: 34px 40px; }
.paid-detail-title { font-size: 28px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.paid-detail-sub { color: #69707a; font-size: 15px; margin-bottom: 16px; }
.paid-detail-meta { color: #a2a8b1; font-size: 13px; padding-bottom: 18px; margin-bottom: 24px;
    border-bottom: 1px solid #eef0f3; display: flex; flex-wrap: wrap; gap: 18px; }
.paid-content { font-size: 16px; line-height: 1.95; color: #2b2f36; word-break: break-word; }
.paid-content img { max-width: 100%; height: auto; }
.paid-content p { margin-bottom: 1em; }
.paid-buybar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 0 24px;
    padding: 18px 22px; background: #fff8f7; border: 1px solid #f7ded9; border-radius: 8px;
}
.paid-buybar .paid-price { font-size: 28px; }

/* 付费墙 */
.paid-wall { position: relative; margin-top: 4px; }
.paid-wall-fade { height: 90px; margin-top: -90px; position: relative;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%); pointer-events: none; }
.paid-wall-box { text-align: center; padding: 34px 20px 30px; background: #fff;
    border: 1px solid var(--paid-border); border-radius: 8px; }
.paid-wall-box h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.paid-wall-box p { color: var(--paid-muted); font-size: 14px; margin: 0 0 20px; }
.paid-wall-tips { margin-top: 16px; color: #a2a8b1; font-size: 12px; line-height: 1.9; }

/* 购买确认页 */
.paid-order { background: #fff; border: 1px solid var(--paid-border); border-radius: 8px; padding: 30px 40px; }
.paid-order h2 { font-size: 21px; font-weight: 700; margin: 0 0 20px; }
.paid-order-row { display: flex; padding: 11px 0; border-bottom: 1px dashed #eef0f3; font-size: 15px; }
.paid-order-row .k { width: 110px; color: var(--paid-muted); flex-shrink: 0; }
.paid-order-row .v { color: #2b2f36; word-break: break-all; }
.paid-order-total { color: var(--paid-accent); font-size: 26px; font-weight: 700; }
.paid-paybox { text-align: center; padding: 30px 0 10px; }
.paid-paybox .paid-btn-primary { background: var(--paid-accent); border: 0; padding: 13px 44px; font-size: 17px; }
.paid-notice { margin-top: 22px; padding: 14px 18px; background: #f7f9fc; border-radius: 6px;
    color: #69707a; font-size: 13px; line-height: 1.9; }

/* ---------------- 正文排版（仅作用于 .paid-content） ---------------- */
.paid-content h3 {
    font-size: 20px; font-weight: 700; line-height: 1.5; color: #22262d;
    margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--paid-accent);
}
.paid-content h4 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: #303640; }
.paid-content ul, .paid-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.paid-content li { margin-bottom: .55em; line-height: 1.85; }
.paid-content li::marker { color: var(--paid-accent); }
.paid-content strong { color: #1f232a; font-weight: 700; }
.paid-content code {
    padding: 2px 6px; border-radius: 3px; background: #f2f4f7; color: #c0392b;
    font-size: .88em; font-family: Consolas, Monaco, "Courier New", monospace;
    word-break: break-word;
}
.paid-content pre {
    margin: 0 0 1.4em; padding: 16px 18px; background: #202734; color: #e6edf3;
    border-radius: 6px; overflow-x: auto; line-height: 1.7; font-size: 13px;
}
.paid-content pre code {
    padding: 0; background: none; color: inherit; font-size: inherit;
    white-space: pre; word-break: normal;
}
.paid-content table.paid-data {
    width: 100%; border-collapse: collapse; margin: 0 0 1.5em;
    font-size: 14px; line-height: 1.7; table-layout: fixed; word-break: break-word;
}
.paid-content table.paid-data th,
.paid-content table.paid-data td {
    border: 1px solid #e6e9ed; padding: 9px 12px; vertical-align: top; text-align: left;
}
.paid-content table.paid-data th { background: #f3f5f8; font-weight: 700; color: #3a4049; }
.paid-content table.paid-data tr:nth-child(even) td { background: #fafbfc; }
.paid-content .paid-note {
    margin: 26px 0 18px; padding: 16px 20px; border-radius: 6px;
    background: #f5f8ff; border-left: 4px solid #4a76c8; color: #3d4757;
    font-size: 14.5px; line-height: 1.9;
}
.paid-content blockquote {
    margin: 0 0 1.3em; padding: 10px 18px; border-left: 4px solid #d7dce3;
    background: #fafbfc; color: #69707a;
}

/* 我的资讯表格 */
.paid-table { width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid var(--paid-border); border-radius: 8px; overflow: hidden; }
.paid-table th { background: #f3f5f8; text-align: left; padding: 13px 16px; font-size: 14px; color: #555; }
.paid-table td { padding: 14px 16px; border-top: 1px solid #eef0f3; font-size: 14px; }
.paid-table a { color: #2b2f36; font-weight: 600; }
.paid-table a:hover { color: var(--paid-accent); }

@media (max-width: 991px) {
    .paid-grid { grid-template-columns: repeat(2, 1fr); }
    .paid-panel, .paid-order { padding: 24px 20px; }
}
@media (max-width: 575px) {
    .paid-grid { grid-template-columns: 1fr; }
    .paid-head h1 { font-size: 22px; }
    .paid-head .paid-actions { margin-left: 0; width: 100%; }
    .paid-detail-title { font-size: 22px; }
    .paid-buybar { padding: 14px 16px; gap: 10px; }
    .paid-buybar .paid-btn-lg { width: 100%; text-align: center; }
    .paid-table th:nth-child(3), .paid-table td:nth-child(3) { display: none; }
    .paid-content h3 { font-size: 18px; margin-top: 28px; }
    .paid-content pre { font-size: 12px; padding: 12px 14px; }
    .paid-content table.paid-data { font-size: 12.5px; }
    .paid-content table.paid-data th,
    .paid-content table.paid-data td { padding: 7px 6px; }
    .paid-content .paid-note { padding: 13px 15px; font-size: 14px; }
}
