/* ==========================================================================
   MEMPHIS COMIC · PC 页面层
   首页 / 作品页 / 阅读器 / 书库 / 搜索 / 文档 / 用户中心 / 登录 / 支付
   ========================================================================== */

/* ============================================================ 首页：拼贴主视觉 */
.mf-hero {
    position: relative;
    margin-top: 34px;
    padding: 24px 34px 18px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 34px 34px 34px 6px;
    box-shadow: 10px 10px 0 var(--blue);
    overflow: hidden;
    overflow: clip;
}

.mf-hero__left,
.mf-hero__right { position: relative; z-index: 1; min-width: 0; }

.mf-hero__deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: clip;
    pointer-events: none;
}

.mf-hero__deco::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 280px;
    height: 280px;
    background: var(--yellow);
    border: var(--bd);
    border-radius: 50%;
    opacity: .9;
}

.mf-hero__top,
.mf-hero__viewport,
.mf-hero__bar { position: relative; z-index: 2; }

.mf-hero__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mf-hero__count {
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--ink-3);
}

.mf-hero__count b {
    font-family: var(--f-disp);
    font-size: 17px;
    letter-spacing: 0;
    color: var(--ink);
}

/* 轮播视口 / 轨道 */
.mf-hero__viewport {
    margin-top: 12px;
    overflow: hidden;
    overflow: clip;
}

.mf-hero__track {
    display: flex;
    align-items: stretch;
    transition: transform .58s cubic-bezier(.22, .72, .2, 1);
    will-change: transform;
}

.mf-hero__slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 40px;
    align-items: center;
    padding: 0 0 10px;
}

.mf-hero__title {
    margin: 0;
    font-family: var(--f-disp);
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: 1.02;
    letter-spacing: -.03em;
    word-break: break-word;
}

.mf-hero__title span {
    display: block;
    position: relative;
    width: fit-content;
}

.mf-hero__title span::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    bottom: 4px;
    height: 16px;
    background: var(--yellow);
    z-index: -1;
    transform: skewX(-8deg);
}

.mf-hero__title em {
    display: block;
    margin-top: 12px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--ink-3);
}

.mf-hero__desc {
    display: -webkit-box;
    max-width: 460px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mf-hero__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.mf-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
    max-width: 470px;
}

.mf-hero__stat {
    padding: 12px 14px;
    border: var(--bd-thin);
    border-radius: 12px;
    background: var(--yellow-soft);
    box-shadow: 3px 3px 0 var(--ink);
}

.mf-hero__stat:nth-child(2) { background: var(--pink-soft); }
.mf-hero__stat:nth-child(3) { background: var(--mint-soft); }

.mf-hero__stat b {
    display: block;
    font-family: var(--f-disp);
    font-size: 24px;
    line-height: 1;
}

.mf-hero__stat span {
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: .16em;
    color: var(--ink-3);
}

/* 轮播控制条 */
.mf-hero__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 2px;
    padding-top: 16px;
    border-top: 2px dashed rgba(22, 19, 15, .18);
}

.mf-hero__dots { display: flex; align-items: center; gap: 8px; }

.mf-hero__dot {
    min-width: 40px;
    height: 26px;
    padding: 0 8px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--ink);
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 7px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.mf-hero__dot:hover { transform: translateY(-2px); }

.mf-hero__dot.is-on {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 3px 3px 0 var(--pink);
}

.mf-hero__nav { display: flex; gap: 9px; margin-left: auto; }

.mf-hero__arw {
    display: grid;
    place-items: center;
    width: 46px;
    height: 38px;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 9px;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.mf-hero__arw:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.mf-hero__arw:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mf-hero__arw .icon { width: 20px; height: 20px; }

/* 右侧拼贴 */
.mf-collage {
    position: relative;
    padding: 14px 20px 20px;
    min-height: 396px;
}

.mf-collage__frame {
    position: relative;
    width: 264px;
    margin: 0 auto;
    aspect-ratio: 3 / 3.85;
    background: #e6d9c3;
    border: var(--bd);
    border-radius: 12px;
    box-shadow: 10px 10px 0 var(--ink);
    transform: rotate(-3.2deg);
    z-index: 3;
}

.mf-collage__shot {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 9px;
}

.mf-collage__shot a { display: block; width: 100%; height: 100%; }

.mf-collage__frame img { width: 100%; height: 100%; object-fit: cover; }

.mf-collage__frame figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 14px 12px;
    background: linear-gradient(transparent, rgba(22, 19, 15, .88));
    color: #fff;
}

.mf-collage__frame figcaption b {
    display: block;
    font-family: var(--f-disp);
    font-size: 17px;
    line-height: 1.25;
}

.mf-collage__frame figcaption span {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--yellow);
}

.mf-collage__no {
    position: absolute;
    top: -16px;
    right: -8px;
    z-index: 4;
    padding: 8px 14px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    background: var(--pink);
    color: #fff;
    border: var(--bd-thin);
    box-shadow: var(--sh-sm);
    transform: rotate(7deg);
}

.mf-collage__note {
    position: absolute;
    left: -4px;
    bottom: 14px;
    z-index: 5;
    width: 176px;
    padding: 10px 12px;
    background: var(--mint-soft);
    border: var(--bd-thin);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-2deg);
}

.mf-collage__note b {
    display: block;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--ink-3);
    margin-bottom: 4px;
}

.mf-collage__note p { font-size: 12px; line-height: 1.7; }

.mf-collage__shape {
    position: absolute;
    border: var(--bd);
}

.mf-collage__shape--a {
    width: 84px;
    height: 84px;
    left: 4px;
    top: 12px;
    background: var(--lav);
    border-radius: 50%;
}

.mf-collage__shape--b {
    width: 120px;
    height: 26px;
    right: 0;
    bottom: 74px;
    background: var(--blue);
    border-radius: 999px;
    transform: rotate(-14deg);
}

/* 三条通道 */
.mf-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.mf-pillar {
    position: relative;
    padding: 24px 24px 22px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh);
    transition: transform .16s ease, box-shadow .16s ease;
}

.mf-pillar:nth-child(2) { background: var(--yellow-soft); }

