﻿:root {
    --bg: #f7f8fb;
    --card: #fff;
    --text: #222;
    --muted: #737987;
    --line: #e9ecf2;
    --brand: #f45b69;
    --brand2: #ffb199;
    --hot: #e63946;
    --shadow: 0 8px 24px rgba(31, 41, 55, .07);
    --default-cover: url("https://image4.wmanhua.com/mh/abdf9ed7fdfc413b95b34ab64fecc9d2/cover.webp")
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #11151b;
    --card: #1b212a;
    --text: #e8edf4;
    --muted: #9da8b7;
    --line: #303946;
    --shadow: 0 8px 24px rgba(0, 0, 0, .32)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    height: 100%
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

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

.wrap {
    width: min(1240px, calc(100% - 32px));
    margin: auto;
    flex-shrink: 0
}

main.wrap {
    flex: 1 0 auto
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

html[data-theme="dark"] .top {
    background: rgba(20, 25, 32, .94)
}

.nav {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 26px
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: 0
}

.logo small {
    color: var(--brand2)
}

.logo-image {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px
}

.logo-image img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain
}

.links {
    display: flex;
    gap: 18px
}

.links a,
.tools a {
    color: var(--text)
}

.links a.active,
.links a:hover {
    color: var(--brand);
    font-weight: 700
}

.search {
    margin-left: auto;
    width: 270px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    padding: 0 5px 0 14px;
    color: var(--muted)
}

.search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    font: inherit;
    color: var(--text)
}

.search button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #737b88;
    cursor: pointer
}

.search button:hover,
.search button:focus-visible {
    background: #e6e9ee;
    color: var(--brand);
    outline: 0
}

.search button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round
}

.search input::placeholder {
    color: #9aa1ad
}

.tools {
    display: flex;
    gap: 12px;
    color: var(--muted)
}

.theme-toggle {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: rgba(127, 127, 127, .14);
    color: var(--brand);
    outline: 0
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
    display: none
}

html[data-theme="dark"] .theme-icon-sun {
    display: block
}

.account-nav {
    position: relative;
    align-items: center
}

.account-toggle::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg)
}

.account-nav[data-logged-in="false"] .account-toggle::after {
    display: none
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: 138px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    box-shadow: var(--shadow)
}

.account-dropdown[hidden] {
    display: none
}

.account-dropdown [hidden] {
    display: none
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font: inherit;
    line-height: 1.4;
    text-align: left;
    cursor: pointer
}

.account-dropdown a:hover,
.account-dropdown button:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:focus-visible {
    background: #f4f6f8;
    color: var(--brand);
    outline: 0
}

html[data-theme="dark"] .search {
    background: #202731
}

html[data-theme="dark"] .account-dropdown a:hover,
html[data-theme="dark"] .account-dropdown button:hover,
html[data-theme="dark"] .account-dropdown a:focus-visible,
html[data-theme="dark"] .account-dropdown button:focus-visible {
    background: #29323e
}

html[data-theme="dark"] :is(.filter, .doc, .rank-board, .rising-board, .rank-more .rank, .rank-mobile-tabs, .auth-box, .reset-box, .profile-card, .favorite-card, .history-card) {
    background: var(--card) !important;
    color: var(--text)
}

html[data-theme="dark"] :is(input, textarea, select) {
    background-color: #202731;
    border-color: var(--line);
    color: var(--text)
}

html[data-theme="dark"] :is(.auth-box, .reset-box, .profile-card) :is(h1, h2, h3, label) {
    color: var(--text) !important
}

html[data-theme="dark"] .slider {
    background: linear-gradient(120deg, #1d2930, #24271f 55%, #302126)
}

html[data-theme="dark"] .slide-title,
html[data-theme="dark"] .slide .hero-copy>p,
html[data-theme="dark"] .home-ranks .rank,
html[data-theme="dark"] .home-ranks .rank a {
    color: var(--text)
}

html[data-theme="dark"] .home-ranks .rank {
    background: #1b212a
}

html[data-theme="dark"] :is(.rank-row, .rank-row.head, .work strong, .rising-list strong, .rank-more .rank a) {
    color: var(--text)
}

html[data-theme="dark"] :is(.work small, .rank-row>span) {
    color: #aeb8c6
}

html[data-theme="dark"] .rank-winner em {
    background: #272e38;
    color: var(--text)
}

html[data-theme="dark"] :is(.profile-meta, .profile-desc) {
    color: #b5bfcc
}

html[data-theme="dark"] .profile-latest {
    background: #202731;
    border-color: #384352;
    color: #dbe2eb
}

html[data-theme="dark"] .chapters a {
    background: #202731;
    border-color: #384352;
    color: #dbe2eb
}

html[data-theme="dark"] .chapters a:hover {
    background: #293442;
    border-color: var(--brand);
    color: #fff
}

html[data-theme="dark"] :is(.chapter-sort button, .chapter-more button) {
    background: #202731;
    border-color: #384352;
    color: #cbd4df
}

html[data-theme="dark"] .chapter-sort button.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff
}

.feedback-page {
    max-width: 720px;
    margin: 28px auto
}

.feedback-context {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card)
}

.feedback-page label {
    display: block;
    margin-bottom: 16px;
    font-weight: 700
}

.feedback-page :is(input, select, textarea) {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font: inherit
}

.feedback-msg {
    display: none;
    margin-bottom: 16px;
    padding: 10px 13px;
    border-radius: 8px
}

.feedback-msg.success { display: block; background: #e9f8ef; color: #16733a }
.feedback-msg.error { display: block; background: #fff0f1; color: #b4232f }
html[data-theme="dark"] .feedback-msg.success { background: #173526; color: #8de0ad }
html[data-theme="dark"] .feedback-msg.error { background: #3b2024; color: #ffadb5 }


.menu {
    display: none;
    border: 0;
    background: transparent
}

.mobile-nav-drawer {
    display: none
}

.hero {
    padding: 28px 0 22px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.7fr .9fr;
    gap: 18px
}

.slider {
    min-height: 330px;
    border-radius: 8px;
    background: linear-gradient(120deg, #ecfff8, #fff7e5 55%, #ffe8ec);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative
}

.slider:before {
    content: "";
    position: absolute;
    right: 24%;
    top: 20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(36, 180, 126, .16)
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 218px;
    align-items: end;
    gap: 24px;
    padding: 36px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: .35s ease
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0)
}

.hero-copy {
    position: relative
}

.eyebrow {
    color: var(--brand);
    font-weight: 800
}

.hero h1 {
    font-size: 34px;
    line-height: 1.2;
    margin: 8px 0 10px
}

.meta {
    color: var(--muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 20px;
    background: var(--brand);
    color: white;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s
}

.btn.loading {
    opacity: .5;
    pointer-events: none;
    cursor: wait
}

.cover {
    aspect-ratio: 425/560;
    width: 100%;
    border-radius: 8px;
    background-image: var(--cover, var(--default-cover));
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 26px rgba(39, 54, 79, .25);
    position: relative;
    overflow: hidden
}

.cover:after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, .3);
    color: white;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.car-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 14px rgba(31, 41, 55, .12);
    color: #4b5563;
    font-size: 26px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer
}

.car-btn:hover {
    background: #fff;
    color: var(--brand)
}

.car-btn.prev {
    left: 14px
}

.car-btn.next {
    right: 14px
}

.dots {
    position: absolute;
    left: 36px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    gap: 7px
}

.dots button {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 6px;
    background: #cdd3dc;
    padding: 0;
    cursor: pointer
}

.dots button.active {
    width: 28px;
    background: var(--brand)
}

.push {
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 18px
}

.push h2,
.section h2 {
    font-size: 21px;
    margin: 0 0 14px
}

.push-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line)
}

.push-item:last-child {
    border-bottom: 0
}

.num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff2d8;
    color: #d88b00;
    display: grid;
    place-items: center;
    font-weight: 900
}

