:root{
    --bg1:#fff7fb;
    --bg2:#fff1e8;
    --ink:#2a1b22;
    --muted:#82606f;

    --accent:#ff7ab6;
    --accent2:#f7b267;
    --sky:#7fc8ff;

    --paper: rgba(255,255,255,.92);
    --paper2: rgba(255,255,255,.86);

    --line: rgba(255, 122, 182, .22);
    --line2: rgba(247, 178, 103, .18);

    --shadow: 0 18px 40px rgba(30, 10, 20, .08);
    --shadow2: 0 10px 24px rgba(30, 10, 20, .06);

    --r12:12px;
    --r14:14px;
    --r16:16px;
    --r18:18px;

    --wrap: 1200px;

    --w-regular: 400;
    --w-medium: 500;
    /*--w-semibold: 600;*/
    --w-bold: 700;
}

*{box-sizing:border-box}
html,body{height:100%}
html{
    background:
            radial-gradient(1100px 520px at 12% 0%, rgba(255, 122, 182, .12) 0%, rgba(255, 122, 182, 0) 60%),
            radial-gradient(1100px 620px at 92% 12%, rgba(247, 178, 103, .11) 0%, rgba(247, 178, 103, 0) 62%),
            radial-gradient(900px 520px at 55% 0%, rgba(127, 200, 255, .10) 0%, rgba(127, 200, 255, 0) 62%),
            repeating-radial-gradient(circle at 12px 12px, rgba(255, 122, 182, .06) 0 1px, rgba(255,255,255,0) 1px 18px),
            linear-gradient(180deg, var(--bg1) 0%, #fffaf2 55%, var(--bg2) 100%);
    background-attachment: fixed;
}
body{
    margin:0;
    background: transparent;
    color: var(--ink);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Noto Sans JP","PingFang SC","Microsoft YaHei",Arial,sans-serif;
    font-weight: var(--w-regular);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a{color:inherit; text-decoration:none}
img{display:block; max-width:100%}
ul{list-style:none; margin:0; padding:0}

.ln-wrap{
    width: min(var(--wrap), calc(100% - 48px));
    margin: 0 auto;
}
.ln-main{padding: 18px 0 28px}

/* overflow helpers */
.ln-ellipsis{overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.ln-clamp-2,.ln-clamp-3,.ln-clamp-4{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.ln-clamp-2{-webkit-line-clamp:2}
.ln-clamp-3{-webkit-line-clamp:3}
.ln-clamp-4{-webkit-line-clamp:4}

/* ===== header ===== */
.ln-header{
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255,255,255,.70);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.7);
}
.ln-mast{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    padding: 12px 0 10px;
    align-items:center;
}
.ln-mast__side{
    display:flex;
    gap:10px;
    align-items:center;
    min-width:0;
}
.ln-mast__side--left{justify-content:flex-start}
.ln-mast__side--right{justify-content:flex-end}
.ln-mast__link{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255, 122, 182, .18);
    color: rgba(60,20,40,.92);
    font-weight: var(--w-semibold);
}

.ln-logo{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:center;
    min-width:0;
}
.ln-logo__mark{
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 122, 182, .95) 0%, rgba(127, 200, 255, .85) 55%, rgba(247, 178, 103, .85) 100%);
    box-shadow: 0 10px 18px rgba(255, 122, 182, .18);
}
.ln-logo__name{
    font-weight: var(--w-bold);
    letter-spacing: .2px;
    max-width: 420px;
}

.ln-searchrow{
    display:grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items:center;
    padding: 0 0 10px;
}
.ln-search{
    display:flex;
    gap:10px;
    padding: 10px;
    border-radius: var(--r16);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(127, 200, 255, .22);
    box-shadow: var(--shadow2);
}
.ln-search__input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    background: transparent;
    font-size: 14px;
}
.ln-search__btn{
    border:0;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 122, 182, 1) 0%, rgba(127, 200, 255, 1) 55%, rgba(247, 178, 103, 1) 100%);
    color:#fff;
    font-weight: var(--w-bold);
    cursor:pointer;
}
.ln-quick{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.ln-quick__link{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(247, 178, 103, .20);
    font-weight: var(--w-semibold);
    color: rgba(60,20,40,.92);
}

/* chips */
.ln-chipbar{
    display:flex;
    gap:12px;
    align-items:center;
    padding: 0 0 12px;
}
.ln-chipbar__title{
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: var(--w-semibold);
}
.ln-chips{
    display:flex;
    gap:10px;
    overflow:auto;
    white-space:nowrap;
    padding-bottom: 2px;
}
.ln-chips__item{flex:0 0 auto}
.ln-chip{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255, 122, 182, .16);
    font-weight: var(--w-semibold);
    max-width: 220px;
}
.ln-chips::-webkit-scrollbar{height:8px}
.ln-chips::-webkit-scrollbar-thumb{background: rgba(255,122,182,.16); border-radius:999px}

