/* ============================================================
   lx-pages.css — 澜心动漫 · 首页与内页
   ============================================================ */

/* 首屏 */
.lx_hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; min-height: 400px; padding: 44px; overflow: hidden; border-radius: 26px;
    background: #DCE4FF var(--lx-hero) right center / cover no-repeat; }
.lx_hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 247, 251, .92) 0%, rgba(246, 247, 251, .55) 40%, rgba(246, 247, 251, 0) 62%); }
.lx_hero > * { position: relative; }
.lx_hero_txt { max-width: 460px; align-self: center; }
.lx_hero_kicker { display: inline-block; padding: 4px 12px; border-radius: 12px; background: #fff; color: var(--lx-blue); font-size: 12.5px; font-weight: 700; }
.lx_hero h1 { margin: 16px 0 12px; font-size: 42px; line-height: 1.25; font-weight: 900; color: var(--lx-ink); }
.lx_hero h1 em { font-style: normal; color: var(--lx-pink); }
.lx_hero p { margin: 0 0 22px; font-size: 15px; line-height: 1.9; color: var(--lx-text); }
.lx_hero_btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lx_hero_pick { display: flex; gap: 14px; width: 330px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(20, 24, 43, .16); }
.lx_hero_pick img { width: 82px; height: 110px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.lx_hero_pick em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--lx-pink); }
.lx_hero_pick strong { display: block; margin: 2px 0 4px; font-size: 16px; }
.lx_hero_pick small { font-size: 12.5px; line-height: 1.7; color: var(--lx-muted); }

/* 作品横卡 */
.lx_books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lx_book { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--lx-line); border-radius: 20px; transition: transform .25s, box-shadow .25s; }
.lx_book:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20, 24, 43, .1); }
.lx_book_cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lx-paper); }
.lx_book_cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lx_book:hover .lx_book_cover img { transform: scale(1.04); }
.lx_book_cover b { position: absolute; top: 12px; left: 12px; padding: 2px 10px; border-radius: 10px; background: var(--lx-pink); color: #fff; font-size: 12px; }
.lx_book_bd { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.lx_book_bd h3 { margin: 0; font-size: 18px; }
.lx_book_bd h3 a:hover { color: var(--lx-blue); }
.lx_book_bd p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--lx-text); }
.lx_book_ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--lx-line); font-size: 12.5px; color: var(--lx-muted); }
.lx_book_ft a { color: var(--lx-blue); font-weight: 700; font-size: 13.5px; }