.tagline {
    color: var(--muted);
    font-size: 13px
}

.read {
    color: var(--brand);
    font-weight: 700
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 22px
}

.chips a {
    padding: 7px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    color: #565c68
}

.chips a.active,
.chips a:hover {
    background: #eafff6;
    border-color: #bfead9;
    color: #139262
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px
}

.section {
    background: var(--card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px
}

.more {
    color: var(--muted);
    font-size: 13px
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px
}

.book {
    min-width: 0
}

.thumb {
    aspect-ratio: 425/560;
    border-radius: 7px;
    background-image: var(--default-cover);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden
}

.thumb:after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 7px 8px;
    background: rgba(0, 0, 0, .3);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.book h3 {
    font-size: 15px;
    margin: 8px 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.list {
    display: grid;
    gap: 10px
}

.update-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0
}

.update-cols .list {
    padding-right: 22px
}

.update-cols .list+.list {
    padding-right: 0;
    padding-left: 22px;
    border-left: 1px solid var(--line)
}

.update {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 10px 0
}

.update:last-child {
    border-bottom: 0
}

.mini {
    aspect-ratio: 425/560;
    width: 52px;
    border-radius: 6px;
    background-image: var(--default-cover);
    background-size: cover;
    background-position: center
}

.update h3 {
    margin: 0;
    font-size: 15px
}

.update p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 13px
}

.time {
    color: var(--brand);
    font-size: 13px;
    white-space: nowrap
}

.rank-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

.home-ranks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.home-ranks .rank {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px
}

.home-ranks .rank h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line)
}

.rank ol {
    margin: 0;
    padding: 0;
    list-style: none
}

.rank li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line)
}

.rank li>a {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.rank li:last-child {
    border-bottom: 0
}

.rank b {
    color: var(--hot)
}

.score {
    color: var(--brand);
    font-weight: 800
}

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

.zone a {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px
}

.zone strong {
    display: block;
    font-size: 17px
}

.zone span {
    color: var(--muted)
}

.tab-nav {
    display: flex;
    gap: 2px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto
}

.tab-nav button {
    position: relative;
    height: 42px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #565c68;
    font: inherit;
    white-space: nowrap;
    cursor: pointer
}

.tab-nav button:hover {
    color: var(--brand);
    background: #fff5f6
}

.tab-nav button.active {
    color: var(--brand);
    background: #fff0f2;
    font-weight: 800
}

.tab-nav button.active:after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--brand)
}

.tab-panel {
    display: none
}

.tab-panel.active {
    display: block
}

.filter {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    margin: 22px 0;
    box-shadow: var(--shadow)
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line)
}

.filter-title h1 {
    margin: 0;
    font-size: 25px
}

.filter-title span {
    color: #4b5563
}

.filter-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
    align-items: start;
    margin: 9px 0
}

.filter b {
    font-weight: 500;
    color: #4b5563;
    padding-top: 6px
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.filter-options a {
    min-width: 52px;
    text-align: center;
    padding: 5px 12px;
    background: #f4f1ed;
    border: 1px solid #e8e0d8;
    color: #111
}

.filter-options a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff
}

.fold-btn {
    display: none
}

.crumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0;
    color: var(--muted);
    font-size: 13px
}

.crumb a {
    color: #4b5563
}

.crumb a:hover {
    color: var(--brand)
}

.catalog {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px
}

.detail {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 26px
}

.comic-profile {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 26px;
    align-items: start
}

.profile-info {
    min-width: 0
}

.profile-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.profile-title h1 {
    font-size: 30px;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere
}

.profile-title span {
    padding: 3px 10px;
    border-radius: 14px;
    background: #fff0f2;
    color: var(--brand);
    font-weight: 800
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 8px 22px;
    margin: 14px 0;
    color: #4b5563
}

.profile-meta p {
    margin: 0
}

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0
}

.profile-tags a {
    padding: 5px 11px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: #565c68
}

.profile-desc {
    margin: 14px 0;
    color: #4b5563;
    overflow-wrap: anywhere
}

.profile-latest {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-width: 0;
    overflow-wrap: anywhere
}

.profile-latest a {
    color: var(--brand);
    font-weight: 800
}

.reading-file {
    margin: 24px 0 30px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--card)
}

.reading-file-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px
}

.reading-file-title span {
    color: var(--brand);
    font-size: 22px;
    font-weight: 900
}

.reading-file-title h2 {
    margin: 0;
    font-size: 22px
}

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

.reading-file-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg)
}

.reading-file-card h3 {
    margin: 0 0 8px;
    font-size: 16px
}

.reading-file-card p {
    margin: 0 0 11px;
    color: var(--muted)
}

.reading-file-card>a,
.reading-file-links a {
    color: var(--brand)
}

.reading-file-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px
}

.reading-file-byline {
    margin-bottom: 0 !important;
    font-size: 13px
}

html[data-theme="dark"] .reading-file-card {
    background: #202731;
    border-color: #384352
}

@media (max-width: 700px) {
    .reading-file { padding: 16px }
    .reading-file-grid { grid-template-columns: 1fr }
    .reading-file-title h2 { font-size: 19px }
}

.info h1 {
    font-size: 30px;
    margin: 0 0 8px
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.outline {
    background: #fff;
    color: var(--brand);
    border: 1px solid #bfead9
}

.chapter-head {
    align-items: flex-start
}

.chapter-sort {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chapter-sort button,
.chapter-more button {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: #565c68;
    font: inherit;
    cursor: pointer
}

.chapter-sort button.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 800
}

.chapter-more {
    display: flex;
    justify-content: center;
    margin-top: 16px
}

.chapter-more button {
    color: var(--brand);
    border-color: #f5c4ca
}

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

.chapters a {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.timeline {
    display: grid;
    gap: 0
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 104px 28px 64px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.timeline-item:last-child {
    border-bottom: 0
}

.timeline-item:before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px #bfead9;
    z-index: 1
}

.timeline-item:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 117px;
    width: 2px;
    background: var(--line)
}

.timeline time {
    grid-column: 1;
    grid-row: 1;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap
}

.timeline .mini {
    grid-column: 3;
    grid-row: 1
}

.timeline-item>div:last-child {
    grid-column: 4;
    grid-row: 1
}

.timeline h3 {
    margin: 0;
    font-size: 16px
}

.timeline p {
    margin: 3px 0 0;
    color: var(--muted)
}

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px
}

