:root {
    --ink: #15191e;
    --muted: #65717d;
    --paper: #f7f8f6;
    --card: #ffffff;
    --line: #dfe5de;
    --lime: #d9ff3f;
    --pink: #ff6d8d;
    --violet: #7d65ff;
    --shadow: 0 18px 45px rgba(21, 25, 30, 0.09);
}

* {
    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%;
    object-fit: cover;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 248, 246, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 82px;
    gap: 26px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    border: 2px solid var(--ink);
    border-radius: 11px 11px 11px 2px;
    font-size: 18px;
    transform: rotate(-5deg);
}

.brand em {
    color: var(--violet);
    font-style: normal;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 8px;
    border-radius: 9px;
    color: #4e5964;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
    background: var(--lime);
}

.nav-icon {
    font-size: 17px;
    line-height: 1;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    background: transparent;
    border: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    min-height: 512px;
    margin-top: 54px;
    padding: 42px 54px;
    overflow: hidden;
    background: var(--ink);
    border-radius: 28px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 10px;
    color: #56614d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--lime);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    margin-bottom: 12px;
    font-size: clamp(54px, 7vw, 96px);
    line-height: 1;
    letter-spacing: -6px;
}

.hero h1 a {
    color: #fff;
}

.hero-copy > p:not(.hero-kicker) {
    max-width: 470px;
    margin-bottom: 26px;
    color: #c6cbcf;
    font-size: 18px;
}

.hero-actions,
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 45px;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.button span {
    font-size: 20px;
    line-height: 0;
}

.button-lime {
    background: var(--lime);
}

.button-dark {
    color: #fff;
    background: var(--ink);
}

.button-outline {
    background: transparent;
}

.text-link {
    font-size: 14px;
    font-weight: 800;
}

.hero-art {
    position: relative;
    height: 390px;
    transform: rotate(4deg);
}

.hero-art img {
    height: 100%;
    border: 5px solid #fff;
    border-radius: 17px;
    box-shadow: 12px 13px 0 var(--pink);
}

.hero-sticker {
    position: absolute;
    top: -20px;
    left: -28px;
    z-index: 1;
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    transform: rotate(-14deg);
}

.hero-caption {
    position: absolute;
    right: -13px;
    bottom: -24px;
    padding: 12px 18px;
    color: var(--ink);
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.hero-caption span,
.hero-caption strong {
    display: block;
}

.hero-caption span {
    color: var(--muted);
    font-size: 12px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.metrics div {
    padding: 20px 28px;
    border-right: 1px solid var(--line);
}

.metrics div:last-child {
    border-right: 0;
}

.metrics strong,
.metrics span {
    display: block;
}

.metrics strong {
    font-size: 27px;
    line-height: 1.15;
}

.metrics span {
    color: var(--muted);
    font-size: 13px;
}

.section-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-top: 106px;
    margin-bottom: 26px;
}

.section-heading h2,
.spotlight h2,
.feature-pair h2,
.reading-notes h2,
.about-section h2,
.app-panel h2,
.schedule-section h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -2px;
}

.section-heading > p:last-child,
.schedule-title > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.center {
    text-align: center;
}

.comic-grid {
    display: grid;
    gap: 20px;
}

.four-up {
    grid-template-columns: repeat(4, 1fr);
}

.five-up {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e7ebe5;
}

.cover img {
    height: 100%;
}

.chapter-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    color: #fff;
    background: rgba(21, 25, 30, 0.86);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.comic-copy {
    padding: 15px;
}

.comic-copy .eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
    letter-spacing: 0;
}

.comic-copy h3 {
    margin-bottom: 7px;
    font-size: 18px;
    line-height: 1.35;
}

.comic-copy > p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    min-height: 45px;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #77808a;
    font-size: 11px;
}

.spotlight {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    margin-top: 106px;
    overflow: hidden;
    background: #d7e1ff;
    border-radius: 22px;
}

.spotlight-image {
    min-height: 405px;
}

.spotlight-image img {
    height: 100%;
}

.spotlight-copy {
    align-self: center;
    padding: 45px 58px;
}