/* ===== boxes ===== */
.ln-box{
    background: var(--paper);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: var(--r16);
    box-shadow: var(--shadow2);
    padding: 14px;
}
/* 取消首页右侧侧栏固定（覆盖原来的 sticky） */
.ln-box--side{
    position: static !important;
    top: auto !important;
}
.ln-box--after{margin-top: 14px}
.ln-box--ghost{margin-top: 14px; background: var(--paper2)}
.ln-box + .ln-box{margin-top: 14px}

.ln-box__hd{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ln-box__title{
    margin:0;
    font-size: 18px;
    font-weight: var(--w-bold);
    color: rgba(60,20,40,.95);
}
.ln-box__sub{
    font-size: 13px;
    color: var(--muted);
}

/* ===== stage layout ===== */
.ln-stage{
    display:grid;
    grid-template-columns: 1fr 360px;
    gap: 14px;
    align-items:start;
}
.ln-stage__main, .ln-stage__side{min-width:0}

/* ===== hero card ===== */
.ln-hero{
    display:grid;
    grid-template-columns: 340px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r16);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(127,200,255,.22);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}
.ln-hero__cover{
    border-radius: var(--r14);
    overflow:hidden;
    border: 1px solid rgba(255,122,182,.16);
    background:#fff;
}
.ln-hero__cover img{width:100%; height: 340px; object-fit: cover}
.ln-hero__label{
    display:inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 182, .10);
    border: 1px solid rgba(255, 122, 182, .18);
    color: rgba(60,20,40,.92);
    font-weight: var(--w-semibold);
    font-size: 12px;
}
.ln-hero__title{margin: 10px 0 0; font-size: 26px; font-weight: var(--w-bold)}
.ln-hero__meta{margin-top: 8px; color: var(--muted); font-size: 13px}
.ln-hero__intro{margin-top: 10px; color: rgba(50,20,35,.95); line-height: 1.8}
.ln-hero__cta{margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap}
.ln-cta{
    display:inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(247,178,103,.18);
    font-weight: var(--w-bold);
}
.ln-cta--soft{
    font-weight: var(--w-semibold);
    color: var(--muted);
}

/* ===== grid books ===== */
.ln-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ln-grid--wide{grid-template-columns: repeat(3, minmax(0, 1fr))}
.ln-grid--after{grid-template-columns: repeat(4, minmax(0, 1fr))}
.ln-grid__item, .ln-bookitem, .ln-book, .ln-book__body{min-width:0}

.ln-bookitem{
    border-radius: var(--r14);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255, 122, 182, .12);
    overflow:hidden;
}
.ln-book{
    display:flex;
    gap: 12px;
    padding: 12px;
}
.ln-book__cover{
    width: 86px;
    height: 114px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(127,200,255,.18);
    background:#fff;
    flex:0 0 auto;
}
.ln-book__body{
    flex:1;
    display:flex;
    flex-direction:column;
    gap: 6px;
    min-width:0;
}
.ln-book__title{font-weight: var(--w-bold); font-size: 15px; line-height: 1.25}
.ln-book__meta{font-size: 12px; color: var(--muted); font-weight: var(--w-semibold)}
.ln-book__intro{font-size: 13px; line-height: 1.65; color: rgba(50,20,35,.95)}
.ln-book__foot{
    margin-top: 6px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    color: var(--muted);
    font-size: 12px;
}

.ln-subact{
    display:flex;
    gap:10px;
    padding: 10px 12px 12px;
    border-top: 1px dashed rgba(255,122,182,.18);
    background: rgba(255, 122, 182, .04);
}
.ln-subact__link{
    display:inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(247,178,103,.16);
    font-weight: var(--w-semibold);
    font-size: 12px;
}

