:root {
    --ink: #18142a;
    --muted: #6d6980;
    --paper: #f7f6fb;
    --surface: #ffffff;
    --line: #e7e3ef;
    --purple: #6f3cff;
    --purple-dark: #4821b5;
    --cyan: #30d5c8;
    --orange: #ff9f43;
    --pink: #ff5d8f;
    --night: #151128;
    --shadow: 0 18px 55px rgba(27, 19, 59, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(231, 227, 239, 0.9);
    background: rgba(247, 246, 251, 0.92);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px 15px 15px 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 10px 24px rgba(111, 60, 255, 0.28);
    font-size: 22px;
    font-weight: 900;
}

.brand-mark.mini {
    width: 38px;
    height: 38px;
    font-size: 18px;
}

.brand-copy {
    display: grid;
    white-space: nowrap;
}

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

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

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

.nav-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #474159;
    font-size: 14px;
    font-weight: 700;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--purple-dark);
    background: #eee9ff;
}

.nav-icon {
    color: var(--purple);
    font-size: 16px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.hero {
    display: grid;
    min-height: 610px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
    margin-top: 48px;
    padding: 62px;
    border: 1px solid rgba(111, 60, 255, 0.13);
    border-radius: 36px;
    background: radial-gradient(circle at 12% 10%, rgba(48, 213, 200, 0.16), transparent 34%), linear-gradient(145deg, #ffffff, #f1edff);
    box-shadow: var(--shadow);
}

.hero-kicker,
.eyebrow {
    color: var(--purple);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h1 a {
    background: linear-gradient(120deg, var(--ink) 12%, var(--purple) 62%, var(--pink));
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions,
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    transition: 180ms ease;
}

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

.button.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), #895dff);
    box-shadow: 0 12px 26px rgba(111, 60, 255, 0.26);
}

.button.secondary,
.button.ghost {
    border-color: var(--line);
    background: #ffffff;
}

.button.disabled {
    color: #9b97a8;
    background: #eceaf1;
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
}

.hero-stats div {
    display: grid;
}

.hero-stats strong {
    font-size: 25px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.hero-art {
    position: relative;
}

.hero-art > img {
    aspect-ratio: 4 / 5;
    border: 8px solid #ffffff;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(31, 22, 74, 0.24);
}

.floating-note {
    position: absolute;
    display: grid;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(21, 17, 40, 0.18);
    backdrop-filter: blur(12px);
}

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

.note-one {
    left: -36px;
    bottom: 70px;
}

.note-two {
    top: 38px;
    right: -24px;
}

.quick-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.quick-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    font-weight: 800;
}

.quick-strip a:hover {
    border-color: #c8b9ff;
    color: var(--purple);
}

.content-section,
.spotlight,
.rank-section,
.split-section,
.update-section,
.reader-section,
.about-section,
.app-section,
.catalog-note {
    margin-top: 88px;
}

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

.section-heading h2,
.spotlight h2,
.rank-section h2,
.split-section h2,
.update-section h2,
.reader-section h2,
.about-section h2,
.app-section h2,
.catalog-note h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

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

.text-link {
    color: var(--purple);
    font-weight: 900;
}

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

.four-col {
    grid-template-columns: repeat(4, 1fr);
}

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 34px rgba(26, 19, 55, 0.07);
    transition: 200ms ease;
}

.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(26, 19, 55, 0.14);
}

.cover-link {
    position: relative;
    display: block;
}

.cover-link img {
    aspect-ratio: 3 / 4;
}

.chapter-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(21, 17, 40, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

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

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

.spotlight {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
    border-radius: 32px;
    color: #ffffff;
    background: var(--night);
}

.spotlight-image img {
    height: 100%;
    min-height: 470px;
}

.spotlight-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 64px;
}

.spotlight-copy p {
    color: #c8c2da;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px;
}

.tag-row span {
    padding: 6px 11px;
    border: 1px solid rgba(111, 60, 255, 0.18);
    border-radius: 999px;
    color: var(--purple-dark);
    background: #efeaff;
    font-size: 13px;
    font-weight: 800;
}

.spotlight .tag-row span {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 22px;
}

