:root {
    --ink: #242033;
    --muted: #706b7d;
    --paper: #fffdf9;
    --rose: #ff5f83;
    --rose-dark: #e7416b;
    --cream: #fff3df;
    --lilac: #eee7ff;
    --line: #ece7e1;
    --shadow: 0 18px 50px rgba(76, 54, 76, 0.11);
    --radius-lg: 30px;
    --radius-md: 20px;
    --shell: min(1180px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: radial-gradient(circle at 10% 8%, rgba(255, 192, 210, 0.24), transparent 23%), radial-gradient(circle at 90% 25%, rgba(190, 175, 255, 0.18), transparent 25%);
    pointer-events: none;
}

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

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

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: var(--shell);
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(236, 231, 225, 0.8);
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 86px;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
}

.brand-petal {
    position: absolute;
    width: 29px;
    height: 39px;
    border-radius: 70% 35% 65% 35%;
    background: linear-gradient(145deg, #ff9db5, #ff5f83);
}

.brand-petal-one {
    transform: rotate(-43deg) translate(-5px, -2px);
}

.brand-petal-two {
    transform: rotate(47deg) translate(5px, -2px);
}

.brand-core {
    position: relative;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    color: #ffffff;
    border-radius: 50%;
    background: #292239;
    font-size: 15px;
    font-weight: 800;
    place-items: center;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.04em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: 3px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 9px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
    gap: 5px;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
    background: #fff0f4;
}

.nav-link.is-active::after {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    border-radius: 10px;
    background: var(--rose);
    content: "";
}

.nav-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
}

.nav-icon svg,
.text-link svg,
.card-action svg,
.button svg,
.story-tile svg,
.category-card > svg,
.ranking-list svg,
.timeline svg,
.related-row svg,
.chapter-list-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 14px;
    background: #fff0f4;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 8px;
    background: var(--ink);
}

.hero {
    display: grid;
    align-items: center;
    min-height: 610px;
    margin-top: 48px;
    padding: 72px;
    border: 1px solid #f0e9e3;
    border-radius: 38px;
    background: linear-gradient(135deg, #fff6ed 0%, #fffafa 56%, #eeeaff 100%);
    box-shadow: var(--shadow);
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
    width: 24px;
    height: 2px;
    margin-right: 9px;
    border-radius: 10px;
    background: currentColor;
    content: "";
}

.hero h1 {
    margin: 12px 0 18px;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: clamp(56px, 7vw, 92px);
    line-height: 1;
    letter-spacing: 0.08em;
}

.hero-title-link {
    display: inline-block;
}

.hero-lead {
    max-width: 600px;
    margin: 0;
    color: #5e586a;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    font-weight: 750;
    gap: 9px;
    transition: 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--ink);
    box-shadow: 0 12px 28px rgba(36, 32, 51, 0.22);
}

.button-secondary {
    border: 1px solid #ded6d1;
    background: rgba(255, 255, 255, 0.72);
}

.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 520px;
    margin-top: 24px;
}

.hero-search > svg {
    position: absolute;
    left: 18px;
    width: 20px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
}

.hero-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hero-search input {
    width: 100%;
    height: 54px;
    padding: 0 110px 0 50px;
    border: 1px solid #e5ded8;
    outline: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.hero-search input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(255, 95, 131, 0.12);
}

.search-status {
    position: absolute;
    right: 16px;
    color: var(--muted);
    font-size: 12px;
}

.hero-art {
    position: relative;
    min-width: 0;
}

.hero-image-main {
    overflow: hidden;
    border: 10px solid #ffffff;
    border-radius: 50% 50% 42% 58% / 58% 42% 58% 42%;
    transform: rotate(2deg);
    box-shadow: 0 25px 60px rgba(73, 50, 75, 0.18);
}

.hero-image-main img {
    aspect-ratio: 4 / 5;
}

.speech-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 6px 7px 0 var(--ink);
}

.speech-bubble strong {
    font-size: 14px;
}

.speech-bubble span {
    color: var(--muted);
    font-size: 12px;
}

.bubble-one {
    top: 9%;
    left: -10%;
}

.bubble-two {
    right: -6%;
    bottom: 12%;
}

.quick-strip {
    display: grid;
    margin-top: 32px;
    padding: 20px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    grid-template-columns: repeat(4, 1fr);
}

.quick-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    border-right: 1px solid var(--line);
    gap: 12px;
}

.quick-item:last-child {
    border-right: 0;
}

.quick-item > span {
    color: var(--rose);
    font-family: Georgia, serif;
    font-size: 25px;
    font-style: italic;
}

