:root {
    --bg: #fbfaf7;
    --panel: #ffffff;
    --ink: #1c1a17;
    --muted: #6f6a62;
    --line: #e6e1d8;
    --accent: #9a3412;
    --accent-soft: #f6ece4;
    --radius: 6px;
    --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(251, 250, 247, .88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.search-mini { margin-left: auto; }
.search-mini input {
    width: 180px; padding: 7px 10px; font-size: 13px;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
    font-family: inherit;
}

.main { padding: 42px 22px 72px; }

/* Hero */
.hero {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px;
    align-items: center; margin-bottom: 44px;
}
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.hero-body h1 { font-size: 32px; line-height: 1.3; margin: 12px 0 14px; letter-spacing: -.01em; }
.hero-body .lead { color: var(--muted); margin: 0 0 16px; }
.hero-body h1 a:hover { color: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.chip {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 12px; letter-spacing: .02em;
}
.chip-outline {
    background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.chip-outline:hover { border-color: var(--accent); color: var(--accent); }
.chip-outline.active { border-color: var(--ink); color: var(--ink); }
.chip .count { opacity: .55; font-size: 11px; }

/* Sections */
.section { margin: 0 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 20px; margin: 0; letter-spacing: .02em; }
.more { font-size: 14px; color: var(--muted); }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.card { display: flex; flex-direction: column; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); background: #eee9e1; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-placeholder {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 3 / 2; font-size: 40px; color: #b9b0a4; background: #efeae2;
}
.card-placeholder.big { font-size: 64px; }
.card-body { padding-top: 12px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.card-title { font-size: 18px; line-height: 1.45; margin: 8px 0 6px; }
.card-excerpt { font-size: 14px; color: var(--muted); margin: 0; }

/* Gallery strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; transition: opacity .2s; }
.strip-item:hover img { opacity: .85; }

/* Page head */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.01em; }

/* Post */
.post { max-width: 900px; margin: 0 auto 56px; }
.post-head h1 { font-size: 36px; line-height: 1.28; margin: 14px 0 12px; letter-spacing: -.01em; }
.post-cover { margin: 28px 0; }
.post-cover img { width: 100%; border-radius: var(--radius); }
.post-gallery { margin-top: 40px; }
.post-gallery h2 { font-size: 18px; }
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.2em; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; }
.prose blockquote {
    margin: 1.6em 0; padding: 4px 18px; border-left: 3px solid var(--accent);
    color: var(--muted); background: #fff;
}
.prose pre {
    background: #1f1d1a; color: #eee; padding: 16px; border-radius: 6px;
    overflow-x: auto; font-size: 13px; line-height: 1.6;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.prose :not(pre) > code { background: #efeae2; padding: 2px 5px; border-radius: 3px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.tags { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 13px; color: var(--muted); }

/* Search */
.search-page { display: flex; gap: 10px; max-width: 480px; margin: 12px 0; }
.search-page input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 4px; font-size: 15px; font-family: inherit;
}
.search-page button, .btn {
    padding: 10px 16px; border: 1px solid var(--ink); background: var(--ink);
    color: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; font-family: inherit;
}
.search-page button:hover, .btn:hover { background: #333; }

/* Masonry gallery */
.masonry { columns: 3; column-gap: 14px; }
.masonry-item {
    display: block; margin: 0 0 14px; break-inside: avoid;
    border-radius: 4px; overflow: hidden; position: relative;
}
.masonry-item img { width: 100%; }
.masonry-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 10px 8px; font-size: 12px; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
}

/* Pager */
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 40px 0 0; font-size: 14px; }
.pager-item { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.pager-item:hover { border-color: var(--ink); color: var(--ink); }
.pager-item.disabled { opacity: .45; }
.pager-info { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 4px 0; }
.footer-meta { text-align: right; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(12, 11, 10, .93);
    display: flex; align-items: center; justify-content: center; padding: 32px;
}
/* [hidden] 必须能覆盖上面的 display:flex，否则遮罩会一直挂在那里 */
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 18px; right: 24px; background: none; border: 0;
    color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .7;
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; gap: 20px; }
    .hero-body h1 { font-size: 26px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
    .masonry { columns: 2; }
    .strip { grid-template-columns: repeat(3, 1fr); }
    .post-head h1 { font-size: 28px; }
}

@media (max-width: 560px) {
    .header-inner { gap: 14px; }
    .nav { display: none; }
    .search-mini input { width: 130px; }
    .grid { grid-template-columns: 1fr; }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .masonry { columns: 1; }
    .footer-meta { text-align: left; }
    .prose { font-size: 16px; }
}

/* 登录 / 注册 */
.auth-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg); padding: 40px 18px;
}
.auth-card {
    width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; padding: 32px 30px 28px;
}
.auth-brand { font-size: 22px; font-weight: 700; }
.auth-sub { margin: 4px 0 20px; font-size: 14px; }
.auth-form label { display: block; font-size: 14px; margin-bottom: 14px; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=tel] {
    width: 100%; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--line);
    border-radius: 5px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.auth-form input:focus { outline: 2px solid #f0e2d8; border-color: var(--accent); }
.auth-form .inline { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.auth-form .inline input { width: auto; margin: 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.auth-grid .span-2 { grid-column: span 2; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.block { display: block; width: 100%; padding: 11px 16px; font-size: 15px; }
.auth-links { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--accent); text-decoration: underline; }
.auth-flash { background: #fdf2ec; border: 1px solid #f3d6c4; color: #8a3b12; padding: 10px 12px; border-radius: 5px; margin-bottom: 16px; font-size: 13px; }
.auth-flash.error { background: #fdecec; border-color: #f5c2c2; color: #7f1d1d; }
.auth-flash ul { margin: 0; padding-left: 18px; }

/* 顶部用户栏 */
.userbar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.userbar-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--accent); }

@media (max-width: 560px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-grid .span-2 { grid-column: auto; }
}

/* 章节 */
.chapter-heading {
    margin: 30px 0 6px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.chapter-index { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.chapter-title { font-size: 22px; line-height: 1.4; margin: 8px 0 18px; }
.chapter-intro { color: var(--muted); }
.chapter-pager {
    display: flex; align-items: center; gap: 12px; justify-content: center;
    flex-wrap: wrap; margin: 40px 0 0; font-size: 14px;
}
.pager-nums { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 4px; color: var(--muted);
    font-variant-numeric: tabular-nums;
}
a.pager-num:hover { border-color: var(--ink); color: var(--ink); }
.pager-num.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-ellipsis { color: var(--muted); padding: 0 2px; }


}

/* 分类层级与图集卡片 */
.card-kind { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; }
.card--image .card-media img { aspect-ratio: 4 / 5; }
.card--image .card-title { font-size: 16px; }

/* 图集区块：更密的竖版封面 */
.grid--covers { grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
@media (max-width: 860px) { .grid--covers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid--covers { grid-template-columns: repeat(2, 1fr); } }

/* 首页顶部轮播 */
.carousel {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #0f0d0b;
    margin-bottom: 52px;
    box-shadow: 0 30px 60px -34px rgba(28, 22, 16, .6);
    isolation: isolate;
}
.carousel-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .85s ease; z-index: 0; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform 8s ease-out; }
.carousel-slide.active img { transform: scale(1.075); }
.carousel-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 7, 6, .88) 0%, rgba(8, 7, 6, .42) 42%, rgba(8, 7, 6, .06) 72%),
        linear-gradient(105deg, rgba(8, 7, 6, .5) 0%, transparent 55%);
}
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 42px 36px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.carousel-kicker { display: flex; align-items: center; gap: 10px; }
.carousel-cat {
    font-size: 12px;
    letter-spacing: .04em;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}
.carousel-kind { font-size: 11px; color: rgba(255, 255, 255, .62); letter-spacing: .18em; }
.carousel-title {
    font-size: clamp(20px, 2.5vw, 33px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    max-width: 24em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.carousel-meta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: rgba(255, 255, 255, .68); }
.carousel-more { color: #fff; }
.carousel-slide:hover .carousel-more { text-decoration: underline; }
.carousel-counter {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 3;
    font-size: 12px;
    color: #fff;
    background: rgba(12, 10, 8, .42);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 5px 12px;
    backdrop-filter: blur(10px);
    letter-spacing: .04em;
}
.carousel-counter b { font-weight: 600; }
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(18, 15, 12, .32);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .25s, background .25s, color .25s;
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: #fff; color: #1b1712; border-color: #fff; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots { position: absolute; right: 24px; bottom: 22px; z-index: 3; display: flex; gap: 6px; }
.carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.carousel-dot.active { width: 20px; border-radius: 4px; background: #fff; }
.carousel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); z-index: 3; }
.carousel-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .7)); }
.carousel.is-running .carousel-progress span { animation: carouselBar 5s linear forwards; }
.carousel.is-paused .carousel-progress span { animation-play-state: paused; }
@keyframes carouselBar { from { width: 0; } to { width: 100%; } }

