:root {
    --ink: #2c2732;
    --muted: #766f7a;
    --purple: #6d3f9b;
    --violet: #9d6ac7;
    --peach: #ffb66e;
    --cream: #fff9f2;
    --paper: #ffffff;
    --line: #eadfeb;
    --shadow: 0 18px 45px rgba(77, 45, 91, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffaf5 0%, #fff 32%, #fbf7ff 100%);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(109, 63, 155, 0.10);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: var(--purple);
    font-size: 20px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px 12px 17px 17px;
    color: #fff;
    background: linear-gradient(145deg, #8c55b9, #5e278e);
    box-shadow: 0 7px 14px rgba(109, 63, 155, 0.24);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 9px;
    border-radius: 10px;
    color: #5f5863;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

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

.search-chip,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 12px;
    color: #fff;
    background: var(--purple);
    font-weight: 800;
}

.search-chip {
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--purple);
    background: transparent;
    font-size: 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 42px;
    padding: 66px 58px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(120deg, #43215f, #7444a3 58%, #d78598);
    box-shadow: var(--shadow);
}

.hero::after {
    position: absolute;
    right: -55px;
    bottom: -80px;
    width: 310px;
    height: 310px;
    border: 42px solid rgba(255, 235, 199, 0.25);
    border-radius: 50%;
    content: "";
}

.eyebrow {
    margin: 0 0 12px;
    color: #ffe4b7;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.15;
}

.hero p:not(.eyebrow) {
    max-width: 680px;
    margin-bottom: 27px;
    color: #f8edff;
    font-size: 17px;
}

.button {
    padding: 0 19px;
    border: 0;
    cursor: pointer;
}

.button.light {
    color: var(--purple);
    background: #fff;
}

.button.outline {
    border: 1px solid #d9c4e9;
    color: var(--purple);
    background: transparent;
}

.section {
    margin-top: 76px;
}

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

.section-heading h2 {
    margin-bottom: 2px;
    font-size: 28px;
    line-height: 1.25;
}

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

.text-link {
    color: var(--purple);
    font-weight: 800;
    white-space: nowrap;
}

.feature-grid,
.comic-grid,
.category-grid,
.guide-grid,
.ranking-list,
.story-grid {
    display: grid;
    gap: 20px;
}

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

.feature-card {
    display: grid;
    grid-template-columns: 105px 1fr;
    overflow: hidden;
    min-height: 166px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 9px 24px rgba(70, 40, 80, 0.05);
}

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

.card-copy {
    padding: 19px 15px;
}

.card-copy span,
.meta {
    color: var(--muted);
    font-size: 12px;
}

.card-copy h3 {
    margin: 7px 0 5px;
    font-size: 17px;
}

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

.comic-card {
    overflow: hidden;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(68, 39, 77, 0.08);
}

.comic-card img {
    aspect-ratio: 3 / 4;
}

.comic-card div {
    padding: 13px;
}

.comic-card h3 {
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    min-height: 147px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffdfb;
}

.category-card i {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    color: var(--purple);
    background: #f2e7fb;
    font-style: normal;
    font-size: 21px;
}

.category-card h3 {
    margin: 12px 0 3px;
}

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

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

.rank-item {
    display: flex;
    gap: 14px;
    padding: 17px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f8f0ff);
}

.rank-number {
    color: var(--violet);
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
}

.rank-item h3 {
    margin: 4px 0 3px;
    font-size: 16px;
}

.notice-bar {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 21px 25px;
    border-radius: 18px;
    color: #55366d;
    background: #f4e9fc;
}

.notice-bar strong {
    font-size: 22px;
}

.notice-bar p {
    flex: 1;
    margin: 0;
}

.story-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.story-panel,
.about-panel,
.download-box {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.story-panel {
    padding: 32px;
    background: linear-gradient(145deg, #fff2db, #fff);
}

.story-panel h3,
.about-panel h2,
.download-box h2 {
    font-size: 26px;
}

.story-panel p,
.about-panel p {
    color: var(--muted);
}

.reading-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-top: 22px;
}

.reading-steps span {
    padding: 12px;
    border-radius: 12px;
    color: var(--purple);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.spotlight {
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    border-radius: 24px;
    background: #553078;
    color: #fff;
}

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

.spotlight div {
    padding: 32px;
}

.spotlight p {
    color: #ecdcf6;
}

.about-panel {
    padding: 38px;
    border: 1px solid #f0e6d7;
    background: linear-gradient(135deg, #fff, #fff7e9);
}

.about-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.about-points span {
    padding: 11px;
    border-radius: 10px;
    background: #fff;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.download-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 35px;
    padding: 38px;
    color: #fff;
    background: linear-gradient(115deg, #3f235d, #7c499f);
}

.download-box p {
    max-width: 680px;
    color: #eddef8;
}

.qr {
    display: grid;
    width: 128px;
    height: 128px;
    place-items: center;
    border: 8px solid #fff;
    border-radius: 18px;
    color: var(--purple);
    background: repeating-linear-gradient(45deg, #fff 0 7px, #f1e4fb 7px 13px);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.breadcrumb {
    margin-top: 35px;
    color: var(--muted);
    font-size: 14px;
}

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

.page-hero {
    margin-top: 22px;
    padding: 36px 42px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(125deg, #512c75, #a262bb);
}

.page-hero h1 {
    margin: 0;
    font-size: 38px;
}

.page-hero p {
    margin: 8px 0 0;
    color: #f4eaff;
}

.column-intro {
    padding: 25px 29px;
    border-left: 5px solid var(--peach);
    border-radius: 0 16px 16px 0;
    background: #fffaf2;
    color: #5e5661;
}

.article-list {
    display: grid;
    gap: 16px;
}

.article-row {
    display: grid;
    grid-template-columns: 124px 1fr auto;
    align-items: center;
    gap: 21px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.article-row img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.article-row h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

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

.article-row .button {
    padding: 0 15px;
}

.reader-head {
    margin-top: 22px;
    padding: 35px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.reader-head h1 {
    margin-bottom: 12px;
    font-size: clamp(29px, 4vw, 45px);
}

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

.reader-note {
    margin: 25px 0;
    padding: 17px 20px;
    border-radius: 13px;
    color: #675371;
    background: #f8effc;
}

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

.comic-page {
    overflow: hidden;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(65, 40, 80, 0.09);
}

.comic-page img {
    aspect-ratio: 3 / 4;
}

.comic-page p {
    margin: 0;
    padding: 10px 13px;
    color: var(--muted);
    font-size: 13px;
}

.chapter-end {
    margin-top: 26px;
    padding: 28px;
    border-radius: 18px;
    background: #fff5e6;
    text-align: center;
}

.chapter-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.site-footer {
    margin-top: 86px;
    padding: 48px 0 20px;
    color: #eee1f5;
    background: #2d1b3e;
}

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

.footer-brand {
    color: #fff;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 6px 0;
    font-size: 14px;
}

.site-footer p {
    max-width: 320px;
    color: #cdb9dc;
    font-size: 14px;
}

.copyright {
    margin-top: 33px;
    padding-top: 18px;
    border-top: 1px solid #4d3661;
    color: #bba8c8;
    font-size: 13px;
}

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 11px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .search-chip {
        display: none;
    }

    .main-nav {
        display: none;
        max-height: 55vh;
        padding-top: 8px;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
    }

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

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

    .hero {
        margin-top: 28px;
        padding: 43px 25px;
        border-radius: 22px;
    }

    .section {
        margin-top: 57px;
    }

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

    .feature-grid,
    .category-grid,
    .ranking-list,
    .story-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .spotlight img {
        min-height: 220px;
    }

    .about-points,
    .reading-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-box {
        grid-template-columns: 1fr;
        padding: 29px;
    }

    .article-row {
        grid-template-columns: 90px 1fr;
        gap: 14px;
    }

    .article-row .button {
        grid-column: 2;
        width: fit-content;
    }

    .comic-pages {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .reader-head {
        padding: 27px 22px;
    }
}
