:root {
    --ink: #16213e;
    --muted: #65718a;
    --paper: #ffffff;
    --mist: #f4f7ff;
    --purple: #6c55d9;
    --pink: #ef7193;
    --line: #e3e8f3;
    --night: #19203d;
}

* {
    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;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(840px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 11px 11px 11px 3px;
}

.main-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 9px;
    color: #4e5870;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--purple);
    background: #f0edff;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--purple);
    font-size: 14px;
    font-weight: 700;
}

.hero {
    margin-top: 42px;
    padding: 56px 0 70px;
    overflow: hidden;
    background: linear-gradient(115deg, #f2f5ff 0%, #fff8fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.15;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.25;
}

h3 {
    font-size: 18px;
    line-height: 1.35;
}

.hero-copy > p:not(.eyebrow),
.feature-copy > p,
.about-grid p,
.download-grid p {
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 26px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), #9b59cf);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(108, 85, 217, 0.22);
    font-weight: 700;
}

.button-light {
    color: var(--purple);
    background: #fff;
}

.text-link {
    color: var(--purple);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin: 36px 0 0;
}

.hero-stats div {
    display: grid;
}

.hero-stats dt {
    color: var(--purple);
    font-size: 22px;
    font-weight: 800;
}

.hero-stats dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hero-art {
    position: relative;
    margin: 0 auto;
}

.hero-art img {
    width: 390px;
    aspect-ratio: 0.88;
    object-fit: cover;
    border: 10px solid #fff;
    border-radius: 28px;
    box-shadow: 20px 20px 0 #e7dfff;
}

.hero-note {
    position: absolute;
    right: -30px;
    bottom: 22px;
    padding: 13px 18px;
    color: var(--ink);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(22, 33, 62, 0.12);
}

.hero-note span,
.hero-note strong {
    display: block;
}

.hero-note span {
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
}

.quick-links {
    margin-top: -30px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-grid a {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 45, 86, 0.06);
}

.quick-grid a > span {
    grid-row: span 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--purple);
    background: #f0edff;
    border-radius: 10px;
}

.quick-grid small {
    color: var(--muted);
}

.section {
    margin-top: 92px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head h2 {
    margin-bottom: 0;
}

.centered {
    justify-content: center;
    text-align: center;
}

.centered > div > p:last-child {
    color: var(--muted);
}

.comic-grid {
    display: grid;
    gap: 18px;
}

.comic-grid.five {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    min-width: 0;
}

.cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--mist);
    border-radius: 14px;
}