.quick-item div {
    display: flex;
    flex-direction: column;
}

.quick-item small {
    color: var(--muted);
}

.section {
    margin-top: 112px;
    margin-bottom: 112px;
}

.section-tint,
.update-section {
    padding: 98px 0;
    background: #2b2638;
}

.section-tint .section-heading h2,
.section-tint .section-heading p,
.section-tint .text-link,
.update-section .section-heading h2,
.update-section .section-heading p {
    color: #ffffff;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 30px;
}

.section-heading h2,
.reading-lab h2,
.about-section h2,
.app-subscribe h2,
.category-note h2 {
    margin: 8px 0 7px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    font-weight: 700;
    gap: 7px;
}

.comic-grid {
    display: grid;
    gap: 26px;
}

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: 220ms ease;
}

.comic-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.comic-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.comic-cover img {
    aspect-ratio: 4 / 3;
    transition: 320ms ease;
}

.comic-card:hover .comic-cover img {
    transform: scale(1.035);
}

.cover-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    color: #ffffff;
    border-radius: 30px;
    background: rgba(35, 30, 48, 0.84);
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.comic-card-body {
    padding: 22px;
}

.chapter-label {
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.comic-card h3 {
    margin: 5px 0 8px;
    font-size: 21px;
}

.comic-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-action {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 750;
    gap: 7px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.ranking-feature {
    position: relative;
    display: block;
    min-height: 530px;
    overflow: hidden;
    border-radius: 28px;
}

.ranking-feature::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(19, 16, 27, 0.96));
    content: "";
}

.ranking-feature img {
    height: 100%;
}

.rank-number {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 2;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 74px;
    font-style: italic;
    line-height: 1;
}

.ranking-feature-copy {
    position: absolute;
    right: 34px;
    bottom: 30px;
    left: 34px;
    z-index: 2;
    color: #ffffff;
}

.ranking-feature-copy span {
    color: #ffb5c7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.ranking-feature-copy h3 {
    margin: 5px 0;
    font-size: 32px;
}

.ranking-feature-copy p {
    margin: 0;
    color: #d7d2df;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-list a {
    display: grid;
    align-items: center;
    min-height: 94px;
    color: #ffffff;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
}

.ranking-index {
    color: #9d95ad;
    font-family: Georgia, serif;
    font-size: 30px;
}

.ranking-list div {
    display: flex;
    flex-direction: column;
}

.ranking-list strong {
    font-size: 18px;
}

.ranking-list small {
    color: #aaa3b7;
}

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

.story-tile {
    position: relative;
    display: flex;
    min-height: 390px;
    overflow: hidden;
    padding: 18px;
    color: #ffffff;
    border-radius: 80px 80px 20px 20px;
    flex-direction: column;
    justify-content: end;
}

.story-tile::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(18, 15, 27, 0.9));
    content: "";
}

.story-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.story-tile strong,
.story-tile small,
.story-count {
    position: relative;
    z-index: 2;
}

.story-tile strong {
    font-size: 17px;
}

.story-tile small {
    color: #ded8e5;
}

.story-count {
    position: absolute;
    top: 24px;
    left: 50%;
    font-family: Georgia, serif;
    font-size: 22px;
    transform: translateX(-50%);
}

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

.category-card {
    display: grid;
    align-items: start;
    min-height: 245px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--accent) 8%, #ffffff));
    grid-template-rows: auto 1fr auto;
    transition: 190ms ease;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.category-icon,
