@charset "UTF-8";

:root {
    --ink: #182638;
    --muted: #5d6b7b;
    --paper: #f6f8fb;
    --line: #dfe5ed;
    --yellow: #ffe04b;
    --blue: #2861d7;
    --white: #ffffff;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; background: #e4eaf2; }
svg { flex-shrink: 0; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: 28px; letter-spacing: -.6px; }
h3 { font-size: 18px; }
p + p { margin-top: 16px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 20px; top: -100px; z-index: 20; background: white; padding: 12px; }
.skip:focus { top: 12px; }
.icon { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.eyebrow { font-size: 13px; font-weight: 750; letter-spacing: 2px; text-transform: uppercase; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 14px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand strong { display: block; font-size: 23px; letter-spacing: -1px; }
.brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 3px; line-height: 1.4; }
.search { margin-left: auto; display: flex; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 5px; width: 360px; }
.search input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 7px 10px; outline-offset: 0; }
.search button { border: 0; border-radius: 7px; background: var(--ink); color: white; width: 44px; flex-shrink: 0; }
.shelf-link { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.nav { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; padding-block: 0 12px; }
.nav a { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; padding: 11px 8px; border-radius: 8px; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--ink); color: white; }
.section { margin-top: 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { display: flex; gap: 12px; align-items: center; }
.section-heading h2 .icon { width: 27px; height: 27px; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 650; font-size: 14px; }
.hero { margin-top: 28px; position: relative; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ink); color: white; border-radius: 24px; overflow: hidden; min-height: 410px; }
.hero-copy { padding: 43px 42px; align-self: center; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(30px, 3.3vw, 46px); margin: 15px 0 13px; letter-spacing: -2px; }
.hero h1 a:hover { color: var(--yellow); }
.hero-lead { font-size: 20px; font-weight: 600; }
.hero-copy .intro { color: #c8d3e2; margin-top: 16px; font-size: 14px; max-width: 440px; }
.hero-art { position: relative; min-width: 0; }
.hero-art img { height: 100%; aspect-ratio: 6 / 5; object-position: center; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 35%), linear-gradient(0deg, #0e2030ba, transparent 60%); }
.hero-caption { position: absolute; z-index: 1; bottom: 27px; left: 38px; right: 25px; }
.hero-caption strong { display: block; font-size: 28px; margin: 5px 0; }
.hero-caption span { font-size: 14px; color: #e8f0f7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; font-size: 14px; font-weight: 700; min-height: 45px; }
.button:hover { color: var(--ink); background: #eaf0f7; }
.button.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.button.dark { background: var(--ink); border-color: var(--ink); color: white; }
.button.ghost { background: transparent; color: white; border-color: #ffffff50; }
.button:disabled { opacity: .45; cursor: default; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); padding: 22px 0; }
.stat-strip div { display: flex; align-items: center; justify-content: center; gap: 13px; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border: 0; }
.stat-strip strong { font-size: 22px; }
.stat-strip span { font-size: 14px; color: var(--muted); }
.cover-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.cover-card { min-width: 0; }
.cover-link { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #e3e8f0; }
.cover-link img { aspect-ratio: 3 / 4; transition: transform .3s ease; }
.cover-link:hover img { transform: scale(1.04); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; background: var(--yellow); color: var(--ink); border-radius: 5px; }
.cover-link .badge { position: absolute; bottom: 10px; left: 10px; }
.cover-card h3 { margin: 12px 0 4px; font-size: 16px; }
.cover-card .meta { font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: flex-start; gap: 14px; }
.category .icon { width: 30px; height: 30px; margin-top: 3px; color: var(--blue); }
.category p { margin-top: 7px; font-size: 13px; color: var(--muted); }
.category:hover { border-color: var(--blue); }
.ranking { background: #eaf0fa; padding: 30px; border-radius: 20px; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rank-column { background: white; padding: 22px; border-radius: 13px; }
.rank-column h3 { padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 17px 0 0; }
.rank-row b { font-size: 28px; color: #a2b3ca; line-height: 1; font-style: italic; }
.rank-row:first-of-type b { color: var(--blue); }
.rank-row a { font-size: 15px; font-weight: 650; }
.rank-row small { display: block; font-size: 12px; color: var(--muted); }
.feature { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature-image { position: relative; }
.feature-image img { height: 100%; aspect-ratio: 6 / 5; }
.feature-image .badge { position: absolute; left: 25px; top: 25px; }
.feature-copy { padding: 38px; }
.feature-copy h2 { font-size: 34px; margin: 14px 0; }
.feature-copy p { color: var(--muted); }
.feature-note { margin-top: 24px; border-left: 3px solid var(--yellow); padding-left: 16px; font-size: 15px; }
.timeline { border-top: 2px solid var(--ink); }
.update-row { display: grid; grid-template-columns: 85px 1.2fr 1fr 100px; gap: 20px; padding: 18px 8px; border-bottom: 1px solid var(--line); align-items: center; }
.update-row time { font-size: 14px; color: var(--muted); }
.update-row a { font-weight: 700; }
.update-row .chapter { font-size: 14px; color: var(--muted); font-weight: 400; }
.korean { background: var(--ink); color: white; padding: 34px; border-radius: 20px; }
.korean .section-heading p { color: #b8c6d9; }
.korean-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.korean-card { border-top: 1px solid #ffffff35; padding-top: 18px; }
.korean-card img { aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: 15px; }
.korean-card p { font-size: 13px; color: #bac7d8; margin-top: 8px; }
.korean a:hover { color: var(--yellow); }
.complete-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.complete-card { display: flex; gap: 23px; align-items: center; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.complete-card > a { width: 105px; flex-shrink: 0; }
.complete-card img { aspect-ratio: 3 / 4; border-radius: 8px; }
.complete-card p { font-size: 14px; color: var(--muted); margin: 9px 0; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.route-card { border-top: 4px solid var(--blue); padding: 25px 25px 22px; background: #eaf0fa; }
.route-card:nth-child(2) { background: #fff4d3; border-color: #d08a00; }
.route-card:nth-child(3) { background: #e5f4f1; border-color: #137865; }
.route-card .icon { width: 30px; height: 30px; margin-bottom: 18px; }
.route-card p { font-size: 14px; color: var(--muted); margin: 12px 0 20px; }
.shelf-banner { display: flex; gap: 25px; align-items: center; border: 2px dashed #afbed2; border-radius: 18px; padding: 30px; }
.shelf-banner > .icon { width: 44px; height: 44px; color: var(--blue); }
.shelf-banner p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.shelf-banner .button { margin-left: auto; flex-shrink: 0; }
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; padding: 20px 0; }
.about .eyebrow { color: var(--blue); }
.about h2 { margin: 12px 0 20px; font-size: 35px; }
.about p { color: var(--muted); font-size: 15px; }
.about-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.about-points span { border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font-size: 13px; }
.faq { border-top: 1px solid var(--line); }
details { padding: 20px 0; border-bottom: 1px solid var(--line); }
summary { font-weight: 650; cursor: pointer; }
details p { padding-top: 12px; color: var(--muted); max-width: 900px; }
.subscribe { background: var(--yellow); border-radius: 20px; padding: 35px 40px; display: flex; align-items: center; gap: 32px; margin-bottom: 55px; }
.subscribe-mark { width: 95px; height: 95px; flex-shrink: 0; }
.subscribe-mark img { width: 100%; height: 100%; border-radius: 20px; }
.subscribe h2 { margin-bottom: 8px; }
.subscribe p { color: #3b4652; max-width: 650px; font-size: 14px; }
.subscribe .actions { margin-top: 15px; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-inner nav { display: flex; gap: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; font-size: 14px; margin: 26px 0; color: var(--muted); }
.page-intro { background: white; padding: 35px; border-left: 5px solid var(--blue); border-radius: 0 16px 16px 0; }
.page-intro h1 { font-size: 36px; margin: 10px 0 15px; }
.page-intro p { max-width: 940px; color: var(--muted); }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 30px 0; gap: 16px; }
.catalog-tools select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.catalog-card { display: flex; gap: 23px; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 24px; min-width: 0; }
.catalog-card > a { width: 135px; flex-shrink: 0; }
.catalog-card img { aspect-ratio: 3 / 4; border-radius: 9px; }
.catalog-card h2 { font-size: 21px; margin: 8px 0; }
.catalog-card p { font-size: 14px; color: var(--muted); margin: 10px 0; }
.catalog-card .text-link { font-size: 13px; }
.catalog-card > div { min-width: 0; }
.catalog-card .text-link { white-space: normal; }
.subscribe > div:last-child { min-width: 0; }
.detail-hero { display: grid; grid-template-columns: 255px 1fr; gap: 40px; padding: 35px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.detail-hero img { aspect-ratio: 3 / 4; border-radius: 12px; }
.detail-hero h1 { font-size: 38px; margin: 15px 0; }
.detail-hero .synopsis { margin-top: 20px; color: var(--muted); }
.chapter-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chapter-list a { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.reading-note { padding: 25px; background: #eaf0fa; border-radius: 13px; }
.reading-note h2 { font-size: 20px; margin-bottom: 10px; }
.reading-note p { font-size: 14px; color: var(--muted); }
.reader-heading { text-align: center; margin-bottom: 25px; }
.reader-heading h1 { font-size: 32px; margin: 14px 0; }
.reader-tools { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 25px 0; }
.reader { width: min(780px, 100%); margin: 35px auto; }
.comic-panel { margin: 0 0 25px; background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.comic-panel img { aspect-ratio: 4 / 3; object-fit: cover; }
.comic-panel figcaption { padding: 24px 28px; font-size: var(--reader-font, 19px); line-height: 1.9; }
.panel-no { display: block; color: var(--blue); font-size: 12px; letter-spacing: 2px; margin-bottom: 8px; font-weight: 700; }
.chapter-end { padding: 30px; text-align: center; background: white; border-radius: 13px; }
.chapter-end p { color: var(--muted); margin-top: 10px; }
.reader-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0; }
body.night { --paper: #14202e; --ink: #e4ecf5; --muted: #b2c1d2; --line: #38485c; --white: #1e2c3e; }
body.night .site-header, body.night .site-footer, body.night .comic-panel, body.night .chapter-end { background: #1e2c3e; }
body.night .reading-note { background: #24364e; }
body.night .button { color: #172638; }
body.night .nav a[aria-current="page"] { color: #14202e; }
.search-results { margin-top: 24px; padding: 28px; background: white; border: 2px solid var(--blue); border-radius: 16px; }
.search-results h2 { font-size: 22px; }
.result-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.result-list a { padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.result-list small { display: block; color: var(--muted); }
.feedback { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 12px 22px; border-radius: 10px; background: #182638; color: white; box-shadow: 0 5px 30px #0003; z-index: 50; font-size: 14px; }
.empty-shelf { background: white; padding: 35px; border: 1px solid var(--line); border-radius: 13px; margin-top: 25px; }
.back-top { display: inline-flex; gap: 5px; align-items: center; }

@media (max-width: 1024px) {
    .topbar { gap: 15px; }
    .brand strong { font-size: 20px; }
    .search { width: 310px; }
    .nav a { font-size: 14px; gap: 5px; padding-inline: 3px; }
    .nav .icon { width: 17px; height: 17px; }
    .hero-copy { padding: 30px; }
    .cover-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-card { gap: 16px; padding: 18px; }
    .catalog-card > a { width: 100px; }
    .rank-grid { gap: 14px; }
    .rank-column { padding: 15px; }
    .complete-card { padding: 18px; gap: 16px; }
    .feature-copy { padding: 27px; }
    .feature-copy h2 { font-size: 28px; }
}

@media (max-width: 700px) {
    .wrap { width: calc(100% - 32px); }
    .topbar { flex-wrap: wrap; padding: 16px 0; gap: 15px; }
    .brand img { width: 40px; height: 40px; }
    .brand strong { font-size: 20px; }
    .brand small { font-size: 10px; }
    .shelf-link { margin-left: auto; }
    .search { width: 100%; order: 3; }
    .nav { grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .nav a { font-size: 13px; padding: 10px 4px; }
    .nav .icon { width: 16px; height: 16px; }
    .hero { grid-template-columns: 1fr; margin-top: 20px; }
    .hero-copy { padding: 28px 25px; }
    .hero h1 { font-size: 33px; }
    .hero-lead { font-size: 18px; }
    .hero-copy .intro { font-size: 14px; }
    .hero-art { height: 230px; }
    .hero-art img { aspect-ratio: auto; }
    .hero-art::after { background: linear-gradient(0deg, #142435cb, transparent); }
    .hero-caption { left: 25px; bottom: 20px; }
    .hero-caption strong { font-size: 25px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
    .stat-strip div:nth-child(2) { border: 0; }
    .stat-strip strong { font-size: 19px; }
    .stat-strip span { font-size: 12px; }
    .section { margin-top: 42px; }
    h2 { font-size: 23px; }
    .section-heading { align-items: flex-start; gap: 10px; margin-bottom: 20px; }
    .section-heading h2 { gap: 8px; }
    .section-heading h2 .icon { width: 23px; height: 23px; }
    .section-heading .text-link { font-size: 12px; padding-top: 5px; }
    .section-heading p { font-size: 13px; }
    .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
    .category { padding: 16px 13px; gap: 10px; }
    .category .icon { width: 24px; height: 24px; }
    .category h3 { font-size: 16px; }
    .category p { font-size: 12px; }
    .ranking { padding: 24px 18px; }
    .rank-grid { grid-template-columns: 1fr; gap: 18px; }
    .rank-column { padding: 20px; }
    .rank-row { padding-top: 17px; }
    .feature { grid-template-columns: 1fr; }
    .feature-image img { aspect-ratio: 16 / 10; }
    .feature-copy { padding: 25px; }
    .update-row { grid-template-columns: 55px 1fr auto; gap: 10px; }
    .update-row .chapter { display: none; }
    .update-row a { font-size: 14px; }
    .update-row time { font-size: 12px; }
    .update-row .badge { font-size: 11px; }
    .korean { padding: 25px 18px; }
    .korean-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 15px; }
    .korean-card h3 { font-size: 16px; }
    .complete-grid { grid-template-columns: 1fr; }
    .complete-card > a { width: 94px; }
    .route-grid { grid-template-columns: 1fr; gap: 16px; }
    .route-card { padding: 22px; }
    .route-card .icon { float: right; }
    .shelf-banner { flex-wrap: wrap; padding: 22px; gap: 15px; }
    .shelf-banner > .icon { width: 30px; height: 30px; }
    .shelf-banner > div { flex: 1; }
    .shelf-banner .button { margin-left: 0; width: 100%; }
    .about { grid-template-columns: 1fr; gap: 20px; }
    .about h2 { font-size: 29px; margin-bottom: 0; }
    .subscribe { padding: 27px 23px; align-items: flex-start; gap: 18px; margin-bottom: 35px; }
    .subscribe-mark { width: 48px; height: 48px; }
    .subscribe-mark img { border-radius: 10px; }
    .subscribe h2 { font-size: 21px; }
    .subscribe .button { padding-inline: 13px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .page-intro { padding: 25px; }
    .page-intro h1 { font-size: 28px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-card { padding: 18px; }
    .catalog-card > a { width: 100px; }
    .catalog-card h2 { font-size: 18px; }
    .catalog-card p { font-size: 13px; }
    .detail-hero { grid-template-columns: 1fr; padding: 25px; gap: 25px; }
    .detail-hero > img { width: 180px; margin-inline: auto; }
    .detail-hero h1 { font-size: 30px; }
    .chapter-list { grid-template-columns: 1fr; }
    .reader-heading h1 { font-size: 26px; }
    .reader { margin-top: 25px; }
    .comic-panel figcaption { padding: 20px; font-size: var(--reader-font, 18px); }
    .result-list { grid-template-columns: 1fr; }
    .search-results { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
