:root {
    --paper: #f5f6f8;
    --surface: #fff;
    --ink: #18202d;
    --muted: #627080;
    --accent: #eaff57;
    --line: #dfe4e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #4d6500; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #56860b; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; }
h2 { font-size: 25px; line-height: 1.4; }
h3 { font-size: 18px; }
p + p { margin-top: 10px; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-top { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.wordmark { margin: 0; font-size: 25px; line-height: 1.3; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; white-space: nowrap; }
.brand-note, .muted { color: var(--muted); font-size: 14px; }
.header-cta { margin-left: auto; font-size: 14px; font-weight: 700; }
.nav { display: flex; justify-content: space-between; gap: 8px; padding-block: 10px 15px; flex-wrap: wrap; }
.nav a { display: flex; align-items: center; gap: 7px; font-size: 14px; padding: 9px 10px; border-radius: 7px; font-weight: 600; }
.nav [aria-current=page] { background: var(--ink); color: white; }
.icon { width: 19px; height: 19px; flex: none; }
.nav [aria-current=page] .icon { filter: invert(1); }
main { padding-block: 30px 60px; }
.hero { margin-bottom: 45px; }
.hero-top { display: flex; justify-content: space-between; padding-bottom: 15px; gap: 15px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.hero-track { border-radius: 20px; overflow: hidden; background: #152336; }
.hero-slide { display: grid; grid-template-columns: 1.08fr 1fr; color: white; background: #152336; }
.hero-image { width: 100%; aspect-ratio: 16/9; height: 100%; min-height: 335px; object-fit: cover; background: #2b3f51; }
.hero-copy { padding: 38px; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.04em; }
.hero-meta { font-size: 14px; color: #c4d1df; }
.hero-intro { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #d9e1eb; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 17px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; }
.button:hover { background: #e5ebd2; color: #18202d; }
.primary { background: var(--accent); color: #18202d; border-color: var(--accent); }
.ghost { color: white; background: transparent; border-color: #607080; }
.slider-controls { display: none; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 12px; }
.slider-controls button { border: 1px solid var(--line); background: white; border-radius: 6px; min-width: 38px; height: 35px; font-size: 14px; }
.dots { display: flex; gap: 6px; }
.dots [aria-current=true] { background: var(--ink); color: white; }
.slider-ready .slider-controls { display: flex; }
[hidden] { display: none !important; }
.section { margin-top: 45px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; }
.section-heading .icon { width: 25px; height: 25px; }
.more { font-size: 14px; font-weight: 700; }
.comic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.comic-card { min-width: 0; display: flex; flex-direction: column; }
.cover-link { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #d9e0e6; }
.cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #d9e0e6; color: #344352; }
.cover-label { position: absolute; left: 9px; top: 9px; background: #172230ed; color: white; font-size: 12px; padding: 3px 8px; border-radius: 5px; }
.card-body { display: flex; flex-direction: column; padding-top: 12px; gap: 4px; flex: 1; }
.card-body .eyebrow { font-size: 12px; color: #5c6c79; }
.card-body h3 { height: 29px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author { font-size: 13px; color: var(--muted); }
.synopsis { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.55; height: 44px; color: var(--muted); }
.latest-link { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; padding-top: 8px; }
.tag { font-size: 12px; color: #48610e; margin-top: 4px; }
.tone { padding: 25px; background: #e9edf1; border-radius: 18px; }
.ranking { list-style: none; padding: 0; margin: 15px 0 0; background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ranking li { display: grid; grid-template-columns: 50px 1fr 1fr auto; align-items: center; gap: 15px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.ranking li:last-child { border-bottom: 0; }
.rank-number { font-size: 27px; font-weight: 900; color: #819093; font-style: italic; }
.ranking li:first-child .rank-number { color: #607a08; }
.rank-genre { color: var(--muted); font-size: 14px; }
.about-copy { max-width: 850px; }
.about-copy .more { display: inline-block; margin-top: 12px; }
.mobile-module { display: flex; align-items: center; gap: 32px; padding: 35px; margin-top: 45px; border-radius: 18px; background: #172230; color: white; }
.mobile-module > img { flex: none; }
.mobile-module h2 { font-size: 30px; margin: 4px 0 10px; }
.mobile-module .actions { margin: 17px 0 9px; }
.mobile-module .muted { color: #b6c3d2; }
footer { background: white; border-top: 1px solid var(--line); padding: 40px 0; }
footer p { max-width: 740px; margin-top: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 23px; margin: 20px 0; font-size: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: 14px; color: var(--muted); margin-bottom: 25px; }
.page-intro { padding: 26px 0; max-width: 800px; }
.page-intro h1 { margin: 7px 0 15px; }
.feature-row { display: grid; grid-template-columns: 150px 1fr; gap: 25px; align-items: center; padding: 24px; background: #e9edf1; border-radius: 14px; }
.feature-row img { width: 150px; aspect-ratio: 2/3; object-fit: cover; border-radius: 9px; }
.feature-row p { max-width: 740px; margin: 10px 0 20px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin: 20px 0; }
.filters label { font-size: 14px; }
input, select { max-width: 100%; border: 1px solid #bbc6cf; background: white; border-radius: 6px; padding: 8px; }
.explore { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px; background: white; font-size: 14px; }
.detail-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 30px; border-radius: 18px; background: white; }
.detail-hero > img { border-radius: 12px; }
.detail-hero h1 { margin: 8px 0; }
.detail-hero h2 { font-size: 20px; margin: 20px 0 8px; }
.detail-hero .actions { margin-top: 23px; }
.metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.metadata div { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
.chapter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.chapter-item { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.chapter-item span { font-size: 14px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #dce3e8; border-radius: 12px; }
.skip-link { position: absolute; left: 15px; top: -100px; background: white; z-index: 100; padding: 10px; }
.skip-link:focus { top: 10px; }
#notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #172230; color: white; border-radius: 10px; padding: 12px 20px; max-width: 90%; z-index: 50; }
#notice:empty { display: none; }
.prose { max-width: 850px; margin: auto; }
.prose h2 { margin: 30px 0 12px; }
.prose p { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