.category-hero-icon {
    display: grid;
    width: 50px;
    height: 50px;
    color: var(--accent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 13%, #ffffff);
    place-items: center;
}

.category-icon svg,
.category-hero-icon svg,
.notice-icon svg,
.related-row span svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card h3 {
    margin: 20px 0 7px;
    font-size: 20px;
}

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

.category-card > svg {
    margin-top: 18px;
    color: var(--accent);
}

.editorial-mosaic {
    display: grid;
    min-height: 560px;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.editorial-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.editorial-item-1 {
    grid-row: 1 / 3;
}

.editorial-item a,
.editorial-item img {
    height: 100%;
}

.editorial-item::after {
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(transparent, rgba(21, 18, 30, 0.94));
    content: "";
    pointer-events: none;
}

.editorial-overlay {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    z-index: 2;
    color: #ffffff;
}

.editorial-overlay span {
    color: #ffb3c5;
    font-size: 12px;
    font-weight: 800;
}

.editorial-overlay h3 {
    margin: 4px 0;
    font-size: 26px;
}

.editorial-overlay p {
    margin: 0;
    color: #ddd8e3;
    font-size: 13px;
}

.update-section {
    background: linear-gradient(135deg, #eee9ff, #fff0f4);
}

.update-section .section-heading h2,
.update-section .section-heading p {
    color: var(--ink);
}

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

.timeline-item {
    display: flex;
    min-height: 250px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.65);
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.timeline-item time {
    align-self: start;
    padding: 5px 10px;
    color: #655e72;
    border-radius: 20px;
    background: #ffffff;
    font-family: Georgia, serif;
    font-size: 18px;
}

.timeline-item time.is-live {
    color: #ffffff;
    background: var(--rose);
}

.timeline-item div {
    margin: auto 0;
}

.timeline-item div span {
    color: var(--muted);
    font-size: 12px;
}

.timeline-item h3 {
    margin: 4px 0;
    font-size: 20px;
}

.timeline-item a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 750;
}

.completed-shelf {
    display: grid;
    align-items: end;
    padding: 56px 44px 28px;
    border-radius: 26px;
    background: #f4eadf;
    box-shadow: inset 0 -18px 0 #d5b695;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.book-spine {
    display: flex;
    min-height: 300px;
    padding: 20px 13px;
    color: #ffffff;
    border-radius: 8px 18px 8px 8px;
    background: hsl(var(--book-hue) 48% 43%);
    box-shadow: inset -8px 0 rgba(0, 0, 0, 0.1), 5px 6px 8px rgba(77, 53, 40, 0.16);
    flex-direction: column;
    justify-content: space-between;
    writing-mode: vertical-rl;
}

.book-spine:nth-child(2n) {
    min-height: 270px;
}

.book-spine strong {
    font-size: 19px;
    letter-spacing: 0.1em;
}

.book-spine small,
.book-status {
    font-size: 11px;
}

.book-status {
    padding: 6px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
}

.reading-lab {
    display: grid;
    align-items: center;
    overflow: hidden;
    border-radius: 30px;
    background: #202f3d;
    grid-template-columns: 1fr 1fr;
}

.reading-lab-art {
    position: relative;
    height: 100%;
    min-height: 520px;
}

.reading-lab-art img {
    height: 100%;
}

.lab-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 8px 14px;
    color: #ffffff;
    border-radius: 30px;
    background: rgba(23, 29, 37, 0.72);
    font-size: 12px;
}

.reading-lab-copy {
    padding: 58px;
    color: #ffffff;
}

.reading-lab-copy p {
    color: #c8d3dc;
}

.check-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    margin: 14px 0;
    gap: 12px;
}

.check-list span {
    display: grid;
    width: 26px;
    height: 26px;
    color: #20303d;
    border-radius: 50%;
    background: #8fe3c9;
    place-items: center;
}

.about-section {
    display: grid;
    align-items: start;
    padding: 70px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #ffffff;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.about-heading p,
.about-content > p {
    color: var(--muted);
}

.about-content > p:first-child {
    margin-top: 0;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 28px;
    gap: 9px;
}

.about-tags span {
    padding: 7px 13px;
    border: 1px solid #f2ced7;
    border-radius: 30px;
    background: #fff8fa;
    font-size: 13px;
}

.app-subscribe {
    display: grid;
    align-items: center;
    margin-bottom: 0;
    padding: 72px;
    color: #ffffff;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(135deg, #ff5f83, #985ae8);
    grid-template-columns: 1fr auto;
    gap: 60px;
}

.eyebrow-light {
    color: #ffe2ea;
}

.app-copy {
    max-width: 730px;
}

.app-copy p {
    color: #fff1f5;
}

.subscribe-form {
    margin-top: 25px;
}

.subscribe-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 750;
}

.subscribe-control {
    display: flex;
    max-width: 560px;
    padding: 6px;
    border-radius: 16px;
    background: #ffffff;
}

.subscribe-control input {
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    flex: 1 1 auto;
}

.subscribe-control button {
    min-height: 45px;
    padding: 0 20px;
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    cursor: pointer;
}

.subscribe-message {
    display: block;
    min-height: 24px;
    margin-top: 8px;
    font-size: 13px;
}

.qr-brand {
    display: flex;
    width: 190px;
    padding: 22px;
    color: var(--ink);
    border-radius: 24px;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 22px 50px rgba(69, 28, 70, 0.25);
}

