@charset "UTF-8";
:root {
    --ink: #202338;
    --muted: #6e7289;
    --paper: #fffdfc;
    --lilac: #f1edff;
    --pink: #ff6f9d;
    --purple: #7561d6;
    --line: #e9e6f2;
    --shadow: 0 16px 40px rgba(70, 51, 117, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffdfc 0%, #f8f6ff 52%, #fffdfc 100%);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: min(1200px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(233, 230, 242, 0.8);
    background: rgba(255, 253, 252, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 20px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    border-radius: 12px 12px 12px 2px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.main-nav {
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 8px;
    color: var(--muted);
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--purple);
    background: var(--lilac);
}

.nav-icon {
    font-size: 16px;
}

.header-search {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 22px;
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 74px;
    min-height: 520px;
    margin-top: 48px;
    padding: 42px 58px;
    overflow: hidden;
    border-radius: 32px;
    background: radial-gradient(circle at 82% 20%, #ffe3ec 0%, transparent 24%), linear-gradient(120deg, #f0eaff, #fbf6ff 58%, #f0fbff);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.13;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.3;
}

h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.hero-description {
    max-width: 510px;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions,
.chapter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 21px;
    border-radius: 13px;
    font-weight: 800;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(130deg, var(--pink), var(--purple));
    box-shadow: 0 10px 24px rgba(197, 83, 153, 0.25);
}

.button-secondary {
    border: 1px solid var(--line);
    background: #ffffff;
}

.button-dark {
    color: #ffffff;
    background: var(--ink);
}

.hero-art {
    position: relative;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.7);
    border-radius: 27px;
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    right: -22px;
    bottom: 22px;
    display: grid;
    padding: 14px 18px;
    color: var(--ink);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-badge span {
    color: var(--muted);
    font-size: 12px;
}

.search-panel {
    margin-top: 64px;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.search-panel h2 {
    margin-bottom: 17px;
    font-size: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline-color: var(--purple);
    font: inherit;
}

.search-form button {
    padding: 0 23px;
    color: #ffffff;
    border: 0;
    border-radius: 11px;
    background: var(--purple);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.search-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.section-block {
    margin-top: 88px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 28px;
}

.section-heading .eyebrow,
.section-heading h2 {
    grid-column: 1;
}

.section-heading .eyebrow {
    margin-bottom: -8px;
}

.section-heading a {
    grid-column: 2;
    grid-row: 2;
    color: var(--purple);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.category-card {
    min-height: 190px;
    padding: 20px 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 19px;
    color: var(--purple);
    border-radius: 13px;
    background: var(--lilac);
    font-size: 21px;
}

.category-card h3 {
    font-size: 15px;
}

.category-card p,
.comic-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.spotlight-layout,
.shelf-layout,
.about-section,
.app-section,
.korean-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 58px;
    padding: 46px;
    border-radius: 28px;
}

.spotlight-layout {
    background: #fff2f6;
}

.spotlight-copy p:not(.eyebrow) {
    color: var(--muted);
}

.spotlight-image {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.text-link {
    color: var(--purple);
    font-weight: 800;
}

.comic-grid {
    display: grid;
    gap: 20px;
}

.four-grid {
    grid-template-columns: repeat(4, 1fr);
}

.five-grid {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--lilac);
}

.card-copy {
    padding: 15px;
}

.card-copy .eyebrow {
    margin-bottom: 2px;
    font-size: 10px;
}

.card-copy h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
}

.chart-section {
    padding: 0 22px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    gap: 13px;
    padding: 20px;
    border-top: 3px solid var(--pink);
    border-radius: 0 0 16px 16px;
    background: #ffffff;
}

.rank-number {
    color: var(--pink);
    font-size: 26px;
    font-weight: 900;
}

.rank-list h3,
.rank-list p {
    margin: 0;
}

.rank-list p {
    color: var(--muted);
    font-size: 12px;
}

.rank-list a {
    color: var(--purple);
    font-weight: 800;
}

.korean-banner {
    color: #ffffff;
    background: linear-gradient(115deg, #27223f, #563f8b);
}

.korean-banner .eyebrow {
    color: #f9b7cc;
}

.banner-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.shelf-layout {
    align-items: start;
    background: #f3f8ff;
}

.shelf-header p:not(.eyebrow) {
    color: var(--muted);
}

.shelf-items {
    display: grid;
    gap: 16px;
}

.shelf-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 15px;
    background: #ffffff;
}

.shelf-cover {
    width: 55px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
}

.shelf-item h3,
.shelf-item p {
    margin: 0;
}

.shelf-item p {
    color: var(--muted);
    font-size: 12px;
}

.progress {
    width: 160px;
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--line);
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

blockquote {
    margin: 0;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(70, 51, 117, 0.06);
}

cite {
    display: block;
    margin-top: 17px;
    color: var(--purple);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.about-section {
    grid-template-columns: 170px 1fr;
    border: 1px solid var(--line);
    background: #ffffff;
}

.about-symbol {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    color: #ffffff;
    border-radius: 46px 46px 46px 8px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-size: 67px;
    font-weight: 900;
}

.about-section p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.app-section {
    margin-bottom: 86px;
    background: linear-gradient(120deg, #f5efff, #fff4f8);
}

.app-copy p:not(.eyebrow) {
    color: var(--muted);
}

.qr-card {
    justify-self: end;
    width: 230px;
    padding: 22px;
    text-align: center;
    border: 6px solid #ffffff;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.qr-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.qr-pattern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
}

.qr-pattern span {
    aspect-ratio: 1;
    background: var(--ink);
}

.qr-pattern span:nth-child(2n) {
    background: var(--pink);
}

.site-footer {
    padding-top: 52px;
    color: #e9e6f7;
    background: #28243c;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
}

.site-footer h2 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 21px;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    padding: 18px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.inner-main,
.reader-main {
    padding-top: 44px;
}

.listing-hero,
.reader-header {
    padding: 45px;
    border-radius: 26px;
    background: linear-gradient(115deg, #f1ecff, #fff8fb);
}

.listing-hero > p:not(.eyebrow),
.reader-header > p:not(.eyebrow) {
    max-width: 740px;
    margin-bottom: 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--purple);
}

.listing-tools {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.listing-tools h2,
.listing-tools p {
    margin: 0;
}

.listing-tools p,
.seo-note p {
    color: var(--muted);
}

.seo-note {
    padding: 36px 42px;
    margin-bottom: 80px;
    border-left: 4px solid var(--purple);
    background: #ffffff;
}

.seo-note p {
    margin-bottom: 0;
}

.chapter-title {
    color: var(--purple);
    font-size: 21px;
    font-weight: 800;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

.reading-note {
    margin-top: 28px;
    padding: 24px 30px;
    border-radius: 17px;
    background: #fff7e9;
}

.reading-note h2,
.reading-note p {
    margin-bottom: 0;
}

.reading-note p {
    color: #6f604d;
}

.comic-reader {
    width: min(820px, calc(100% - 48px));
    margin: 42px auto 0;
}

.comic-page {
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.reader-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--lilac);
}

figcaption {
    padding: 11px 16px;
    color: var(--muted);
    font-size: 12px;
}

.chapter-end {
    margin-bottom: 86px;
    padding: 38px;
    text-align: center;
    border-radius: 23px;
    background: #f1ecff;
}

.chapter-end p {
    color: var(--muted);
}

.chapter-actions {
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1050px) {
    .brand-text {
        display: none;
    }

    .nav-link {
        padding: 8px 5px;
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .five-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rank-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 32px, 1200px);
    }

    .header-inner {
        min-height: 64px;
        justify-content: space-between;
    }

    .brand-text {
        display: inline;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        padding: 6px;
        color: var(--ink);
        border: 0;
        background: transparent;
        font-size: 23px;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        display: none;
        width: 100%;
        padding: 13px 16px;
        justify-content: flex-start;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line);
        background: #fffdfc;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        font-size: 13px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        margin-top: 26px;
        padding: 34px 24px;
    }

    .hero-badge {
        right: 12px;
        bottom: 12px;
    }

    .section-block {
        margin-top: 60px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .category-grid,
    .four-grid,
    .five-grid,
    .rank-list,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        min-height: 165px;
    }

    .spotlight-layout,
    .shelf-layout,
    .about-section,
    .app-section,
    .korean-banner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 24px;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-symbol {
        width: 90px;
        height: 90px;
        border-radius: 27px 27px 27px 6px;
        font-size: 43px;
    }

    .qr-card {
        justify-self: start;
    }

    .footer-grid,
    .listing-tools {
        display: grid;
        gap: 18px;
    }

    .listing-hero,
    .reader-header {
        padding: 31px 24px;
    }

    .comic-reader {
        width: min(100% - 32px, 820px);
    }

    .chapter-end {
        padding: 30px 20px;
    }
}

@media (max-width: 420px) {
    .brand-text {
        font-size: 14px;
    }

    .header-search {
        display: none;
    }

    .category-grid,
    .four-grid,
    .five-grid,
    .rank-list,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        display: grid;
    }

    .search-form button {
        min-height: 44px;
    }

    .chapter-actions {
        display: grid;
    }
}