.pager a {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #565c68
}

.pager a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 800
}

.pager a.disabled {
    opacity: .45
}

.pager-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #565c68;
    font-size: 14px;
    white-space: nowrap
}

.pager-input {
    width: 48px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    font-size: 14px;
    color: #565c68;
    outline: none;
    -moz-appearance: textfield
}

.pager-input::-webkit-outer-spin-button,
.pager-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.pager-input:focus {
    border-color: var(--brand)
}
.badge {
    display: none;
    margin-left: 4px;
    padding: 0 5px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    vertical-align: top;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(244, 91, 105, .32)
}
.badge.show { display: inline-block; }
.chapter-reader {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto
}

.chapter-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    text-align: center
}

.chapter-title h1 {
    font-size: 26px;
    margin: 0
}

.chapter-title span {
    color: var(--brand);
    font-weight: 800
}

.reader-label {
    font-size: 18px;
    text-align: center;
    margin: 22px 0 14px
}

.reader-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.reader-bar select {
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 12px;
    background: #fff
}

.comic-pages {
    width: min(840px, 100%);
    margin: auto
}

.page-img {
    min-height: 860px;
    background: linear-gradient(180deg, #fafafa, #dfe8ee);
    border-radius: 0;
    margin-bottom: 0;
    display: grid;
    place-items: center;
    color: #555;
    font-size: 28px;
    font-weight: 900
}

.page-img img {
    width: 100%;
    height: auto;
    display: block
}

.finish-box {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 24px 0
}

.finish-box h2,
.chapter-info h2 {
    margin-top: 0
}

.chapter-info {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-top: 18px
}

.chapter-info p {
    color: #4b5563
}

.chapter-info p:last-child {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.chapter-info a {
    color: var(--brand);
    font-weight: 800
}

.page-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px
}

.page-buttons span {
    color: var(--muted);
    margin-right: 4px
}

.page-buttons a {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    display: grid;
    place-items: center
}

.page-buttons a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff
}

.doc {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin: 24px 0
}

.doc h1 {
    margin-top: 0
}

.foot {
    margin-top: 28px;
    background: #20242b;
    color: #ccd2dc;
    padding: 34px 0
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px
}

.foot h3 {
    color: #fff;
    margin-top: 0
}

.copyright {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #aeb7c4;
    text-align: center
}

.copyright p {
    margin: 0;
    font-size: 13px;
    letter-spacing: .1px
}

.copyright a {
    color: inherit
}

.copyright a:hover {
    color: #fff
}

.copyright-separator {
    margin: 0 5px;
    color: rgba(255, 255, 255, .3)
}

@media (max-width: 560px) {
    .copyright {
        margin-top: 22px;
        padding-top: 18px
    }

    .copyright p {
        font-size: 12px
    }
}