.mf-pillar:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--pink); }

.mf-pillar__no {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    font-family: var(--f-disp);
    font-size: 15px;
    background: var(--blue);
    color: #fff;
    border: var(--bd-thin);
    border-radius: 50%;
}

.mf-pillar:nth-child(2) .mf-pillar__no { background: var(--pink); }
.mf-pillar:nth-child(3) .mf-pillar__no { background: var(--mint); color: var(--ink); }

.mf-pillar h3 {
    font-family: var(--f-disp);
    font-size: 20px;
    line-height: 1.2;
}

.mf-pillar p {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--ink-2);
    min-height: 46px;
}

.mf-pillar__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .08em;
    border-bottom: 2px solid var(--ink);
}

/* 全宽色带 */
.mf-band {
    margin-top: 54px;
    padding: 40px 0 46px;
    background: var(--blue);
    border-top: var(--bd);
    border-bottom: var(--bd);
}

.mf-band__in { position: relative; }

.mf-band .mf-sec__t h2 { color: #fff; }
.mf-band .mf-sec__t em { color: rgba(255, 255, 255, .6); }
.mf-band .mf-sec__note { color: rgba(255, 255, 255, .72); }
.mf-band .mf-sec__more { color: #fff; border-bottom-color: var(--yellow); }
.mf-band .mf-sec__num { background: var(--yellow); }
.mf-band .mf-sec__num { box-shadow: 4px 4px 0 var(--ink); }

.mf-band .mf-book__t { color: #fff; }
.mf-band .mf-band--s { color: rgba(255, 255, 255, .6); }
.mf-band .mf-book__s { color: rgba(255, 255, 255, .62); }

/* 双栏 */
.mf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.mf-split__side { display: flex; flex-direction: column; gap: 22px; }

/* 侧栏在左的筛选型双栏 */
.mf-split--rev {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
}

.mf-split--rev .mf-filter { margin-top: 0; }
.mf-split--rev .mf-filter__row { flex-direction: column; gap: 7px; }
.mf-split--rev .mf-filter__k { width: auto; padding-top: 0; }

/* 更新流水 */
.mf-log { display: flex; flex-direction: column; }

.mf-log__row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 13px 12px;
    border: 2px solid transparent;
    border-bottom: 2px dashed rgba(22, 19, 15, .18);
    transition: all .14s ease;
}

.mf-log__row:hover {
    background: var(--yellow-soft);
    border: 2px solid var(--ink);
    border-radius: 12px;
    transform: translateX(4px);
}

.mf-log__date {
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.3;
    color: var(--ink-3);
    text-align: center;
    padding: 6px 0;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--paper);
}

.mf-log__date b { display: block; font-size: 16px; color: var(--ink); }

.mf-log__t { display: block; font-size: 14px; font-weight: 700; }
.mf-log__s { display: block; font-size: 11.5px; color: var(--ink-3); }

.mf-log__go {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .08em;
    padding: 4px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--mint);
}

/* 题材马赛克 */
.mf-genre {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 14px;
}

.mf-genre a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 116px;
    padding: 14px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
    overflow: hidden;
    transition: transform .16s ease;
}

.mf-genre a:hover { transform: translateY(-4px); color: var(--ink); }

.mf-genre a:nth-child(7n + 1) { background: var(--pink-soft); }
.mf-genre a:nth-child(7n + 2) { background: var(--yellow-soft); }
.mf-genre a:nth-child(7n + 3) { background: var(--mint-soft); }
.mf-genre a:nth-child(7n + 4) { background: var(--blue-soft); }
.mf-genre a:nth-child(7n + 5) { background: var(--paper); }
.mf-genre a:nth-child(7n + 6) { background: var(--cream-2); }
.mf-genre a:nth-child(7n) { background: var(--lav); }

.mf-genre i {
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: var(--f-disp);
    font-size: 34px;
    font-style: normal;
    line-height: 1;
    color: rgba(22, 19, 15, .12);
}

.mf-genre b {
    font-family: var(--f-disp);
    font-size: 17px;
    line-height: 1.2;
}

.mf-genre span {
    margin-top: 4px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--ink-3);
}

/* 引言 */
.mf-quote {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 52px;
    padding: 34px 44px;
    background: var(--pink);
    border: var(--bd);
    border-radius: 26px;
    box-shadow: 9px 9px 0 var(--ink);
}

.mf-quote p {
    font-family: var(--f-disp);
    font-size: 27px;
    line-height: 1.45;
    color: #fff;
}

.mf-quote em {
    display: block;
    margin-top: 10px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-style: normal;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .72);
}

.mf-quote .mf-stick { background: var(--yellow); transform: rotate(4deg); flex: none; }

/* 引导卡 */
.mf-invite {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 34px;
}

.mf-invite__box {
    padding: 26px 28px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: var(--sh);
}

.mf-invite__box--ink { background: var(--ink); color: #efe7d8; box-shadow: 6px 6px 0 var(--yellow); }
.mf-invite__box--ink h3 { color: #fff; }
.mf-invite__box--ink p { color: #b8b0a2; }

.mf-invite__box h3 { margin-top: 8px; font-family: var(--f-disp); font-size: 21px; }
.mf-invite__box p { margin-top: 8px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.mf-invite__box .mf-btn { margin-top: 16px; }

/* ============================================================ 作品页 */
.mf-dt {
    position: relative;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 40px;
    margin-top: 10px;
    padding: 36px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 30px 30px 8px 30px;
    box-shadow: 9px 9px 0 var(--mint);
    overflow: hidden;
}

.mf-dt::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 170px;
    height: 170px;
    background: var(--yellow-soft);
    border: var(--bd);
    border-radius: 50%;
    z-index: 0;
}

.mf-dt > * { position: relative; z-index: 1; }

.mf-dt__cover {
    position: relative;
    align-self: start;
    aspect-ratio: 3 / 4;
    background: #e6d9c3;
    border: var(--bd);
    border-radius: 14px;
    box-shadow: 7px 7px 0 var(--ink);
    transform: rotate(-1.4deg);
    overflow: hidden;
}

.mf-dt__cover img { width: 100%; height: 100%; object-fit: cover; }

.mf-dt__flag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-family: var(--f-mono);
    font-size: 10px;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.mf-dt__info { min-width: 0; }

.mf-dt__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.mf-dt__title {
    font-family: var(--f-disp);
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -.02em;
}

.mf-dt__sub {
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    color: var(--ink-3);
}

.mf-dt__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mf-dt__stat {
    padding: 10px 12px;
    border: var(--bd-thin);
    border-radius: 10px;
    background: var(--cream);
    box-shadow: 3px 3px 0 rgba(22, 19, 15, .16);
}

.mf-dt__stat b { display: block; font-family: var(--f-disp); font-size: 19px; line-height: 1.2; }
.mf-dt__stat span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-3); }

.mf-dt__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.mf-dt__intro {
    max-width: 720px;
    margin-top: 22px;
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--ink-2);
}