.spotlight-copy > p:not(.eyebrow) {
    max-width: 490px;
    color: #405068;
}

.spotlight-copy ul {
    padding-left: 18px;
    color: #405068;
    font-size: 14px;
}

#categories {
    margin-top: 106px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 100px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.category-card:hover {
    border-color: var(--ink);
}

.category-icon,
.feature-icon {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    background: var(--lime);
    border: 1px solid var(--ink);
    border-radius: 14px;
    font-size: 22px;
}

.category-card strong,
.category-card small {
    display: block;
}

.category-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.chart-section {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 55px;
    margin-top: 106px;
    padding: 50px;
    background: #fff5d8;
    border-radius: 22px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 45px 1fr auto 24px;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #e8d9b8;
}

.rank-list a:last-child {
    border-bottom: 0;
}

.rank-list b {
    color: var(--pink);
    font-size: 21px;
}

.rank-list em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-list i {
    font-style: normal;
}

.schedule-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    margin-top: 106px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.schedule-grid div {
    padding: 18px;
    background: #fff;
    border-top: 3px solid var(--violet);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(21, 25, 30, 0.05);
}

.schedule-grid span,
.schedule-grid strong,
.schedule-grid small {
    display: block;
}

.schedule-grid span {
    color: var(--violet);
    font-size: 12px;
    font-weight: 800;
}

.schedule-grid strong {
    margin: 4px 0;
}

.schedule-grid small {
    color: var(--muted);
}

.feature-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 106px;
}

.feature-pair article {
    padding: 42px;
    background: #fff;
    border-radius: 20px;
}

.feature-pair article:last-child {
    background: #f0eaff;
}

.feature-pair .feature-icon {
    margin-bottom: 26px;
}

.feature-pair p:not(.eyebrow) {
    max-width: 450px;
    color: var(--muted);
}