/* shelf */
.ln-shelf{
    display:grid;
    grid-template-columns: 420px 1fr;
    gap: 12px;
}
.ln-feature{
    display:flex;
    gap:12px;
    padding: 12px;
    border-radius: var(--r14);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(127,200,255,.18);
}
.ln-feature__cover{
    width: 110px;
    height: 148px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255,122,182,.14);
    background:#fff;
    flex:0 0 auto;
}
.ln-feature__body{min-width:0; flex:1; display:flex; flex-direction:column; gap:8px}
.ln-feature__title{font-weight: var(--w-bold); font-size: 16px}
.ln-feature__meta{color: var(--muted); font-size: 12px}
.ln-feature__intro{color: rgba(50,20,35,.95); line-height: 1.75; font-size: 14px}
.ln-feature__hint{color: rgba(130,96,111,.9); font-size: 12px}

/* row list */
.ln-rowlist{display:flex; flex-direction:column; gap:10px}
.ln-rowlist__item{
    border-radius: var(--r12);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(247,178,103,.14);
}
.ln-row{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    padding: 10px 12px;
    align-items:center;
    min-width:0;
}
.ln-row__title{max-width: 70%; font-weight: var(--w-semibold)}
.ln-row__sub{max-width: 40%; text-align:right; color: var(--muted); font-size:12px}

/* list */
.ln-list{display:flex; flex-direction:column; gap:10px}
.ln-list__item{
    border-radius: var(--r12);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(127,200,255,.14);
}
.ln-list__link{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    padding: 10px 12px;
    align-items:center;
    min-width:0;
}
.ln-list__t{max-width: 70%; font-weight: var(--w-semibold)}
.ln-list__s{max-width: 40%; text-align:right; color: var(--muted); font-size:12px}
.ln-list__link--hot .ln-list__t{color: rgba(255, 122, 182, .95)}

/* mosaic */
.ln-mosaic{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* rank index */
.ln-ranknav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom: 12px;
}
.ln-ranknav__link{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,122,182,.16);
    font-weight: var(--w-semibold);
}
.ln-rankgrid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ln-rankbox{
    border-radius: var(--r16);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(247,178,103,.16);
    padding: 12px;
    min-width:0;
}
.ln-rankbox__hd{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:flex-end;
    margin-bottom: 10px;
}
.ln-rankbox__title{font-weight: var(--w-bold)}
.ln-rankbox__more a{color: rgba(255, 122, 182, .95); font-weight: var(--w-semibold)}
.ln-rankbox__list{display:flex; flex-direction:column; gap:8px}
.ln-rankbox__link{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r12);
    background: rgba(255, 122, 182, .06);
    border: 1px solid rgba(255, 122, 182, .12);
    min-width:0;
}
.ln-rankbox__t{max-width: 70%; font-weight: var(--w-semibold)}
.ln-rankbox__s{max-width: 40%; text-align:right; color: var(--muted); font-size:12px}

/* book page */
.ln-bookpage{
    display:grid;
    grid-template-columns: 1fr 360px;
    gap: 14px;
    align-items:start;
}
.ln-bookpage__main,.ln-bookpage__side{min-width:0}

.ln-bookhead{
    display:grid;
    grid-template-columns: 280px 1fr;
    gap: 14px;
}
.ln-bookhead__cover{
    width: 100%;
    height: 360px;
    border-radius: var(--r16);
    object-fit: cover;
    border: 1px solid rgba(127,200,255,.18);
    background:#fff;
}
.ln-bookhead__btns{margin-top: 12px; display:flex; flex-direction:column; gap:10px}
.ln-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(247,178,103,.18);
    font-weight: var(--w-semibold);
    color: rgba(60,20,40,.92);
}
.ln-btn--primary{
    border:0;
    color:#fff;
    background: linear-gradient(135deg, rgba(255, 122, 182, 1) 0%, rgba(127, 200, 255, 1) 55%, rgba(247, 178, 103, 1) 100%);
}
.ln-bookhead__title{margin:0; font-size: 26px; font-weight: var(--w-bold); line-height:1.2}
.ln-meta{
    margin-top: 12px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    color: var(--muted);
    font-size: 13px;
}
.ln-meta__item{display:flex; gap:10px; min-width:0}
.ln-meta__k{flex:0 0 auto}
.ln-meta__v{color: rgba(60,20,40,.92); font-weight: var(--w-medium); min-width:0}