.mf-dt__intro.is-clip {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mf-dt__more {
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    border-bottom: 2px solid var(--pink);
}

/* 章节墙 */
.mf-wall {
    margin-top: 42px;
    padding: 26px 28px 28px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 22px;
    box-shadow: var(--sh);
}

.mf-wall__hd {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mf-wall__hd h2 { font-family: var(--f-disp); font-size: 23px; }

.mf-wall__hd .mf-chip { margin-left: 2px; }

.mf-wall__tools { display: flex; gap: 8px; margin-left: auto; }

.mf-chaps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.mf-chaps a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 9px;
    transition: all .12s ease;
}

.mf-chaps a:hover { background: var(--yellow); transform: translate(-1px, -1px); color: var(--ink); }

.mf-chaps a span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mf-chaps .lock { margin-left: auto; font-size: 12px; color: var(--pink); }

.mf-wall__foot { display: flex; justify-content: center; margin-top: 20px; }

.mf-wall--fold .mf-chaps a:nth-child(n + 19) { display: none; }
.mf-wall--fold .mf-chaps.is-open a:nth-child(n + 19) { display: flex; }

/* 信息表 */
.mf-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 2px dashed rgba(22, 19, 15, .18);
}

.mf-info div {
    display: flex;
    gap: 12px;
    font-size: 13px;
    padding: 6px 0;
}

.mf-info dt, .mf-info b {
    width: 62px;
    flex: none;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--ink-3);
    padding-top: 2px;
}

.mf-info span { color: var(--ink-2); }

/* 相关推荐 */
.mf-relay { margin-top: 44px; }

/* ============================================================ 阅读器 */
body.rd-body { background: var(--cream); }

.rd-top {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--cream);
    border-bottom: var(--bd);
}

.rd-top__in {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 68px;
}

.rd-top__back {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 17px;
    background: var(--paper);
    border: var(--bd-thin);
    border-radius: 50%;
    box-shadow: 3px 3px 0 var(--ink);
    flex: none;
}

.rd-top__name {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rd-top__name span {
    display: block;
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-weight: 400;
    color: var(--ink-3);
}

.rd-top__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.rd-progress {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 90;
    height: 4px;
    background: rgba(22, 19, 15, .1);
}

.rd-progress b {
    display: block;
    width: 0;
    height: 100%;
    background: var(--pink);
}

.rd-wrap {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding-top: 30px;
}

.rd-side {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.rd-side__hd {
    padding: 12px 16px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    background: var(--ink);
    color: var(--yellow);
}

.catalog {
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
}

.catalog__item {
    display: block;
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.catalog__item:hover { background: var(--cream); }

.catalog__item.is-cur {
    background: var(--yellow);
    border-color: var(--ink);
    font-weight: 700;
}

.rd-article {
    min-width: 0;
    background: var(--paper);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--blue);
    padding: 26px;
}

.rd-article__hd {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 2px dashed rgba(22, 19, 15, .18);
}

.rd-article__hd h1 { font-family: var(--f-disp); font-size: 24px; line-height: 1.2; }

.comic-pages { display: flex; flex-direction: column; gap: 12px; align-items: center; }

.comic-page { max-width: 760px; width: 100%; }

.comic-page img {
    width: 100%;
    height: auto;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: #f4efe4;
}

.rd-end {
    margin-top: 30px;
    padding: 26px;
    text-align: center;
    background: var(--yellow-soft);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
}

.rd-end b { display: block; font-family: var(--f-disp); font-size: 20px; margin-bottom: 6px; }
.rd-end p { font-size: 13px; color: var(--ink-2); }

.rd-end__acts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.rd-catalog {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

body.catalog-open .rd-catalog { display: block; }

.rd-catalog__mask {
    position: absolute;
    inset: 0;
    background: rgba(22, 19, 15, .55);
}

.rd-catalog__box {
    position: relative;
    width: 420px;
    max-width: calc(100% - 40px);
    max-height: 78vh;
    margin: 8vh auto 0;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: 8px 8px 0 var(--yellow);
    overflow: hidden;
}

.rd-catalog__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .12em;
}

.rd-catalog__hd button { color: var(--cream); font-size: 18px; }

.rd-catalog .catalog { padding: 10px; }

/* 章节导航 */
.rd-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.rd-nav a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    background: var(--cream);
    border: var(--bd-thin);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ink);
}

.rd-nav a:hover { background: var(--yellow); color: var(--ink); }
.rd-nav em { font-family: var(--f-mono); font-size: 10px; font-style: normal; letter-spacing: .12em; color: var(--ink-3); }
.rd-nav b { font-size: 13.5px; }

/* ============================================================ 书库 / 分类 */
.mf-libhd {
    position: relative;
    margin-top: 26px;
    padding: 34px 36px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 26px;
    box-shadow: 8px 8px 0 var(--pink);
    overflow: hidden;
}

.mf-libhd__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.mf-libhd::before {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    background: var(--mint-soft);
    border: var(--bd);
    border-radius: 50%;
}

.mf-libhd__k { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.mf-libhd h1 {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-family: var(--f-disp);
    font-size: 38px;
    line-height: 1.1;
}

.mf-libhd h1 span {
    display: block;
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--ink-3);
}

.mf-libhd p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-2);
}

.mf-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
    padding: 18px 22px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--yellow);
}

