:root {
    --ink: #102d29;
    --muted: #5d6e68;
    --paper: #f6f8f6;
    --surface: #ffffff;
    --line: #dfe7e2;
    --accent: #c8f36b;
    --soft: #eaf1ed;
    --reader-size: 19px;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: #487500;
}
button, input {
    font: inherit;
}
button, a {
    -webkit-tap-highlight-color: transparent;
}
button, .button {
    cursor: pointer;
}
button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid #548928;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    object-fit: cover;
    color: var(--ink);
    background: var(--soft);
}
h1, h2, h3, p, figure {
    margin: 0;
}
h1, h2, h3 {
    line-height: 1.45;
    overflow-wrap: anywhere;
}
h2 {
    font-size: 26px;
    letter-spacing: -0.5px;
}
h3 {
    font-size: 19px;
}
p {
    color: var(--muted);
}
.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}
.site-header {
    padding-top: 26px;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 800;
}
.brand img {
    border-radius: 12px;
}
.brand small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 2px;
}
.shelf-shortcut {
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 14px;
}
.icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 1.25em;
    margin-right: 7px;
    font-family: "Segoe UI Symbol", sans-serif;
    font-weight: 400;
}
#primary-nav {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.nav-link {
    padding: 10px 5px;
    text-align: center;
    border-radius: 9px;
    font-size: 14px;
    white-space: nowrap;
}
.nav-link.active {
    color: var(--ink);
    background: var(--accent);
    font-weight: 700;
}
.nav-link:hover {
    background: var(--soft);
}
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 8px;
}
.module {
    margin-top: 64px;
}
.hero {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #eaf0e9;
    border-radius: 22px;
    overflow: hidden;
    min-height: 470px;
}
.hero-copy {
    padding: 42px;
}
.eyebrow, .kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #4d6746;
}
.hero h1 {
    font-size: 18px;
    margin-top: 22px;
    font-weight: 600;
}
.hero-title {
    margin-top: 8px;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.36;
    font-weight: 850;
    letter-spacing: -2px;
    color: var(--ink);
    white-space: pre-line;
}
.hero-description {
    margin-top: 20px;
    max-width: 440px;
    font-size: 15px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 19px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}
.dark {
    background: #102d29;
    color: white;
}
.dark:hover {
    background: #274a38;
    color: white;
}
.light {
    background: white;
    color: #102d29;
}
.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 27px;
    font-size: 12px;
    color: #53694d;
}
.hero-feature {
    position: relative;
    min-width: 0;
    min-height: 470px;
    background: #28493e;
}
.hero-feature > a, .hero-feature img {
    width: 100%;
    height: 100%;
}
.hero-feature img {
    position: absolute;
    inset: 0;
    opacity: 0.85;
}
.hero-feature-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 90px 30px 30px;
    background: linear-gradient(transparent, rgba(8, 30, 24, 0.97));
    color: white;
}
.hero-feature-caption p {
    color: #e8eee8;
    font-size: 14px;
    margin: 8px 0;
}
.hero-feature-caption a {
    font-size: 14px;
    color: var(--accent);
}
.pill {
    display: inline-block;
    padding: 3px 9px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: var(--accent);
    color: #102d29;
    font-size: 12px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.section-heading p {
    margin-top: 7px;
    font-size: 14px;
}
.text-link {
    white-space: nowrap;
    font-size: 14px;
}
.category-grid, .comic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.category-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    transition: transform 0.2s;
}
.category-card:hover {
    transform: translateY(-3px);
}
.category-card > .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--soft);
    font-size: 24px;
    margin-bottom: 15px;
}
.category-card p {
    margin: 9px 0 12px;
    font-size: 14px;
}
.small {
    font-size: 13px;
}
.comic-card {
    min-width: 0;
}
.cover-link {
    display: block;
    position: relative;
    border-radius: 13px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.cover {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
}
.cover-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    padding: 3px 9px;
    border-radius: 4px;
    color: #102d29;
    font-size: 12px;
}
.card-body {
    padding: 16px 0;
}
.card-body h3 {
    margin: 4px 0 8px;
}
.card-body > p:not(.kicker) {
    font-size: 14px;
    min-height: 48px;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}
