:root {
    --ink: #25231f;
    --muted: #746f65;
    --paper: #fffdf8;
    --cream: #f7f3e8;
    --yellow: #ffd84d;
    --yellow-dark: #e6ad00;
    --pink: #ff7895;
    --green: #4f8f70;
    --blue: #397c9f;
    --line: #e8e1d4;
    --shadow: 0 18px 50px rgba(70, 55, 21, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 20px;
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(232, 225, 212, 0.85);
    backdrop-filter: blur(18px);
}

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 15px 8px 15px 8px;
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 9px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    background: var(--yellow);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

main {
    padding: 42px 0 80px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    min-height: 590px;
    padding: 60px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: radial-gradient(circle at 12% 12%, #fff6bf 0, transparent 38%), var(--cream);
    box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
    color: #8a6800;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(56px, 8vw, 96px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-copy > p {
    max-width: 570px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
}

.button.primary {
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
}

.button.secondary {
    background: white;
}

.button.light {
    background: white;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 24px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.hero-art {
    position: relative;
    display: block;
    transform: rotate(2deg);
}

.hero-art img {
    aspect-ratio: 4 / 5;
    border: 8px solid white;
    border-radius: 24px;
    box-shadow: 12px 14px 0 var(--ink);
}

.hero-art span {
    position: absolute;
    right: -20px;
    bottom: 32px;
    padding: 12px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--pink);
    color: white;
    font-weight: 900;
}

.section {
    margin-top: 88px;
}

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

.section-heading h2,
.genre-copy h2,
.about h2,
.subscribe h2 {
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.section-heading > a,
.section-heading > span {
    color: var(--muted);
    font-weight: 700;
}

.chips {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.chips a {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chips a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
}

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

.cover img {
    aspect-ratio: 16 / 10;
    transition: transform 0.35s;
}

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

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--yellow);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 0;
    font-size: 22px;
}

.card-body p {
    min-height: 52px;
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.split-feature {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 30px;
}

.split-main,
.editor-note {
    padding: 34px;
    border-radius: 26px;
}

.split-main {
    border: 1px solid var(--line);
    background: white;
}

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

.timeline a {
    display: grid;
    grid-template-columns: 58px 38px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--line);
}

.timeline time,
.timeline small {
    color: var(--muted);
    font-size: 12px;
}

.timeline a > span:nth-child(3) {
    display: flex;
    flex-direction: column;
}

.timeline b {
    font-size: 13px;
}

.editor-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ink);
    color: white;
}

.editor-note h2 {
    margin: 12px 0;
    font-size: 32px;
    line-height: 1.25;
}

.editor-note p {
    color: #d8d1c5;
}

.editor-note a {
    color: var(--yellow);
    font-weight: 800;
}

.ranking-panel {
    padding: 42px;
    border-radius: 30px;
    background: #34302a;
    color: white;
}

.inverse .section-kicker,
.inverse > a {
    color: var(--yellow);
}

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

.ranking-list li {
    display: grid;
    grid-template-columns: 52px 62px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-list img {
    width: 62px;
    height: 62px;
    border-radius: 15px;
}

.ranking-list li > span:nth-child(3) {
    display: flex;
    flex-direction: column;
}

.rank {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
}

.ranking-list small {
    color: #bdb7ae;
}

.ranking-list li > a {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
}

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

.category-card {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 140px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, white, #fbf7ec);
}

.category-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 16px;
    background: var(--yellow);
    font-size: 22px;
}

.category-card > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.category-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.genre-showcase {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
    padding: 48px;
    border-radius: 32px;
    background: #fff0f3;
}

.genre-cover img {
    aspect-ratio: 4 / 3;
    border: 7px solid white;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.genre-copy ul {
    margin: 20px 0 26px;
    padding: 0;
    list-style: none;
}

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

.mood-card {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: 26px;
    color: white;
}

.mood-card.warm {
    background: linear-gradient(145deg, #cf704f, #743f35);
}

.mood-card.blue {
    background: linear-gradient(145deg, #4285aa, #253b64);
}

.mood-card.green {
    background: linear-gradient(145deg, #619576, #274c3a);
}

.mood-card strong {
    margin: 7px 0;
    font-size: 26px;
}

.bookshelf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 28px;
}

.bookshelf h2 {
    margin: 8px 0;
    font-size: 36px;
}

.bookshelf p {
    margin: 0;
    color: var(--muted);
}

.shelf-demo {
    display: grid;
    gap: 14px;
    padding: 26px;
    border-radius: 20px;
    background: var(--cream);
}

.shelf-demo div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.shelf-demo progress {
    width: 100%;
    accent-color: var(--yellow-dark);
}

.shelf-demo a {
    font-weight: 800;
}

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

.steps > div {
    padding: 28px;
    border-top: 4px solid var(--yellow);
    background: var(--cream);
}

.steps > div > span {
    color: var(--yellow-dark);
    font-size: 28px;
    font-weight: 900;
}

.steps h3 {
    margin: 10px 0 4px;
}

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

.about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    padding: 50px;
    border-radius: 30px;
    background: #f3f7ef;
}

.about-copy p:first-child {
    margin-top: 0;
}

.subscribe {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 60px;
    align-items: center;
    padding: 52px;
    border-radius: 32px;
    background: var(--yellow);
}

.subscribe-copy p {
    color: #5c4c17;
}

.subscribe-status {
    display: block;
    min-height: 26px;
    margin-top: 12px;
    font-weight: 800;
}

.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 22px;
    background: white;
    text-align: center;
}

.qr-pattern {
    display: grid;
    width: 140px;
    height: 140px;
    margin-bottom: 12px;
    place-items: center;
    border: 12px dashed var(--ink);
    background: repeating-linear-gradient(45deg, #fff 0 8px, #25231f 8px 16px);
}

.qr-pattern span {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 18px;
    background: var(--yellow);
    font-size: 36px;
}

.site-footer {
    padding: 50px 20px;
    background: var(--ink);
    color: white;
}

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

.footer-inner p {
    margin: 5px 0 0;
    color: #aaa39a;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid #49443e;
    font-size: 13px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--yellow-dark);
}

.column-hero {
    display: flex;
    min-height: 250px;
    align-items: center;
    gap: 28px;
    padding: 48px;
    border-radius: 30px;
    background: var(--cream);
}

.column-icon {
    display: grid;
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 32px;
    background: var(--yellow);
    box-shadow: 7px 7px 0 var(--ink);
    font-size: 46px;
}

.column-hero h1 {
    margin: 5px 0;
    font-size: 48px;
}

.column-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.list-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
}