.mf-filter__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 12.5px;
}

.mf-filter__k {
    flex: none;
    width: 54px;
    padding-top: 5px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--ink-3);
}

.mf-filter__v { display: flex; flex-wrap: wrap; gap: 7px; }

.mf-filter__v a {
    padding: 4px 12px;
    font-size: 12.5px;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 999px;
}

.mf-filter__v a:hover { border-color: var(--ink); color: var(--ink); }

.mf-filter__v a.is-on {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

/* 题材过多时收起，避免侧栏被撑成一堵墙 */
.mf-filter__v--fold {
    max-height: 114px;
    overflow: hidden;
}

.mf-filter__v--fold.is-open { max-height: none; }

.mf-filter__more {
    align-self: flex-start;
    margin-top: 2px;
    padding: 3px 10px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease;
}

.mf-filter__more:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.mf-filter__more:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.mf-split--rev .mf-filter__v { gap: 6px; }

.mf-split--rev .mf-filter__v a {
    padding: 3px 9px;
    font-size: 11.5px;
}

.mf-listbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.mf-listbar h2 { font-family: var(--f-disp); font-size: 22px; }

.mf-listbar__count {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--ink-3);
}

.mf-listbar__sort { display: flex; gap: 6px; margin-left: auto; }

/* 榜单页：说明卡置顶 + 双列榜单 */
.mf-chart { margin-top: 8px; }

.mf-chart__aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.mf-chart__aside > * { margin-top: 0; }

.mf-rank--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(10, 82px);
    grid-auto-flow: column;
    column-gap: 40px;
}

.mf-rank--2col .mf-rank__row { padding: 8px 4px; }
.mf-rank--2col .mf-rank__row:nth-child(10) { border-bottom: 0; }

/* 列表行 */
.mf-libgrid { margin-top: 4px; }

/* ============================================================ 搜索 */
.mf-findhd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 14px 46px;
    align-items: center;
    margin-top: 26px;
    padding: 40px 36px 36px;
    background: var(--yellow);
    border: var(--bd);
    border-radius: 26px;
    box-shadow: 8px 8px 0 var(--ink);
}

.mf-findhd__t { min-width: 0; }
.mf-findhd__t h1 { margin-top: 12px; }

.mf-findhd h1 { font-family: var(--f-disp); font-size: 34px; line-height: 1.1; }
.mf-findhd p { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

.mf-findform {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    max-width: 680px;
}

.mf-findform input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    font-size: 15px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--ink);
}

.mf-findform input:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); }

.mf-hotkeys {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 12px;
}

.mf-hotkeys em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; }

.mf-hotkeys a {
    padding: 4px 12px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.mf-hotkeys a:hover { background: var(--pink); color: #fff; }

.mf-result { display: flex; flex-direction: column; }

.mf-result__row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-bottom: 2px dashed rgba(22, 19, 15, .18);
    transition: background .14s ease;
}

.mf-result__row:hover { background: var(--cream); }

.mf-result__pic {
    width: 84px;
    height: 112px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    overflow: hidden;
    background: #e6d9c3;
}

.mf-result__pic img { width: 100%; height: 100%; object-fit: cover; }

.mf-result__t { font-family: var(--f-disp); font-size: 18px; }
.mf-result__t mark { background: var(--yellow); padding: 0 2px; }
.mf-result__s { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.mf-result__m { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================ 404 */
.mf-404 {
    position: relative;
    margin-top: 50px;
    padding: 70px 40px;
    text-align: center;
    background: var(--paper);
    border: var(--bd);
    border-radius: 30px;
    box-shadow: 10px 10px 0 var(--pink);
    overflow: hidden;
}

.mf-404__num {
    font-family: var(--f-disp);
    font-size: 150px;
    line-height: .8;
    letter-spacing: -.04em;
    color: var(--ink);
    -webkit-text-stroke: 3px var(--ink);
}

.mf-404__num span { color: var(--pink); -webkit-text-stroke: 0; }

.mf-404 h1 { margin-top: 18px; font-family: var(--f-disp); font-size: 26px; }
.mf-404 p { max-width: 460px; margin: 10px auto 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.mf-404__acts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.mf-404__links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; }

/* ============================================================ 文档页 */
.mf-doc {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-top: 26px;
}

.mf-doc__side {
    position: sticky;
    top: 30px;
    padding: 18px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
}

.mf-doc__side h4 {
    margin-bottom: 10px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--ink-3);
}

.mf-doc__side a {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.mf-doc__side a:hover { background: var(--cream); }
.mf-doc__side a.is-on { background: var(--yellow-soft); border-left-color: var(--pink); font-weight: 700; }

.mf-doc__body {
    padding: 38px 42px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 24px;
    box-shadow: var(--sh);
}

.mf-doc__body h1 { font-family: var(--f-disp); font-size: 34px; line-height: 1.15; }
.mf-doc__body h2 { margin: 30px 0 10px; font-family: var(--f-disp); font-size: 21px; }
.mf-doc__body h3 { margin: 22px 0 8px; font-size: 16px; }
.mf-doc__body p { margin: 10px 0; font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.mf-doc__body ul { margin: 10px 0; }
.mf-doc__body li { position: relative; padding-left: 18px; margin: 6px 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.mf-doc__body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--pink); border: 1.5px solid var(--ink); }
.mf-doc__body a { border-bottom: 2px solid var(--pink); }
.mf-doc__body strong { color: var(--ink); }

.mf-doc__hd {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 2px dashed rgba(22, 19, 15, .18);
}

/* ============================================================ 用户中心 */
.mf-user {
    display: grid;
    grid-template-columns: 234px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: 26px;
}

.usernav {
    position: sticky;
    top: 26px;
    padding: 18px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: var(--sh-sm);
}

.usernav__me {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 2px dashed rgba(22, 19, 15, .18);
}

.usernav__me img {
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    object-fit: cover;
    background: var(--cream);
}

.usernav__me b { display: block; font-size: 14px; }
.usernav__me span { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); }

.usernav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    margin-bottom: 3px;
    font-size: 13px;
    border-radius: 9px;
    border: 2px solid transparent;
}

.usernav a:hover { background: var(--cream); color: var(--ink); }

.usernav a.is-on {
    background: var(--yellow);
    border-color: var(--ink);
    font-weight: 700;
}

.usernav a .icon { font-size: 15px; }

.mf-panel {
    background: var(--paper);
    border: var(--bd);
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 28px 30px 32px;
    margin-bottom: 24px;
}

.mf-panel__hd {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mf-panel__hd h1,
.mf-panel__hd h2 { font-family: var(--f-disp); font-size: 23px; line-height: 1.2; }

.mf-panel__hd .mf-chip { margin-left: auto; }

.mf-panel__hd p { width: 100%; font-size: 12.5px; color: var(--ink-3); }

/* 账户头 */
.mf-uhead {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 24px 26px;
    background: var(--blue);
    border: var(--bd);
    border-radius: 22px;
    box-shadow: 7px 7px 0 var(--mint);
    color: #fff;
}

.mf-uhead__ava {
    width: 74px;
    height: 74px;
    border: var(--bd);
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper);
    flex: none;
}

.mf-uhead__ava img { width: 100%; height: 100%; object-fit: cover; }

.mf-uhead b { display: block; font-family: var(--f-disp); font-size: 22px; color: #fff; }
.mf-uhead span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .72); }
.mf-uhead .mf-btn { margin-left: auto; }

