/* ==========================================================================
   Paygo 前台样式 —— 移动端优先 · 小程序风格（紧凑、白底、蓝点缀）
   PC 端仅作顺带适配。
   ========================================================================== */

:root {
    --blue: #2563eb;
    --blue-2: #3b82f6;
    --blue-soft: #eaf1ff;
    --ink: #1a1c22;
    --text: #3d4148;
    --muted: #86909c;
    --muted-2: #a9afbb;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --line: #eef0f3;
    --line-2: #f4f5f7;
    --green: #00b578;
    --orange: #ff6a2b;
    --danger: #fa5151;
    --radius: 12px;
    --radius-sm: 9px;
    --shadow: 0 1px 6px rgba(30, 41, 59, .06);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font: 14px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
svg { flex-shrink: 0; }

::selection { color: #fff; background: rgba(37, 99, 235, .85); }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 6px 16px rgba(37, 99, 235, .24);
}

.btn.primary:hover { box-shadow: 0 8px 20px rgba(37, 99, 235, .32); }

.btn.ghost {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface);
}

.btn.ghost:hover { border-color: #ccd3dc; background: #f7f9fc; }

.glass-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 46px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.empty-state b { color: var(--ink); font-size: 16px; font-weight: 600; }
.empty-state span { font-size: 13px; }
.empty-state .btn { margin-top: 6px; }

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 50px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.header-inner {
    width: min(1080px, 100%);
    height: 50px;
    padding: 0 14px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.brand-logo {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 5px 12px rgba(37, 99, 235, .28);
}

.brand-logo svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-text strong {
    display: block;
    max-width: 220px;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-trigger {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

.search-trigger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-trigger:hover { color: var(--blue); border-color: #c9d8ee; background: var(--blue-soft); }

/* 用户入口（右上角，搜索按钮右侧） */
.user-trigger {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: var(--surface);
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

.user-trigger:hover { color: var(--blue); border-color: #c9d8ee; background: var(--blue-soft); }

.user-trigger svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-initial {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-size: 12px;
    font-weight: 700;
}

/* 右上角固定头像（与「我的」页一致的表情） */
.user-trigger .user-avatar-svg {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    fill: none;
    stroke: none;
}

/* 搜索浮层 */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 66px 14px 0;
    background: rgba(15, 23, 42, .4);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

.search-overlay.open { visibility: visible; opacity: 1; pointer-events: auto; }

.search-dialog {
    width: min(560px, 100%);
    height: 46px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .24);
    transform: translateY(-8px);
    transition: transform .16s ease;
}

.search-overlay.open .search-dialog { transform: translateY(0); }

.search-dialog input {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: 15px var(--font);
}

.search-dialog input::placeholder { color: var(--muted-2); }

.search-dialog button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
}

.search-dialog button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-dialog .search-close { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   主容器
   -------------------------------------------------------------------------- */

.site-main {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 12px 12px 8px;
}

/* --------------------------------------------------------------------------
   顶部横幅轮播（小程序 Swiper）
   -------------------------------------------------------------------------- */

.banner-slider {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    background: #1d4ed8;
    box-shadow: var(--shadow);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.slider-item {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    align-items: flex-end;
    padding: 18px 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #172554 0%, #2563eb 52%, #7dd3fc 100%);
    background-size: cover;
    background-position: center;
}

.slider-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 15, 38, .78) 0%, rgba(2, 15, 38, .22) 66%, rgba(2, 15, 38, .4) 100%);
}

.slider-item div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    max-width: 84%;
}

.slider-item span {
    width: max-content;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(250, 81, 81, .92);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
}

.slider-item b {
    overflow: hidden;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .18);
}

.slider-item small { color: #dbeafe; font-size: 12px; font-weight: 600; }

.slider-dots {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.slider-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .18s ease, background .18s ease;
}

.slider-dots button.active { width: 18px; background: #fff; }

/* --------------------------------------------------------------------------
   首页公告滚动条（轮播与分类之间，随机展示一条，右→左滚动）
   -------------------------------------------------------------------------- */

.notice-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    margin: 12px 0 0;
    padding: 0 14px;
    border: 1px solid #ffe0b8;
    border-radius: 12px;
    background: #fffaf1;
    overflow: hidden;
}

.notice-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #f59e0b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.notice-track {
    display: flex;
    width: max-content;
    animation: notice-scroll 16s linear infinite;
}

.notice-track span {
    display: inline-block;
    padding-right: 64px;
    color: #8a5a12;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.notice-viewport:hover .notice-track { animation-play-state: paused; }

@keyframes notice-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .notice-track { animation: none !important; }
}

/* --------------------------------------------------------------------------
   分类金刚区（小程序图标宫格）
   -------------------------------------------------------------------------- */

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    padding: 10px 2px 2px;
}

.home-category-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

.home-category-grid a:hover b { color: var(--blue); }

.home-category-grid svg,
.home-category-grid img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    color: var(--blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    object-fit: contain;
}

.home-category-grid b {
    max-width: 100%;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   内容列表 & 紧凑卡片（2 列卡片流）
   -------------------------------------------------------------------------- */

.catalog-section { padding: 2px 0 0; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 2px 11px;
}

.section-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.count-badge {
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--line-2);
    font-size: 11.5px;
    white-space: nowrap;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease;
}

.article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30, 41, 59, .1); }

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #fff;
    background: #1d4ed8;
}