.featured-card .cover-link img {
    aspect-ratio: 3 / 4;
}

.rank-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    padding: 58px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, #fff8ec, #ffffff);
}

.rank-intro p {
    color: var(--muted);
}

.rank-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee6d9;
}

.rank-no {
    color: var(--orange);
    font-size: 23px;
    font-weight: 900;
}

.rank-item div {
    display: grid;
}

.rank-item a {
    font-weight: 900;
}

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

.dark-panel {
    width: min(1280px, calc(100% - 24px));
    padding: 60px 40px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(145deg, #17112b, #271452);
}

.light-heading .text-link,
.dark-panel .eyebrow {
    color: var(--cyan);
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--ink);
}

.horizontal-card .cover-link img {
    height: 100%;
    aspect-ratio: auto;
}

.horizontal-card .card-body {
    align-self: center;
}

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.complete-feature,
.reading-guide {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
}

.complete-feature img {
    margin: 24px 0;
    aspect-ratio: 16 / 8;
    border-radius: 18px;
}

.complete-feature h3 {
    margin: 0;
    font-size: 27px;
}

.reading-guide ul {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.reading-guide li {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: #f5f2ff;
}

.reading-guide strong {
    color: var(--purple);
}

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

.category-card {
    display: grid;
    min-height: 220px;
    align-content: start;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    transition: 180ms ease;
}

.category-card:hover {
    border-color: #bdaaff;
    transform: translateY(-4px);
}

.category-icon,
.catalog-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: var(--purple);
    background: #eee9ff;
    font-size: 24px;
}

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

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

.update-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 52px;
    padding: 52px;
    border-radius: 30px;
    background: #eafaf8;
}

.update-copy p {
    color: #4b716e;
}

.update-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.update-timeline li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #cfe8e5;
}

.update-timeline time {
    color: #25766e;
    font-weight: 900;
}

.update-timeline div {
    display: grid;
}

.update-tag {
    color: #4f817d;
    font-size: 12px;
}

.update-timeline a {
    font-weight: 800;
}

.reader-section {
    padding: 56px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(140deg, #6f3cff, #b13cff);
}

.reader-section .eyebrow {
    color: #d8fff9;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.quote-grid blockquote {
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.quote-grid p {
    margin: 0 0 16px;
}

.quote-grid cite {
    color: #e3dafe;
    font-style: normal;
}

.about-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 54px;
}

.about-mark {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 40% 60% 48% 52%;
    color: #ffffff;
    background: linear-gradient(145deg, var(--pink), var(--orange));
    box-shadow: var(--shadow);
    font-size: 54px;
    font-weight: 900;
    transform: rotate(-4deg);
}

.about-copy p {
    color: var(--muted);
}

.app-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: 60px;
    margin-bottom: 88px;
    padding: 56px;
    border-radius: 32px;
    background: linear-gradient(135deg, #fff0f5, #f1ecff);
}

.app-copy > p {
    max-width: 700px;
    color: var(--muted);
}

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

.subscribe-form > div {
    display: flex;
    max-width: 600px;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #d6cce9;
    border-radius: 13px;
    background: #ffffff;
}

.subscribe-form button {
    padding: 12px 20px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: var(--purple);
    font-weight: 800;
    cursor: pointer;
}

.form-message {
    min-height: 26px;
    margin: 8px 0 0;
    color: var(--purple-dark);
}

.qr-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.qr-pattern {
    display: grid;
    width: 170px;
    aspect-ratio: 1;
    place-items: center;
    border: 12px solid var(--night);
    border-radius: 18px;
    background: repeating-conic-gradient(var(--night) 0 25%, #ffffff 0 50%) 0 / 24px 24px;
}

.qr-pattern span {
    display: grid;
    width: 72px;
    aspect-ratio: 1;
    place-items: center;
    border: 8px solid #ffffff;
    border-radius: 16px;
    color: #ffffff;
    background: var(--purple);
    font-size: 34px;
    font-weight: 900;
}

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

.site-footer {
    padding: 54px 0 24px;
    color: #dbd5e8;
    background: var(--night);
}

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

.footer-grid p {
    color: #aaa3ba;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--cyan);
}

.copyright {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8e879e;
    font-size: 13px;
}

.inner-main {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--purple);
}

.catalog-hero {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 26px;
    margin-top: 24px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #f3efff);
}

.catalog-icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    font-size: 38px;
}

