:root {
    --ink: #201d36;
    --muted: #756f8e;
    --paper: #fcfbff;
    --lilac: #f0edff;
    --purple: #6f51d9;
    --dark: #19162d;
    --line: #e8e4f2;
    --shadow: 0 16px 42px rgba(42, 28, 89, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(252, 251, 255, .94);
    border-bottom: 1px solid rgba(232, 228, 242, .8);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #8868ee, #4d35ae);
    border-radius: 10px 10px 10px 2px;
    font-size: 18px;
}

.brand-text {
    font-size: 17px;
    letter-spacing: -.5px;
}

.brand-text span {
    color: var(--purple);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 4px;
}

.main-nav a {
    padding: 8px 7px;
    border-radius: 8px;
    color: #5b5570;
    font-size: 13px;
    white-space: nowrap;
}

.main-nav a span {
    margin-right: 4px;
    color: #8a80aa;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--purple);
    background: var(--lilac);
    font-weight: 700;
}

.header-search {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 24px;
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 62px;
    margin-top: 62px;
    min-height: 480px;
}

.eyebrow,
.section-heading p,
.rank-copy p,
.reading-steps > div > p,
.app-copy > p,
.listing-hero p,
.reader-head > p {
    margin: 0 0 8px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1,
.listing-hero h1,
.reader-head h1 {
    margin: 0;
    font-size: clamp(38px, 5.5vw, 68px);
    letter-spacing: -3px;
    line-height: 1.12;
}

.hero h1 a {
    border-bottom: 6px solid #d8cffc;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 510px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions,
.chapter-end > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

.primary {
    color: #fff;
    background: var(--purple);
    box-shadow: 0 10px 18px rgba(111, 81, 217, .24);
}

.primary span {
    margin-left: 9px;
    font-size: 18px;
}

.ghost {
    color: var(--purple);
    border-color: #d8d0f3;
    background: #fff;
}

.dark {
    margin-top: 24px;
    color: #fff;
    background: var(--dark);
}

.hero-facts {
    display: flex;
    gap: 23px;
    margin-top: 33px;
    color: var(--muted);
    font-size: 12px;
}

.hero-facts b {
    display: block;
    color: var(--ink);
    font-size: 17px;
}

.hero-art {
    position: relative;
}

.hero-art img {
    width: 100%;
    height: 430px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.floating-note {
    position: absolute;
    right: -22px;
    bottom: 31px;
    display: grid;
    grid-template-columns: 26px 1fr;
    width: 195px;
    padding: 13px;
    background: #fff;
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.floating-note span {
    grid-row: span 2;
    color: #f0a43b;
}

.floating-note strong,
.floating-note small {
    font-size: 12px;
}

.floating-note small {
    color: var(--muted);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 74px;
}

.quick-links a {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.quick-links a > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--purple);
    background: var(--lilac);
    border-radius: 8px;
}

.quick-links b,
.quick-links small {
    font-size: 13px;
}

.quick-links small {
    color: var(--muted);
    font-size: 11px;
}

.section-block {
    margin-top: 102px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.split-feature h2,
.rank-copy h2,
.reading-steps h2,
.about-section h2,
.app-copy h2,
.seo-copy h2,
.reader-more h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -1.3px;
    line-height: 1.25;
}

.section-heading > a,
.text-link {
    color: var(--purple);
    font-size: 14px;
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    min-height: 160px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease;
}

.category-card:hover,
.comic-card:hover {
    transform: translateY(-4px);
}

.category-card > span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--purple);
    background: var(--lilac);
    border-radius: 10px;
}

.category-card h3 {
    margin: 13px 0 3px;
    font-size: 16px;
}

.category-card p {
    max-width: 270px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.category-card i {
    position: absolute;
    right: 21px;
    bottom: 18px;
    color: #aa9fcb;
    font-style: normal;
}

.comic-grid {
    display: grid;
    gap: 18px;
}

.five-grid {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 20, 74, .04);
    transition: transform .2s ease;
}

.cover-link {
    position: relative;
    display: block;
}

.cover-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 7px;
    color: #fff;
    background: rgba(25, 22, 45, .7);
    border-radius: 5px;
    font-size: 10px;
}

.comic-meta {
    padding: 12px;
}

.comic-meta h3 {
    margin: 0;
    font-size: 15px;
}

.comic-meta p {
    display: -webkit-box;
    min-height: 38px;
    margin: 5px 0 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.comic-meta div {
    display: flex;
    justify-content: space-between;
    color: #948ba9;
    font-size: 10px;
}

.split-feature {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    overflow: hidden;
    border-radius: 22px;
    background: #eee8ff;
}

.feature-visual img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.feature-copy {
    align-self: center;
    padding: 50px 62px;
}

.feature-copy > p:not(.eyebrow),
.about-section p,
.app-copy > p:not(:first-child) {
    color: #665f7b;
}

.feature-stats {
    display: flex;
    gap: 35px;
    margin: 22px 0;
}

.feature-stats span {
    color: var(--muted);
    font-size: 12px;
}

.feature-stats b {
    display: block;
    color: var(--ink);
    font-size: 20px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 62px;
    padding: 48px;
    border-radius: 20px;
    color: #fff;
    background: var(--dark);
}

.rank-copy > span {
    display: block;
    margin-top: 18px;
    color: #bdb7d2;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 45px 45px 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-list b {
    color: #a795fc;
    font-size: 17px;
}

.rank-list img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-list h3,
.rank-list p {
    margin: 0;
}

.rank-list h3 {
    font-size: 14px;
}

.rank-list p,
.rank-list > li > span {
    color: #bdb7d2;
    font-size: 11px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.mood-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
}

.mood-grid img {
    width: 100%;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
    filter: brightness(.75);
}

.mood-grid span {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
}

.mood-grid b {
    float: right;
}

.reading-steps {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 42px;
    padding: 43px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.steps article span {
    color: #a696da;
    font-size: 24px;
    font-weight: 800;
}

.steps h3 {
    margin: 4px 0;
    font-size: 15px;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.quote-banner {
    padding: 45px 18%;
    border-radius: 18px;
    background: linear-gradient(120deg, #f9f5ff, #e9f5ff);
    text-align: center;
}

.quote-banner > span {
    color: #a28ae9;
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: .5;
}

.quote-banner p {
    margin: 18px 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.quote-banner small {
    color: var(--muted);
}

.about-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    padding: 53px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
}

.about-section p {
    margin: 0 0 15px;
    font-size: 14px;
}

.app-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    margin-top: 102px;
    margin-bottom: 84px;
    padding: 50px 16%;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(125deg, #38276c, #6c52d4);
}

.app-copy {
    max-width: 480px;
}

.app-copy > p:not(:first-child) {
    color: #d9d3ee;
}

.app-copy > p:first-child {
    color: #d6c8ff;
}

.qr-card {
    display: grid;
    min-width: 150px;
    place-items: center;
    padding: 18px;
    color: var(--ink);
    background: #fff;
    border-radius: 15px;
    text-align: center;
}

.qr-pattern {
    display: grid;
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
    place-items: center;
    background: repeating-conic-gradient(#211b38 0 25%, #fff 0 50%) 50% / 15px 15px;
}

.qr-pattern span {
    padding: 5px 9px;
    color: #fff;
    background: var(--purple);
    font-weight: 800;
}

.qr-card b,
.qr-card small {
    font-size: 11px;
}

.qr-card small {
    color: var(--muted);
}

.site-footer {
    padding: 53px 0 0;
    color: #cac4da;
    background: #161326;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    color: #fff;
}

.footer-grid p {
    max-width: 240px;
    color: #9b94af;
    font-size: 12px;
}

.footer-grid h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 14px;
}

.footer-grid a:not(.brand) {
    display: block;
    margin: 5px 0;
    color: #aaa3bd;
    font-size: 12px;
}

.copyright {
    margin-top: 35px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #7f7891;
    font-size: 11px;
}

.inner-page {
    min-height: 65vh;
    padding-bottom: 85px;
}

.breadcrumbs {
    display: flex;
    gap: 9px;
    padding-top: 26px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs a:hover {
    color: var(--purple);
}

.listing-hero {
    margin-top: 27px;
    padding: 45px 56px;
    border-radius: 20px;
    background: linear-gradient(110deg, #eee9ff, #f7f1ff 56%, #dfeefe);
}

.listing-hero h1 {
    font-size: 40px;
}

.listing-hero > span {
    display: block;
    max-width: 620px;
    margin-top: 13px;
    color: var(--muted);
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 48px;
}

.filter {
    margin-left: 6px;
    padding: 7px 11px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-family: inherit;
    font-size: 12px;
}

.filter.active {
    color: var(--purple);
    background: var(--lilac);
    font-weight: 800;
}

.listing-grid {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 20px;
}

.seo-copy {
    margin-top: 75px;
    padding: 35px 45px;
    border-left: 4px solid #a48def;
    background: #f7f5fc;
}

.seo-copy h2 {
    font-size: 21px;
}

.seo-copy p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.reader-page {
    padding-bottom: 80px;
}

.reader-head {
    max-width: 880px;
    margin-top: 27px;
    text-align: center;
}

.reader-head h1 {
    font-size: clamp(29px, 4vw, 45px);
    letter-spacing: -1.5px;
}

.reader-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px;
}

.reading-note {
    margin-top: 25px;
    padding: 14px 19px;
    border-radius: 10px;
    color: #5f5874;
    background: #f3f0fc;
    text-align: left;
    font-size: 13px;
}

.reading-note b {
    color: var(--purple);
}

.reading-note p {
    display: inline;
    margin-left: 7px;
}

.reader-content {
    width: min(760px, calc(100% - 32px));
    margin: 35px auto 0;
}

.reading-image {
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 9px;
    background: var(--lilac);
}

.reading-image img {
    width: 100%;
    aspect-ratio: 9 / 12.5;
    object-fit: cover;
}

.reading-image figcaption {
    padding: 7px 12px;
    color: var(--muted);
    font-size: 11px;
}

.chapter-end {
    display: grid;
    justify-items: center;
    padding: 44px 20px;
    border-radius: 16px;
    background: #f5f2ff;
    text-align: center;
}

.chapter-end > span {
    color: #947ae5;
    font-size: 26px;
}

.chapter-end h2 {
    margin: 7px 0 0;
    font-size: 23px;
}

.chapter-end p {
    margin: 3px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.chapter-end > div a {
    padding: 8px 12px;
    color: var(--purple);
    background: #fff;
    border-radius: 7px;
    font-size: 13px;
}

.chapter-end > .button {
    margin-top: 15px;
}

.reader-more {
    max-width: 760px;
    margin-top: 65px;
}

.reader-more h2 {
    font-size: 21px;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.mini-cards a {
    padding: 17px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 66px;
    }

    .menu-toggle {
        display: grid;
        gap: 4px;
        width: 34px;
        margin-left: auto;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        background: var(--ink);
    }

    .header-search {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 66px;
        right: 24px;
        left: 24px;
        display: none;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 40px;
    }

    .hero-art {
        max-width: 600px;
        margin: 0 auto;
    }

    .quick-links,
    .five-grid,
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-feature,
    .ranking-layout,
    .reading-steps,
    .about-section {
        grid-template-columns: 1fr;
    }

    .feature-copy,
    .about-section {
        padding: 35px;
    }

    .ranking-layout {
        gap: 32px;
    }

    .app-section {
        padding: 40px 10%;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 30px, 1200px);
    }

    .brand-text {
        font-size: 15px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-art img {
        height: 310px;
    }

    .floating-note {
        right: 10px;
        bottom: 13px;
    }

    .hero-facts {
        justify-content: space-between;
        gap: 8px;
    }

    .quick-links,
    .category-grid,
    .mood-grid,
    .steps,
    .mini-cards {
        grid-template-columns: 1fr 1fr;
    }

    .section-block {
        margin-top: 70px;
    }

    .section-heading h2,
    .split-feature h2,
    .rank-copy h2,
    .reading-steps h2,
    .about-section h2,
    .app-copy h2 {
        font-size: 25px;
    }

    .section-heading > a {
        font-size: 12px;
    }

    .category-card {
        min-height: 145px;
        padding: 17px;
    }

    .split-feature {
        border-radius: 16px;
    }

    .feature-visual img {
        height: 280px;
    }

    .feature-copy,
    .about-section,
    .ranking-layout,
    .listing-hero {
        padding: 27px 22px;
    }

    .rank-list li {
        grid-template-columns: 30px 40px 1fr;
    }

    .rank-list > li > span {
        display: none;
    }

    .mood-grid a:last-child {
        grid-column: span 2;
    }

    .quote-banner {
        padding: 37px 24px;
    }

    .quote-banner p {
        font-size: 17px;
    }

    .app-section {
        display: grid;
        justify-items: center;
        gap: 27px;
        margin-top: 70px;
        padding: 36px 25px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: span 2;
    }

    .listing-toolbar {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 35px;
    }

    .filter {
        margin-left: 0;
        padding: 7px 9px;
    }

    .reading-note p {
        display: block;
        margin: 5px 0 0;
    }
}
