:root {
    --ink: #20251f;
    --muted: #687065;
    --paper: #ffffff;
    --background: #f7f8f4;
    --yellow: #f4cf40;
    --line: #e0e5db;
    --soft: #eef1e8;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: #776000;
}
button, input {
    font: inherit;
}
button, summary {
    cursor: pointer;
}
button {
    color: inherit;
}
:focus-visible {
    outline: 3px solid #267160;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    object-fit: cover;
    background: var(--soft);
}
h1, h2, h3, p, figure {
    margin: 0;
}
h1, h2, h3 {
    line-height: 1.4;
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 19px;
}
p {
    color: var(--muted);
}
.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}
body > header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.topbar {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand, .header-actions, .actions, .navigation a, .shelf-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    background: none;
}
.brand strong {
    display: block;
    font-size: 25px;
    letter-spacing: 1px;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.header-note {
    color: var(--muted);
    font-size: 14px;
    margin-right: 20px;
}
.shelf-link {
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
}
.icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: -4px;
    flex-shrink: 0;
}
h1 .icon, h2 .icon {
    margin-right: 12px;
}
.navigation {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 16px;
}
.navigation a {
    justify-content: center;
    gap: 7px;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 8px;
}
.navigation a:hover {
    background: var(--soft);
}
.navigation .active {
    background: var(--yellow);
    color: #20251f;
    font-weight: 700;
}
main > section {
    margin-top: 72px;
}
.hero {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #eef1e6;
    border-radius: 20px;
    overflow: hidden;
    min-height: 470px;
}
.hero-copy {
    padding: 46px;
}
.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 18px;
    margin: 15px 0 6px;
}
.hero h2 {
    font-size: clamp(32px, 3.4vw, 47px);
    white-space: pre-line;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.hero p {
    max-width: 440px;
}
.actions {
    margin-top: 24px;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.dark {
    background: #20251f;
    color: white;
}
.dark:hover {
    background: #414b39;
    color: white;
}
.outline {
    background: transparent;
    border-color: #8a9281;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    font-size: 12px;
    color: #687065;
}
.hero-cover {
    position: relative;
    min-height: 400px;
    background: #263b4a;
    color: white;
}
.hero-cover > img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: #263b4a;
}
.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, #15252acc 100%);
}
.hero-cover-caption {
    position: absolute;
    z-index: 1;
    bottom: 32px;
    left: 32px;
    right: 32px;
    color: white;
}
.hero-cover-caption h3 {
    font-size: 36px;
    margin: 8px 0;
}
.hero-cover-caption p {
    color: #eef2ef;
    margin-bottom: 18px;
}
.hero-cover-caption span {
    font-size: 14px;
}
.spotlight {
    margin-top: 20px;
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 19px 24px;
    border-block: 1px solid var(--line);
    font-size: 14px;
}
.spot-label {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.spotlight > a {
    margin-left: auto;
    white-space: nowrap;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.section-no {
    color: #7c836f;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 2px;
}
.section-head p {
    margin-top: 9px;
    font-size: 14px;
}
.text-link {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.category {
    padding: 24px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.category .icon {
    width: 34px;
    height: 34px;
    padding: 5px;
    background: var(--yellow);
    border-radius: 9px;
    margin-bottom: 17px;
    color: #20251f;
}
.category h3 {
    font-size: 17px;
    margin-bottom: 10px;
}
.category p {
    font-size: 14px;
    min-height: 120px;
}
.category > span {
    display: block;
    font-size: 12px;
    margin-top: 16px;
    color: var(--muted);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.comic-card, .chapter-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.cover {
    position: relative;
    display: block;
    overflow: hidden;
}
.cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    transition: transform .25s;
}
.cover:hover img {
    transform: scale(1.035);
}
.cover-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #ffffffef;
    padding: 4px 10px;
    color: #20251f;
    border-radius: 5px;
    font-size: 12px;
}
.card-copy {
    padding: 20px;
}
.card-copy .eyebrow {
    margin-bottom: 6px;
    letter-spacing: .5px;
}
.card-copy p {
    font-size: 14px;
    margin: 10px 0 18px;
}
.chapter-link {
    display: block;
    font-size: 12px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}
#search-form {
    margin-bottom: 25px;
}
#search-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}
.search-row {
    display: flex;
    gap: 10px;
    max-width: 540px;
}
input {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
}
.search-row button {
    flex-shrink: 0;
}
.search-status, .save-status, .subscription-status {
    font-size: 14px;
    margin-top: 12px;
}
.ranking-grid, .two-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.rank-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}
.rank-number {
    color: #8a721c;
    font-size: 38px;
    font-weight: 800;
    font-style: italic;
}
.rank-row .icon {
    margin-left: auto;
}
.rank-row p {
    margin-top: 6px;
    font-size: 14px;
}
.feature {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-radius: 18px;
    background: #e8ede5;
    overflow: hidden;
}
.feature-image img {
    width: 100%;
    height: 100%;
    max-height: 570px;
    aspect-ratio: 1;
}
.feature-copy {
    padding: 44px;
}
.feature-copy h2 {
    white-space: pre-line;
    font-size: 32px;
    margin-bottom: 20px;
}
.feature-copy p + p {
    margin-top: 12px;
}
.feature-copy ul {
    color: var(--muted);
    font-size: 14px;
    padding-left: 20px;
    margin-block: 20px;
}
.timeline {
    border-top: 2px solid var(--ink);
}
.timeline-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding: 22px 12px;
}
.timeline-row time, .timeline-row p {
    color: var(--muted);
    font-size: 14px;
}
.status-pill {
    background: var(--soft);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.finish-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px;
    gap: 60px;
}
.finish-copy h3 {
    font-size: 30px;
    white-space: pre-line;
    margin-bottom: 15px;
}
.finish-copy .button {
    margin-top: 22px;
}
.chapter-preview {
    list-style: none;
    padding: 0;
    margin: 0;
}
.chapter-preview li {
    border-bottom: 1px solid var(--line);
    padding: 12px 4px;
}
#saved-books {
    padding: 20px 24px;
    background: var(--soft);
    border-radius: 10px;
    margin-bottom: 18px;
}
.saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}
.saved-item button {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 4px 10px;
    flex-shrink: 0;
}
.shelf-suggestion {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.shelf-suggestion > span {
    margin-left: auto;
    font-size: 14px;
    white-space: nowrap;
}
.shelf-suggestion p {
    font-size: 14px;
}
.guide-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.guide-steps li {
    padding-top: 22px;
    border-top: 1px solid var(--ink);
}
.guide-steps span {
    display: block;
    font-size: 35px;
    color: #969e8c;
    margin-bottom: 10px;
}
.guide-steps p {
    margin-top: 12px;
}
.about {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    border-block: 1px solid var(--line);
    padding-block: 40px;
}
.about-lead {
    margin-top: 20px;
    max-width: 250px;
}
.about-copy p + p {
    margin-top: 20px;
}
details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
summary {
    font-weight: 600;
}
details p {
    padding: 15px 20px 0;
}
.subscribe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    background: var(--yellow);
    color: #20251f;
    padding: 42px;
    border-radius: 16px;
    margin-bottom: 64px;
}
.subscribe-copy {
    max-width: 740px;
}
.subscribe .eyebrow {
    margin-top: 12px;
    color: #4c4b27;
}
.subscribe h2 {
    margin-bottom: 16px;
}
.subscribe p {
    color: #4c4b27;
}
.subscribe .muted {
    font-size: 12px;
    margin-top: 14px;
}
.subscription-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 205px;
    min-height: 220px;
    padding: 24px;
    border: 1px solid #b59b30;
    border-radius: 12px;
    text-align: center;
}
.subscription-mark img {
    background: none;
    margin-bottom: 10px;
}
.subscription-mark span {
    font-size: 12px;
    margin-top: 5px;
}
footer {
    border-top: 1px solid var(--line);
    padding: 35px 0;
    font-size: 12px;
}
.footer-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 12px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
    font-size: 14px;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    font-size: 14px;
    color: var(--muted);
}
.collection-intro {
    margin-top: 0;
    padding: 36px;
    border-radius: 16px;
    background: var(--soft);
}
.collection-intro h1 {
    font-size: 36px;
}
.collection-intro p {
    margin-top: 16px;
    max-width: 900px;
}
.lead {
    font-size: 22px;
    color: var(--ink);
}
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.chapter-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}
.editor-note {
    margin-bottom: 64px;
    padding: 30px;
    background: var(--soft);
    border-radius: 12px;
}
.editor-note p {
    margin-block: 16px;
}
.reader {
    max-width: 820px;
    margin-inline: auto;
}
.article-header {
    margin-top: 40px;
}
.article-header h1 {
    font-size: 32px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}
