:root {
    --ink: #17211d;
    --muted: #66716c;
    --paper: #f7f6ef;
    --card: #ffffff;
    --line: #dfe4df;
    --green: #2f6f55;
    --green-dark: #1d4d3b;
    --lime: #dcef68;
    --orange: #ff7657;
    --shadow: 0 18px 45px rgba(24, 40, 32, .09);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgba(47, 111, 85, .08) 1px, transparent 1px);
    background-size: 24px 24px;
    content: "";
    pointer-events: none;
}

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

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

button,
input {
    font: inherit;
}

.section-shell,
.header-inner,
.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(23, 33, 29, .08);
    background: rgba(247, 246, 239, .94);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img {
    width: 168px;
    height: 48px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #435049;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--green);
}

.menu-toggle {
    display: none;
    padding: 10px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px;
    background: var(--ink);
}

.hero {
    display: grid;
    overflow: hidden;
    min-height: 610px;
    margin-top: 56px;
    padding: 48px;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 48px;
    border-radius: 36px;
    background: #dbe9d7;
}

.kicker,
.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(54px, 8vw, 104px);
    line-height: .95;
    letter-spacing: -.07em;
}

.hero h1 a {
    background: linear-gradient(135deg, var(--green-dark), #4c8d68);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 510px;
    margin: 28px 0;
    color: #3c4c44;
    font-size: 19px;
}

.hero-actions,
.hero-notes,
.chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.button.primary {
    color: #fff;
    background: var(--green-dark);
}

.button.ghost {
    border-color: rgba(23, 33, 29, .24);
}

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

.hero-notes {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    color: #506159;
    font-size: 13px;
    font-weight: 800;
}

.hero-notes li::before {
    margin-right: 7px;
    color: var(--green);
    content: "●";
}

.hero-art {
    position: relative;
}

.hero-art img {
    width: 100%;
    aspect-ratio: 6 / 5;
    border: 8px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.art-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--lime);
    font-size: 13px;
    font-weight: 900;
}

.ticker {
    display: grid;
    margin-top: 24px;
    padding: 18px 24px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.ticker strong {
    color: var(--orange);
}

.ticker p {
    margin: 0;
}

.ticker a,
.text-link {
    color: var(--green);
    font-weight: 800;
}

.content-section {
    padding-top: 104px;
}

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

.section-heading h2,
.feature-list h2,
.schedule-copy h2,
.about-section h2,
.guide-title h2 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

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

.comic-grid {
    display: grid;
    gap: 24px;
}

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

.comic-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform .25s ease, box-shadow .25s ease;
}

.comic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.cover-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.cover-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    transition: transform .35s ease;
}

.comic-card:hover .cover-link img {
    transform: scale(1.035);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(23, 33, 29, .82);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    display: flex;
    min-height: 230px;
    padding: 20px;
    flex-direction: column;
}

.card-body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.card-copy {
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    margin-top: auto;
    justify-content: space-between;
    color: #79847e;
    font-size: 12px;
}

.split-feature {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
}

.feature-poster {
    position: relative;
    overflow: hidden;
    min-height: 670px;
    border-radius: 34px;
    background: var(--green-dark);
}

.feature-poster img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .78;
}

.poster-caption {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 44px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.poster-caption h2 {
    margin: 4px 0 20px;
    font-size: 46px;
}

.feature-list h2 {
    margin-bottom: 28px;
}

.feature-row {
    display: grid;
    padding: 22px 4px;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--line);
}

.feature-row > span {
    color: var(--orange);
    font: italic 700 20px Georgia, serif;
}

.feature-row strong,
.feature-row small {
    display: block;
}

.feature-row small {
    margin-top: 3px;
    color: var(--muted);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.category-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--accent);
    content: "";
}

.category-icon,
.category-card strong,
.category-card small {
    display: block;
}

.category-icon {
    color: var(--accent);
    font-size: 27px;
}

.category-card strong {
    margin-top: 12px;
    font-size: 19px;
}

.category-card small {
    color: var(--muted);
}

.category-card em {
    position: absolute;
    right: 18px;
    bottom: -16px;
    color: rgba(23, 33, 29, .06);
    font: italic 700 72px Georgia, serif;
}

.mood-strip {
    display: grid;
    margin-top: 104px;
    padding: 34px;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 28px;
    color: #fff;
    background: var(--green-dark);
}

.mood-strip h2 {
    margin: 0;
}

.mood-strip a {
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    font-weight: 800;
}

.mood-strip a span {
    float: right;
}

.mood-strip .eyebrow {
    color: var(--lime);
}

.ranking-section {
    padding-bottom: 30px;
}