.qr-pattern {
    display: grid;
    width: 110px;
    height: 110px;
    padding: 8px;
    border: 2px solid var(--ink);
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.qr-pattern span {
    border-radius: 2px;
    background: #f1eaf4;
}

.qr-pattern span.is-dark {
    background: var(--ink);
}

.qr-brand strong {
    margin-top: 12px;
}

.qr-brand small {
    color: var(--muted);
}

.site-footer {
    padding: 68px 0 30px;
    color: #e7e2ed;
    background: #211d2b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 0.7fr 1fr;
    gap: 52px;
}

.site-footer .brand-copy strong,
.site-footer .footer-links strong,
.site-footer .footer-note strong {
    color: #ffffff;
}

.site-footer .brand-copy small,
.footer-brand p,
.footer-note p {
    color: #aaa3b4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #aaa3b4;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 22px;
    color: #81798b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    margin-top: 32px;
    color: var(--muted);
    font-size: 13px;
    gap: 10px;
}

.breadcrumbs a:hover {
    color: var(--rose-dark);
}

.category-hero {
    display: grid;
    align-items: center;
    min-height: 420px;
    margin-top: 26px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--category-accent) 12%, #ffffff), #fffaf4);
    grid-template-columns: 1.1fr 0.9fr;
}

.category-hero-copy {
    padding: 60px;
}

.category-hero-icon {
    --accent: var(--category-accent);
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
}

.category-hero h1 {
    margin: 7px 0 14px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
}

.category-hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 26px;
    gap: 8px;
}