/* 漫画评论：数据由浏览器异步加载，避免阻塞漫画详情首屏。 */
.comment-section { margin: 30px 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff) }
.comment-section .section-head { margin-bottom: 16px }
.comment-section .section-head h2 { margin: 0; font-size: 22px }
.comment-section .section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px }
.comment-total { color: var(--muted); font-size: 13px }
.comment-sort { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -5px 0 14px; color: var(--muted); font-size: 13px }
.comment-sort select,.comment-sort button { height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; color: inherit; background: transparent; cursor: pointer }
.comment-form { display: grid; gap: 9px; margin-bottom: 22px }
.comment-form textarea,.comment-reply-form textarea { box-sizing: border-box; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: inherit; background: transparent; font: inherit; line-height: 1.6 }
.comment-form textarea:focus,.comment-reply-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); border-color: var(--brand) }
.comment-form>div { display: flex; align-items: center; justify-content: space-between }
.comment-form small { color: var(--muted) }
.comment-context,.comment-chapter { width: fit-content; border-radius: 999px; padding: 3px 8px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); font-size: 12px }
.comment-loading,.comment-empty { padding: 20px 0; color: var(--muted); text-align: center }
.comment-item { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 11px; padding: 17px 0; border-top: 1px solid var(--line) }
.comment-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 800 }
.comment-body { min-width: 0 }
.comment-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 7px }
.comment-body header time { margin-left: auto; color: var(--muted); font-size: 12px }
.comment-floor { color: var(--brand); font-size: 12px; font-weight: 700 }
.comment-source { padding: 2px 7px; border-radius: 999px; background: #fff1f0; color: var(--brand); font-size: 11px; text-decoration: none }
.comment-body>p { margin: 9px 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.7 }
.comment-body footer { display: flex; gap: 14px }
.comment-body footer button { border: 0; padding: 2px 0; color: var(--muted); background: transparent; cursor: pointer }
.comment-body footer button:hover,.comment-body footer button.liked { color: var(--brand) }
.comment-replies { width: 100% }
.comment-reply { grid-template-columns: 40px minmax(0,1fr); margin: 0; padding: 17px 0; border: 0; border-top: 1px dashed var(--line); background: transparent }
.comment-reply .comment-avatar { width: 40px; height: 40px; font-size: 13px }
.comment-reply-form { display: grid; gap: 8px; margin-top: 10px }
.comment-reply-form[hidden] { display: none }
.comment-reply-form textarea { min-height: 62px }
.comment-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.comment-reply-actions small { color: var(--muted) }
.comment-reply-actions button { min-height: 38px }
.comment-reply-reference { margin: 8px 0 4px; color: var(--muted); font-size: 12px }
.comment-reply-reference>span { display: block; margin-bottom: 4px; color: var(--brand); font-weight: 700 }
.comment-reply-reference blockquote { display: block; overflow: hidden; max-width: 100%; margin: 0; border-left: 3px solid var(--line); padding: 7px 10px; background: color-mix(in srgb, var(--line) 34%, transparent); color: var(--muted); text-overflow: ellipsis; white-space: nowrap }
.comment-reply-form button,.comment-more { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 0 15px; color: #fff; background: var(--brand); cursor: pointer }
.comment-more { display: block; margin: 15px auto 0; min-height: 38px }
.comment-more[hidden],.comment-loading[hidden] { display: none }
.comment-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 20px }
.comment-pagination button { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; color: inherit; background: transparent; cursor: pointer }
.comment-pagination button:hover:not(:disabled),.comment-pagination button.active { border-color: var(--brand); color: #fff; background: var(--brand) }
.comment-pagination button:disabled { opacity: .4; cursor: default }.comment-pagination span { color: var(--muted) }
.comment-toast { position: fixed; z-index: 9999; right: 24px; bottom: 28px; max-width: min(380px,calc(100vw - 32px)); transform: translateY(18px); border-radius: 999px; padding: 11px 18px; background: #252b35; color: #fff; box-shadow: 0 10px 35px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: opacity .2s ease,transform .2s ease }
.comment-toast.show { transform: translateY(0); opacity: 1 }.comment-toast.error { background: #d93645 }.comment-toast.success { background: #198754 }
.comment-item.comment-target { border-radius: 10px; background: color-mix(in srgb,var(--brand) 10%,transparent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent); transition: background .4s ease,box-shadow .4s ease }
.account-message-link { display: flex!important; align-items: center; justify-content: space-between }
.message-badge { display: inline-grid; min-width: 19px; height: 19px; place-items: center; border-radius: 999px; padding: 0 5px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800 }
.message-badge[hidden] { display: none!important }
.message-page { max-width: 900px; margin: 28px auto; border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--card); box-shadow: var(--shadow) }
.message-page>header { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line) }.message-page h1 { margin: 0 }.message-page>header p { margin: 5px 0 0; color: var(--muted) }
.message-head-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap }.message-head-actions button { border: 1px solid var(--brand); border-radius: 7px; padding: 7px 12px; color: var(--brand); background: transparent; cursor: pointer }.message-head-actions button:disabled { opacity: .4; cursor: default }
.message-item { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 10px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: inherit }.message-item:hover { background: color-mix(in srgb,var(--line) 24%,transparent) }
.message-dot { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: transparent }.message-item.unread .message-dot { background: var(--brand) }
.message-item header { display: flex; justify-content: space-between; gap: 12px }.message-item time,.message-item small { color: var(--muted); font-size: 12px }
.message-quote { overflow: hidden; margin: 9px 0 5px; border-left: 3px solid var(--line); padding: 6px 9px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap }.message-reply { margin: 6px 0; line-height: 1.65 }
.message-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 20px }.message-pagination button { border: 1px solid var(--line); border-radius: 7px; padding: 7px 13px; background: transparent; color: inherit }.message-pagination button:disabled { opacity: .4 }
.chapter-page .comment-section { width: min(920px, calc(100% - 24px)); margin: 30px auto; color: #25262a; background: #fff }

@media (max-width: 560px) {
    .comment-section { margin: 20px 0; padding: 17px 13px; border-radius: 10px }
    .comment-sort { justify-content: flex-start; margin-top: 0 }
    .comment-pagination { gap: 5px }.comment-pagination button { min-width: 33px; height: 34px; padding: 0 8px }
    .comment-item { grid-template-columns: 34px minmax(0,1fr) }
    .comment-avatar { width: 34px; height: 34px }
    .comment-body header time { width: 100%; margin-left: 0 }
    .comment-reply { grid-template-columns: 34px minmax(0,1fr); margin: 0; padding: 15px 0 }
    .comment-reply .comment-avatar { width: 34px; height: 34px }
    .comment-reply-actions { align-items: stretch; flex-direction: column }
    .chapter-page .comment-section { width: calc(100% - 16px) }
    .comment-toast { right: 16px; bottom: 76px; left: 16px; max-width: none; border-radius: 10px; text-align: center }
    .message-page { margin: 15px 0; padding: 18px 13px }.message-item header { display: grid }.message-page>header { align-items: start }
}

.bottom-nav {
    display: none
}

html[data-theme="dark"] .bottom-nav {
    background: rgba(24, 30, 39, .97);
    border-top-color: #35404e;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .28)
}

html[data-theme="dark"] .bottom-nav a {
    color: #aab4c2
}

html[data-theme="dark"] .bottom-nav a:hover {
    background: rgba(255, 255, 255, .04);
    color: #e2e8f0
}

html[data-theme="dark"] .bottom-nav a.active {
    background: rgba(244, 91, 105, .1);
    color: #ff8792
}

.read-tool {
    display: none
}

.mobile-side-tools {
    display: flex;
    position: fixed;
    right: 18px;
    top: 42%;
    z-index: 60;
    flex-direction: column;
    background: rgba(60, 62, 68, .9);
    border-radius: 14px;
    overflow: hidden
}

.mobile-side-tools button {
    width: 50px;
    min-height: 54px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer
}
.mobile-side-tools button:hover {
    background: rgba(255, 255, 255, .1)
}

.mobile-side-tools small {
    display: block;
    font-size: 12px;
    color: #fff
}

.chapter-page {
    background: #2b2d31;
    color: #f2f3f5;
    padding-bottom: 0
}

.chapter-shell {
    min-height: 100vh
}

.chapter-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 54px;
    background: rgba(43, 45, 49, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px
}

.chapter-brand {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap
}

.chapter-brand small {
    color: #ffd1d6
}

.chapter-brand-image {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px
}

.chapter-brand-image img {
    display: block;
    width: 25.5px;
    height: 25.5px;
    object-fit: contain
}

.chapter-sticky-nav nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c3c7cf
}

.chapter-sticky-nav nav a {
    color: #fff
}

.chapter-sticky-nav nav span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.chapter-sticky-nav em {
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 15px;
    font-style: normal;
    color: #fff
}

.chapter-pc-head {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 12px 16px;
    text-align: center
}

.chapter-pc-head h1 {
    font-size: 24px;
    margin: 0 0 6px
}

.chapter-pc-head>span {
    color: #ffd1d6;
    font-weight: 800
}

.chapter-canvas {
    width: min(960px, 100%);
    margin: auto;
    background: #3a3d43
}

.chapter-canvas .comic-pages {
    width: 100%
}

.chapter-canvas .page-img {
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #fff, #e9eef5);
    border-bottom: 0;
    display: block;
    font-size: 0;
    line-height: 0
}

.chapter-canvas .page-img.is-loading {
    min-height: 900px;
    display: grid
}

.chapter-canvas .page-img img {
    width: 100%;
    height: auto;
    display: block
}

.chapter-end {
    width: min(960px, calc(100% - 24px));
    margin: 24px auto;
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow)
}

.chapter-end h2 {
    text-align: center;
    margin-top: 0
}

.chapter-page.light-on {
    background: #e9ecf1;
    color: #222
}

.chapter-page.light-on .chapter-canvas {
    background: #d7dce3
}

.chapter-page.light-on .chapter-sticky-nav {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: var(--line)
}

.chapter-page.light-on .chapter-brand,
.chapter-page.light-on .chapter-sticky-nav nav a,
.chapter-page.light-on .chapter-sticky-nav em {
    color: #222
}

.chapter-page.light-on .chapter-brand small {
    color: var(--brand)
}

.chapter-page.light-on .chapter-sticky-nav nav {
    color: #687080
}

.chapter-page.light-on .chapter-sticky-nav em {
    border-color: var(--line)
}

.chapter-page.light-on .chapter-pc-head>span {
    color: var(--brand)
}

.chapter-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none
}

.chapter-drawer.open {
    display: block
}

.chapter-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55)
}

.chapter-drawer aside {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(360px, 86vw);
    background: #fff;
    color: var(--text);
    box-shadow: -12px 0 30px rgba(0, 0, 0, .24);
    display: flex;
    flex-direction: column
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line)
}

.drawer-head h2 {
    margin: 0;
    font-size: 20px
}

.drawer-head button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 22px;
    cursor: pointer
}

.drawer-list {
    padding: 12px 18px;
    overflow: auto
}

.drawer-list a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: #4b5563
}

.drawer-list a.active {
    color: var(--brand);
    font-weight: 800
}

.ranking-page {
    padding-top: 22px
}

.rank-hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 14px;
    padding-top: 15px
}

.rank-winner {
    background: #050505;
    color: #fff;
    padding: 18px
}