.reading-note {
    padding: 24px;
    margin: 32px 0 48px;
    background: var(--soft);
    border-left: 4px solid #b9a02e;
}
.reading-note h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
.reading-note p {
    font-size: 14px;
}
.story-scene {
    margin-top: 48px;
}
.story-scene p {
    font-size: 18px;
    line-height: 2.1;
    color: var(--ink);
    margin: 20px 0;
}
.story-scene img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}
figcaption {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}
.chapter-end {
    margin: 60px 0;
    padding: 28px;
    background: var(--soft);
    border-radius: 12px;
}
.chapter-end p {
    margin-top: 14px;
}
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.skip {
    position: fixed;
    z-index: 10;
    top: -100px;
    left: 16px;
    padding: 10px;
    background: var(--yellow);
}
.skip:focus {
    top: 8px;
}
body.night {
    --ink: #e6eade;
    --muted: #b4bcad;
    --paper: #252b24;
    --background: #191e18;
    --line: #3e4739;
    --soft: #2b3428;
}
[hidden] {
    display: none !important;
}
@media (max-width: 1050px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .category p {
        min-height: 72px;
    }
    .hero-copy, .feature-copy {
        padding: 30px;
    }
    .header-note {
        display: none;
    }
    .card-grid {
        gap: 16px;
    }
    .navigation a {
        flex-direction: column;
        gap: 5px;
    }
}
@media (max-width: 760px) {
    .wrap {
        width: min(1200px, calc(100% - 32px));
    }
    .topbar {
        min-height: 82px;
        gap: 10px;
    }
    .brand strong {
        font-size: 21px;
    }
    .brand small {
        font-size: 12px;
        letter-spacing: -.5px;
    }
    .shelf-link {
        padding: 8px;
    }
    .shelf-link span {
        display: none;
    }
    .navigation {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }
    .navigation a {
        flex-direction: row;
        font-size: 12px;
        gap: 4px;
    }
    .navigation .icon {
        width: 16px;
        height: 16px;
    }
    main > section {
        margin-top: 48px;
    }
    .hero {
        margin-top: 24px;
        grid-template-columns: 1fr;
    }
    .hero-copy {
        padding: 28px 24px;
    }
    .hero-cover {
        min-height: 320px;
    }
    .hero-meta {
        gap: 12px;
    }
    .spotlight {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
        padding: 18px 4px;
    }
    .spotlight > a {
        margin-left: 0;
    }
    h2 {
        font-size: 24px;
    }
    .section-head {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }
    .category-grid, .card-grid, .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .category {
        padding: 20px 16px;
    }
    .category p {
        min-height: 122px;
    }
    .card-copy {
        padding: 14px;
    }
    .card-copy h3 {
        font-size: 17px;
    }
    .card-copy .eyebrow {
        letter-spacing: 0;
    }
    .ranking-grid, .two-grid, .feature, .finish-panel, .about {
        grid-template-columns: 1fr;
    }
    .rank-row {
        padding: 16px;
        gap: 18px;
    }
    .feature-copy {
        padding: 28px 24px;
    }
    .feature-image img {
        max-height: 330px;
        aspect-ratio: 4 / 3;
    }
    .feature-copy h2 {
        font-size: 28px;
    }
    .timeline-row {
        grid-template-columns: 66px 1fr;
        gap: 12px;
        padding-inline: 0;
    }
    .timeline-row .status-pill {
        grid-column: 2;
        justify-self: start;
    }
    .finish-panel {
        padding: 26px;
        gap: 24px;
    }
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .guide-steps span {
        font-size: 28px;
    }
    .about {
        gap: 26px;
    }
    .subscribe {
        padding: 28px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
    }
    .subscription-mark {
        min-height: 190px;
    }
    .collection-intro {
        padding: 26px;
    }
    .collection-intro h1 {
        font-size: 30px;
    }
    .article-header h1 {
        font-size: 27px;
    }
    .story-scene p {
        font-size: 17px;
    }
    .chapter-end, .reading-note {
        padding: 20px;
    }
    .chapter-nav {
        flex-direction: column;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}
