:root {
    --ink: #241d31;
    --muted: #756d7d;
    --paper: #fffdfc;
    --pink: #ee6f98;
    --pink-soft: #fff0f5;
    --purple: #6f5cc5;
    --line: #eee7ed;
    --shadow: 0 15px 45px rgba(75, 44, 83, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fffafb;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 252, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 18px;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 12px 12px 12px 3px;
}

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

.nav-link {
    padding: 8px 9px;
    color: #615a68;
    font-size: 13px;
    border-radius: 9px;
    white-space: nowrap;
}

.nav-link span {
    margin-right: 4px;
    color: var(--pink);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--purple);
    background: var(--pink-soft);
    font-weight: 700;
}

.header-search,
.menu-toggle {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 0;
    color: var(--purple);
    background: #f3efff;
    border-radius: 50%;
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

.hero {
    margin-top: 42px;
    padding: 62px 0;
    overflow: hidden;
    background: radial-gradient(circle at 85% 20%, #ffe2ed 0, transparent 28%), linear-gradient(125deg, #fff2f6, #f5f1ff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

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

h1 {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.15;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
}

.hero-text {
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions,
.tag-row,
.meta-row,
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 19px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), #c76dbe);
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 9px 19px rgba(221, 83, 137, 0.2);
}

.button.secondary {
    color: var(--purple);
    background: #fff;
    box-shadow: none;
    border: 1px solid #e7dff2;
}

.hero-art {
    position: relative;
    min-height: 290px;
}

.hero-art img {
    position: absolute;
    width: 55%;
    height: 245px;
    border: 7px solid #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-art img:first-child {
    top: 10px;
    left: 0;
    transform: rotate(-7deg);
}

.hero-art img:last-child {
    right: 0;
    bottom: 0;
    transform: rotate(7deg);
}

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

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

.section-head p:last-child,
.section-note {
    max-width: 510px;
    margin-bottom: 0;
    color: var(--muted);
}

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

.category-card,
.comic-card,
.reason-card,
.feature-card,
.list-panel,
.timeline-item,
.about-panel,
.download-panel {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.category-card {
    min-height: 180px;
    padding: 24px;
    border-radius: 18px;
    transition: transform 0.2s ease;
}

.category-card:hover,
.comic-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--purple);
    background: var(--pink-soft);
    border-radius: 14px;
    font-size: 22px;
}

.category-card h3 {
    margin: 14px 0 5px;
}

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

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

.comic-card {
    overflow: hidden;
    border-radius: 17px;
    transition: transform 0.2s ease;
}

.cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3edf3;
}

.chapter-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 9px;
    color: #fff;
    background: rgba(43, 31, 54, 0.76);
    border-radius: 999px;
    font-size: 12px;
}

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

.comic-card h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.two-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.list-panel,
.about-panel {
    padding: 28px;
    border-radius: 20px;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 17px 0 0;
}

.rank-list li {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-num {
    color: var(--pink);
    font-weight: 900;
}

.tag-row a {
    padding: 7px 12px;
    color: var(--purple);
    background: #f5f2ff;
    border-radius: 999px;
    font-size: 13px;
}

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

.feature-card {
    padding: 25px;
    border-radius: 18px;
}

.feature-card span {
    color: var(--pink);
    font-size: 29px;
}

.feature-card h3 {
    margin: 11px 0 6px;
}

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

.timeline-item {
    padding: 24px;
    border-top: 4px solid var(--pink);
    border-radius: 15px;
}

.timeline-time {
    color: var(--purple);
    font-weight: 800;
}

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

.reason-card {
    padding: 21px;
    border-radius: 16px;
}

.reason-card b {
    display: block;
    margin-bottom: 7px;
    color: var(--purple);
    font-size: 21px;
}

.about-panel {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #fff, #fff3f8);
}

.about-art {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
}

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

.download-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 32px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(125deg, #6d58b8, #d86596);
    border: 0;
}

.download-panel p {
    margin-bottom: 17px;
    color: #fbe9f2;
}

.qr {
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    color: var(--purple);
    background: repeating-conic-gradient(#fff 0 25%, #e9e1ff 0 50%) 50% / 18px 18px;
    border: 8px solid #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

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

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

.page-hero {
    margin-top: 22px;
    padding: 37px 0;
    background: #fff0f6;
}

.page-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 48px);
}

.article-layout {
    width: min(830px, calc(100% - 40px));
    margin: 40px auto 0;
}

.article-header {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.article-header h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 5vw, 46px);
}

.meta-row {
    color: var(--muted);
    font-size: 14px;
}

.reading-note {
    margin: 27px 0;
    padding: 18px 21px;
    color: #5f5374;
    background: #f6f3ff;
    border-left: 4px solid var(--purple);
    border-radius: 0 12px 12px 0;
}

.comic-pages {
    display: grid;
    gap: 18px;
}

.comic-page {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f3edf3;
    border-radius: 16px;
}

.chapter-end {
    margin: 30px 0;
    padding: 25px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #ddcfe0;
    border-radius: 17px;
}

.article-actions {
    justify-content: space-between;
    margin-bottom: 80px;
}

.site-footer {
    margin-top: 84px;
    padding: 42px 0 0;
    color: #e9e1ee;
    background: #2e2638;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.brand-footer .brand-mark {
    background: #ef7fa3;
}

.site-footer p {
    margin: 12px 0 0;
    color: #bdb2c4;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    align-items: start;
}

.copyright {
    margin-top: 32px;
    padding: 15px 20px;
    color: #aa9daf;
    text-align: center;
    border-top: 1px solid #463b52;
    font-size: 13px;
}

@media (max-width: 1020px) {
    .main-nav {
        justify-content: start;
        overflow-x: auto;
    }

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

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

    .header-inner {
        min-height: 66px;
        gap: 12px;
    }

    .brand {
        font-size: 15px;
    }

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

    .header-search {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        width: 100%;
        padding: 12px 14px;
        flex-wrap: wrap;
        background: #fffdfc;
        border-bottom: 1px solid var(--line);
    }

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

    .hero {
        margin-top: 26px;
        padding: 42px 0;
    }

    .hero-grid,
    .two-panel,
    .about-panel,
    .download-panel {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 220px;
    }

    .hero-art img {
        height: 190px;
    }

    .content-section {
        margin-top: 57px;
    }

    .section-head,
    .footer-inner {
        display: block;
    }

    .section-head p:last-child {
        margin-top: 10px;
    }

    .category-grid,
    .comic-grid,
    .reason-grid,
    .feature-grid,
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }

    .category-card,
    .feature-card,
    .reason-card {
        padding: 17px;
    }

    .category-card {
        min-height: 160px;
    }

    .download-panel {
        padding: 25px;
    }

    .qr {
        width: 105px;
        height: 105px;
    }

    .footer-links {
        margin-top: 25px;
    }
}