.winner-cover {
    height: 390px;
    background-image: var(--default-cover);
    background-size: cover;
    background-position: center;
    position: relative
}

.winner-cover:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(transparent, #050505)
}

.winner-cover span {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 58px;
    height: 64px;
    background: #ffd66b;
    color: #111;
    font-size: 30px;
    font-weight: 900;
    display: grid;
    place-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%)
}

.rank-winner h1 {
    font-size: 28px;
    line-height: 1.15;
    margin: 18px 0 12px
}

.rank-winner em {
    display: inline-block;
    background: #fff;
    color: #333;
    font-style: normal;
    padding: 4px 9px;
    margin-bottom: 12px
}

.rank-winner p {
    line-height: 1.8
}

.rank-winner b {
    display: block;
    margin: 14px 0
}

.rank-board {
    background: #fff;
    border: 1px solid #dedbd4;
    padding: 18px
}

.rank-board h2 {
    font-size: 22px;
    margin: 0 0 14px
}

.rank-table {
    display: grid
}

.rank-row {
    display: grid;
    grid-template-columns: 56px 1.7fr 1fr .7fr;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    border-top: 1px solid var(--line);
    color: #4b5563
}

.rank-row.head {
    min-height: 34px;
    color: #333
}

.rank-row b {
    width: 28px;
    height: 28px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center
}

.rank-row:nth-child(n+7) b {
    background: #bdb8af
}

.rank-row em {
    color: #ec0036;
    font-style: normal;
    text-align: right
}

.work {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 10px;
    align-items: center
}

.work i {
    grid-row: 1/3;
    width: 48px;
    height: 64px;
    background-image: var(--default-cover);
    background-size: cover;
    background-position: center
}

.work strong,
.work small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.work strong {
    color: #111
}

.work small {
    color: #64748b
}

.rising-board {
    background: #fff;
    border: 1px solid #dedbd4;
    margin: 20px 0;
    padding: 18px
}

.rising-board h2 {
    font-size: 22px;
    margin: 0 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.rising-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px
}

.rising-list a {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    min-width: 0
}

.rising-list i {
    width: 78px;
    height: 104px;
    background-image: var(--default-cover);
    background-size: cover;
    background-position: center
}

.rising-list span {
    min-width: 0
}

.rising-list strong,
.rising-list em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.rising-list strong {
    font-weight: 500;
    color: #222;
    line-height: 1.45
}

.rising-list em {
    color: #ec0036;
    font-style: normal;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 8px
}

.rank-more {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0
}

.rank-more .rank {
    background: #fff;
    border: 1px solid #dedbd4;
    padding: 18px
}

.rank-more .rank h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line)
}

.rank-mobile-tabs {
    display: none
}

.rank-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.rank-card .thumb span {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    padding: 4px 7px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 0 0 6px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18)
}

@media (max-width:900px) {
    .wrap {
        width: min(100% - 22px, 760px)
    }

    .nav {
        gap: 12px
    }

    .links,
    .tools {
        display: none
    }

    .desktop-theme-toggle {
        display: none
    }

    .links.open {
        display: flex;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 64px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 14px;
        flex-wrap: wrap
    }

    .links.open a {
        padding: 6px 8px
    }

    .menu {
        width: 38px;
        height: 38px;
        margin-left: auto;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: #fff;
        display: grid;
        place-content: center;
        gap: 4px;
        padding: 0
    }

    .menu span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: #4b5563
    }

    body.mobile-nav-open {
        overflow: hidden
    }

    .mobile-nav-drawer {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: block
    }

    .mobile-nav-drawer[hidden] {
        display: none
    }

    .mobile-nav-mask {
        position: absolute;
        inset: 0;
        width: 100%;
        border: 0;
        background: rgba(0, 0, 0, .5)
    }

    .mobile-nav-drawer aside {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 84vw);
        display: flex;
        flex-direction: column;
        padding: 18px;
        background: var(--card);
        color: var(--text);
        box-shadow: -12px 0 34px rgba(0, 0, 0, .28)
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line);
        font-size: 18px
    }

    .mobile-nav-head button {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--text);
        font-size: 25px;
        cursor: pointer
    }

    .mobile-nav-links {
        display: grid;
        padding: 12px 0
    }

    .mobile-nav-links a,
    .mobile-nav-account a,
    .mobile-nav-account button {
        width: 100%;
        padding: 12px 10px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--text);
        font: inherit;
        text-align: left;
        cursor: pointer
    }

    .mobile-nav-links a:hover,
    .mobile-nav-account :is(a, button):hover {
        background: rgba(127, 127, 127, .12);
        color: var(--brand)
    }

    .mobile-nav-account {
        display: grid;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid var(--line)
    }

    .mobile-nav-account [hidden] {
        display: none
    }

    .mobile-theme-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .mobile-theme-state {
        color: var(--muted);
        font-size: 13px
    }

    .search {
        width: 180px;
        margin-left: 0
    }

    .hero-grid,
    .split,
    .detail,
    .comic-profile,
    .rank-hero {
        grid-template-columns: 1fr
    }

    .comic-profile>.cover {
        width: min(220px, 62vw);
        justify-self: center
    }

    .profile-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .slider {
        min-height: 300px;
        background: #1f2937
    }

    .slider:before {
        display: none
    }

    .slide {
        grid-template-columns: 1fr;
        align-items: end;
        background-image: linear-gradient(90deg, rgba(9, 14, 20, .78), rgba(9, 14, 20, .38)), var(--cover, var(--default-cover));
        background-size: cover;
        background-position: center
    }

    .slide .cover {
        display: none
    }

    .slide .hero-copy {
        max-width: 78%;
        color: #fff
    }

    .slide .eyebrow,
    .slide .meta {
        color: rgba(255, 255, 255, .78)
    }

    .grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .catalog {
        grid-template-columns: repeat(4, 1fr)
    }

    .rank-tabs,
    .home-ranks,
    .zone,
    .rank-more {
        grid-template-columns: 1fr 1fr
    }

    .chapters {
        grid-template-columns: repeat(2, 1fr)
    }

    .rising-list {
        grid-template-columns: repeat(2, 1fr)
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr
    }

    .bottom-nav {
        position: fixed;
        z-index: 30;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: 56px
    }

    .bottom-nav a {
        position: relative;
        display: grid;
        place-items: center;
        color: var(--muted);
        font-size: 12px
    }

    .bottom-nav .badge {
        position: absolute;
        top: 8px;
        left: calc(50% + 12px);
        margin-left: 0;
        vertical-align: initial;
        pointer-events: none
    }

    .bottom-nav a.active {
        color: var(--brand);
        font-weight: 800
    }

    body {
        padding-bottom: 58px
    }
}

