:root {
    --ink: #24213b;
    --muted: #77758e;
    --purple: #6d4aff;
    --pink: #ff5e90;
    --banana: #ffd95a;
    --paper: #fffdf8;
    --line: #ece8f3;
    --shadow: 0 18px 45px rgba(56, 39, 115, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 253, 248, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

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

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

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--banana);
    box-shadow: 4px 4px 0 var(--ink);
}

.main-nav {
    margin-left: auto;
}

.main-nav ul,
.tag-list,
.stat-list,
.footer-links {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 9px;
    border-radius: 10px;
    color: #58546e;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: var(--purple);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 26px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: 62px 58px;
    border-radius: 28px;
    background: linear-gradient(120deg, #6d4aff, #9c55f6 65%, #ff76a5);
    color: #fff;
}

.hero::after {
    position: absolute;
    right: 7%;
    bottom: -96px;
    width: 310px;
    height: 310px;
    border: 38px solid rgba(255, 217, 90, .82);
    border-radius: 50%;
    content: "";
}

.eyebrow {
    display: inline-block;
    padding: 4px 13px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    font-size: 14px;
}

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

.hero h1 {
    position: relative;
    z-index: 1;
    margin: 16px 0 8px;
    font-size: clamp(38px, 7vw, 70px);
    letter-spacing: 2px;
}

.hero p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    font-size: 18px;
}

.hero-actions,
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-block;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--banana);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
}

.section {
    margin-top: 64px;
}

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

.section-heading h2 {
    margin-bottom: 0;
    font-size: 28px;
}

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

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

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(56, 39, 115, .05);
    transition: transform .2s ease;
}

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

.comic-cover {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.comic-card h3 {
    overflow: hidden;
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic-card p,
.small-meta {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.category-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.category-card span {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #f2edff;
    font-size: 22px;
}

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

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

.feature-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
}

.feature-story,
.rank-panel,
.about-panel,
.app-panel,
.reading-note {
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.feature-story {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
}

.feature-story img {
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.feature-copy {
    padding: 35px;
}

.feature-copy h3 {
    margin: 12px 0;
    font-size: 28px;
}

.feature-copy p,
.rank-panel p {
    color: var(--muted);
}

.rank-panel {
    padding: 26px;
}

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

.rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}

.rank-no {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #f1ecff;
    color: var(--purple);
    font-weight: 900;
}

.rank-list small {
    display: block;
    color: var(--muted);
}

.tag-list {
    flex-wrap: wrap;
}

.tag-list a {
    padding: 7px 13px;
    border-radius: 999px;
    background: #eeeaff;
    color: #5e43ca;
    font-size: 14px;
    font-weight: 700;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.timeline-item {
    padding: 24px;
    border-right: 1px solid var(--line);
}

.timeline-item:last-child {
    border-right: 0;
}

.timeline-item time {
    color: var(--pink);
    font-weight: 900;
}

.timeline-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.stat-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-list li {
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff2a7, #ffe176);
    text-align: center;
}

.stat-list strong {
    display: block;
    font-size: 28px;
}

.about-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.about-panel img {
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.about-copy {
    padding: 36px;
}

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

.app-panel {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 30px;
    padding: 38px;
    background: linear-gradient(135deg, #30275d, #6d4aff);
    color: #fff;
}

.app-panel p {
    color: #e2ddff;
}

.qr {
    display: grid;
    width: 150px;
    aspect-ratio: 1;
    place-items: center;
    border: 8px solid #fff;
    border-radius: 16px;
    background: repeating-linear-gradient(45deg, #fff 0 8px, #24213b 8px 16px);
    color: #fff;
    font-weight: 900;
    text-align: center;
}

.site-footer {
    margin-top: 64px;
    padding: 36px 0 18px;
    background: #24213b;
    color: #fff;
}

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

.footer-inner p {
    margin: 6px 0 0;
    color: #c7c3d5;
}

.footer-links {
    flex-wrap: wrap;
    align-items: start;
}

.footer-links a {
    color: #e2ddff;
}

.copyright {
    width: min(1200px, calc(100% - 40px));
    padding-top: 18px;
    margin: 22px auto 0;
    border-top: 1px solid #494564;
    color: #aaa5bd;
    font-size: 13px;
}

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

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

.page-intro {
    margin-top: 22px;
    padding: 30px;
    border-radius: 20px;
    background: #fff;
}

.page-intro p {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
}

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

.article-header {
    margin: 24px 0;
    text-align: center;
}

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

.reading-note {
    padding: 20px 24px;
    margin-bottom: 25px;
    border-left: 5px solid var(--banana);
}

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

.chapter-image {
    margin: 0 auto 24px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

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

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

    .main-nav {
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
    }

    .main-nav ul {
        width: max-content;
    }

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

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

@media (max-width: 700px) {
    .header-inner,
    .container,
    .footer-inner {
        width: min(100% - 28px, 1200px);
    }

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

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

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

    .hero {
        margin-top: 24px;
        padding: 42px 25px;
    }

    .hero::after {
        right: -95px;
        width: 240px;
        height: 240px;
    }

    .section {
        margin-top: 46px;
    }

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

    .more-link {
        display: inline-block;
        margin-top: 8px;
    }

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

    .feature-layout,
    .feature-story,
    .about-panel,
    .app-panel {
        grid-template-columns: 1fr;
    }

    .feature-story img,
    .about-panel img {
        min-height: 220px;
        max-height: 280px;
    }

    .timeline,
    .stat-list {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }

    .category-card {
        padding: 16px;
    }

    .app-panel {
        padding: 28px;
    }

    .qr {
        width: 130px;
    }
}