.mf-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mf-tile {
    display: block;
    padding: 18px;
    background: var(--cream);
    border: var(--bd-thin);
    border-radius: 14px;
    transition: all .14s ease;
}

.mf-tile:hover { background: var(--yellow-soft); transform: translateY(-3px); color: var(--ink); }

.mf-tile b {
    display: block;
    font-family: var(--f-disp);
    font-size: 24px;
    line-height: 1.1;
}

.mf-tile span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); }
.mf-tile em { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: var(--ink-2); }

/* 表格 */
.mf-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.mf-table th {
    padding: 10px 12px;
    text-align: left;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--ink-3);
    border-bottom: var(--bd-thin);
    white-space: nowrap;
}

.mf-table td {
    padding: 13px 12px;
    border-bottom: 1px dashed rgba(22, 19, 15, .18);
    vertical-align: middle;
}

.mf-table tr:last-child td { border-bottom: 0; }
.mf-table td.num { font-family: var(--f-mono); }
.mf-table .pink { color: var(--pink); font-weight: 700; }
.mf-table .muted { color: var(--ink-3); }

/* 钱包 */
.mf-wallet {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 28px;
    background: var(--ink);
    color: #efe7d8;
    border-radius: 18px;
    margin-bottom: 20px;
}

.mf-wallet b {
    display: block;
    font-family: var(--f-disp);
    font-size: 34px;
    line-height: 1;
    color: var(--yellow);
}

.mf-wallet span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; color: #a8a093; }
.mf-wallet .mf-btn { margin-left: auto; }

/* 行 */
.mf-urow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px dashed rgba(22, 19, 15, .18);
}

.mf-urow:last-child { border-bottom: 0; }
.mf-urow img { width: 52px; height: 70px; border: 2px solid var(--ink); border-radius: 6px; object-fit: cover; background: #e6d9c3; }
.mf-urow__b { min-width: 0; flex: 1; }
.mf-urow__b b { display: block; font-size: 14px; }
.mf-urow__b span { font-size: 11.5px; color: var(--ink-3); }

/* 表单页 */
.mf-form-box { max-width: 560px; }

.mf-form__hint {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--ink-3);
    line-height: 1.7;
}

.mf-form__msg { min-height: 20px; font-size: 12px; color: var(--pink); }

.mf-code-row { display: flex; gap: 10px; }
.mf-code-row .mf-input { flex: 1; }
.mf-code-row img,
.mf-code-row .mf-btn { flex: none; height: 46px; border-radius: 10px; }

.mf-code-row img { width: 110px; object-fit: cover; border: var(--bd-thin); background: var(--paper); }

/* ============================================================ 登录 / 注册 */
.mf-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 940px;
    margin: 40px auto 0;
    background: var(--paper);
    border: var(--bd);
    border-radius: 30px;
    box-shadow: 10px 10px 0 var(--pink);
    overflow: hidden;
}

.mf-auth__side {
    position: relative;
    padding: 44px 38px;
    background: var(--blue);
    color: #fff;
    overflow: hidden;
}

.mf-auth__side::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    background: var(--yellow);
    border: var(--bd);
    border-radius: 50%;
    opacity: .9;
}

.mf-auth__side h2 {
    position: relative;
    z-index: 1;
    font-family: var(--f-disp);
    font-size: 30px;
    line-height: 1.2;
}

.mf-auth__side p {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .78);
}

.mf-auth__list { position: relative; z-index: 1; margin-top: 24px; }
.mf-auth__list li {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .86);
}
.mf-auth__list li::before { content: "◆"; font-size: 8px; color: var(--yellow); line-height: 2.2; }

.mf-auth__form { padding: 44px 42px; }

.mf-auth__form h1 {
    font-family: var(--f-disp);
    font-size: 27px;
    line-height: 1.2;
}

.mf-auth__form > p { margin: 6px 0 24px; font-size: 12.5px; color: var(--ink-3); }

.mf-auth__foot {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
}

.mf-auth__foot a { border-bottom: 2px solid var(--pink); }

/* ============================================================ 支付 */
.mf-payhero {
    padding: 30px 32px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 22px;
    box-shadow: 8px 8px 0 var(--blue);
    margin-bottom: 24px;
}

.mf-payhero h1 { font-family: var(--f-disp); font-size: 28px; }
.mf-payhero p { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.mf-paygrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pay-item {
    position: relative;
    display: block;
    padding: 20px 18px;
    text-align: center;
    background: var(--cream);
    border: var(--bd-thin);
    border-radius: 14px;
    cursor: pointer;
    transition: all .14s ease;
}

.pay-item:hover { background: var(--yellow-soft); transform: translateY(-3px); }

.pay-item.is-on,
.pay-item.on {
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
}

.pay-item b { display: block; font-family: var(--f-disp); font-size: 22px; }
.pay-item span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.pay-item em { display: block; margin-top: 4px; font-size: 11px; font-style: normal; color: var(--pink); }

.way-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.way {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--cream);
    border: var(--bd-thin);
    border-radius: 12px;
    cursor: pointer;
}

