:root {
    --ink: #202238;
    --paper: #fffdf8;
    --cream: #f7f1e7;
    --coral: #ff5e62;
    --violet: #7657d8;
    --mint: #47c5a5;
    --line: #e8e1d7;
    --muted: #6d7183;
    --shadow: 0 16px 38px rgba(36, 34, 56, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(32, 34, 56, 0.97);
    box-shadow: 0 8px 24px rgba(32, 34, 56, 0.14);
}

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

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px 13px 13px 3px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--coral), #f89b43);
    transform: rotate(-7deg);
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.site-nav a {
    padding: 8px 7px;
    border-radius: 10px;
    color: #d9daea;
    font-size: 0.88rem;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.nav-icon {
    margin-right: 4px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 36px;
    padding: 52px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(120deg, #322660, #7657d8 55%, #ff6a67);
    box-shadow: var(--shadow);
}

.hero::after {
    position: absolute;
    right: -35px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    border: 34px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.eyebrow {
    margin: 0 0 10px;
    color: #ffdf9b;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

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

.hero h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.18;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-bottom: 22px;
    color: #f5f1ff;
}

.hero-actions,
.chip-row,
.meta-row,
.reader-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 13px;
    font-weight: 800;
}

.button-light {
    color: var(--ink);
    background: #ffffff;
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.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: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.25;
}

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

.text-link {
    color: var(--violet);
    font-weight: 800;
}

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(36, 34, 56, 0.06);
    transition: transform 0.2s ease;
}

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

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

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

.comic-card h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.4;
}

.comic-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

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

.strip-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    overflow: hidden;
    min-height: 148px;
    border-radius: 18px;
    background: #f1edff;
}

.strip-card:nth-child(2) {
    background: #fff0ea;
}

.strip-card:nth-child(3) {
    background: #e6f8f1;
}

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

.strip-card div {
    padding: 18px;
}

.strip-card h3 {
    margin-bottom: 6px;
}

.strip-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 14px;
    color: var(--violet);
    background: #eeeaff;
    font-size: 1.3rem;
}

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

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

.rank-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
}

.rank-list,
.notice-panel,
.about-panel,
.download-panel,
.article-intro,
.reader-note {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-list {
    padding: 8px 24px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 60px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

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

.rank-number {
    color: var(--coral);
    font-size: 1.25rem;
    font-weight: 900;
}

.rank-item img {
    height: 60px;
    border-radius: 12px;
}

.rank-item h3,
.rank-item p {
    margin-bottom: 0;
}

.rank-item p {
    color: var(--muted);
    font-size: 0.82rem;
}

.score {
    color: var(--violet);
    font-weight: 900;
}

.notice-panel {
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(155deg, #242442, #39477d);
}

.notice-panel p {
    color: #dbe1ff;
}

.timeline {
    display: grid;
    gap: 15px;
}

.timeline div {
    padding-left: 15px;
    border-left: 3px solid #ffb36b;
}

.timeline strong,
.timeline span {
    display: block;
}

.timeline span {
    color: #dbe1ff;
    font-size: 0.86rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px;
    border-radius: 22px;
    background: #fff4d9;
}

.tag-cloud a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #5c4523;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

.about-panel img {
    height: 100%;
    min-height: 320px;
}

.about-copy {
    padding: 38px;
}

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

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
    list-style: none;
}

.check-list li {
    color: #3d4564;
}

.check-list li::before {
    margin-right: 7px;
    color: var(--mint);
    content: "✓";
    font-weight: 900;
}

.download-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 34px 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff625e, #8e56dc);
}

.download-panel p {
    margin-bottom: 18px;
    color: #fff3f0;
}

.qr-mark {
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    border: 9px solid #ffffff;
    border-radius: 18px;
    color: var(--ink);
    background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 50% / 24px 24px;
    box-shadow: inset 0 0 0 28px #ffffff;
}

.qr-mark span {
    padding: 3px 7px;
    border-radius: 5px;
    color: #ffffff;
    background: var(--ink);
    font-size: 0.7rem;
    font-weight: 900;
}

.site-footer {
    margin-top: 64px;
    padding: 34px 0;
    color: #cfd1dc;
    background: var(--ink);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner p {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.breadcrumbs {
    margin-top: 32px;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-hero {
    margin-top: 18px;
    padding: 32px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(120deg, #343158, #5271a5);
}

.page-hero h1 {
    margin-bottom: 8px;
}

.page-hero p {
    margin-bottom: 0;
    color: #e5e9ff;
}

.content-note {
    padding: 24px 28px;
    border-left: 5px solid var(--coral);
    border-radius: 0 18px 18px 0;
    background: #fff1ed;
    color: #594247;
}

.article-intro {
    padding: 30px;
}

.article-intro h1 {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.meta-row {
    color: var(--muted);
    font-size: 0.88rem;
}

.reader-note {
    padding: 22px 26px;
    border-left: 5px solid var(--mint);
}

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

.reader-pages {
    display: grid;
    gap: 22px;
    max-width: 820px;
    margin: 28px auto 0;
}

.reader-pages figure {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #f0ebe4;
    box-shadow: var(--shadow);
}

.reader-pages img {
    aspect-ratio: 16 / 10;
}

.reader-pages figcaption {
    padding: 10px 15px;
    color: var(--muted);
    font-size: 0.85rem;
}

.chapter-end {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    background: #eeeaff;
}

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

.reader-nav {
    justify-content: center;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .header-inner {
        display: block;
        padding: 14px 0;
    }

    .brand {
        margin-bottom: 10px;
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

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

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

    .rank-layout,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .about-panel img {
        min-height: 240px;
    }
}

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

    .hero,
    .page-hero {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .section {
        margin-top: 48px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 8px;
    }

    .comic-grid,
    .category-grid {
        gap: 12px;
    }

    .category-card {
        min-height: 155px;
        padding: 16px;
    }

    .rank-list {
        padding: 8px 16px;
    }

    .rank-item {
        grid-template-columns: 25px 52px 1fr;
        gap: 9px;
    }

    .rank-item img {
        height: 52px;
    }

    .score {
        display: none;
    }

    .about-copy,
    .article-intro {
        padding: 24px;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .download-panel {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .footer-inner {
        display: block;
    }

    .footer-inner p + p {
        margin-top: 8px;
    }
}