/* 更新 + 排行 */
.lx_duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lx_updates a { display: flex; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--lx-line); }
.lx_updates a:first-child { border-top: 0; padding-top: 0; }
.lx_upd_pic { width: 120px; aspect-ratio: 16 / 10; flex-shrink: 0; overflow: hidden; border-radius: 10px; background: var(--lx-paper); }
.lx_upd_pic img { width: 100%; height: 100%; object-fit: cover; }
.lx_updates strong { display: block; font-size: 15px; }
.lx_updates small { display: block; font-size: 13px; color: var(--lx-text); }
.lx_updates em { font-style: normal; font-size: 12px; color: var(--lx-muted); }
.lx_updates a:hover strong { color: var(--lx-blue); }
.lx_rank { list-style: none; margin: 0; padding: 0; }
.lx_rank a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--lx-line); }
.lx_rank li:first-child a { border-top: 0; padding-top: 0; }
.lx_rank b { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--lx-paper); color: var(--lx-muted); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.lx_rank li:nth-child(1) b { background: var(--lx-pink); color: #fff; }
.lx_rank li:nth-child(2) b { background: var(--lx-blue); color: #fff; }
.lx_rank li:nth-child(3) b { background: var(--lx-blue-s); color: var(--lx-blue-d); }
.lx_rank img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.lx_rank span { flex: 1; min-width: 0; }
.lx_rank strong { display: block; font-size: 15px; }
.lx_rank small { font-size: 12.5px; color: var(--lx-muted); }
.lx_rank em { font-style: normal; font-size: 13px; color: var(--lx-pink); font-weight: 700; }
.lx_rank a:hover strong { color: var(--lx-blue); }

/* 分镜 */
.lx_panels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lx_panels a { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 5; background: var(--lx-paper); }
.lx_panels img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lx_panels a:hover img { transform: scale(1.06); }
.lx_panels span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(0deg, rgba(20, 24, 43, .75), transparent); color: #fff; font-size: 12px; }

/* 关于 */
.lx_about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.lx_about_main { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.lx_about_main > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.lx_about_main h2 { margin: 0 0 10px; font-size: 22px; }
.lx_about_main p { margin: 0 0 10px; font-size: 14px; line-height: 1.95; color: var(--lx-text); }
.lx_about_main p strong { color: var(--lx-ink); }
.lx_about_side { display: flex; flex-direction: column; gap: 20px; }
.lx_trust > div { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.lx_trust img { width: 44px; height: 44px; }
.lx_trust strong { display: block; font-size: 14.5px; }
.lx_trust small { font-size: 12.5px; color: var(--lx-muted); }
.lx_rules h3 { margin: 0 0 10px; font-size: 16px; }
.lx_rules { display: flex; flex-direction: column; }
.lx_rules a { display: flex; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--lx-text); }
.lx_rules a i { margin-top: 4px; color: var(--lx-blue); }
.lx_rules a:hover { color: var(--lx-blue); }

/* 内页头 */
.lx_head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.lx_head h1 { margin: 0 0 4px; font-size: 28px; font-weight: 900; }
.lx_head p { margin: 0; font-size: 14px; color: var(--lx-muted); }
.lx_head_search { display: flex; width: 300px; height: 44px; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--lx-line); }
.lx_head_search input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; font-size: 14px; }
.lx_head_search button { width: 40px; border-radius: 10px; background: var(--lx-blue); color: #fff; }
.lx_note { margin: -10px 0 18px; font-size: 14px; color: var(--lx-text); }
.lx_note a { color: var(--lx-blue); }

/* 书架 */
.lx_shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.lx_shelf_item { display: block; }
.lx_shelf_cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 12px 26px rgba(20, 24, 43, .14); }
.lx_shelf_cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lx_shelf_item:hover .lx_shelf_cover img { transform: scale(1.05); }
.lx_shelf_cover b { position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 10px; background: var(--lx-pink); color: #fff; font-size: 12px; }
.lx_shelf_item strong { display: block; font-size: 16px; }
.lx_shelf_item:hover strong { color: var(--lx-blue); }
.lx_shelf_item small { display: block; margin: 2px 0 4px; font-size: 12.5px; color: var(--lx-blue); }
.lx_shelf_item p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--lx-muted); }
.lx_pager { margin-top: 28px; }
.lx_pager svg { width: 18px; }