.ln-panel{margin-top: 14px}
.ln-panel__title{font-weight: var(--w-bold); color: rgba(60,20,40,.92); margin-bottom: 8px}
.ln-panel__text{color: rgba(50,20,35,.95); line-height: 1.75}

.ln-miniacts{margin-top: 12px; display:flex; gap:12px; flex-wrap:wrap; color: var(--muted); font-size: 12px}
.ln-miniacts a{color: rgba(255, 122, 182, .95); font-weight: var(--w-semibold)}

/* chapters */
.ln-chaptergrid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    /*max-height: 70vh;*/
    overflow:auto;
    padding-right: 6px;
}
.ln-chaptergrid--full{max-height: none}
.ln-chaptergrid__item{min-width:0}
.ln-chaptergrid__link{
    display:block;
    padding: 10px 12px;
    border-radius: var(--r12);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255, 122, 182, .12);
    font-weight: var(--w-semibold);
}
.ln-chaptergrid::-webkit-scrollbar{width:10px}
.ln-chaptergrid::-webkit-scrollbar-thumb{background: rgba(255,122,182,.16); border-radius:999px}

.ln-dirbar{margin-top: 14px; display:flex; justify-content:flex-end}
.ln-dirtools{display:flex; justify-content:space-between; gap: 12px; align-items:center; flex-wrap:wrap; margin-bottom: 12px}
.ln-dirtools__list{display:flex; gap:10px; flex-wrap:wrap}
.ln-dirtools__tip{color: var(--muted); font-size: 12px}

/* pager */
.ln-pager{
    margin-top: 14px;
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
}
.ln-pager__btn{
    flex: 1;
    text-align:center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(127,200,255,.18);
    font-weight: var(--w-semibold);
}
.ln-pager__mid{
    flex: 1;
    text-align:center;
    color: var(--muted);
    font-size: 13px;
}

/* mini tile */
.ln-tilemini{
    display:flex;
    gap: 10px;
    padding: 10px;
    border-radius: var(--r12);
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(247,178,103,.14);
    min-width:0;
}
.ln-tilemini__cover{
    width: 52px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(127,200,255,.18);
    background:#fff;
    flex:0 0 auto;
}
.ln-tilemini__body{min-width:0; flex:1; display:flex; flex-direction:column; gap:6px}
.ln-tilemini__title{font-weight: var(--w-semibold)}
.ln-tilemini__sub{color: var(--muted); font-size: 12px}

/* footer */
.ln-footer{
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
}
.ln-footer__inner{
    display:flex;
    justify-content:space-between;
    gap: 14px;
    padding: 16px 0;
    align-items:flex-start;
}
.ln-footer__brand{font-weight: var(--w-bold)}
.ln-footer__meta{margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6}
.ln-footer__links{display:flex; gap:12px; flex-wrap:wrap}
.ln-footer__links a{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,122,182,.16);
    font-weight: var(--w-semibold);
}

/* empty */
.ln-empty{padding: 14px 0; text-align:center; color: var(--muted)}

/* reader mode */
html.ln-reading .ln-header{display:none}
html.ln-reading .ln-footer{display:none}

.ln-reader{padding: 14px 0 28px}
.ln-readerbar{
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,122,182,.14);
}
.ln-readerbar__inner{
    padding: 10px 0;
    display:flex;
    flex-wrap:wrap;
    gap: 12px;
    align-items:center;
    justify-content:space-between;
}
.ln-readerbar__nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.ln-readerbar__link{
    display:inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(127,200,255,.18);
    font-weight: var(--w-semibold);
}
.ln-readerbar__link--primary{
    border:0;
    color:#fff;
    background: linear-gradient(135deg, rgba(255, 122, 182, 1) 0%, rgba(127, 200, 255, 1) 55%, rgba(247, 178, 103, 1) 100%);
}
.ln-readerbar__meta{max-width: 520px; color: var(--muted); font-size: 13px}

.ln-font{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.ln-font__label{font-weight: var(--w-semibold); color: rgba(60,20,40,.92)}
.ln-font__btn{
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,122,182,.18);
    background: rgba(255,255,255,.92);
    cursor:pointer;
    font-weight: var(--w-semibold);
}
.ln-font__val{min-width: 60px; text-align:center; font-weight: var(--w-semibold)}
.ln-font__reset{
    border:0;
    background: transparent;
    color: var(--muted);
    font-weight: var(--w-medium);
    text-decoration: underline;
    cursor:pointer;
}