.card-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(250, 204, 21, .8) 0 9%, transparent 9.5%),
        radial-gradient(circle at 52% 72%, rgba(236, 72, 153, .68) 0 22%, transparent 22.5%),
        linear-gradient(130deg, #312e81 0%, #2563eb 54%, #7dd3fc 55%);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 6px 6px;
    mix-blend-mode: overlay;
}

.article-card:nth-child(4n+2) .card-cover::before {
    background:
        radial-gradient(circle at 30% 28%, rgba(244, 114, 182, .75) 0 14%, transparent 14.5%),
        linear-gradient(135deg, #172554 0 46%, #7c3aed 46% 64%, #f59e0b 64%);
}

.article-card:nth-child(4n+3) .card-cover::before {
    background:
        radial-gradient(circle at 74% 72%, rgba(253, 224, 71, .75) 0 17%, transparent 17.5%),
        linear-gradient(135deg, #082f49 0 46%, #0891b2 46% 64%, #ef4444 64%);
}

.article-card:nth-child(4n+4) .card-cover::before {
    background:
        radial-gradient(circle at 64% 30%, rgba(199, 210, 254, .78) 0 12%, transparent 12.5%),
        linear-gradient(135deg, #3b0764 0 38%, #db2777 38% 62%, #f97316 62%);
}

.card-cover[style] { background-position: center; background-size: cover; background-repeat: no-repeat; }
.card-cover[style]::before,
.card-cover[style]::after { display: none; }

.cover-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 999px;
    color: #fff;
    background: rgba(250, 81, 81, .9);
    font-size: 10.5px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
}

.card-cover b {
    position: absolute;
    right: 11px;
    bottom: 0;
    z-index: 1;
    color: rgba(255, 255, 255, .85);
    font-size: 44px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.card-body { padding: 10px 12px 11px; }

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--muted-2);
    font-size: 11px;
}

.card-meta strong { color: var(--orange); font-size: 12.5px; font-weight: 800; }
.card-meta strong.free { color: var(--green); }

.card-body h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.card-body h3 a:hover { color: var(--blue); }

.card-body p,
.card-link { display: none; }

/* --------------------------------------------------------------------------
   分类页 / 搜索页
   -------------------------------------------------------------------------- */

.category-page {
    min-height: calc(100vh - 108px);
    padding: 4px 0 20px;
}

.category-page > h1 {
    margin: 6px 2px 16px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    transition: border-color .14s ease, color .14s ease;
}

.category-tile:hover { border-color: #c6d7f0; color: var(--blue); }

.category-tile svg,
.category-tile img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    color: var(--blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    object-fit: contain;
}

.category-tile.active {
    color: var(--blue);
    border-color: rgba(37, 99, 235, .35);
    background: var(--blue-soft);
}

.category-result {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.category-result h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.category-result .article-grid,
.search-page .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.search-summary {
    margin: -6px 2px 16px;
    color: var(--muted);
    font-size: 13px;
}

.account-empty {
    grid-column: 1 / -1;
    padding: 36px 0;
    color: var(--muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   文章阅读页
   -------------------------------------------------------------------------- */

/* 微信文章式：整块阅读区铺白，内容列居中，纵向撑满视口 */
body.reader-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reader-page .site-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 28px;
    background: var(--surface);
    flex: 1;
}

.reader-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 18px 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin: 2px 0 14px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color .12s ease, color .12s ease, background .12s ease, transform .12s ease;
}

.back-link:hover {
    color: var(--blue);
    border-color: #c9d8ee;
    background: var(--blue-soft);
}

.back-link:active { transform: scale(.97); }

.back-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reader-panel {
    padding: clamp(18px, 4vw, 40px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.reader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted-2);
    font-size: 12px;
}

.reader-meta span {
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 600;
}

.reader-panel h1 {
    margin: 12px 0 20px;
    color: var(--ink);
    font-size: clamp(20px, 4vw, 27px);
    font-weight: 800;
    line-height: 1.4;
}

.article-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content.full-content {
    margin-top: 4px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.article-content p { margin: 0 0 14px; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    margin: 24px 0 12px;
    color: var(--ink);
    line-height: 1.4;
}
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17px; }

.article-content img {
    display: block;
    max-width: 100%;
    min-height: 24px;
    height: auto;
    margin: 16px auto;
    border-radius: 10px;
}

.article-image-previewable { cursor: zoom-in; }
body.image-preview-open { overflow: hidden; }
.watermark-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 118px;
    align-content: space-around;
    gap: 18px 36px;
    overflow: hidden;
    padding: 20px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    opacity: .13;
    transform: rotate(-18deg) scale(1.16);
    transform-origin: center;
}
.watermark-layer span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}
.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 28px;
    background: rgba(10, 18, 30, .94);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.image-preview-overlay.is-open { display: flex; }
.image-preview-image {
    display: block;
    max-width: min(92vw, 1280px);
    max-height: 88vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform .08s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}
.image-preview-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-size: 30px;
    line-height: 34px;
    cursor: pointer;
}
.image-preview-close:hover { background: rgba(255, 255, 255, .25); }

