:root {
    --banana: #ffd43b;
    --banana-deep: #f5b800;
    --ink: #1f2329;
    --paper: #fffdf5;
    --cream: #fff7d6;
    --coral: #ff6b4a;
    --mint: #35c79a;
    --line: #e8e2cf;
    --muted: #6f706d;
    --white: #ffffff;
    --shadow: 0 14px 38px rgba(31, 35, 41, 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", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(31, 35, 41, 0.08);
    background: rgba(255, 253, 245, 0.94);
    backdrop-filter: blur(16px);
}

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

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

.brand img {
    width: 44px;
    height: 44px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: var(--banana);
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: var(--banana);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 44px;
    border: 2px solid var(--ink);
    border-radius: 28px;
    background: linear-gradient(115deg, var(--banana) 0 58%, #ffe991 58% 100%);
    box-shadow: 8px 8px 0 var(--ink);
}

.hero::after {
    position: absolute;
    right: 3%;
    bottom: -34px;
    width: 230px;
    height: 230px;
    border: 28px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    content: "";
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    min-height: 380px;
    align-items: center;
    gap: 40px;
    padding: 58px 64px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 8px;
    color: #594500;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.7rem);
    line-height: 1;
    letter-spacing: -0.08em;
}

.hero-copy {
    max-width: 680px;
    margin: 22px 0 30px;
    font-size: 1.08rem;
}

.button-row,
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--ink);
    color: var(--white);
    padding: 9px 18px;
    font-weight: 800;
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.7);
}

.button.secondary {
    background: var(--white);
    color: var(--ink);
}

.hero-badge {
    justify-self: center;
    transform: rotate(5deg);
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    padding: 42px 26px;
    text-align: center;
    box-shadow: 10px 10px 0 var(--coral);
}

.hero-badge strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.notice-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 14px 18px;
    box-shadow: var(--shadow);
}

.notice-label {
    border-radius: 999px;
    background: var(--coral);
    color: var(--white);
    padding: 3px 10px;
    font-weight: 800;
}

.section {
    margin-top: 88px;
}

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

.section-heading h2,
.page-title h1,
.reader-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.2;
}

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

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

.category-card {
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 180ms ease;
}

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

.category-card .icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--banana);
    font-size: 1.3rem;
    font-weight: 900;
}

.category-card h3 {
    margin: 16px 0 6px;
}

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

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

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 180ms ease;
}

.comic-cover {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--cream);
}

.comic-body {
    padding: 17px;
}

.comic-body h3 {
    margin: 4px 0 6px;
    font-size: 1.08rem;
}

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

.tag {
    display: inline-flex;
    border-radius: 999px;
    background: var(--cream);
    padding: 2px 9px;
    font-size: 0.82rem;
    font-weight: 800;
}

.rank-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.rank-feature {
    min-height: 100%;
    border-radius: 24px;
    background: var(--ink);
    color: var(--white);
    padding: 34px;
}

.rank-feature strong {
    display: block;
    color: var(--banana);
    font-size: 5rem;
    line-height: 1;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 15px 18px;
}

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

.korean-showcase {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border-radius: 26px;
    background: #dff8ef;
}

.korean-showcase img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.showcase-copy {
    align-self: center;
    padding: 54px;
}

.update-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.update-item {
    position: relative;
    border-top: 4px solid var(--ink);
    padding: 24px 18px 0 0;
}

.update-item::before {
    position: absolute;
    top: -10px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--banana);
    content: "";
}

.genre-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.genre-column {
    border-radius: 22px;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
}

.genre-column:nth-child(2) {
    background: var(--cream);
}

.genre-column:nth-child(3) {
    background: #e2f8f1;
}

.genre-column ul {
    margin: 14px 0 0;
    padding-left: 20px;
}

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

.step {
    border-left: 5px solid var(--banana-deep);
    background: var(--white);
    padding: 22px;
}

.step strong {
    color: var(--coral);
    font-size: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: var(--banana);
}

.stat {
    padding: 26px;
    text-align: center;
}

.stat + .stat {
    border-left: 2px solid var(--ink);
}

.stat strong {
    display: block;
    font-size: 2rem;
}

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

.quote {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    padding: 28px;
}

.quote::before {
    color: var(--banana-deep);
    content: "“";
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.5;
}

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

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    padding: 16px 20px;
}

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

.about-panel {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 36px;
    border-radius: 26px;
    background: var(--ink);
    color: var(--white);
    padding: 48px;
}

.about-panel h2 {
    margin-top: 0;
    color: var(--banana);
    font-size: 2.4rem;
}

.app-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    border: 2px solid var(--ink);
    border-radius: 28px;
    background: var(--banana);
    padding: 44px;
    box-shadow: 8px 8px 0 var(--coral);
}

.qr-mark {
    display: grid;
    width: 148px;
    height: 148px;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    border: 8px solid var(--white);
    background: var(--white);
}

.qr-mark span {
    background: var(--ink);
}

.qr-mark span:nth-child(3n) {
    background: var(--banana-deep);
}

.site-footer {
    margin-top: 88px;
    background: var(--ink);
    color: #d7d7d7;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
    color: var(--muted);
    font-size: 0.92rem;
}

.page-title,
.reader-head {
    margin-top: 24px;
    border-radius: 24px;
    background: var(--cream);
    padding: 40px;
}

.page-title p,
.reader-head p {
    max-width: 760px;
    margin-bottom: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 38px 0 22px;
}

.reader-note,
.chapter-end {
    margin: 30px 0;
    border-left: 5px solid var(--coral);
    border-radius: 0 14px 14px 0;
    background: var(--white);
    padding: 18px 22px;
    box-shadow: var(--shadow);
}

.reader-content {
    width: min(860px, 100%);
    margin: 36px auto 0;
}

.comic-page {
    margin-bottom: 28px;
}

.comic-page img {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    object-fit: cover;
    background: var(--cream);
}

.comic-page figcaption {
    padding: 10px 4px;
    color: var(--muted);
    text-align: center;
}

.chapter-nav {
    justify-content: space-between;
    margin-top: 34px;
}

.chapter-nav .button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: none;
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--banana);
    font-weight: 900;
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

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

    .main-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        grid-template-columns: repeat(2, 1fr);
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--white);
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
    }

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

    .hero-inner,
    .korean-showcase,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .hero-badge {
        display: none;
    }

    .update-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 0;
    }
}

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

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

    .main-nav {
        top: 68px;
    }

    .hero {
        margin-top: 28px;
        border-radius: 20px;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .hero-inner {
        min-height: auto;
        padding: 38px 24px;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .notice-bar {
        grid-template-columns: 1fr;
    }

    .section {
        margin-top: 62px;
    }

    .section-heading,
    .footer-inner,
    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .comic-grid,
    .rank-panel,
    .genre-board,
    .steps,
    .quotes,
    .about-panel,
    .app-panel {
        grid-template-columns: 1fr;
    }

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

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

    .comic-body {
        padding: 12px;
    }

    .update-timeline {
        grid-template-columns: 1fr;
    }

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

    .stat + .stat {
        border-left: 0;
    }

    .stat:nth-child(even) {
        border-left: 2px solid var(--ink);
    }

    .stat:nth-child(n + 3) {
        border-top: 2px solid var(--ink);
    }

    .showcase-copy,
    .about-panel,
    .app-panel,
    .page-title,
    .reader-head {
        padding: 28px 22px;
    }

    .qr-mark {
        width: 132px;
        height: 132px;
    }

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