.ln-paper{
    margin-top: 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--r16);
    box-shadow: var(--shadow2);
    padding: 18px 18px 24px;
}
.ln-paper__title{
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: var(--w-bold);
}
.ln-paper__content{
    line-height: 2.05;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap:anywhere;
}
.ln-paper__content p{
    margin: 0 0 14px;
    text-indent: 2em;
}
.ln-paper__content p:last-child{margin-bottom:0}

.ln-paper__bottomnav{margin-top: 16px}
.ln-bottom{display:flex; gap:10px; justify-content:center; flex-wrap:wrap}
.ln-bottom__link{
    display:inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(247,178,103,.18);
    font-weight: var(--w-semibold);
}
.ln-bottom__link--primary{
    border:0;
    color:#fff;
    background: linear-gradient(135deg, rgba(255, 122, 182, 1) 0%, rgba(127, 200, 255, 1) 55%, rgba(247, 178, 103, 1) 100%);
}

/* responsive */
@media (max-width: 1180px){
    .ln-stage{grid-template-columns: 1fr}
    .ln-box--side{position: static}
    .ln-hero{grid-template-columns: 300px 1fr}
    .ln-grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
    .ln-grid--after{grid-template-columns: repeat(3, minmax(0, 1fr))}
    .ln-shelf{grid-template-columns: 1fr}
    .ln-bookpage{grid-template-columns: 1fr}
    .ln-chaptergrid{grid-template-columns: repeat(2, minmax(0, 1fr))}
    .ln-rankgrid{grid-template-columns: 1fr}
}
@media (max-width: 760px){
    .ln-wrap{width: calc(100% - 24px)}
    .ln-mast{grid-template-columns: 1fr; gap: 10px}
    .ln-searchrow{grid-template-columns: 1fr}
    .ln-quick{justify-content:flex-start}
    .ln-hero{grid-template-columns: 1fr}
    .ln-hero__cover img{height: 260px}
    .ln-grid{grid-template-columns: 1fr}
    .ln-grid--wide{grid-template-columns: 1fr}
    .ln-grid--after{grid-template-columns: 1fr}
    .ln-chaptergrid{grid-template-columns: 1fr}
    .ln-mosaic{grid-template-columns: 1fr}
}
/* ===============================
   首页修复补丁：榜单入口 + 频道精选
   追加到 ranobe.css 文件末尾
   =============================== */

/* 1) 首页右侧「榜单入口」：ln-pillgrid / ln-pill 缺失样式 */
.ln-pillgrid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ln-pillgrid__item{min-width:0}
.ln-pill{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255, 122, 182, .16);
    color: rgba(60,20,40,.92);
    font-weight: var(--w-semibold);
    max-width: 100%;
}
.ln-pill:hover{
    border-color: rgba(127,200,255,.28);
    box-shadow: 0 10px 18px rgba(127,200,255,.10);
}

/* 2) 频道精选：让「主打卡 + 列表」更稳定、更规整 */
.ln-shelf{
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    align-items: start;
}
.ln-shelf__feature,
.ln-shelf__list{
    min-width: 0;
}

/* 主打卡：让卡片高度更接近列表区域 */
.ln-feature{
    height: 100%;
}

/* 列表区域：固定一个舒适高度，超出滚动，避免撑到版式乱 */
.ln-rowlist{
    max-height: 360px;
    overflow: auto;
    padding-right: 6px;
}
.ln-rowlist::-webkit-scrollbar{width:10px}
.ln-rowlist::-webkit-scrollbar-thumb{
    background: rgba(255,122,182,.16);
    border-radius: 999px;
}

/* 3) 防止长标题/长作者把 grid/flex 撑炸导致错位 */
.ln-stage__main,
.ln-stage__side,
.ln-grid__item,
.ln-bookitem,
.ln-book,
.ln-book__body,
.ln-row,
.ln-row__title,
.ln-row__sub,
.ln-feature__body{
    min-width: 0;
}

/* 4) 响应式下频道两列改一列，避免窄屏时混乱 */
@media (max-width: 1180px){
    .ln-pillgrid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 900px){
    .ln-pillgrid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 760px){
    .ln-pillgrid{grid-template-columns: 1fr;}
    .ln-rowlist{max-height: none;}
}
/* moxue.net */