.rank-module {
    background: var(--ink);
    color: white;
    padding: 32px;
    border-radius: 18px;
}
.rank-module p {
    color: #b6c8bf;
}
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ranking-list li {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-top: 1px solid #36514a;
}
.rank-number {
    font-size: 34px;
    color: var(--accent);
    font-weight: 800;
}
.ranking-list p, .ranking-list > li > a, .rank-type {
    font-size: 14px;
}
.spotlight {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    align-items: center;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;
}
.spotlight img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 11px;
}
.spotlight h3 {
    font-size: 28px;
    margin: 10px 0;
}
.chapter-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.chapter-pills a {
    background: var(--soft);
    border-radius: 6px;
    padding: 9px;
    font-size: 13px;
}
.timeline {
    border-left: 1px solid var(--line);
    padding-left: 24px;
    margin-left: 12px;
}
.timeline article {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.timeline time {
    color: #486b3b;
    font-size: 20px;
    font-weight: 700;
}
.timeline p {
    font-size: 14px;
    margin-top: 5px;
}
.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.complete-card {
    border-radius: 14px;
    background: #e2edd7;
    color: #102d29;
    padding: 32px;
    border-bottom: 5px solid #b1cf96;
}
.complete-card:nth-child(2) {
    background: #dcebee;
    border-color: #9cbcc4;
}
.complete-card h3 {
    font-size: 27px;
    margin: 12px 0;
}
.complete-card p {
    margin-bottom: 25px;
    color: #52675d;
}
.complete-card > span:last-child {
    font-size: 14px;
}
.shelf-box {
    border: 1px dashed #a8bbac;
    padding: 26px;
    border-radius: 12px;
    background: var(--surface);
}
.shelf-box > a {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
}
.shelf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.shelf-item button {
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    border-radius: 6px;
    padding: 5px 12px;
    white-space: nowrap;
}
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.guide-grid article {
    padding-top: 18px;
    border-top: 2px solid var(--ink);
}
.step {
    font-size: 14px;
    color: #54734a;
}
.guide-grid h3 {
    margin: 12px 0;
}
.guide-grid p {
    font-size: 15px;
}
.editorial article {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.editorial h3 {
    margin: 10px 0 14px;
}
.editorial a {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}
details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
summary {
    cursor: pointer;
    font-weight: 600;
}
details p {
    margin-top: 12px;
    max-width: 850px;
}
.about-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}
.subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-top: 64px;
    margin-bottom: 32px;
    padding: 36px;
    background: var(--accent);
    color: #102d29;
    border-radius: 18px;
}
.subscribe p {
    color: #355237;
    margin-top: 8px;
    max-width: 760px;
}
.subscribe .button {
    margin: 18px 0 6px;
}
.subscribe > img {
    flex: 0 0 112px;
    background: transparent;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    border-top: 1px solid var(--line);
    padding: 25px 0 36px;
    font-size: 12px;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 14px;
}
.category-hero {
    margin-top: 28px;
    padding: 32px;
    background: var(--soft);
    border-radius: 15px;
}
.category-hero h1 {
    font-size: 36px;
    margin: 12px 0;
}
.category-hero > p:last-child {
    max-width: 850px;
}
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.chapter-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
}
.chapter-card h2 {
    margin: 12px 0;
    font-size: 21px;
}
.chapter-card > p:not(.eyebrow) {
    font-size: 15px;
    flex: 1;
}
.reader {
    max-width: 850px;
    margin: 32px auto 0;
}
.reader h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin: 10px 0 20px;
}
.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: var(--muted);
    font-size: 13px;
}
.chapter-intro {
    margin-top: 24px;
    padding-left: 20px;
    border-left: 3px solid #95bc57;
}
.reader-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 0;
}
.reader-controls button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
}
.reader-controls button[aria-pressed="true"] {
    background: var(--accent);
    color: #102d29;
}
.reading-note {
    padding: 20px;
    background: var(--soft);
    border-radius: 12px;
    font-size: 14px;
    margin: 0 0 38px;
}
.reading-note h2 {
    font-size: 17px;
    margin-bottom: 8px;
}
.story-panel {
    margin-bottom: 48px;
}
.story-panel h2 {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 14px;
}
.panel-image {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
figcaption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 9px;
}
.narrative {
    font-size: var(--reader-size);
    line-height: 2.1;
    color: var(--ink);
    margin-top: 22px;
}
.chapter-end {
    text-align: center;
    padding: 30px;
    background: var(--soft);
    border-radius: 14px;
}
.chapter-end h2 {
    font-size: 22px;
    margin: 10px 0;
}
.chapter-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    margin: 28px 0;
    font-size: 14px;
}
.chapter-navigation a {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #102d29;
    color: white;
    border-radius: 9px;
    padding: 12px 20px;
    max-width: calc(100% - 32px);
    box-shadow: 0 6px 20px #0003;
    z-index: 20;
}
.toast:empty {
    display: none;
}
.skip-link, .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.skip-link:focus {
    clip-path: none;
    width: auto;
    height: auto;
    background: var(--surface);
    padding: 12px;
    z-index: 100;
}
body.night {
    --ink: #e7f0e8;
    --muted: #acbdb1;
    --surface: #1b302a;
    --paper: #13231e;
    --soft: #243c31;
    --line: #3d5347;
    background: var(--paper);
    color: var(--ink);
}
body.night .eyebrow, body.night .kicker {
    color: #b6d799;
}
body.night .subscribe .eyebrow {
    color: #355237;
}
body.night .nav-link.active {
    color: #102d29;
}
@media (max-width: 1000px) {
    #primary-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hero-copy {
        padding: 30px;
    }
    .category-grid, .comic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .spotlight {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .rank-type {
        display: none;
    }
    .ranking-list li {
        grid-template-columns: 46px 1fr auto;
    }
    .hero-stats {
        gap: 8px 14px;
    }
}
@media (max-width: 640px) {
    .container {
        width: calc(100% - 32px);
    }
    .site-header {
        padding-top: 18px;
    }
    .header-top {
        flex-wrap: wrap;
        gap: 16px;
        padding-bottom: 18px;
    }
    .brand {
        font-size: 18px;
        gap: 8px;
    }
    .brand small {
        letter-spacing: 0;
    }
    .shelf-shortcut {
        display: none;
    }
    .menu-toggle {
        display: block;
        margin-left: auto;
        padding: 8px;
    }
    .js #primary-nav:not(.open) {
        display: none;
    }
    #primary-nav {
        gap: 5px;
    }
    .nav-link {
        font-size: 13px;
        padding: 10px 2px;
    }
    .module {
        margin-top: 44px;
    }
    .hero {
        grid-template-columns: 1fr;
        margin-top: 28px;
        border-radius: 16px;
    }
    .hero-copy {
        padding: 26px;
    }
    .hero h1 {
        margin-top: 16px;
        font-size: 16px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-feature {
        min-height: 310px;
    }
    .hero-feature-caption {
        padding: 75px 24px 24px;
    }
    h2 {
        font-size: 22px;
    }
    .section-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }
    .text-link {
        font-size: 12px;
        margin-top: 5px;
    }
    .category-grid, .comic-grid {
        gap: 12px;
    }
    .category-card {
        padding: 16px;
    }
    .category-card p {
        font-size: 13px;
    }
    h3 {
        font-size: 17px;
    }
    .card-body > p:not(.kicker) {
        font-size: 13px;
        min-height: 66px;
    }
    .rank-module {
        padding: 22px;
    }
    .ranking-list li {
        grid-template-columns: 34px 1fr;
        gap: 14px;
    }
    .ranking-list > li > a {
        grid-column: 2;
    }
    .rank-number {
        font-size: 27px;
    }
    .spotlight {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .timeline {
        padding-left: 14px;
        margin-left: 0;
    }
    .timeline article {
        grid-template-columns: 52px 1fr;
        gap: 10px;
    }
    .timeline article > a {
        grid-column: 2;
    }
    .timeline time {
        font-size: 16px;
    }
    .duo, .about-copy, .chapter-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
    .complete-card {
        padding: 25px;
    }
    .subscribe {
        margin-top: 44px;
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }
    .subscribe > img {
        width: 70px;
        height: 70px;
        flex-basis: auto;
    }
    .category-hero {
        padding: 24px;
    }
    .category-hero h1 {
        font-size: 29px;
    }
    .reader {
        margin-top: 24px;
    }
    .reader-controls {
        gap: 8px;
    }
    .reader-controls button {
        padding: 9px 12px;
    }
    .chapter-navigation {
        grid-template-columns: 1fr;
    }
    .chapter-end {
        padding: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