.way.is-on { background: var(--mint-soft); box-shadow: 3px 3px 0 var(--ink); }
.way b { font-size: 13.5px; }
.way span { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

.paybar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--ink);
    color: #efe7d8;
    border-radius: 16px;
}

.paybar b { font-family: var(--f-disp); font-size: 24px; color: var(--yellow); }
.paybar .mf-btn { margin-left: auto; }

@media (max-width: 1180px) {
    .mf-hero { padding: 22px 26px 16px; }
    .mf-hero__slide { gap: 34px; }
    .mf-collage { min-height: 372px; }
    .mf-collage__frame { width: 244px; }
    .mf-chaps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mf-genre { gap: 12px; }
    .mf-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
    .mf-hero__slide { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 980px) {
    .mf-split,
    .mf-split--rev { grid-template-columns: 1fr; }
    .mf-chart__aside { grid-template-columns: 1fr; }
    .mf-rank--2col {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
    .mf-rank--2col .mf-rank__row:nth-child(10) { border-bottom: 2px dashed rgba(22, 19, 15, .16); }
    .mf-genre { grid-template-columns: repeat(4, 1fr); }
    .mf-dt { grid-template-columns: 220px minmax(0, 1fr); padding: 26px; }
    .mf-dt__title { font-size: 32px; }
    .rd-wrap { grid-template-columns: 1fr; }
    .rd-side { display: none; }
    .mf-user { grid-template-columns: 1fr; }
    .usernav { position: static; }
    .mf-doc { grid-template-columns: 1fr; }
    .mf-doc__side { position: static; }
    .mf-auth { grid-template-columns: 1fr; }
    .mf-auth__side { display: none; }
    .mf-pillars { grid-template-columns: 1fr; }
    .catalog--wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================ 阅读器补充 */
.catalog--wall {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
}

.catalog--wall .catalog__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog--wall .catalog__item span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.catalog--wall .catalog__item .mf-chip {
    flex: none;
    height: 18px;
    margin-left: auto;
    padding: 0 6px;
    font-size: 9.5px;
}

.rd-article__jump {
    display: flex;
    gap: 8px;
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: 11px;
}

.rd-article__jump a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    background: var(--cream);
    border: var(--bd-thin);
    border-radius: 999px;
}

.rd-article__jump a:hover { background: var(--yellow); color: var(--ink); }

.rd-article__down { padding: 22px; text-align: center; font-size: 13px; color: var(--ink-3); }
.rd-article__down.hide { display: none; }

.rd-tip {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1.5px dashed rgba(22, 19, 15, .2);
    font-size: 12px;
    line-height: 1.9;
    color: var(--ink-3);
}

.mf-chaps .lock {
    font-family: var(--f-mono);
    font-size: 10px;
    font-style: normal;
    color: var(--pink);
}

/* ============================================================ 付费 / 会员弹窗 */
.vip-box,
.buy-box { display: none; }

.pay-dialog { padding: 4px 2px 0; text-align: center; }

.pay-dialog__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    font-size: 26px;
    background: var(--yellow);
    border: var(--bd);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--ink);
}

.pay-dialog__title { font-family: var(--f-disp); font-size: 22px; }
.pay-dialog__desc { margin-top: 8px; font-size: 12.5px; line-height: 1.85; color: var(--ink-3); }

.pay-dialog__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1.5px dashed rgba(22, 19, 15, .2);
    font-size: 13px;
    text-align: left;
}

.pay-dialog__row span { color: var(--ink-3); }
.pay-dialog__row b { color: var(--ink); }
.pay-dialog .mf-btn { margin-top: 18px; }
.pay-dialog__tip { margin-top: 10px; font-size: 11px; color: var(--ink-3); }

.pay-dialog__check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-2);
}

.handle__con { margin-top: 16px; }

.buy-btn {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    background: var(--pink);
    color: #fff;
    border: var(--bd);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
}

.auto-check { width: 15px; height: 15px; accent-color: var(--pink); }

body .layui-layer.layer-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 10px 10px 0 rgba(22, 19, 15, .35);
}

body .layui-layer.layer-modal .layui-layer-content { padding: 26px; background: var(--paper); }

/* ============================================================ 列表 / 搜索补齐 */
.mf-libgrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px 18px;
    margin-top: 4px;
}

.mf-libgrid--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.mf-result__body { display: block; min-width: 0; }
.mf-result__t { display: block; }
.mf-result__s { display: block; }

.mf-result__go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--ink-3);
    white-space: nowrap;
}

.mf-result__row:hover .mf-result__go { color: var(--pink); }

.mf-findhd__form { min-width: 0; }

@media (max-width: 1180px) {
    .mf-libgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mf-libgrid--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .mf-libgrid,
    .mf-libgrid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mf-findhd { grid-template-columns: 1fr; padding: 30px 24px; }
}

/* ============================================================ 书库目录 · 布局重构 */
.catl-mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 30px;
    align-items: stretch;
    margin-top: 26px;
    padding: 34px 36px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 26px;
    box-shadow: 8px 8px 0 var(--pink);
}

.catl-mast__k { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.catl-mast h1 {
    margin-top: 14px;
    font-family: var(--f-disp);
    font-size: 46px;
    line-height: 1.04;
    letter-spacing: -.02em;
}

.catl-mast h1 span {
    display: block;
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--ink-3);
}

.catl-mast .mf-lead {
    max-width: 560px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-2);
}

.catl-mast__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.catl-mast__side { display: flex; flex-direction: column; gap: 16px; }

.catl-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.catl-metric {
    padding: 14px 16px 12px;
    background: var(--cream);
    border: var(--bd-thin);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
}

.catl-metric--yellow { background: var(--yellow-soft); transform: rotate(-1.6deg); }
.catl-metric--mint { background: var(--mint-soft); transform: rotate(1.2deg); }

.catl-metric span {
    display: block;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .16em;
    color: var(--ink-3);
}