.rank-tabs {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.rank-tab {
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.rank-tab.active {
    color: #fff;
    background: var(--green);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.rank-item {
    display: grid;
    padding: 17px 19px;
    grid-template-columns: 40px 64px 1fr auto;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.rank-item > span {
    color: var(--orange);
    font: italic 800 24px Georgia, serif;
}

.rank-item img {
    width: 64px;
    aspect-ratio: 1;
    border-radius: 12px;
}

.rank-item strong,
.rank-item small {
    display: block;
}

.rank-item small {
    color: var(--muted);
}

.rank-item em {
    color: var(--green);
    font-size: 12px;
    font-style: normal;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.shelf-card {
    min-height: 260px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #f1f4ed);
}

.shelf-card > span {
    display: inline-grid;
    width: 50px;
    height: 50px;
    margin-bottom: 35px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    font-size: 21px;
}

.shelf-card small,
.shelf-card strong {
    display: block;
}

.shelf-card small {
    color: var(--green);
}

.shelf-card strong {
    margin-top: 4px;
    font-size: 21px;
}

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

.schedule-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
}

.schedule-copy p:last-child {
    color: var(--muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calendar-item {
    padding: 20px;
    border-radius: 18px;
    background: #e7eee5;
}

.calendar-item span,
.calendar-item strong {
    display: block;
}

.calendar-item span {
    color: var(--green);
    font: italic 800 22px Georgia, serif;
}

.guide-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
}

.guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-steps li {
    display: grid;
    padding: 24px 0;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    border-top: 1px solid var(--line);
}

.guide-steps li > span {
    color: var(--orange);
    font: italic 800 26px Georgia, serif;
}

.guide-steps p {
    margin: 4px 0 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    padding-bottom: 20px;
    grid-template-columns: .7fr 1.3fr;
    gap: 70px;
}

.about-copy {
    padding: 34px;
    border-left: 6px solid var(--lime);
    border-radius: 0 22px 22px 0;
    background: #fff;
}

.about-copy p {
    margin: 0 0 16px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin: 12px 0 0;
    color: var(--muted);
}

.subscribe {
    display: grid;
    margin-top: 104px;
    margin-bottom: 34px;
    padding: 50px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    border-radius: 32px;
    background: var(--lime);
}

.subscribe h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.subscribe-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
}

.subscribe-form > div {
    display: flex;
    gap: 8px;
}

.subscribe-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(23, 33, 29, .18);
    border-radius: 999px;
    background: #fff;
}

.form-note {
    margin: 10px 6px 0;
    font-size: 12px;
}

.site-footer {
    padding: 42px 0;
    color: #dbe4df;
    background: var(--ink);
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 38px;
}

.footer-brand {
    color: var(--lime);
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
    font-size: 12px;
}

.inner-main,
.reader-main {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    padding-block: 18px;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

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

.archive-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 300px;
    padding: 44px;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 36px;
    border-radius: 30px;
    background: #e4ebe1;
}

.archive-hero::after {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border: 70px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 50%;
    content: "";
}

.archive-icon {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    border-radius: 28px;
    color: #fff;
    background: var(--accent);
    font-size: 50px;
    transform: rotate(-4deg);
}

.archive-hero h2 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
}

.archive-hero p:last-child {
    max-width: 760px;
    color: var(--muted);
}

.reader-article {
    max-width: 980px;
}

.chapter-header {
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
}

.chapter-header h2 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.1;
}

.chapter-meta {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

.chapter-meta a {
    color: var(--green);
}

.reading-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--orange);
    background: #f7f4ea;
}

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

.chapter-content {
    max-width: 820px;
    margin: 55px auto;
}

.chapter-text {
    margin: 0 auto 34px;
    color: #344139;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: 20px;
    line-height: 2;
}

.chapter-content figure {
    margin: 0 0 42px;
}

.chapter-content figure img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: #e5e6df;
}

.chapter-content figcaption {
    padding: 10px 4px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chapter-content figure img.is-expanded {
    position: fixed;
    z-index: 300;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 24px;
    object-fit: contain;
    border-radius: 0;
    background: rgba(10, 16, 13, .96);
    cursor: zoom-out;
}

.chapter-end {
    margin-top: 70px;
    padding: 60px 20px;
    border-block: 1px solid var(--line);
    text-align: center;
}

.chapter-end span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2em;
}

.chapter-end h3 {
    margin: 8px 0;
    font-size: 38px;
}

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

.chapter-nav {
    display: grid;
    margin-bottom: 80px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.chapter-nav a {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
}

.chapter-nav a:last-child {
    text-align: right;
}

.chapter-nav .chapter-home {
    color: #fff;
    background: var(--green);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 16px;
        flex-wrap: wrap;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .hero,
    .split-feature,
    .schedule-section,
    .guide-section,
    .about-section,
    .subscribe {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 38px;
    }

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

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

    .mood-strip > div {
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section-shell,
    .header-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .brand img {
        width: 145px;
    }

    .main-nav {
        top: 68px;
    }

    .hero {
        min-height: 0;
        margin-top: 28px;
        padding: 26px;
        gap: 28px;
        border-radius: 26px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-art {
        order: -1;
    }

    .hero-art img {
        aspect-ratio: 4 / 3;
    }

    .ticker {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .content-section {
        padding-top: 72px;
    }

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

    .comic-grid.four,
    .category-grid,
    .shelf-grid,
    .ranking-list,
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        min-height: 210px;
    }

    .split-feature {
        gap: 34px;
    }

    .feature-poster {
        min-height: 520px;
    }

    .mood-strip {
        margin-top: 72px;
        padding: 24px;
        grid-template-columns: 1fr;
    }

    .ranking-section .section-heading {
        align-items: stretch;
    }

    .rank-tabs {
        justify-content: center;
    }

    .rank-item {
        grid-template-columns: 32px 54px 1fr;
    }

    .rank-item em {
        display: none;
    }

    .subscribe {
        margin-top: 72px;
        padding: 28px;
        gap: 28px;
    }

    .subscribe-form > div {
        align-items: stretch;
        flex-direction: column;
    }

    .archive-hero {
        padding: 28px;
        grid-template-columns: 1fr;
    }

    .archive-icon {
        width: 82px;
        height: 82px;
        font-size: 35px;
    }

    .chapter-header {
        padding: 28px;
    }

    .chapter-text {
        font-size: 17px;
    }

    .chapter-nav {
        grid-template-columns: 1fr 1fr;
    }

    .chapter-nav .chapter-home {
        display: none;
    }
}
