:root {
    --ink: #24213d;
    --muted: #79758d;
    --brand: #5b4cf0;
    --pink: #f363a3;
    --lavender: #f0efff;
    --line: #e9e7f2;
    --paper: #ffffff;
    --night: #272448;
    --shadow: 0 14px 38px rgba(53, 43, 119, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fcfcff;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    font-weight: 900;
    font-size: 20px;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 18px;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--brand);
    font-size: 9px;
    letter-spacing: 1.6px;
}

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 3px;
    list-style: none;
}

.main-nav a {
    display: inline-flex;
    padding: 10px 9px;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    color: #5c5870;
    font-size: 13px;
    font-weight: 700;
}

.main-nav li.is-active a,
.main-nav a:hover {
    color: var(--brand);
    background: var(--lavender);
}

.nav-icon {
    font-size: 15px;
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--brand);
    background: none;
    font-size: 25px;
}

.hero {
    display: grid;
    margin-top: 44px;
    padding: 52px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #eeebff, #fff0f6);
}

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -2px;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.25;
}

h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.hero-copy > p {
    max-width: 510px;
    margin-bottom: 25px;
    color: #59536c;
    font-size: 17px;
}

.search-box {
    display: flex;
    max-width: 510px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid #dfdaf8;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}

.search-box button,
.button {
    display: inline-flex;
    border: 0;
    padding: 11px 18px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: var(--brand);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.text-link,
.card-link {
    color: var(--brand);
    font-weight: 800;
}

.hero-art {
    position: relative;
}

.hero-art img {
    width: 100%;
    aspect-ratio: 1.32;
    border: 7px solid #fff;
    border-radius: 22px;
    box-shadow: 15px 17px 0 rgba(91, 76, 240, 0.15);
}

.floating-note {
    position: absolute;
    right: -10px;
    bottom: -18px;
    padding: 14px 19px;
    border-radius: 16px;
    color: #fff;
    background: var(--night);
    font-size: 12px;
    text-align: center;
}

.floating-note strong {
    font-size: 24px;
}

.stats {
    display: grid;
    margin-top: 28px;
    padding: 22px 12px;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.stats div {
    display: grid;
    justify-items: center;
    border-right: 1px solid var(--line);
}

.stats div:last-child {
    border-right: 0;
}

.stats strong {
    color: var(--brand);
    font-size: 23px;
}

.stats span,
.meta,
.comic-card p,
.reader-header p,
.reader-header a {
    color: var(--muted);
    font-size: 13px;
}

.section {
    margin-top: 86px;
}

.section-heading {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > a {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    min-height: 218px;
    padding: 24px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover,
.comic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 13px;
    background: var(--lavender);
    font-size: 22px;
}

.category-card p {
    flex: 1;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.category-card > span:last-child {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.featured-layout {
    padding: 35px;
    border-radius: 26px;
    background: var(--night);
}

.featured-layout .section-heading h2,
.featured-layout .section-heading .eyebrow {
    color: #fff;
}

.featured-layout .section-heading > a {
    color: #dcd7ff;
}

.feature-story {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: center;
}

.feature-story img {
    width: 100%;
    aspect-ratio: 0.78;
    border-radius: 18px;
}

.feature-story h2,
.feature-story p {
    color: #fff;
}

.feature-story p {
    max-width: 610px;
    color: #dedbf0;
}

.feature-story .meta {
    margin-bottom: 20px;
    color: #c1bde3;
}

.tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    border-radius: 99px;
    color: var(--brand);
    background: var(--lavender);
    font-size: 12px;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.update-row {
    display: flex;
    min-height: 90px;
    padding: 11px 0;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--line);
}

.update-number {
    color: #bbb6cb;
    font-weight: 900;
    font-style: italic;
}

.update-row img {
    width: 47px;
    height: 62px;
    border-radius: 8px;
}

.update-row > span:nth-child(3) {
    display: grid;
    flex: 1;
}

.update-row small {
    color: var(--muted);
    font-size: 12px;
}

.update-row em {
    color: var(--pink);
    font-size: 12px;
    font-style: normal;
}

.ranking-card {
    padding: 28px;
    border-radius: 20px;
    background: #fff3f8;
}

.ranking-card ol {
    margin: 20px 0;
    padding-left: 24px;
}

.ranking-card li {
    padding: 10px 0;
    padding-left: 6px;
    border-bottom: 1px solid #f0dce6;
    font-weight: 800;
}

.ranking-card li::marker {
    color: var(--pink);
}

.ranking-card li a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ranking-card li span {
    color: var(--muted);
    font-size: 11px;
    font-weight: normal;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mood-grid a {
    display: grid;
    min-height: 160px;
    padding: 24px;
    align-content: center;
    border-radius: 18px;
    background: #eef8ff;
}

.mood-grid a:nth-child(2) {
    background: #f6efff;
}

.mood-grid a:nth-child(3) {
    background: #fff4e9;
}

.mood-grid a:nth-child(4) {
    background: #ecfaf3;
}

.mood-grid span {
    margin-bottom: 8px;
    font-size: 29px;
}

.mood-grid small {
    color: var(--muted);
}

.shelf-section {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.shelf-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shelf-track article {
    display: flex;
    padding: 13px;
    align-items: center;
    gap: 15px;
    border-radius: 15px;
    background: #fafaff;
}

.shelf-track img {
    width: 64px;
    height: 82px;
    border-radius: 9px;
}

.shelf-track h3 {
    font-size: 15px;
}

.shelf-track p {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
}

.progress {
    width: 120px;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #e2e0eb;
}

.progress span {
    display: block;
    width: 67%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}

.progress-2 span {
    width: 35%;
}

.progress-3 span {
    width: 82%;
}

.quote-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border-radius: 24px;
    background: #fceff5;
}

.quote-section > div {
    padding: 43px 50px;
}

.quote-section p {
    margin-bottom: 15px;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: 24px;
    line-height: 1.55;
}

.quote-section > div > span:last-child {
    color: var(--muted);
    font-size: 12px;
}

.quote-mark {
    color: var(--pink);
    font-family: Georgia, serif;
    font-size: 63px;
    line-height: 0.7;
}

.quote-section img {
    width: 100%;
    height: 100%;
    min-height: 245px;
}

.about-section {
    display: grid;
    margin-bottom: 86px;
    padding: 0 8%;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
}

.about-section p {
    color: #5e5a6f;
}

.download-panel {
    display: flex;
    margin-bottom: 0;
    padding: 38px 8%;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 26px 26px 0 0;
    color: #fff;
    background: linear-gradient(110deg, #5a4bee, #9a56db);
}

.download-panel .eyebrow,
.download-panel p {
    color: #dfdcff;
}

.download-panel h2 {
    margin-bottom: 8px;
}

.download-panel p {
    max-width: 570px;
    margin-bottom: 18px;
}

.button-light {
    color: var(--brand);
    background: #fff;
}

.qr-card {
    display: grid;
    min-width: 132px;
    justify-items: center;
    gap: 8px;
    font-size: 11px;
}

.qr-grid {
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border: 7px solid #fff;
    color: var(--night);
    background: repeating-conic-gradient(#fff 0 25%, #dad5ff 0 50%) 50% / 15px 15px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.site-footer {
    padding: 33px 0 20px;
    color: #d6d2eb;
    background: #24213d;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p,
.copyright {
    margin: 4px 0 0;
    color: #aaa5c5;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 18px;
    color: #fff;
    font-size: 13px;
}

.copyright {
    width: min(1200px, calc(100% - 40px));
    margin: 22px auto 0;
    padding-top: 16px;
    border-top: 1px solid #3b3759;
    text-align: center;
}

.inner-page,
.reader-page {
    min-height: 700px;
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    margin: 0 0 25px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.listing-hero {
    display: flex;
    min-height: 225px;
    padding: 36px 45px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 23px;
    background: linear-gradient(120deg, #f0efff, #fff5f8);
}

.listing-hero p {
    max-width: 680px;
    margin-bottom: 0;
    color: #5f5977;
}

.listing-icon {
    display: grid;
    width: 98px;
    height: 98px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 30px;
    background: #fff;
    font-size: 45px;
}

.result-count {
    color: var(--muted);
    font-size: 13px;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comic-card img {
    width: 100%;
    aspect-ratio: 0.74;
}

.comic-card > div {
    padding: 14px;
}

.comic-card .tag {
    margin-bottom: 7px;
}

.comic-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-card p {
    margin-bottom: 9px;
}

.card-link {
    font-size: 13px;
}

.seo-copy {
    margin: 65px 0 86px;
    padding: 28px 34px;
    border-left: 4px solid var(--brand);
    border-radius: 0 14px 14px 0;
    background: #f7f6ff;
}

.seo-copy p {
    margin-bottom: 0;
    color: #5f5a72;
}

.reader-article {
    max-width: 840px;
    margin: 0 auto;
}

.reader-header {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.reader-header h1 {
    font-size: clamp(29px, 4vw, 42px);
}

.reading-note {
    margin: 34px 0;
    padding: 19px 22px;
    border-radius: 13px;
    background: #f3f2ff;
}

.reading-note h2 {
    margin-bottom: 4px;
    font-size: 17px;
}

.reading-note p {
    margin-bottom: 0;
    color: #5c5772;
    font-size: 14px;
}

.comic-pages {
    display: grid;
    gap: 30px;
}

.comic-pages figure {
    margin: 0;
}

.comic-pages img {
    width: 100%;
    aspect-ratio: 0.745;
    border-radius: 8px;
    background: #eee;
}

.comic-pages figcaption {
    padding: 9px 0;
    color: var(--muted);
    font-size: 13px;
}

.chapter-end {
    margin: 38px 0 26px;
    padding: 34px;
    border-radius: 18px;
    background: #fff1f7;
    text-align: center;
}

.chapter-end span {
    color: var(--pink);
    font-size: 30px;
}

.chapter-end h2 {
    margin: 5px 0;
    font-size: 23px;
}

.chapter-end p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.chapter-nav {
    display: flex;
    padding-bottom: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
}

.chapter-nav > a:not(.button) {
    color: var(--brand);
}

.related-reading {
    max-width: 840px;
    margin: 0 auto 80px;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.related-links a {
    display: grid;
    padding: 17px;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.related-links span,
.related-links small {
    color: var(--muted);
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1020px) {
    .header-inner {
        min-height: 65px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 65px;
        right: 0;
        left: 0;
        display: none;
        padding: 12px 20px 18px;
        border-bottom: 1px solid var(--line);
        background: #fff;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .main-nav a {
        justify-content: center;
    }

    .hero {
        padding: 38px;
        gap: 26px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(100% - 28px, 1200px);
    }

    .brand-copy small {
        display: none;
    }

    .main-nav ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        display: flex;
        margin-top: 25px;
        padding: 30px 23px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-art {
        margin: 0 8px 10px;
    }

    .search-box {
        display: grid;
        gap: 5px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 0;
    }

    .stats div:nth-child(2) {
        border-right: 0;
    }

    .category-grid,
    .mood-grid,
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        min-height: 190px;
        padding: 17px;
    }

    .section {
        margin-top: 58px;
    }

    .featured-layout,
    .shelf-section {
        padding: 22px;
    }

    .feature-story,
    .split-section,
    .quote-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .feature-story img {
        max-height: 380px;
    }

    .shelf-track {
        grid-template-columns: 1fr;
    }

    .quote-section > div {
        padding: 30px 25px;
    }

    .quote-section img {
        min-height: 190px;
    }

    .about-section {
        margin-bottom: 58px;
        padding: 0;
        gap: 14px;
    }

    .download-panel,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-panel {
        padding: 30px;
    }

    .qr-card {
        align-self: center;
    }

    .listing-hero {
        padding: 28px;
    }

    .listing-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 30px;
    }

    .related-links {
        grid-template-columns: 1fr;
    }

    .chapter-nav {
        font-size: 13px;
    }
}