.list-cover {
    position: relative;
}

.list-cover img {
    height: 100%;
    min-height: 245px;
}

.list-cover span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--yellow);
    font-size: 12px;
    font-weight: 900;
}

.list-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.tiny-tag {
    color: var(--yellow-dark);
    font-size: 12px;
    font-weight: 900;
}

.list-card h2 {
    margin: 6px 0;
    font-size: 24px;
}

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

.seo-note {
    padding: 35px;
    border-left: 5px solid var(--yellow);
    background: var(--cream);
}

.seo-note h2 {
    margin-top: 0;
}

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

.reader-main {
    width: min(960px, calc(100% - 40px));
}

.reader-article {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
}

.reader-header {
    text-align: center;
}

.reader-header h1 {
    margin: 10px 0;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.2;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    color: var(--muted);
    font-size: 13px;
}

.reading-notice {
    display: flex;
    gap: 16px;
    margin: 36px 0 24px;
    padding: 22px;
    border-radius: 18px;
    background: var(--cream);
}

.reading-notice > span {
    font-size: 30px;
}

.reading-notice h2,
.reading-notice p {
    margin: 0;
}

.reading-notice p {
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.chapter-nav a,
.chapter-nav .disabled {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
}

.chapter-nav a:hover,
.back-button {
    background: var(--yellow);
}

.chapter-nav .disabled {
    color: #b3ada2;
    background: #f7f5f1;
}

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

.comic-pages figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #f0ede7;
}

.comic-pages img {
    aspect-ratio: 4 / 5;
}

.comic-pages figcaption {
    padding: 10px 15px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chapter-end {
    padding: 48px 20px 20px;
    text-align: center;
}

.chapter-end > span {
    font-size: 42px;
}

.chapter-end h2 {
    margin: 8px 0;
}

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

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: 10px;
    }

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

    .nav-link {
        flex: 1 0 18%;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: 45px;
    }

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

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

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

    main {
        padding-top: 28px;
    }

    .hero,
    .genre-showcase,
    .bookshelf,
    .about,
    .subscribe,
    .split-feature {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 36px;
        padding: 32px;
        border-radius: 26px;
    }

    .hero-copy > p {
        font-size: 17px;
    }

    .hero-art {
        width: min(86%, 420px);
        margin: auto;
    }

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

    .mood-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .genre-showcase,
    .bookshelf,
    .about,
    .subscribe {
        gap: 30px;
        padding: 32px;
    }

    .qr-card {
        width: min(100%, 260px);
        justify-self: center;
    }

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

    .reader-article {
        padding: 24px;
    }
}

@media (max-width: 540px) {
    .site-header {
        padding-inline: 14px;
    }

    .brand-text {
        font-size: 19px;
    }

    .nav-link {
        flex-basis: 31%;
        font-size: 12px;
    }

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

    .hero-stats {
        gap: 18px;
    }

    .section {
        margin-top: 62px;
    }

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

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

    .card-body p {
        min-height: 72px;
    }

    .split-main,
    .editor-note,
    .ranking-panel {
        padding: 24px;
    }

    .timeline a {
        grid-template-columns: 42px 1fr auto;
    }

    .timeline-icon {
        display: none;
    }

    .ranking-list li {
        grid-template-columns: 40px 52px 1fr;
    }

    .ranking-list img {
        width: 52px;
        height: 52px;
    }

    .ranking-list li > a {
        grid-column: 3;
    }

    .category-card {
        display: flex;
        min-height: 175px;
        flex-direction: column;
        align-items: flex-start;
    }

    .category-card > b {
        display: none;
    }

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

    .footer-links {
        flex-wrap: wrap;
    }

    .column-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px;
    }

    .column-hero h1 {
        font-size: 40px;
    }

    .list-card {
        grid-template-columns: 125px 1fr;
    }

    .list-card > div {
        padding: 18px;
    }

    .list-card h2 {
        font-size: 20px;
    }

    .list-card p {
        display: none;
    }

    .reader-article {
        padding: 18px;
        border-radius: 20px;
    }

    .reader-meta {
        flex-direction: column;
    }

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