.catl-metric b {
    display: block;
    margin-top: 6px;
    font-family: var(--f-disp);
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.02em;
}

.catl-metric b i {
    margin-left: 2px;
    font-family: var(--f-mono);
    font-size: 13px;
    font-style: normal;
    color: var(--ink-3);
}

.catl-metric em {
    display: block;
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-style: normal;
    letter-spacing: .06em;
    color: var(--ink-2);
}

.catl-howto { flex: 1; padding: 18px 20px; }

.catl-howto p {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--ink-2);
}

/* 通栏筛选台 */
.catl-desk {
    margin-top: 26px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--yellow);
    overflow: hidden;
}

.catl-desk__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    background: var(--ink);
    color: var(--cream);
}

.catl-desk__t {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.catl-desk__t::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--yellow);
    border: 2px solid var(--cream);
    transform: rotate(45deg);
}

.catl-desk__hd-r { display: flex; align-items: center; gap: 14px; }

.catl-desk__hint {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(255, 246, 233, .55);
}

.catl-desk__reset {
    padding: 4px 13px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--cream);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--pink);
    transition: transform .14s ease, background .14s ease;
}

.catl-desk__reset:hover {
    background: var(--mint);
    color: var(--ink);
    transform: translate(-1px, -1px);
}

.catl-desk__bd { padding: 8px 22px 16px; }

.catl-desk__filter .mf-filter__row {
    gap: 18px;
    padding: 12px 0;
}

.catl-desk__filter .mf-filter__row:first-child { padding-top: 10px; }

.catl-desk__filter .mf-filter__row + .mf-filter__row {
    border-top: 2px dashed rgba(22, 19, 15, .14);
}

.catl-desk__filter .mf-filter__k {
    width: 70px;
    padding-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--ink);
}

.catl-desk__filter .mf-filter__k::after {
    content: "◆";
    margin-left: 7px;
    font-size: 7px;
    color: var(--pink);
}

.catl-desk__filter .mf-filter__v {
    flex: 1;
    min-width: 0;
    gap: 8px;
}

.catl-desk__filter .mf-filter__v a {
    padding: 5px 14px;
    font-size: 12.5px;
    background: var(--cream);
    border: 2px solid rgba(22, 19, 15, .14);
}

.catl-desk__filter .mf-filter__v a:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.catl-desk__filter .mf-filter__v a.is-on {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
    box-shadow: 3px 3px 0 var(--pink);
}

/* 结果栏 */
.catl-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 30px 0 18px;
}

.catl-bar__t { display: flex; align-items: baseline; gap: 12px; }

.catl-bar__t h2 {
    font-family: var(--f-disp);
    font-size: 23px;
    letter-spacing: -.01em;
}

.catl-bar__t span {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--ink-3);
}

.catl-bar__sort { display: flex; align-items: center; gap: 7px; margin-left: auto; }

.catl-bar__k {
    margin-right: 2px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--ink-3);
}

.catl-pill {
    padding: 5px 15px;
    font-size: 12.5px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform .14s ease, box-shadow .14s ease;
}

.catl-pill:hover {
    color: var(--ink);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--blue);
}

.catl-pill.is-on {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 3px 3px 0 var(--pink);
}

/* 六列书架 */
.catl-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 18px;
}

@media (max-width: 1180px) {
    .catl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .catl-mast { grid-template-columns: 1fr; padding: 26px 24px; }
    .catl-mast__side { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
    .catl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .catl-mast { padding: 22px 18px; }
    .catl-mast h1 { font-size: 34px; }
    .catl-mast__side { grid-template-columns: 1fr; }
    .catl-desk__hint { display: none; }
    .catl-desk__bd { padding: 8px 16px 14px; }
    .catl-desk__filter .mf-filter__k { width: 54px; }
    .catl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
}

/* ============================================================ 最近更新 · 布局重构 */
.newl-mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 32px;
    align-items: start;
    margin-top: 26px;
    padding: 34px 36px;
    background: var(--paper);
    border: var(--bd);
    border-radius: 28px 28px 28px 8px;
    box-shadow: 10px 10px 0 var(--blue);
}

.newl-mast__k { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.newl-mast__title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 14px;
    margin-top: 16px;
    font-family: var(--f-disp);
    font-size: 52px;
    line-height: 1;
    letter-spacing: -.03em;
}

.newl-mast__title i {
    padding: 2px 16px 8px;
    font-style: normal;
    background: var(--yellow);
    border: var(--bd);
    border-radius: 10px;
    box-shadow: 5px 5px 0 var(--ink);
    transform: rotate(-2.5deg);
}

.newl-mast__title em {
    flex-basis: 100%;
    margin-top: 16px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--ink-3);
    transform: none;
}

.newl-mast .mf-lead {
    max-width: 540px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--ink-2);
}

.newl-mast__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.newl-mast__side { display: flex; flex-direction: column; gap: 14px; }

/* 实时更新灯箱 */
.newl-live {
    padding: 16px 18px 18px;
    background: var(--ink);
    border: var(--bd);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--yellow);
    color: var(--cream);
}

.newl-live__hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--yellow);
}

.newl-live__hd b {
    margin-left: auto;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .12em;
    color: rgba(255, 246, 233, .5);
}

.newl-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
    animation: newl-blink 1.8s ease-in-out infinite;
}

@keyframes newl-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.newl-live__bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 52px;
    margin: 12px 0 10px;
}

.newl-live__bars i {
    flex: 1;
    background: var(--mint);
    border: 2px solid var(--cream);
    border-radius: 3px 3px 0 0;
}

.newl-live__bars i:nth-child(2n) { background: var(--pink); }
.newl-live__bars i:nth-child(3n) { background: var(--yellow); }
.newl-live__bars i:nth-child(5n) { background: var(--lav); }

.newl-live p {
    font-size: 11.5px;
    line-height: 1.8;
    color: rgba(255, 246, 233, .72);
}

/* 追更三条 */
.newl-steps {
    padding: 14px 16px 16px;
    background: var(--yellow-soft);
    border: var(--bd-thin);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
}