@media (max-width:560px) {
    .logo {
        font-size: 20px
    }

    .search {
        flex: 1;
        height: 36px;
        padding: 0 11px
    }

    .search span {
        font-size: 16px
    }

    .hero {
        padding-top: 14px
    }

    .slide {
        padding: 24px 46px
    }

    .slide .hero-copy {
        max-width: 100%
    }

    .hero h1 {
        font-size: 28px
    }

    .car-btn {
        width: 30px;
        height: 30px;
        font-size: 23px
    }

    .car-btn.prev {
        left: 9px
    }

    .car-btn.next {
        right: 9px
    }

    .dots {
        left: 46px;
        bottom: 18px
    }

    .grid,
    .catalog {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px
    }

    .book h3 {
        font-size: 13px;
        margin-top: 6px
    }

    .thumb:after {
        padding: 6px;
        font-size: 12px
    }

    .update-cols {
        grid-template-columns: 1fr;
        gap: 0
    }

    .update-cols .list,
    .update-cols .list+.list {
        padding-left: 0;
        padding-right: 0;
        border-left: 0
    }

    .update {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        align-items: center
    }

    .update>span:not(.time) {
        min-width: 0
    }

    .update h3 {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .tab-nav button {
        max-width: 70vw;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .update p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .update .time {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        padding-top: 2px;
        font-size: 12px
    }

    .mini {
        width: 54px;
        height: 100%;
        min-height: 64px;
        aspect-ratio: auto
    }

    .timeline-item {
        grid-template-columns: 54px 1fr;
        gap: 10px;
        padding: 14px 0 14px 24px
    }

    .timeline-item:before {
        position: absolute;
        left: 2px;
        grid-column: auto
    }

    .timeline-item:after {
        left: 8px
    }

    .timeline time {
        grid-column: 1/3;
        text-align: left
    }

    .timeline .mini {
        grid-column: 1;
        grid-row: 2
    }

    .timeline-item>div:last-child {
        grid-column: 2;
        grid-row: 2
    }

    .timeline h3 {
        font-size: 15px
    }

    .timeline p {
        font-size: 12px
    }

    .pager a {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px
    }
    .pager-jump { font-size: 12px; }
    .pager-input { width: 40px; height: 32px; font-size: 12px }

    .rank-tabs,
    .home-ranks,
    .zone,
    .foot-grid {
        grid-template-columns: 1fr
    }

    .rank-more {
        display: none
    }

    .rank-mobile-tabs {
        display: block;
        background: #fff;
        border: 1px solid #dedbd4;
        margin: 18px 0;
        padding: 14px
    }

    .rank-board {
        padding: 14px
    }

    .rank-row {
        grid-template-columns: 34px 1fr auto;
        gap: 8px;
        min-height: 68px
    }

    .rank-row.head,
    .rank-row>span:nth-child(3),
    .rank-row>span:nth-child(4) {
        display: none
    }

    .rank-row em {
        font-size: 12px
    }

    .rising-list {
        grid-template-columns: 1fr
    }

    .page-img {
        min-height: 620px
    }
    
    .page-img img {
        width: 100%;
        height: auto;
        display: block
    }

    .doc {
        padding: 20px
    }

    .filter {
        padding: 14px
    }

    .filter-title {
        display: block
    }

    .filter-title h1 {
        font-size: 22px
    }

    .filter-title span {
        display: block;
        margin-top: 4px;
        font-size: 12px
    }

    .filter-row {
        grid-template-columns: 42px 1fr 44px;
        align-items: start
    }

    .filter b {
        width: auto;
        padding-top: 4px
    }

    .filter-options {
        height: 32px;
        overflow: hidden;
        flex-wrap: wrap;
        gap: 7px
    }

    .filter-options a {
        min-width: 44px;
        padding: 4px 10px
    }

    .fold-row.open .filter-options {
        height: auto
    }

    .fold-btn {
        display: block;
        height: 28px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: #fff;
        color: var(--brand);
        font: inherit;
        font-size: 12px
    }

    .doc {
        padding: 20px
    }

    .chapter-reader {
        padding: 0;
        margin-left: -11px;
        margin-right: -11px;
        border-radius: 0
    }

    .chapter-title,
    .chapter-topbar,
    .reader-label {
        display: none
    }

    .comic-pages {
        width: 100%
    }

    .comic-pages .page-img {
        border-radius: 0;
        margin: 0;
        min-height: 0
    }

    .comic-pages .page-img.is-loading {
        min-height: 620px
    }

    /* 消除移动浏览器按设备像素缩放时偶发的 1px 子像素接缝。 */
    .chapter-canvas .page-img + .page-img {
        margin-top: -1px
    }
    
    .comic-pages .page-img img {
        width: 100%;
        height: auto;
        display: block
    }

    .read-tool {
        display: flex;
        position: fixed;
        z-index: 60;
        opacity: 0;
        pointer-events: none;
        transition: .2s ease
    }

    .reader-tools-on .read-tool {
        opacity: 1;
        pointer-events: auto
    }

    .mobile-read-top {
        left: 0;
        right: 0;
        top: 0;
        height: 52px;
        align-items: center;
        gap: 8px;
        padding: 0 14px;
        background: rgba(54, 56, 62, .94);
        color: #fff
    }

    .mobile-read-top span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .mobile-read-top em {
        margin-left: auto;
        padding: 4px 12px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 15px;
        font-style: normal
    }

    .mobile-side-tools {
        right: 12px;
        top: 38%;
        flex-direction: column;
        background: rgba(60, 62, 68, .9);
        border-radius: 14px;
        overflow: hidden
    }

    .mobile-side-tools button {
        width: 50px;
        min-height: 54px;
        border: 0;
        background: transparent;
        color: #fff;
        font: inherit;
        cursor: pointer
    }
    .mobile-side-tools button:hover {
        background: rgba(255, 255, 255, .1)
    }

    .mobile-side-tools small {
        display: block;
        font-size: 12px;
        color: #fff
    }

    .mobile-bottom-tools {
        left: 12px;
        right: 12px;
        bottom: 14px;
        height: 58px;
        align-items: center;
        justify-content: space-around;
        background: rgba(54, 56, 62, .96);
        border-radius: 14px
    }

    .mobile-bottom-tools a {
        display: grid;
        place-items: center;
        color: #fff;
        font-weight: 800
    }

    .mobile-bottom-tools span {
        display: block;
        font-size: 12px;
        font-weight: 400
    }

    .chapter-bottom-nav {
        display: none
    }

    .chapter-sticky-nav {
        display: none
    }
}.update-timeline{margin-top:24px}

/* Homepage topic landing page */
.home-landing {
    --home-soft: #fff5f6;
    --home-brand-dark: #cc3544;
    padding: 26px 0 0
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .7fr);
    gap: 22px;
    margin-bottom: 22px
}

.home-hero-main,
.home-featured,
.home-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow)
}

.home-hero-main {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 64px);
    background: linear-gradient(135deg, #fff 10%, #fff6f7 65%, #fff0ed)
}

.home-hero-main:after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -95px;
    top: -105px;
    border-radius: 50%;
    background: rgba(244, 91, 105, .1);
    pointer-events: none
}

.home-eyebrow,
.home-prose-heading>span {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.18;
    letter-spacing: -.035em
}

.home-hero-summary {
    max-width: 750px;
    margin: 18px 0 24px;
    color: #5f6672;
    font-size: 16px;
    line-height: 1.85
}

.home-search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800
}

.home-search-control {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(680px, 100%);
    min-height: 58px;
    padding: 5px 5px 5px 17px;
    border: 1px solid #e3dadd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(95, 46, 54, .08)
}