.category-stats span {
    padding: 6px 11px;
    border: 1px solid color-mix(in srgb, var(--category-accent) 26%, #ffffff);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.category-hero-image {
    height: 100%;
    min-height: 420px;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.category-hero-image img {
    height: 100%;
}

.category-note {
    display: grid;
    align-items: center;
    padding: 62px;
    border-radius: 28px;
    background: #292438;
    grid-template-columns: 180px 1fr;
    gap: 50px;
}

.category-note-number {
    color: var(--category-accent);
    font-family: Georgia, serif;
    font-size: 110px;
    font-style: italic;
    line-height: 1;
}

.category-note h2,
.category-note p {
    color: #ffffff;
}

.category-note p {
    margin: 8px 0;
    color: #c5bfce;
}

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

.related-row > a {
    display: grid;
    align-items: center;
    min-height: 84px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
}

.related-row > a > span {
    display: grid;
    width: 40px;
    height: 40px;
    color: var(--accent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, #ffffff);
    place-items: center;
}

.reader {
    max-width: 940px;
    margin-top: 30px;
    margin-bottom: 110px;
}

.reader-header {
    padding: 60px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--category-accent) 9%, #ffffff));
}

.reader-meta-top {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.reader-meta-top a,
.reader-meta-top span {
    padding: 5px 11px;
    border-radius: 20px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

.reader-meta-top a {
    color: var(--category-accent);
}

.reader-header h1 {
    margin: 18px 0 10px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.2;
}

.reader-subtitle {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
}

.reader-meta {
    display: flex;
    justify-content: center;
    margin: 34px 0 0;
    gap: 48px;
}

.reader-meta div {
    display: flex;
    flex-direction: column;
}

.reader-meta dt {
    color: var(--muted);
    font-size: 12px;
}

.reader-meta dd {
    margin: 3px 0 0;
    font-weight: 750;
}

.reading-notice {
    display: flex;
    margin: 32px 0 50px;
    padding: 24px 28px;
    border-left: 4px solid var(--category-accent);
    border-radius: 0 18px 18px 0;
    background: #f7f4f0;
    gap: 16px;
}

.notice-icon {
    display: grid;
    width: 42px;
    height: 42px;
    color: var(--category-accent);
    border-radius: 13px;
    background: #ffffff;
    flex: 0 0 auto;
    place-items: center;
}

.reading-notice h2 {
    margin: 0;
    font-size: 17px;
}

.reading-notice p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.chapter-content > h2 {
    margin: 0;
    text-align: center;
    font-size: 26px;
}

.chapter-intro {
    max-width: 720px;
    margin: 12px auto 38px;
    color: var(--muted);
    text-align: center;
}

.comic-panel {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 20px;
    background: #ece8e4;
    box-shadow: 0 12px 35px rgba(54, 42, 51, 0.09);
}

.comic-panel img {
    aspect-ratio: 4 / 5;
}

.comic-panel figcaption {
    padding: 10px 16px;
    color: var(--muted);
    background: #ffffff;
    font-size: 12px;
    text-align: center;
}

.chapter-quote {
    margin: 42px 40px;
    padding: 32px;
    border: 0;
    border-radius: 20px;
    background: #2b2638;
}

.chapter-quote p {
    margin: 0;
    color: #ffffff;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 23px;
    text-align: center;
}

.chapter-end {
    margin: 62px 0 32px;
    padding: 45px;
    text-align: center;
    border: 1px dashed #d8cfd0;
    border-radius: 22px;
}

.chapter-end > span {
    color: var(--category-accent);
    font-size: 26px;
}

.chapter-end h2 {
    margin: 7px 0 3px;
}

.chapter-end p {
    margin: 0;
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
}

.chapter-nav-link,
.chapter-list-button {
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #ffffff;
    gap: 12px;
}

.chapter-nav-link div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.chapter-nav-link small {
    color: var(--muted);
}

.chapter-nav-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.chapter-list-button {
    color: #ffffff;
    border-color: var(--ink);
    background: var(--ink);
    font-weight: 750;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .header-inner {
        gap: 12px;
    }

    .brand-copy {
        display: none;
    }

    .nav-link {
        padding: 9px 7px;
        font-size: 12px;
    }

    .hero {
        padding: 54px;
    }

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

    .story-tile {
        min-height: 360px;
    }

    .category-grid,
    .timeline,
    .related-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    :root {
        --shell: min(100% - 28px, 680px);
    }

    .header-inner {
        min-height: 72px;
        justify-content: space-between;
    }

    .brand-copy {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: none;
        max-height: calc(100vh - 100px);
        padding: 14px;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 0 0 20px 20px;
        background: #fffdf9;
        box-shadow: var(--shadow);
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav.is-open {
        display: grid;
    }

    .nav-link {
        padding: 12px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        margin-top: 28px;
        padding: 40px;
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 480px;
        margin: 0 auto;
    }

    .quick-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-item:nth-child(2) {
        border-right: 0;
    }

    .quick-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .section {
        margin-top: 82px;
        margin-bottom: 82px;
    }

    .section-tint,
    .update-section {
        padding: 78px 0;
    }

    .comic-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-layout,
    .reading-lab,
    .about-section,
    .category-hero {
        grid-template-columns: 1fr;
    }

    .category-hero-image {
        min-height: 320px;
        clip-path: none;
    }

    .ranking-feature {
        min-height: 460px;
    }

    .ranking-list a {
        min-height: 82px;
    }

    .editorial-mosaic {
        min-height: 700px;
    }

    .completed-shelf {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }

    .reading-lab-art {
        min-height: 420px;
    }

    .about-section {
        padding: 48px;
        gap: 26px;
    }

    .app-subscribe {
        padding: 50px;
        grid-template-columns: 1fr;
    }

    .qr-brand {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-note {
        grid-template-columns: 100px 1fr;
    }

    .category-note-number {
        font-size: 76px;
    }

    .reader-header {
        padding: 44px 26px;
    }
}

@media (max-width: 560px) {
    :root {
        --shell: calc(100% - 22px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .hero {
        padding: 30px 22px;
        border-radius: 25px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .speech-bubble {
        padding: 10px 12px;
    }

    .bubble-one {
        left: 1%;
    }

    .bubble-two {
        right: 1%;
    }

    .quick-strip {
        grid-template-columns: 1fr;
    }

    .quick-item,
    .quick-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quick-item:last-child {
        border-bottom: 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .comic-grid-three,
    .story-rail,
    .category-grid,
    .timeline,
    .related-row {
        grid-template-columns: 1fr;
    }

    .story-tile {
        min-height: 430px;
        border-radius: 130px 130px 24px 24px;
    }

    .editorial-mosaic {
        display: block;
        min-height: 0;
    }

    .editorial-item {
        height: 390px;
        margin-bottom: 16px;
    }

    .completed-shelf {
        padding: 38px 22px 25px;
        grid-template-columns: repeat(2, 1fr);
    }

    .reading-lab-copy,
    .about-section,
    .app-subscribe,
    .category-hero-copy,
    .category-note {
        padding: 34px 24px;
    }

    .about-section {
        gap: 18px;
    }

    .subscribe-control {
        flex-direction: column;
    }

    .subscribe-control input {
        min-height: 46px;
    }

    .qr-brand {
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .category-hero-image {
        min-height: 260px;
    }

    .category-note {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-note-number {
        font-size: 60px;
    }

    .reader-meta {
        flex-direction: column;
        gap: 14px;
    }

    .reading-notice {
        padding: 20px;
    }

    .chapter-quote {
        margin: 34px 0;
        padding: 25px 18px;
    }

    .chapter-nav {
        grid-template-columns: 1fr 1fr;
    }

    .chapter-list-button {
        grid-column: 1 / 3;
        grid-row: 1;
        justify-content: center;
    }
}