.catalog-hero h1,
.reader-header h1 {
    margin: 4px 0 8px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.16;
}

.catalog-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
}

.catalog-note {
    margin-bottom: 82px;
    padding: 34px;
    border-left: 5px solid var(--purple);
    border-radius: 0 20px 20px 0;
    background: #eee9ff;
}

.catalog-note h2 {
    font-size: 27px;
}

.catalog-note p {
    margin-bottom: 0;
    color: var(--muted);
}

.reader-shell {
    max-width: 960px;
    margin-top: 24px;
    margin-bottom: 88px;
}

.reader-header {
    padding: 44px;
    border-radius: 28px 28px 0 0;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1430, #4d2a88);
    text-align: center;
}

.reader-header .eyebrow {
    color: var(--cyan);
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
    color: #c8c0da;
    font-size: 14px;
}

.reading-notice {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 22px 30px;
    border-inline: 1px solid var(--line);
    background: #fff8e9;
}

.reading-notice p {
    margin: 0;
    color: #74654d;
}

.chapter-content {
    padding: 34px;
    border-inline: 1px solid var(--line);
    background: #ffffff;
}

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

.reader-panel {
    margin: 0 0 32px;
}

.reader-panel img {
    width: min(760px, 100%);
    aspect-ratio: 4 / 5;
    margin-inline: auto;
    border-radius: 16px;
    background: #efedf4;
}

.reader-panel figcaption {
    width: min(720px, 100%);
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.chapter-end {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 0 0 28px 28px;
    background: #f1edff;
    text-align: center;
}

.chapter-end > span {
    color: var(--purple);
    font-size: 28px;
}

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

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

.chapter-nav {
    justify-content: center;
}

@media (max-width: 1050px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 84px;
        right: 20px;
        left: 20px;
        display: none;
        grid-template-columns: repeat(4, 1fr);
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 36px;
        padding: 44px;
    }

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

    .four-col,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 760px) {
    .shell {
        width: min(100% - 24px, 1200px);
    }

    .header-inner {
        min-height: 74px;
    }

    .brand-copy small {
        display: none;
    }

    .main-nav {
        top: 74px;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-copy > p {
        font-size: 16px;
    }

    .hero-art {
        order: -1;
    }

    .hero-art > img {
        aspect-ratio: 16 / 10;
    }

    .note-one {
        left: 12px;
        bottom: 12px;
    }

    .note-two {
        top: 12px;
        right: 12px;
    }

    .hero-stats {
        gap: 18px;
    }

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

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

    .four-col,
    .three-col,
    .mosaic-grid,
    .horizontal-grid,
    .split-section,
    .rank-section,
    .update-section,
    .about-section,
    .app-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .comic-grid,
    .mosaic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h3 {
        font-size: 17px;
    }

    .card-body p {
        display: none;
    }

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

    .spotlight-image img {
        min-height: 280px;
        aspect-ratio: 16 / 10;
    }

    .spotlight-copy,
    .rank-section,
    .update-section,
    .reader-section,
    .app-section {
        padding: 30px;
    }

    .horizontal-card {
        grid-template-columns: 110px 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        min-height: 0;
        padding: 20px;
    }

    .category-card p {
        display: none;
    }

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

    .about-mark {
        width: 170px;
    }

    .app-section {
        margin-bottom: 56px;
    }

    .subscribe-form > div {
        flex-direction: column;
    }

    .qr-card {
        width: min(100%, 280px);
    }

    .catalog-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .reading-notice {
        grid-template-columns: 1fr;
    }

    .reader-header,
    .chapter-content,
    .chapter-end {
        padding: 26px 16px;
    }

    .reader-panel img {
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .brand-mark {
        width: 40px;
        height: 40px;
    }

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

    .hero-stats {
        justify-content: space-between;
    }

    .floating-note {
        padding: 8px 10px;
    }

    .quick-strip a {
        font-size: 14px;
    }
}