.home-search-control:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(244, 91, 105, .12)
}

.home-search-control svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #8b929e;
    stroke-width: 2;
    stroke-linecap: round
}

.home-search-control input {
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px
}

.home-search-control button {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer
}

.home-search-control button:hover { background: var(--home-brand-dark) }

.home-quick-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px
}

.home-quick-links>span { color: var(--muted); font-size: 13px }
.home-quick-links a {
    padding: 5px 10px;
    border: 1px solid #f1d9dc;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #6f4e53;
    font-size: 13px
}
.home-quick-links a:hover { border-color: var(--brand); color: var(--brand) }

.home-featured { padding: 20px }
.home-featured-head,
.home-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px
}
.home-featured-head span { color: var(--brand); font-size: 12px; font-weight: 800 }
.home-featured-head h2 { margin: 1px 0 12px; font-size: 21px }
.home-featured-head>a,
.home-section-head>a { color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap }
.home-featured-list { display: grid; gap: 13px }
.home-featured-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 13px;
    border-top: 1px solid var(--line)
}
.home-featured-cover { overflow: hidden; border-radius: 7px; aspect-ratio: 425/560; background: #f1f2f5 }
.home-featured-cover img,
.home-comic-cover img,
.home-update-cover img,
.home-mini-grid img { width: 100%; height: 100%; object-fit: cover }
.home-featured-item h3 { margin: 0; font-size: 14px; line-height: 1.45 }
.home-featured-item h3 a,
.home-featured-item p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.home-featured-item p { margin: 4px 0; color: var(--muted); font-size: 12px }
.home-featured-item>div>span { color: var(--brand); font-size: 12px; font-weight: 700 }

.home-section { margin-bottom: 22px; padding: clamp(20px, 3vw, 30px) }
.home-section-head { margin-bottom: 20px }
.home-section-head h2,
.home-prose-heading h2 { margin: 0; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.3 }
.home-section-head p { margin: 5px 0 0; color: var(--muted) }

.home-comic-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px
}
.home-comic-card { min-width: 0 }
.home-comic-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 425/560; border-radius: 9px; background: #eef0f4 }
.home-comic-cover img { transition: transform .25s ease }
.home-comic-card:hover .home-comic-cover img { transform: scale(1.025) }
.home-comic-cover>span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding: 9px 10px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    text-overflow: ellipsis;
    white-space: nowrap
}
.home-comic-body h3 { overflow: hidden; margin: 9px 0 2px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap }
.home-comic-author { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap }
.home-comic-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 11px }
.home-comic-meta a { color: var(--brand) }
.home-comic-meta time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.home-update-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px }
.home-update-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(110px, .8fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}
.home-update-cover { overflow: hidden; width: 44px; aspect-ratio: 425/560; border-radius: 6px; background: #eef0f4 }
.home-update-copy { min-width: 0 }
.home-update-copy h3,
.home-update-copy p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap }
.home-update-copy h3 { font-size: 14px }
.home-update-copy p { margin-top: 3px; color: var(--muted); font-size: 12px }
.home-update-copy p a,
.home-update-chapter { color: var(--brand) }
.home-update-chapter { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap }
.home-update-item time { color: var(--muted); font-size: 12px; white-space: nowrap }

.home-prose-heading { margin-bottom: 18px }
.home-prose-columns { columns: 2; column-gap: 38px }
.home-prose-columns p,
.home-guide p { color: #4d5562; font-size: 15px; line-height: 1.95 }
.home-prose-columns p { break-inside: avoid; margin: 0 0 14px }
.home-prose-columns a,
.home-guide a,
.home-faq a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px }

.home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.home-category-card,
.home-topic-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafbfc
}
.home-category-card h3,
.home-topic-card h3 { margin: 0 0 7px; font-size: 18px }
.home-category-card>p,
.home-topic-card>div>p { margin: 0 0 12px; color: #626a76; line-height: 1.8 }
.home-category-examples { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 14px; color: var(--muted); font-size: 12px }
.home-category-examples a { color: var(--brand) }
.home-card-link { align-self: flex-start; margin-top: auto; color: var(--brand); font-weight: 800 }

.home-mini-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px }
.home-mini-grid article { min-width: 0 }
.home-mini-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 425/560;
    border-radius: 8px;
    background: #eef0f4
}
.home-mini-grid img { aspect-ratio: 425/560; background: #eef0f4; transition: transform .25s ease }
.home-mini-grid article:hover img { transform: scale(1.025) }
.home-mini-cover>span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding: 9px 10px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    text-overflow: ellipsis;
    white-space: nowrap
}
.home-mini-grid h3 { overflow: hidden; margin: 7px 0 0; text-overflow: ellipsis; white-space: nowrap }
.home-mini-grid h3 { font-size: 14px }

.home-ranking-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.home-ranking-list { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc }
.home-ranking-list h3 { margin: 0 0 10px; font-size: 18px }
.home-ranking-list ol { margin: 0; padding: 0; list-style: none }
.home-ranking-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line) }
.home-ranking-list li>span { color: #a1a7b0; font-weight: 900 }
.home-ranking-list li:nth-child(-n+3)>span { color: var(--brand) }
.home-ranking-list li>a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.home-ranking-list li>em { color: var(--muted); font-size: 12px; font-style: normal }

.home-topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px }
.home-topic-card { padding: 18px }
.home-topic-card ul { margin: 0 0 14px; padding-left: 18px }
.home-topic-card li { margin: 6px 0 }
.home-topic-card li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.home-guide-lead { max-width: 920px; margin: -3px 0 24px }
.home-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 34px }
.home-guide-grid section { padding-top: 17px; border-top: 1px solid var(--line) }
.home-guide-grid h3 { margin: 0 0 8px; font-size: 18px }
.home-guide-grid p { margin: 0 }
.home-guide-end { margin: 22px 0 0; padding: 16px 18px; border-radius: 9px; background: var(--home-soft) }