.reading-notes {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
    margin-top: 106px;
    padding: 45px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.reading-notes ol {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reading-notes li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
}

.reading-notes b {
    color: var(--pink);
    font-size: 21px;
}

.reading-notes strong,
.reading-notes span {
    display: block;
}

.reading-notes span {
    color: var(--muted);
    font-size: 14px;
}

.about-section {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 45px;
    align-items: center;
    margin-top: 106px;
}

.about-symbol {
    display: grid;
    width: 166px;
    height: 166px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 32px 32px 4px 32px;
    box-shadow: 12px 12px 0 var(--lime);
    font-size: 75px;
    font-weight: 900;
}

.about-section p:not(.eyebrow) {
    max-width: 850px;
    margin-bottom: 0;
    color: var(--muted);
}

.app-panel {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 40px;
    align-items: center;
    margin-top: 106px;
    margin-bottom: 106px;
    padding: 48px 58px;
    color: #fff;
    background: #262e39;
    border-radius: 22px;
}

.app-panel .eyebrow {
    color: var(--lime);
}

.app-panel p:not(.eyebrow) {
    max-width: 700px;
    color: #c8d0d8;
}

.qr-card {
    padding: 20px;
    color: var(--ink);
    background: #fff;
    border-radius: 13px;
    text-align: center;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 128px;
    margin: 0 auto 10px;
}

.qr-grid i {
    aspect-ratio: 1;
    background: var(--ink);
}

.qr-grid i:nth-child(2n) {
    background: var(--lime);
}

.qr-card strong,
.qr-card small {
    display: block;
}

.qr-card small {
    color: var(--muted);
    font-size: 11px;
}

.site-footer {
    padding-top: 55px;
    color: #b8c0c6;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 45px;
}

.brand-footer {
    color: #fff;
}

.footer-grid p {
    max-width: 260px;
    margin: 13px 0 0;
    font-size: 14px;
}

.footer-grid h3 {
    margin-bottom: 11px;
    color: #fff;
    font-size: 15px;
}

.footer-grid a:not(.brand) {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
}

.copyright {
    padding: 18px 0;
    border-top: 1px solid #39424c;
    color: #84909b;
    font-size: 12px;
}

.listing-main,
.reader-main {
    min-height: 66vh;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    padding-top: 28px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.listing-hero {
    margin-top: 30px;
    padding: 52px;
    color: #fff;
    background: linear-gradient(120deg, #26333f, #6654af);
    border-radius: 20px;
}

.listing-hero .eyebrow {
    color: var(--lime);
}

.listing-hero h1 {
    margin-bottom: 9px;
    font-size: 52px;
    letter-spacing: -3px;
}

.listing-hero > p:last-child {
    max-width: 690px;
    margin-bottom: 0;
    color: #d9dee3;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 36px auto 22px;
}

.filter-row > span {
    margin-right: 9px;
    font-size: 14px;
    font-weight: 800;
}

.filter-row a {
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
}

.filter-row .is-current {
    color: var(--ink);
    background: var(--lime);
    border-color: var(--lime);
}

.seo-copy {
    margin-top: 72px;
    margin-bottom: 105px;
    padding: 32px;
    background: #fff;
    border-left: 5px solid var(--lime);
}

.seo-copy h2 {
    margin-bottom: 8px;
    font-size: 23px;
}

.seo-copy p {
    margin-bottom: 0;
    color: var(--muted);
}

.reader-article {
    max-width: 850px;
    margin-top: 28px;
    margin-bottom: 106px;
}

.reader-header {
    padding: 35px 0 27px;
    border-bottom: 1px solid var(--line);
}

.reader-header h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.25;
    letter-spacing: -2px;
}

.reader-header h1 span {
    color: var(--pink);
    font-size: 0.5em;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.reading-intro {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 16px;
    margin: 28px 0;
    padding: 18px;
    background: #eef1ec;
    border-radius: 10px;
}

.reading-intro strong {
    color: var(--violet);
}

.reading-intro p {
    margin-bottom: 0;
    color: #4b5962;
    font-size: 14px;
}

.reader-panel {
    margin: 0 0 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.reader-panel img {
    aspect-ratio: 4 / 3;
}

.reader-panel figcaption {
    padding: 11px 16px;
    color: var(--muted);
    font-size: 13px;
}

.chapter-end {
    padding: 40px;
    text-align: center;
    background: #fff5d8;
    border-radius: 14px;
}

.chapter-end span {
    color: var(--pink);
    font-size: 28px;
}

.chapter-end h2 {
    margin: 4px 0;
    font-size: 25px;
}

.chapter-end p {
    margin-bottom: 0;
    color: var(--muted);
}

.chapter-nav {
    justify-content: space-between;
    margin-top: 28px;
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 0;
    }

    .nav-link {
        padding: 8px 5px;
        font-size: 12px;
    }

    .five-up {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 68px);
        padding: 13px;
        overflow: auto;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-link {
        padding: 11px;
        font-size: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        margin-top: 30px;
        padding: 35px 27px 45px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-art {
        width: min(100%, 400px);
        height: 330px;
        margin: 0 auto;
    }

    .metrics,
    .four-up,
    .five-up,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics div:nth-child(2) {
        border-right: 0;
    }

    .metrics div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .spotlight,
    .chart-section,
    .schedule-section,
    .reading-notes,
    .app-panel {
        grid-template-columns: 1fr;
    }

    .spotlight-image {
        min-height: 300px;
    }

    .spotlight-copy,
    .app-panel {
        padding: 35px 28px;
    }

    .chart-section,
    .reading-notes {
        gap: 28px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .hero-art {
        height: 270px;
    }

    .hero-sticker {
        top: -11px;
        left: -7px;
        width: 72px;
        height: 72px;
        font-size: 11px;
    }

    .hero-caption {
        right: 0;
    }

    .section-split {
        align-items: flex-start;
        flex-direction: column;
    }

    .four-up,
    .five-up,
    .category-grid,
    .feature-pair,
    .metrics,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .metrics div,
    .metrics div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metrics div:last-child {
        border-bottom: 0;
    }

    .rank-list a {
        grid-template-columns: 37px 1fr 20px;
    }

    .rank-list em {
        display: none;
    }

    .reading-intro {
        grid-template-columns: 1fr;
    }

    .chapter-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