.cover img {
    width: 100%;
    aspect-ratio: 0.71;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover:hover img {
    transform: scale(1.04);
}

.chapter {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    color: #fff;
    background: rgba(22, 33, 62, 0.78);
    border-radius: 6px;
    font-size: 12px;
}

.comic-info {
    padding: 12px 2px;
}

.comic-info p,
.comic-info span {
    color: var(--muted);
    font-size: 13px;
}

.comic-info p {
    margin-bottom: 4px;
}

.comic-info h3 {
    margin-bottom: 4px;
}

.soft-section {
    padding: 76px 0;
    background: var(--mist);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: grid;
    min-height: 180px;
    align-content: start;
    gap: 9px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5eaf8;
    border-radius: 16px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(58, 60, 115, 0.1);
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #f3efff;
    border-radius: 12px;
    font-size: 22px;
}

.category-card > span:last-child {
    color: var(--muted);
    font-size: 14px;
}

.split-feature {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.feature-cover img {
    width: 100%;
    aspect-ratio: 0.83;
    object-fit: cover;
    border-radius: 22px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 24px 0;
    list-style: none;
}

.tag-list li {
    padding: 4px 11px;
    color: var(--purple);
    background: #f0edff;
    border-radius: 999px;
    font-size: 13px;
}

.dark-section {
    padding: 76px 0;
    color: #fff;
    background: var(--night);
}

.light-head .eyebrow,
.light-head h2,
.light {
    color: #fff;
}

.korean-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 22px;
}

.wide-comic {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.wide-comic::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 55%;
    content: "";
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.wide-comic img {
    width: 100%;
    aspect-ratio: 1.75;
    object-fit: cover;
}

.wide-comic span {
    position: absolute;
    z-index: 1;
    bottom: 24px;
    left: 24px;
}

.wide-comic small,
.wide-comic strong {
    display: block;
}

.wide-comic strong {
    font-size: 24px;
}

.mini-list {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.mini-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    background: var(--night);
}

.mini-list a > span {
    color: #b9aaff;
    font-size: 23px;
    font-weight: 800;
}

.mini-list small {
    color: #b7c0d8;
}

.ranking-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: rank;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 90px 1fr 120px 130px;
    align-items: center;
    min-height: 62px;
    border-bottom: 1px solid var(--line);
}

.ranking-list span {
    color: var(--purple);
    font-size: 20px;
    font-weight: 800;
}

.ranking-list em,
.ranking-list small {
    color: var(--muted);
    font-style: normal;
}

.schedule-section {
    padding: 74px 0;
    background: #fff7fb;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.calendar-grid div {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #fff;
    border-radius: 12px;
}

.calendar-grid strong {
    color: var(--pink);
}

.calendar-grid span {
    padding-top: 8px;
    border-top: 1px solid #f2e4eb;
    font-size: 14px;
}

.editorial-section {
    padding: 68px 0;
    background: #f4f7ff;
}

.editorial-grid,
.shelf-grid,
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.editorial-books {
    display: grid;
    gap: 9px;
}

.editorial-books a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    font-weight: 700;
}

.editorial-books span {
    color: var(--pink);
}

.shelf-grid {
    grid-template-columns: 0.7fr 1.3fr;
}

.shelf-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    min-height: 200px;
    align-items: end;
}

.shelf-visual span {
    display: grid;
    place-items: center;
    min-height: 130px;
    color: #fff;
    background: linear-gradient(160deg, var(--purple), var(--pink));
    border-radius: 16px 16px 3px 3px;
    font-size: 32px;
}

.shelf-visual span:nth-child(2) {
    min-height: 180px;
    background: linear-gradient(160deg, #2d7899, #80c2cc);
}

.guide-section {
    padding: 75px 0;
    background: #fdfdff;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.guide-grid > div {
    padding: 0 22px 0 0;
    border-right: 1px solid var(--line);
}

.guide-grid > div:last-child {
    border: 0;
}

.guide-grid span {
    color: var(--pink);
    font-size: 30px;
    font-weight: 800;
}

.guide-grid p {
    color: var(--muted);
}

.about-section {
    padding: 76px 0;
    background: linear-gradient(135deg, #17203e, #332d69);
}

.about-grid h2,
.about-grid .eyebrow {
    color: #fff;
}

.about-grid p {
    color: #d9def1;
}

.download-band {
    margin-top: 92px;
    padding: 60px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), #ea6e96);
}

.download-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 60px;
    align-items: center;
}

.download-grid .eyebrow,
.download-grid p {
    color: #fff;
}

.qr-card {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 20px;
    color: var(--ink);
    background: #fff;
    border-radius: 16px;
    text-align: center;
}

.qr-card span {
    color: var(--muted);
    font-size: 12px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(5, 14px);
    gap: 4px;
    width: max-content;
}

.qr-grid i {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--ink);
}

.qr-grid i:nth-child(2n) {
    background: var(--pink);
}

.qr-grid i:nth-child(3n) {
    background: transparent;
}

.site-footer {
    padding: 35px 0;
    color: #b7c0d8;
    background: #12182f;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    align-items: center;
    gap: 20px;
}

.footer-inner strong {
    color: #fff;
}

.footer-inner p {
    margin: 4px 0 0;
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
}