.home-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px }
.home-faq details { border: 1px solid var(--line); border-radius: 9px; background: #fafbfc }
.home-faq summary { position: relative; padding: 16px 42px 16px 17px; font-weight: 800; cursor: pointer; list-style: none }
.home-faq summary::-webkit-details-marker { display: none }
.home-faq summary:after { content: "+"; position: absolute; right: 17px; top: 12px; color: var(--brand); font-size: 22px }
.home-faq details[open] summary:after { content: "−" }
.home-faq details p { margin: 0; padding: 0 17px 17px; color: #5d6571; line-height: 1.8 }

.home-empty { padding: 22px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center }
.home-empty a { color: var(--brand) }
.home-news-empty { display: grid; gap: 4px }
.home-news-empty strong { color: var(--text) }
.home-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.home-article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc }
.home-article-card>a { display: block; aspect-ratio: 16/9; overflow: hidden; background: #eef0f4 }
.home-article-card img { width: 100%; height: 100%; object-fit: cover }
.home-article-card>div { padding: 17px }
.home-article-card time,
.article-card time { color: var(--muted); font-size: 12px }
.home-article-card h3 { margin: 6px 0; font-size: 17px }
.home-article-card p { display: -webkit-box; overflow: hidden; margin: 0 0 12px; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2 }

.article-index { padding: 30px 0 }
.article-index-head { margin-bottom: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow) }
.article-index-head h1 { margin: 12px 0 5px; font-size: clamp(28px, 4vw, 40px) }
.article-index-head>p { margin: 0; color: var(--muted) }
.article-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--card); box-shadow: var(--shadow) }
.article-card-cover { display: block; aspect-ratio: 16/9; overflow: hidden; background: #eef0f4 }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease }
.article-card:hover img { transform: scale(1.025) }
.article-card-body { padding: 20px }
.article-card h2 { margin: 7px 0; font-size: 20px; line-height: 1.45 }
.article-card p { display: -webkit-box; overflow: hidden; margin: 0 0 14px; color: var(--muted); line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3 }
.article-read-more { color: var(--brand); font-weight: 800 }

.article-detail { max-width: 900px; margin: 28px auto; padding: clamp(22px, 5vw, 52px); border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: var(--shadow) }
.article-detail-head h1 { margin: 18px 0 10px; font-size: clamp(30px, 5vw, 46px); line-height: 1.25 }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px }
.article-detail-head>p { margin: 20px 0 0; padding: 16px 18px; border-left: 3px solid var(--brand); background: #fff5f6; color: #5b616c; line-height: 1.9 }
.article-hero-image { overflow: hidden; margin: 28px 0; border-radius: 10px; aspect-ratio: 16/9; background: #eef0f4 }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover }
.article-body { color: #343a45; font-size: 16px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere }
.article-detail-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line) }
.article-detail-footer a { color: var(--brand); font-weight: 800 }
.markdown-body { color: #303641; font-size: 16px; line-height: 1.9; white-space: normal; overflow-wrap: anywhere }
.markdown-body>:first-child { margin-top: 0 }
.markdown-body>:last-child { margin-bottom: 0 }
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4 { margin: 1.65em 0 .65em; color: var(--text); line-height: 1.35; scroll-margin-top: 90px }
.markdown-body h1 { font-size: 2em }.markdown-body h2 { padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 1.55em }.markdown-body h3 { font-size: 1.28em }
.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body blockquote,.markdown-body pre,.markdown-body table { margin: 1em 0 }
.markdown-body ul,.markdown-body ol { padding-left: 1.7em }.markdown-body li+li { margin-top: .35em }
.markdown-body blockquote { margin-left: 0; padding: .35em 1em; border-left: 4px solid var(--brand); background: #fff6f7; color: #606875 }
.markdown-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px }
.markdown-body img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: 9px }
.markdown-body code { border-radius: 4px; padding: .15em .38em; background: #f0f2f5; font-family: Consolas,Monaco,monospace; font-size: .9em }
.markdown-body pre { overflow-x: auto; border-radius: 9px; padding: 16px; background: #171b22; color: #edf1f7; line-height: 1.65 }
.markdown-body pre code { padding: 0; background: transparent; color: inherit }
.markdown-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse }.markdown-body th,.markdown-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left }.markdown-body th { background: #f5f6f8 }
.markdown-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line) }
.article-markdown-preview { overflow-wrap: anywhere; line-height: 1.8 }.article-markdown-preview img { max-width: 100%; height: auto }.article-markdown-preview pre { overflow-x: auto; padding: 12px; background: #171b22; color: #fff }
html[data-theme="dark"] :is(.home-article-card, .article-card) { background: #202731 }
html[data-theme="dark"] .article-detail-head>p { background: #2a2025; color: #b8c1ce }
html[data-theme="dark"] .article-body { color: #dce3ec }
html[data-theme="dark"] .markdown-body blockquote { background: #2a2025; color: #c0c7d1 }
html[data-theme="dark"] .markdown-body code { background: #303945 }
html[data-theme="dark"] .markdown-body pre code { background: transparent }
html[data-theme="dark"] .markdown-body th { background: #28313c }

html[data-theme="dark"] .home-landing { --home-soft: #2a2025; --home-brand-dark: #f2717d }
html[data-theme="dark"] .home-hero-main { background: linear-gradient(135deg, #1b212a 10%, #271f25 70%, #2d2424) }
html[data-theme="dark"] .home-hero-summary,
html[data-theme="dark"] :is(.home-prose-columns p, .home-guide p, .home-category-card>p, .home-topic-card>div>p, .home-faq details p) { color: #aeb8c6 }
html[data-theme="dark"] .home-search-control { border-color: #3b333a; background: #202731; box-shadow: none }
html[data-theme="dark"] :is(.home-category-card, .home-topic-card, .home-ranking-list, .home-faq details) { background: #202731 }
html[data-theme="dark"] .home-quick-links a { border-color: #4b343b; background: #272027; color: #e5bfc3 }

@media (max-width: 1020px) {
    .home-hero { grid-template-columns: 1fr }
    .home-featured-list { grid-template-columns: repeat(4, minmax(0, 1fr)) }
    .home-featured-item { border-top: 0; padding-top: 0 }
    .home-comic-grid,
    .home-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .home-update-list { grid-template-columns: 1fr }
    .home-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .article-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}

@media (max-width: 760px) {
    .home-desktop-only { display: none !important }

    .home-landing { padding-top: 16px }
    .home-hero-main { padding: 28px 22px }
    .home-hero h1 { font-size: 31px }
    .home-hero-summary { margin: 14px 0 20px; font-size: 15px }
    .home-featured-list { grid-template-columns: 1fr }
    .home-featured-item { padding-top: 13px; border-top: 1px solid var(--line) }
    .home-category-grid,
    .home-ranking-grid,
    .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .home-prose-columns { columns: 1 }
    .home-guide-grid { grid-template-columns: 1fr }
    .home-faq-list { grid-template-columns: 1fr }
    .home-article-grid { grid-template-columns: 1fr }
}

@media (max-width: 560px) {
    .wrap { width: min(100% - 22px, 1240px) }
    .home-section { padding: 18px 15px; border-radius: 11px }
    .home-section-head { align-items: flex-start; gap: 10px }
    .home-section-head h2,
    .home-prose-heading h2 { font-size: 23px }
    .home-section-head p { font-size: 13px }
    .home-section-head>a { padding-top: 5px }
    .home-search-control { grid-template-columns: 19px minmax(0, 1fr); padding: 6px 13px }
    .home-search-control button { grid-column: 1 / -1; width: 100%; height: 42px }
    .home-comic-grid,
    .home-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 8px }
    .home-category-grid,
    .home-ranking-grid,
    .home-topic-grid { grid-template-columns: 1fr }
    .article-card-grid { grid-template-columns: 1fr }
    .article-detail { margin: 16px auto; padding: 22px 17px }
    .home-update-item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px }
    .home-update-cover { width: 40px }
    .home-update-chapter { grid-column: 2; font-size: 12px }
    .home-update-item time { grid-column: 3; grid-row: 1; align-self: start; padding-top: 3px }
    .home-comic-meta { display: grid }
    .home-category-card,
    .home-topic-card { padding: 17px }
}