.newl-steps ol {
    margin-top: 8px;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.newl-steps li {
    position: relative;
    padding-left: 26px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ink-2);
    counter-increment: step;
}

.newl-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-family: var(--f-mono);
    font-size: 9.5px;
    color: var(--cream);
    background: var(--ink);
    border-radius: 50%;
}

/* 新上架胶片带 */
.newl-film {
    margin-top: 32px;
    padding: 18px 20px 16px;
    background: var(--ink);
    border: var(--bd);
    border-radius: 22px;
    box-shadow: 8px 8px 0 var(--mint);
}

.newl-film__hd {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.newl-film__t {
    font-family: var(--f-disp);
    font-size: 19px;
    letter-spacing: -.01em;
    color: #fff;
}

.newl-film__t i {
    font-family: var(--f-mono);
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--yellow);
}

.newl-film__n {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(255, 246, 233, .5);
}

.newl-film__nav { display: flex; gap: 9px; margin-left: auto; }

.newl-film__arw {
    display: grid;
    place-items: center;
    width: 40px;
    height: 32px;
    color: var(--cream);
    background: transparent;
    border: 2px solid rgba(255, 246, 233, .55);
    border-radius: 8px;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, transform .14s ease;
}

.newl-film__arw:hover {
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.newl-film__arw .icon { width: 18px; height: 18px; }

.newl-film__rail.mf-rail {
    padding: 14px 14px 10px;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 14px;
}

/* 主体 */
.newl-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
    margin-top: 40px;
}

.newl-logbox {
    background: var(--paper);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--pink);
    overflow: hidden;
}

.newl-logbox__hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    background: var(--ink);
    color: var(--cream);
}

.newl-logbox__hd b {
    font-family: var(--f-disp);
    font-size: 15px;
    letter-spacing: 0;
    color: #fff;
}

.newl-logbox__hd span {
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    color: rgba(255, 246, 233, .55);
}

.newl-logbox__more {
    margin-left: auto;
    padding: 3px 11px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--ink);
    background: var(--mint);
    border: 2px solid var(--cream);
    border-radius: 999px;
    transition: background .14s ease;
}

.newl-logbox__more:hover { background: var(--yellow); color: var(--ink); }

.newl-logbox__bd { padding: 12px 16px 18px; }

.newl-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newl-log__row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto 32px;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.newl-log__row + .newl-log__row {
    border-top: 2px dotted rgba(22, 19, 15, .16);
}

.newl-log__row:hover {
    background: var(--yellow-soft);
    border-color: var(--ink);
    transform: translateX(3px);
}

.newl-log__time {
    display: block;
    padding: 5px 0 6px;
    text-align: center;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 9px;
}

.newl-log__time b {
    display: block;
    font-family: var(--f-disp);
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.newl-log__time span {
    display: block;
    margin-top: 2px;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .04em;
    color: var(--ink-3);
}

.newl-log__row:nth-child(4n + 1) .newl-log__time { background: var(--yellow-soft); }
.newl-log__row:nth-child(4n + 2) .newl-log__time { background: var(--pink-soft); }
.newl-log__row:nth-child(4n + 3) .newl-log__time { background: var(--mint-soft); }
.newl-log__row:nth-child(4n) .newl-log__time { background: var(--blue-soft); }

.newl-log__body { min-width: 0; }

.newl-log__body b {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newl-log__body span {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--ink-3);
}

.newl-log__body em {
    font-style: normal;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newl-log__tag {
    padding: 2px 9px;
    font-family: var(--f-mono);
    font-size: 9.5px;
    letter-spacing: .04em;
    color: var(--ink-2);
    white-space: nowrap;
    background: var(--cream);
    border: 1.5px solid rgba(22, 19, 15, .3);
    border-radius: 999px;
}

.newl-log__go {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0 var(--ink);
    transition: background .14s ease, color .14s ease;
}

.newl-log__go .icon { width: 14px; height: 14px; }

.newl-log__row:hover .newl-log__go { background: var(--pink); color: #fff; }

/* 侧栏 */
.newl-side {
    position: sticky;
    top: 20px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.newl-side__tags { display: flex; flex-wrap: wrap; gap: 7px; }

.newl-note {
    padding: 18px 20px;
    background: var(--pink-soft);
    border: var(--bd);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--ink);
}

.newl-note b {
    display: block;
    margin-top: 7px;
    font-family: var(--f-disp);
    font-size: 17px;
}

.newl-note p {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

/* 底部出口 */
.newl-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    padding: 22px 28px;
    background: var(--blue);
    border: var(--bd);
    border-radius: 20px;
    box-shadow: 8px 8px 0 var(--ink);
}

.newl-cta b {
    flex: none;
    font-family: var(--f-disp);
    font-size: 22px;
    letter-spacing: -.02em;
    color: #fff;
}

.newl-cta p {
    font-size: 12.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .75);
}

.newl-cta__acts { display: flex; gap: 10px; margin-left: auto; flex: none; }

@media (max-width: 1180px) {
    .newl-mast { grid-template-columns: minmax(0, 1fr) 300px; padding: 30px 30px; }
    .newl-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}

@media (max-width: 980px) {
    .newl-mast { grid-template-columns: 1fr; padding: 26px 24px; gap: 24px; }
    .newl-mast__side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .newl-body { grid-template-columns: 1fr; gap: 28px; }
    .newl-side { position: static; }
    .newl-cta { flex-wrap: wrap; }
    .newl-cta__acts { margin-left: 0; }
}

@media (max-width: 720px) {
    .newl-mast { padding: 22px 18px; }
    .newl-mast__title { font-size: 38px; }
    .newl-mast__side { grid-template-columns: 1fr; }
    .newl-film { padding: 14px 14px 12px; }
    .newl-film__n { display: none; }
    .newl-logbox__bd { padding: 10px 10px 14px; }
    .newl-log__row { grid-template-columns: 62px minmax(0, 1fr) 32px; gap: 10px; padding: 8px 6px; }
    .newl-log__tag { display: none; }
    .newl-log__time b { font-size: 14px; }
    .newl-cta { padding: 18px 20px; }
    .newl-cta b { font-size: 18px; }
}

