:root {
    --pink: #e43872;
    --ink: #242638;
    --muted: #727685;
    --paper: #ffffff;
    --ground: #f7f8fc;
    --line: #e8e9ef;
    --tint: #fff0f5;
    --reading-size: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ink);
    background: var(--ground);
    font-size: 16px;
    line-height: 1.75;
}

body.dark {
    --ink: #f1f0f7;
    --muted: #b5b3c5;
    --paper: #222333;
    --ground: #171824;
    --line: #3b3d50;
    --tint: #3b2536;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a:hover {
    color: var(--pink);
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid #bc3370;
    outline-offset: 5px;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

h1, h2, h3, p {
    margin: 0;
}

h2 {
    font-size: 26px;
    letter-spacing: -.6px;
    line-height: 1.4;
}

h3 {
    font-size: 18px;
    line-height: 1.5;
}

p {
    color: var(--muted);
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    background: var(--paper);
    border-top: 4px solid var(--pink);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px 16px 5px 16px;
    background: var(--pink);
    color: white;
    display: grid;
    place-items: center;
    font-size: 39px;
}

.brand-name {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-name small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 3px;
}

.header-note {
    font-size: 14px;
}

.shelf-link {
    font-size: 14px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.icon {
    display: inline-block;
    min-width: 1.2em;
    margin-right: 7px;
    color: var(--pink);
    font-size: 1.1em;
}

.nav-wrap {
    border-block: 1px solid var(--line);
}

.navigation {
    display: grid;
    grid-template-columns: repeat(9,1fr);
}

.nav-item {
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-item.active {
    border-color: var(--pink);
    color: var(--pink);
    font-weight: 700;
    background: var(--tint);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 30px;
    min-height: 480px;
    margin-top: 36px;
    background: var(--tint);
    border-radius: 22px;
    overflow: hidden;
}

.hero-copy {
    padding: 42px 0 36px 40px;
}

.eyebrow {
    color: var(--pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-lead {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -2px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-copy > p:not(.eyebrow):not(.hero-lead) {
    max-width: 430px;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button {
    border: 1px solid var(--pink);
    color: white;
    background: var(--pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.button:hover {
    color: white;
    filter: brightness(.94);
}

.button.secondary {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--line);
}

.hero-foot {
    display: block;
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

.hero-art {
    position: relative;
    min-width: 0;
}

.hero-art > img {
    height: 100%;
    aspect-ratio: 1 / 1;
    object-position: center;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, #191d37c9);
    pointer-events: none;
}

.hero-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 1;
    color: white;
}

.hero-label strong {
    display: block;
    font-size: 30px;
    margin-top: 4px;
}

.hero-label span {
    font-size: 12px;
    letter-spacing: 3px;
}

.hero-label p {
    color: #fff;
    font-size: 14px;
}

.discovery {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--paper);
    padding: 20px 24px;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.discovery > span {
    font-weight: 700;
}

.discovery form {
    display: flex;
    flex: 1;
    min-width: 200px;
}

input {
    width: 100%;
    min-width: 0;
    background: var(--ground);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 7px 0 0 7px;
    padding: 10px 14px;
    font-size: 14px;
}

.discovery button {
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 0 7px 7px 0;
    padding: 0 20px;
    white-space: nowrap;
}

.discovery > p {
    font-size: 12px;
}

.module {
    margin-top: 64px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.text-link {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.grid {
    display: grid;
    gap: 24px;
}

.four {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.three {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.two {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.comic-card {
    min-width: 0;
}

.cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--line);
}

.cover img {
    aspect-ratio: 3 / 4;
    transition: transform .25s;
}

.cover:hover img {
    transform: scale(1.035);
}

.cover-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 12px;
    color: #fff;
    background: #242638d9;
    border-radius: 5px;
    padding: 3px 9px;
}

.card-copy {
    padding: 14px 0 0;
}

.card-copy p {
    font-size: 13px;
    margin-top: 5px;
}

.update-list {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding-inline: 24px;
}

.update-row {
    display: grid;
    grid-template-columns: 42px 1fr 100px 100px;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.update-row:last-child {
    border-bottom: 0;
}

.update-number {
    font-family: Georgia,serif;
    font-size: 26px;
    color: var(--pink);
}

.update-row p, .update-row time {
    font-size: 13px;
    color: var(--muted);
}

.category-card {
    display: block;
    padding: 26px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.category-card > .icon {
    font-size: 27px;
    margin-bottom: 15px;
    background: var(--tint);
    border-radius: 12px;
    width: 48px;
    text-align: center;
}

.category-card p {
    font-size: 14px;
    margin: 8px 0 18px;
    min-height: 50px;
}

.category-card > span:last-child {
    font-size: 12px;
    color: var(--pink);
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}

.rank-feature {
    background: #292c43;
    color: white;
    border-radius: 14px;
    padding: 30px;
}

.big-number {
    font: italic 76px Georgia,serif;
    color: #f79ab9;
}

.rank-feature h3 {
    font-size: 29px;
}

.rank-feature p {
    color: #d2d3e1;
    margin: 14px 0 24px;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.rank-list li > span:first-child {
    font: italic 28px Georgia,serif;
    color: var(--pink);
}

.rank-list li > div {
    flex: 1;
}

.rank-list p {
    font-size: 14px;
    margin-top: 4px;
}

.fine {
    font-size: 12px;
    margin-top: 14px;
}

.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.spotlight img {
    height: 100%;
    aspect-ratio: 4 / 3;
}

.spotlight > div:last-child {
    padding: 36px;
}

.spotlight h3 {
    font-size: 32px;
    margin-top: 15px;
}

.spotlight p {
    margin: 16px 0;
    font-size: 15px;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    background: var(--tint);
    color: var(--pink);
    border-radius: 5px;
}

.routes article {
    background: var(--paper);
    padding: 30px;
    border-radius: 12px;
    border-top: 3px solid var(--pink);
}

.routes h3 {
    margin: 16px 0 10px;
    font-size: 23px;
}

.routes p {
    font-size: 14px;
}

.routes ol {
    margin-bottom: 0;
    padding-left: 22px;
}

.routes li {
    padding: 8px;
    border-bottom: 1px solid var(--line);
}

.complete-strip {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.complete-strip article {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--paper);
    padding: 24px;
}

.complete-strip article > div {
    flex: 1;
}

.complete-strip article > .icon {
    font-size: 30px;
}

.complete-strip p {
    font-size: 13px;
}

.comfort-panel {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    padding: 30px;
    border-block: 1px solid var(--line);
}

.comfort-panel p {
    font-size: 14px;
    margin-top: 8px;
}

.controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.controls button {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
}

.controls button[aria-pressed="true"] {
    color: var(--pink);
    border-color: var(--pink);
}

.shelf-panel {
    padding: 30px;
    background: var(--paper);
    border-radius: 14px;
}

.shelf-panel p {
    margin-bottom: 20px;
    font-size: 14px;
}

.shelf-suggestion {
    display: block;
    padding: 18px;
    background: var(--ground);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.saved-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.saved-row button {
    background: var(--paper);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
}

.faq p {
    padding: 15px 20px 0;
}

.about {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 32px;
}

.about-emblem {
    font-size: 90px;
    color: var(--pink);
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 150px;
    height: 150px;
}

.about p {
    margin-top: 14px;
}

.subscribe-box {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--tint);
    padding: 40px;
    border-radius: 16px;
}

.subscribe-brand {
    flex: 0 0 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border-radius: 18px;
    color: var(--pink);
    font-size: 66px;
}

.subscribe-brand span {
    font-size: 16px;
    font-weight: 700;
}

.subscribe-box h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    padding-block: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.footer-inner > div {
    display: flex;
    gap: 22px;
}

.footer-inner .fine {
    width: 100%;
    margin: 0;
}

.breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-block: 32px;
    color: var(--muted);
    font-size: 14px;
}

.page-intro {
    padding: 36px;
    background: var(--tint);
    border-radius: 16px;
}

.page-intro h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.page-intro p:last-child {
    max-width: 950px;
}

.editor-note {
    padding: 32px;
    background: var(--paper);
    border-left: 4px solid var(--pink);
}

.editor-note p {
    margin: 15px 0;
}

.reader {
    max-width: 820px;
    margin: auto;
}

.reader-header {
    text-align: center;
    padding: 25px 0 32px;
}

.reader-header h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.reader-header .controls {
    justify-content: center;
    margin-top: 24px;
}

.reader-header > p {
    font-size: 14px;
}

.reading-note {
    background: var(--tint);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.reading-note h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.reading-note p {
    font-size: 14px;
}

.story-scene {
    margin-bottom: 48px;
}

.story-scene h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.story-scene figure {
    margin: 0;
}

.story-scene img {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: var(--line);
    object-fit: contain;
}

figcaption {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 10px 0 22px;
}

.story-scene > p {
    font-size: var(--reading-size);
    line-height: 2;
    color: var(--ink);
    background: var(--paper);
    border-left: 3px solid var(--pink);
    padding: 22px 28px;
}

.chapter-end {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.chapter-end h2 {
    font-size: 24px;
    margin: 10px 0;
}

.chapter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.search-results {
    background: var(--paper);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.search-results a {
    display: block;
    padding: 9px;
    border-bottom: 1px solid var(--line);
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    border-radius: 9px;
    z-index: 20;
    max-width: calc(100% - 30px);
    display: none;
}

.toast.visible {
    display: block;
}

.skip {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 50;
    background: var(--paper);
    padding: 15px;
}

.skip:focus {
    top: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1000px) {
    .header-note {
        display: none;
    }
    .navigation {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }
    .hero-copy {
        padding: 30px 0 30px 28px;
    }
    .hero-lead {
        font-size: 39px;
    }
    .hero {
        min-height: 450px;
    }
    .grid {
        gap: 18px;
    }
    .four, .three {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .spotlight > div:last-child {
        padding: 25px;
    }
    .comfort-panel {
        display: block;
    }
    .comfort-panel .controls {
        margin-top: 20px;
    }
    .complete-strip article {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 32px);
    }
    .masthead {
        min-height: 85px;
        gap: 10px;
    }
    .brand {
        gap: 8px;
    }
    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 29px;
        border-radius: 12px;
    }
    .brand-name {
        font-size: 18px;
        letter-spacing: 0;
    }
    .brand-name small {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    .shelf-link {
        padding: 6px 9px;
        font-size: 12px;
    }
    .navigation {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .nav-item {
        font-size: 14px;
        padding: 10px 0;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 24px;
        border-radius: 14px;
    }
    .hero-copy {
        padding: 28px 24px;
    }
    .hero-lead {
        font-size: 39px;
    }
    .hero-art > img {
        height: 300px;
        aspect-ratio: 4 / 3;
    }
    .hero-art {
        height: 300px;
    }
    .hero-label {
        left: 24px;
        bottom: 22px;
    }
    .discovery {
        padding: 18px;
        gap: 14px;
    }
    .discovery form {
        flex-basis: 100%;
    }
    .discovery > p {
        display: none;
    }
    .module {
        margin-top: 44px;
    }
    h2 {
        font-size: 22px;
    }
    .section-heading {
        gap: 12px;
        align-items: start;
    }
    .section-heading > .text-link {
        font-size: 12px;
        margin-top: 28px;
    }
    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    .grid {
        gap: 20px 14px;
    }
    .card-copy h3 {
        font-size: 16px;
    }
    .card-copy p {
        font-size: 12px;
    }
    .cover-tag {
        bottom: 8px;
        left: 7px;
        font-size: 10px;
        padding: 3px 6px;
    }
    .category-card {
        padding: 18px 14px;
    }
    .category-card h3 {
        font-size: 17px;
    }
    .category-card p {
        min-height: 74px;
        font-size: 13px;
    }
    .update-list {
        padding-inline: 16px;
    }
    .update-row {
        grid-template-columns: 28px 1fr;
        gap: 10px;
    }
    .update-row h3 {
        font-size: 16px;
    }
    .update-row time {
        display: none;
    }
    .update-row > .text-link {
        grid-column: 2;
        font-size: 12px;
    }
    .rank-layout, .spotlight, .two, .complete-strip {
        grid-template-columns: 1fr;
    }
    .spotlight img {
        max-height: 300px;
        aspect-ratio: 4 / 3;
    }
    .rank-feature {
        padding: 25px;
    }
    .complete-strip article {
        padding: 22px 16px;
    }
    .comfort-panel {
        padding: 22px 0;
    }
    .shelf-panel {
        padding: 22px;
    }
    .about {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .about-emblem {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
    .subscribe-box {
        display: block;
        padding: 24px;
    }
    .subscribe-brand {
        width: 85px;
        height: 85px;
        font-size: 37px;
        margin-bottom: 20px;
    }
    .subscribe-brand span {
        font-size: 11px;
    }
    .subscribe-box h3 {
        font-size: 22px;
    }
    .page-intro {
        padding: 25px;
    }
    .page-intro h1, .reader-header h1 {
        font-size: 26px;
    }
    .reader-header > p {
        font-size: 12px;
    }
    .reading-note {
        padding: 20px;
    }
    .story-scene > p {
        padding: 20px;
    }
    .chapter-nav {
        gap: 8px;
    }
    .chapter-nav .button {
        padding: 10px 14px;
    }
    .footer-inner {
        display: block;
    }
    .footer-inner > div {
        margin-block: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .cover img {
        transition: none;
    }
}