/* 详情 */
.lx_detail { position: relative; display: flex; gap: 32px; padding: 30px; overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid var(--lx-line); }
.lx_detail::before { content: ""; position: absolute; inset: 0; background: var(--lx-cover) center / cover; filter: blur(40px) saturate(1.2); opacity: .25; transform: scale(1.2); }
.lx_detail > * { position: relative; }
.lx_detail_cover { flex-shrink: 0; width: 230px; }
.lx_detail_cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 40px rgba(20, 24, 43, .22); }
.lx_detail_txt { flex: 1; min-width: 0; }
.lx_detail_txt h1 { margin: 4px 0 10px; font-size: 32px; font-weight: 900; }
.lx_detail_meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.lx_detail_meta li { padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .8); border: 1px solid var(--lx-line); }
.lx_detail_meta small { display: block; font-size: 12px; color: var(--lx-muted); }
.lx_detail_meta b { font-size: 14px; }
.lx_detail_desc { margin: 0 0 20px; font-size: 14.5px; line-height: 1.95; color: var(--lx-text); }
.lx_detail_btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lx_detail_btns form { margin: 0; }
.lx_detail_grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; }
.lx_sh_note { font-size: 13px; color: var(--lx-muted); }
.lx_toc a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; }
.lx_toc a:hover { background: var(--lx-paper); }
.lx_toc_pic { width: 120px; aspect-ratio: 16 / 10; flex-shrink: 0; overflow: hidden; border-radius: 10px; }
.lx_toc_pic img { width: 100%; height: 100%; object-fit: cover; }
.lx_toc_txt { flex: 1; min-width: 0; }
.lx_toc_txt strong { display: block; font-size: 15.5px; }
.lx_toc_txt small { font-size: 12.5px; color: var(--lx-muted); }
.lx_toc em { font-style: normal; padding: 3px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; }
.lx_toc em.free { background: #E3F7EC; color: #1D7A46; }
.lx_toc em.vip { background: var(--lx-pink-s); color: #C2255C; }
.lx_preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx_preview img { width: 100%; border-radius: 10px; border: 1px solid var(--lx-line); }
.lx_small { margin: 14px 0 0; font-size: 12.5px; color: var(--lx-muted); }
.lx_small i { color: var(--lx-blue); margin-right: 4px; }

/* 阅读 */
body.lx_reading { background: #ECEEF4; }
.lx_reader_head { display: flex; align-items: center; gap: 16px; max-width: 860px; margin: 0 auto 18px; }
.lx_reader_back { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--lx-line); display: flex; align-items: center; justify-content: center; }
.lx_reader_head h1 { margin: 0; font-size: 20px; }
.lx_reader_head small { font-size: 13px; color: var(--lx-muted); }
.lx_reader_nav { display: flex; gap: 10px; margin-left: auto; }
.lx_reader { max-width: 860px; margin: 0 auto; }
.lx_pages { display: flex; flex-direction: column; gap: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(20, 24, 43, .12); }
.lx_pages img { width: 100%; }
.lx_reader_end { padding: 30px 0 6px; text-align: center; color: var(--lx-muted); }
.lx_reader_end p { margin: 0 0 14px; }
.lx_reader_tip { text-align: center; }
.lx_lock { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 30px; border-radius: 20px; background: #fff; text-align: center; }
.lx_lock img { width: 70px; height: 70px; }
.lx_lock h2 { margin: 0; }
.lx_lock p { margin: 0 0 8px; color: var(--lx-text); }
.lx_lock small { font-size: 12px; color: var(--lx-muted); }
.lx_toc_float { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(20, 24, 43, .12); }
.lx_toc_float a { padding: 6px 14px; border-radius: 10px; font-size: 13px; color: var(--lx-text); white-space: nowrap; }
.lx_toc_float a i { margin-left: 4px; color: var(--lx-pink); font-size: 10px; }
.lx_toc_float a.on { background: var(--lx-blue); color: #fff; }
.lx_toc_float a.on i { color: #fff; }

.lx_doc { padding: 32px 38px; }

@media (max-width: 1280px) { .lx_toc_float { display: none; } .lx_panels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) {
    .lx_books { grid-template-columns: 1fr 1fr; }
    .lx_duo, .lx_about, .lx_detail_grid { grid-template-columns: 1fr; }
    .lx_shelf { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .lx_hero { flex-direction: column; align-items: stretch; padding: 26px; min-height: 0; padding-top: 180px; }
    .lx_hero::before { background: linear-gradient(0deg, rgba(246, 247, 251, .96) 0%, rgba(246, 247, 251, .8) 55%, rgba(246, 247, 251, .1) 100%); }
    .lx_hero h1 { font-size: 30px; }
    .lx_hero_pick { width: auto; }
    .lx_books, .lx_about_main { grid-template-columns: 1fr; }
    .lx_shelf { grid-template-columns: 1fr 1fr; }
    .lx_head { flex-direction: column; align-items: stretch; }
    .lx_head_search { width: auto; }
    .lx_detail { flex-direction: column; padding: 20px; }
    .lx_detail_cover { width: 160px; }
    .lx_reader_head { flex-wrap: wrap; }
    .lx_doc { padding: 22px 18px; }
}

.lx_flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 18px; padding: 16px; border-radius: 14px; background: var(--lx-paper); }
.lx_flow span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--lx-line); font-size: 13.5px; }
.lx_flow span b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lx-blue); color: #fff; font-size: 12px; }
.lx_flow > i { color: var(--lx-pink); }

@media (min-width: 1600px) { .lx_shelf { grid-template-columns: repeat(5, 1fr); } .lx_hero { min-height: 440px; } }