.article-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content blockquote {
    margin: 16px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    background: var(--blue-soft);
    color: var(--muted);
}

.article-content ul, .article-content ol { padding-left: 22px; }

.article-content pre {
    overflow: auto;
    padding: 14px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.7;
}

.article-content code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #eef1f6;
    color: #c2410c;
    font-size: .9em;
}

.article-content pre code { padding: 0; background: transparent; color: inherit; }

.article-content .paygo-hidden {
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px dashed #9dbcf5;
    border-radius: 9px;
    background: #f4f8ff;
}

.article-content .paygo-paywall-break { display: none; }

.article-content summary { color: var(--blue); cursor: pointer; font-weight: 600; }

.reader-page:not(.reader-unlocked) .article-content {
    -webkit-user-select: none;
    user-select: none;
}

.reader-page .article-content img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* 付费解锁面板 */
.unlock-panel {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #dbe7f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #f4f9ff, #edf4ff);
}

.unlock-panel span { color: var(--orange); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }

.unlock-panel h2 {
    margin: 5px 0 7px;
    color: var(--ink);
    font-size: 18px;
}

.unlock-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 阅读页互动（底部操作栏） */
.reader-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
}

.reader-actions form { margin: 0; }

.reader-actions-bottom {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.reader-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: var(--surface);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
}