.page-banner {
    margin-top: 34px;
    padding: 54px 0;
    background: linear-gradient(115deg, #f3f5ff, #fff2f7);
}

.page-banner h1 {
    margin-bottom: 10px;
}

.page-banner p:last-child {
    max-width: 670px;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--purple);
}

.filter-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.filter-row div {
    display: flex;
    gap: 16px;
}

.filter-row a {
    color: var(--muted);
    font-size: 14px;
}

.filter-row .is-filter-active {
    color: var(--purple);
}

.seo-copy {
    padding: 56px 0;
    background: var(--mist);
}

.seo-copy p {
    color: var(--muted);
}

.reader {
    padding-top: 36px;
}

.reader-head {
    padding-bottom: 20px;
}

.reader-head h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.reader-head > p:last-child {
    color: var(--muted);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 17px;
    color: var(--muted);
    font-size: 14px;
}

.reading-note {
    display: flex;
    gap: 14px;
    margin-bottom: 38px;
    padding: 16px 20px;
    background: #fff8dc;
    border-radius: 12px;
}

.reading-note > span {
    color: #d89a18;
    font-size: 25px;
}

.reading-note p {
    margin: 2px 0 0;
    color: #746233;
    font-size: 14px;
}

.comic-pages {
    display: grid;
    justify-content: center;
    background: #e9edf4;
}

.comic-page {
    width: min(760px, 100%);
    margin: 0;
    background: #fff;
}

.comic-page img {
    width: 100%;
    aspect-ratio: 0.69;
    object-fit: cover;
}

.comic-page figcaption {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chapter-end {
    margin-top: 48px;
    padding: 35px 20px;
    text-align: center;
}

.chapter-end > span {
    color: var(--pink);
    font-size: 28px;
}

.chapter-end h2 {
    margin: 6px 0;
    font-size: 25px;
}

.chapter-end p {
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-bottom: 70px;
}

.chapter-nav > :last-child {
    text-align: right;
}

.chapter-nav span {
    color: var(--muted);
}

@media (max-width: 960px) {
    .header-inner {
        gap: 14px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-action {
        display: none;
    }

    .hero-grid,
    .split-feature {
        grid-template-columns: 1fr 0.8fr;
        gap: 35px;
    }

    .comic-grid.five {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand {
        font-size: 16px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .nav-link {
        padding: 8px;
        font-size: 13px;
    }

    .nav-link span:first-child {
        display: none;
    }

    .hero {
        margin-top: 25px;
        padding: 42px 0;
    }

    .hero-grid,
    .split-feature,
    .korean-layout,
    .editorial-grid,
    .shelf-grid,
    .about-grid,
    .download-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-art {
        margin-top: 15px;
    }

    .hero-art img {
        width: 80%;
        margin: 0 auto;
    }

    .hero-note {
        right: 0;
    }

    .quick-grid,
    .comic-grid.five,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section,
    .download-band {
        margin-top: 62px;
    }

    .soft-section,
    .dark-section,
    .schedule-section,
    .editorial-section,
    .guide-section,
    .about-section {
        padding: 52px 0;
    }

    .section-head {
        align-items: start;
    }

    .section-head:not(.centered) {
        display: block;
    }

    .section-head:not(.centered) > .text-link {
        display: inline-block;
        margin-top: 8px;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid div {
        grid-template-columns: 70px 1fr 1fr;
        align-items: center;
    }

    .calendar-grid span {
        padding: 0;
        border: 0;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .guide-grid > div {
        padding: 0 0 15px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .ranking-list li {
        grid-template-columns: 48px 1fr auto;
    }

    .ranking-list em {
        display: none;
    }

    .ranking-list small {
        font-size: 12px;
    }

    .filter-row {
        display: block;
    }

    .filter-row div {
        margin-top: 10px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .chapter-nav {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .chapter-nav > :last-child {
        text-align: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