@media (max-width: 720px) {
    .carousel { aspect-ratio: 4 / 3; border-radius: 12px; margin-bottom: 34px; }
    .carousel-caption { padding: 0 18px 26px; gap: 8px; }
    .carousel-title { font-size: 18px; }
    .carousel-meta { gap: 12px; font-size: 12px; }
    .carousel-arrow { display: none; }
    .carousel-counter { top: 12px; right: 12px; }
    .carousel-dots { right: 14px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-slide, .carousel-slide img { transition: none; }
    .carousel.is-running .carousel-progress span { animation: none; width: 100%; }
}

/* 个人中心 */
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; }
.panel-light { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px; margin-bottom: 18px; }
.panel-light h2 { font-size: 14px; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.panel-light .points { font-size: 34px; font-weight: 700; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.panel-light .btn.block { margin-bottom: 10px; }
.notice { border: 1px solid #f0e0d2; background: #fdf6f0; color: #8a3b12; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }
.notice-error { border-color: #f5c2c2; background: #fdecec; color: #7f1d1d; }
td.plus { color: #0f766e; }
td.minus { color: #b91c1c; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

/* 注册提示：邀请码必填 */
.hint-danger { color: #b91c1c; font-weight: 500; }

/* 注册占位提示 */
.auth-form input::placeholder { color: #9a958d; }
.auth-form input.input-invite::placeholder { color: #b91c1c; opacity: 1; }

/* 个人中心：表格与徽章 */
.table-wrap { overflow-x: auto; border-radius: 8px; }
.profile-grid .table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}
.profile-grid .table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: #faf8f5;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.profile-grid .table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.profile-grid .table tbody tr:last-child td { border-bottom: 0; }
.profile-grid .table tbody tr:hover { background: #fcfbf9; }
.profile-grid .table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: .03em;
    background: #f4f1ec;
    padding: 3px 8px;
    border-radius: 4px;
}
.status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
}
.status-pill.ok { background: #e8f3ee; color: #17603f; }
.status-pill.off { background: #f1f0ee; color: #6f6a62; }
.profile-grid .points { letter-spacing: -.02em; }
.profile-grid .section:last-child { margin-bottom: 0; }

/* 注册表单即时校验 */
.field-error { display: block; color: #b91c1c; font-size: 12px; line-height: 1.5; margin-top: 4px; min-height: 0; }
.field-error:empty { display: none; }
.form-error { margin: 6px 0 12px; }
.auth-form input.invalid { border-color: #d9534f; box-shadow: 0 0 0 2px rgba(217, 83, 79, .12); }

/* 个人中心：移动端表格转卡片 */
.status-pill { white-space: nowrap; }
@media (max-width: 720px) {
    .profile-grid .table-wrap { overflow: visible; }
    .profile-grid .table {
        min-width: 0;
        border: 0;
        background: transparent;
        display: block;
    }
    .profile-grid .table thead { display: none; }
    .profile-grid .table tbody { display: block; }
    .profile-grid .table tr {
        display: block;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }
    .profile-grid .table tr:hover { background: #fff; }
    .profile-grid .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 7px 0;
        border-bottom: 1px dashed #f0ece5;
        text-align: right;
    }
    .profile-grid .table tr td:last-child { border-bottom: 0; }
    .profile-grid .table td::before {
        content: attr(data-label);
        flex: 0 0 76px;
        text-align: left;
        color: var(--muted);
        font-size: 12px;
        white-space: nowrap;
    }
    .profile-grid .table code { font-size: 12px; }
}

/* 语音朗读 */
.reader { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; }
.reader-launch {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: #25211d;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(30, 25, 20, .22);
}
.reader-launch:hover { background: #000; }
.reader-panel {
    width: 300px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(30, 25, 20, .16);
    padding: 14px;
    margin-bottom: 10px;
}
.reader-panel[hidden] { display: none; }
.reader-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.reader-close { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.reader-field { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.reader-field select {
    width: 100%;
    margin-top: 5px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #25211d;
}
.reader-actions { display: flex; gap: 8px; margin-top: 4px; }
.reader-actions .btn { flex: 1; }
.reader-status { margin: 10px 0 0; font-size: 12px; color: var(--muted); min-height: 16px; }
.prose .reading { background: #fff2cf; border-radius: 3px; }
@media (max-width: 640px) {
    .reader { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
    .reader-launch { align-self: flex-end; }
    .reader-panel { width: auto; }
}

/* 文字文章卡片：不显示封面 */
.card--text {
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .2s ease, transform .2s ease;
}
.card--text:hover { border-color: #d9d2c7; transform: translateY(-1px); }
.card--text .card-body { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.card--text .card-title { margin: 0; font-size: 18px; line-height: 1.45; }
.card--text .card-excerpt { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.card--text .card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card-author { color: var(--accent); font-weight: 500; }
.card-author:hover { text-decoration: underline; }

/* 视频 */
.video-block { margin: 0 0 28px; }
.video-block video { display: block; width: 100%; border-radius: 12px; background: #000; }
.card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    background: rgba(0, 0, 0, .18);
    pointer-events: none;
}