.reader-action:hover { color: var(--blue); border-color: #bcd3f3; background: var(--blue-soft); }

.reader-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reader-action i { font-style: normal; opacity: .72; }

.reader-action.is-liked { color: #e11d48; border-color: #f9c8d4; background: #fff1f4; }

.reader-action.favorite-action.is-favorited { color: #e11d48; border-color: #f9c8d4; background: #fff1f4; }

.favorite-action.favorite-action.is-favorited svg path,
.reader-action.favorite-action.is-favorited svg path { fill: currentColor; }

.reader-action.buy-action {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}

.reader-action.buy-action:hover {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
    box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
}

.share-status { color: var(--blue); font-size: 12px; font-weight: 600; }

.heart-pop {
    position: absolute;
    left: 50%;
    top: 0;
    color: #f43f5e;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
    animation: heart-float .85s ease-out forwards;
}

@keyframes heart-float {
    0% { opacity: 0; transform: translate(-50%, 0) scale(.5); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -30px) scale(1.15); }
}

.center-panel { text-align: center; }
.center-panel p { color: var(--muted); }
.center-panel .btn { margin-top: 16px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }

/* --------------------------------------------------------------------------
   账号相关页
   -------------------------------------------------------------------------- */

.account-shell {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 10px 0 44px;
}

.account-form {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.account-form h1 { margin: 0 0 6px; color: var(--ink); font-size: 22px; font-weight: 800; }

.account-form > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.account-form label {
    display: block;
    margin: 14px 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.account-form input {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    padding: 0 11px;
    border: 1px solid #d6deeb;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.account-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.account-primary {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
}

.account-links a { color: var(--blue); font-size: 13px; }

.account-alert,
.account-notice {
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
}

.account-alert { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.account-notice { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; }

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.account-form .captcha-row input { margin: 0; }

.captcha-row img {
    width: 116px;
    height: 42px;
    border: 1px solid #d6deeb;
    border-radius: 9px;
    cursor: pointer;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 4px 2px 20px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .26);
}

.profile-top h1 { margin: 0; color: var(--ink); font-size: 19px; }
.profile-top p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

/* ==========================================================================
   「我的」页（UniApp 风格：蓝渐变头部 + 波浪过渡 + 彩色图标菜单）
   ========================================================================== */

.profile-page { padding: 0; }
.profile-page .profile-hero { margin-top: 0; }

.profile-hero {
    position: relative;
    margin: -12px -12px 0;
    padding: 36px 16px 42px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(165deg, #45a2ff 0%, #1e7bff 55%, #2f8cff 100%);
}

.profile-avatar-lg {
    width: 86px;
    height: 86px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding: 6px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(8, 60, 140, .35);
}

.profile-avatar-lg svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.profile-hero h2 {
    margin: 13px 0 5px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .01em;
}

.profile-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 12.5px;
}

.profile-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 44px;
}

.profile-menu {
    margin: 14px 0 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.pm-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--line-2);
    transition: background .12s ease;
}

.pm-item:last-child { border-bottom: 0; }
.pm-item:hover { background: #f7faff; }

.pm-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.pm-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-icon-orange { color: #f97316; background: #fff3e8; }
.pm-icon-cyan { color: #0e9bb0; background: #e6f8fb; }
.pm-icon-green { color: #16a34a; background: #e9f9ef; }
.pm-icon-pink { color: #e11d48; background: #ffeff3; }
.pm-icon-gray { color: #64748b; background: #f1f4f8; }

.pm-text { flex: 1; min-width: 0; }

.pm-text b {
    display: block;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
}

.pm-text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.pm-arrow {
    flex-shrink: 0;
    color: #c3ccd8;
    font-size: 21px;
    line-height: 1;
}

/* 余额行快速操作（充值 / 购买卡密） */
.balance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.balance-row strong { color: var(--orange); font-size: 13.5px; }

.balance-actions {
    margin-left: auto;
    display: flex;
    gap: 7px;
}

.balance-link {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #c9d8ee;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 12px;
    font-weight: 600;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}

.balance-link:hover { border-color: var(--blue); background: #e2ecff; }

.balance-link-out { color: var(--orange); border-color: #ffd9b8; background: #fff6ee; }
.balance-link-out:hover { border-color: var(--orange); background: #ffedd8; }

/* 充值页「前往自助发卡网购买」按钮 */
.card-shop-btn {
    margin-top: 10px;
    color: var(--orange);
    border: 1px solid #ffd9b8;
    background: #fff6ee !important;
    box-shadow: none !important;
}

.card-shop-btn:hover { background: #ffedd8 !important; box-shadow: none !important; }

.account-menu {
    display: grid;
    gap: 8px;
    margin: 12px 0 20px;
}

.account-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font-weight: 500;
    transition: border-color .12s ease, background .12s ease;
}

.account-menu a:hover { border-color: #c6d7f0; background: var(--blue-soft); }
.account-menu span { color: var(--muted-2); font-size: 18px; line-height: 16px; }

.purchases-page { width: min(540px, 100%); }
.purchases-page h1 { margin: 0 0 14px; color: var(--ink); font-size: 20px; font-weight: 700; }

.purchase-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
}

.purchase-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}

.purchase-list a:last-child { border-bottom: 0; }
.purchase-list a:hover { background: var(--blue-soft); }
.purchase-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.purchase-list small { color: var(--orange); font-weight: 700; white-space: nowrap; }

/* --------------------------------------------------------------------------
   购买 / 支付页
   -------------------------------------------------------------------------- */

/* 支付页保留灰底卡片样式 */
.payment-page .site-main {
    background: var(--bg);
    min-height: 0;
}

.payment-shell {
    min-height: calc(100vh - 108px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px !important;
}

.payment-panel {
    width: min(420px, 100%);
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}
.payment-panel .eyebrow { color: var(--blue); }
.payment-panel h1 { margin: 6px 0 18px; font-size: 24px; }

.payment-summary {
    display: grid;
    gap: 6px;
    padding: 13px 16px;
    margin: 0 auto 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--blue-soft);
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}

.payment-summary strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-summary b { color: var(--orange); font-size: 15px; }

.payment-qr-frame {
    display: grid;
    place-items: center;
    width: 270px;
    height: 270px;
    margin: 0 auto 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.pay-qr { display: block; width: 236px; height: 236px; margin: 0; }

.payment-status { margin: 0 !important; color: var(--blue) !important; font-size: 15px !important; font-weight: 700; }
.payment-dots { display: inline-block; width: 18px; overflow: hidden; text-align: left; letter-spacing: 1px; }

.payment-hint {
    margin: 5px 0 0 !important;
    color: var(--muted) !important;
    font-size: 12px;
}

.payment-countdown { color: var(--blue); font-variant-numeric: tabular-nums; font-weight: 700; }

.payment-back { width: 100%; margin-top: 22px !important; }

.buy-choice-wrap { position: relative; display: inline-flex; }
.payment-choice { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; display: none; min-width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.payment-choice.is-open { display: grid; gap: 4px; }
.payment-choice a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--ink); font-size: 13px; text-align: center; white-space: nowrap; }
.payment-choice a:hover { background: var(--blue-soft); color: var(--blue); }

@media (max-width: 699px) {
    body.payment-sheet-open::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(15, 23, 42, .34);
    }

    .payment-choice {
        position: fixed;
        top: auto;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 90;
        width: auto;
        min-width: 0;
        padding: 8px;
        border: 0;
        border-radius: 18px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 12px 34px rgba(15, 23, 42, .24);
    }

    .payment-choice.is-open {
        display: grid;
        gap: 2px;
        animation: payment-sheet-in .18s ease-out both;
    }

    .payment-choice a {
        min-height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
    }

    @keyframes payment-sheet-in {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --------------------------------------------------------------------------
   底部导航 & 页脚
   -------------------------------------------------------------------------- */

.site-footer {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 10px 14px 16px;
    color: var(--muted-2);
    font-size: 11.5px;
    text-align: center;
}

.site-footer a { color: var(--muted-2); }
.site-footer a:hover { color: var(--blue); }

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .05);
}

.bottom-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
}

.bottom-nav a + a { border-left: 1px solid var(--line); }

.bottom-nav a svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav a.active { color: var(--blue); font-weight: 700; }
.bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--blue);
}

/* --------------------------------------------------------------------------
   PC 顺带适配（宽度足够时，放宽列数，但仍保持紧凑）
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
    .site-main { padding: 18px 20px 28px; }
    .header-inner,
    .site-main,
    .site-footer { padding-left: 20px; padding-right: 20px; }

    .profile-hero { margin: -18px -20px 0; }

    .banner-slider { height: 200px; }
    .slider-item { padding: 24px 28px; }
    .slider-item b { font-size: 24px; }

    .home-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 12px; }

    .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
    .card-cover b { font-size: 50px; }

    .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
    .category-result .article-grid,
    .search-page .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }

    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
}

@media (min-width: 1000px) {
    .article-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-result .article-grid,
    .search-page .article-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
    body { padding-bottom: 58px; }

    .site-header,
    .header-inner { height: 50px; }
    .brand-logo { width: 28px; height: 28px; border-radius: 7px; }
    .brand-logo svg { width: 17px; height: 17px; }
    .brand-text strong { max-width: 200px; font-size: 15px; }

    .search-dialog { height: 44px; }
    .search-dialog input { font-size: 14px; }

    .banner-slider { height: 150px; }

    /* 阅读页：不强行撑高视口，内容结束后紧凑收尾 */
    body.reader-page { min-height: 0; display: block; }

    .reader-page .site-main { padding: 0; }
    .reader-shell { padding: 10px 16px 12px; }
    .reader-panel { padding: 14px 2px 6px; }
    .article-content { font-size: 16px; }

    /* 底部操作栏：行内展示（内容末尾） */
    .reader-actions-bottom {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .reader-actions-bottom form { display: contents; }

    .reader-actions-bottom .reader-action {
        padding: 0 4px;
        min-width: 0;
    }

    .reader-actions-bottom .buy-action {
        grid-column: 1 / -1;
        min-height: 38px;
    }

    .reader-actions-bottom .buy-choice-wrap {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .reader-actions-bottom .buy-choice-wrap .buy-action {
        width: min(100%, 280px);
    }

    .reader-actions-bottom .payment-choice {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .reader-actions-bottom .share-status {
        grid-column: 1 / -1;
        text-align: center;
    }

    .account-form { padding: 18px 15px; border-radius: 13px; }
    .payment-shell { padding: 18px 14px 24px !important; }
    .payment-panel { padding: 20px 16px; }
    .payment-panel h1 { font-size: 21px; }
    .payment-qr-frame { width: 250px; height: 250px; }

    .site-footer { padding: 10px 14px 16px; }
}

/* --------------------------------------------------------------------------
   列表分页（小程序风格）
   -------------------------------------------------------------------------- */

.page-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 8px;
}

.page-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

.page-btn:hover { color: var(--blue); border-color: #c6d7f0; background: var(--blue-soft); }

.page-info {
    color: var(--muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   v66 UniApp 小程序风格精修层（覆盖式：更亮的蓝、大圆角、胶囊、轻底色）
   ========================================================================== */

:root {
    --blue: #3a7afe;
    --blue-2: #5b8dff;
    --blue-soft: #eef4ff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 16px rgba(30, 80, 220, .08);
}

body { background: #f7f8fa; font-size: 14.5px; }

/* 顶栏：更沉浸 */
.site-header { height: 54px; background: rgba(255, 255, 255, .92); }
.site-header,
.header-inner { height: 54px; }
.brand-logo { border-radius: 10px; }
.search-trigger,
.user-trigger {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-soft);
}
.search-trigger:hover,
.user-trigger:hover { color: #2d63e0; background: #e2ecff; }

/* 横幅轮播：大圆角 + 柔和投影 */
.banner-slider { height: 158px; border-radius: 16px; box-shadow: 0 10px 26px rgba(15, 60, 180, .14); }
.slider-item { border-radius: 16px; }
.slider-item b { font-size: 21px; }

/* 公告条更圆 */
.notice-bar { border-radius: 14px; }

/* 文章卡片：无边框 + 大圆角 + 轻阴影 */
.article-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 30, 80, .06);
}
.card-cover { border-radius: 16px 16px 0 0; }
.cover-tag { border-radius: 999px; }
.card-meta { font-size: 11px; }
.card-body h3 { font-size: 14.5px; font-weight: 650; }
.card-body { padding: 11px 13px 13px; }

/* 区块标题 */
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }

/* 按钮 & 表单：胶囊语言 */
.btn { border-radius: 999px; }
.account-primary { border-radius: 999px; }
.account-form { border-radius: 18px; padding: 26px 22px; }
.account-form input {
    height: 44px;
    border-radius: 12px;
    border-color: #e4e9f2;
    background: #fbfcfe;
}
.account-form input:focus { background: #fff; }
.captcha-row img { border-radius: 12px; }

/* 阅读页 */
.reader-panel h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.back-link { border-radius: 999px; }
.reader-action { border-radius: 999px; }
.unlock-panel { border-radius: 16px; }
.payment-qr-frame { border-radius: 20px; }

/* 底部 tabbar：微信式 */
.bottom-nav {
    height: 62px;
    border-top: 1px solid #f0f2f5;
    box-shadow: 0 -6px 24px rgba(15, 30, 80, .06);
}
.bottom-nav a { font-size: 11px; color: #9aa3b2; }
.bottom-nav a.active { color: var(--blue); font-weight: 800; }
.bottom-nav a svg { width: 24px; height: 24px; stroke-width: 1.6; }

/* 页脚淡化 */
.site-footer { color: #b0b7c4; }

/* Card pricing badge: a compact diagonal ribbon anchored to the cover corner. */
.card-cover .cover-tag {
    position: absolute;
    top: 14px;
    left: -30px;
    z-index: 4;
    width: 112px;
    padding: 5px 0;
    color: #fff;
    background: #e53935;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
}

.card-cover .cover-tag.free { background: #38bdf8; }

/* Lists show only the article title; metadata remains available on the detail page. */
.article-card .card-meta {
    display: none;
}

.article-card .card-body h3 {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
