:root {
    --ink: #182239;
    --muted: #687084;
    --paper: #f5f7fa;
    --line: #e1e5ed;
    --lime: #d6f66e;
    --navy: #131d35;
}
* { 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; }
a:hover { color: #546b16; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #699314; outline-offset: 4px; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; }
h2 { font-size: 25px; line-height: 1.4; }
h3 { font-size: 17px; line-height: 1.45; }
p { margin-bottom: 16px; }
.container { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -1px; }
.brand-name { font-size: 25px; font-weight: 900; letter-spacing: -1px; }
.brand-icon { flex: 0 0 40px; }
.brand-note { margin-left: 18px; border-left: 1px solid var(--line); padding-left: 24px; font-size: 14px; color: var(--muted); }
.header-help { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.main-nav { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: wrap; padding-bottom: 8px; }
.main-nav a { display: flex; align-items: center; gap: 7px; font-size: 15px; padding: 8px 14px; border-radius: 7px; white-space: nowrap; }
.main-nav .active { background: var(--navy); color: white; }
main.container { padding-top: 30px; padding-bottom: 64px; }
.hero { position: relative; background: var(--navy); color: white; border-radius: 16px; overflow: hidden; }
.hero-slide { display: grid; grid-template-columns: 45% 55%; min-height: 400px; }
.hero-copy { padding: 38px 40px 70px; position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: var(--lime); font-size: 14px; letter-spacing: 2px; }
.hero-name { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; font-weight: 900; margin: 24px 0 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #e4e9f2; }
.hero-tags span { color: #aeb9d0; }
.hero-intro { color: #bfc8da; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; font-size: 15px; }
.hero-art { position: relative; min-width: 0; display: flex; align-items: center; background: #293952; }
.hero-art img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 22%); pointer-events: none; }
.hero-art > span { position: absolute; bottom: 25px; right: 25px; padding: 5px 13px; border-radius: 5px; background: #131d35dd; color: white; font-size: 13px; z-index: 1; }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 10px 20px; min-height: 44px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); }
.button:hover { background: #e9eecf; color: #172411; }
.button.lime { background: var(--lime); color: #202b10; border-color: var(--lime); }
.button.ghost { color: inherit; background: transparent; border-color: #64718b; }
.button.disabled { opacity: .5; cursor: default; }
.slider-controls { position: absolute; bottom: 18px; left: 40px; display: flex; gap: 12px; align-items: center; }
.slider-controls > button { width: 30px; height: 30px; border: 1px solid #526079; background: transparent; color: white; border-radius: 50%; padding: 0; }
.slider-controls > button[data-pause] { border: 0; width: auto; font-size: 12px; border-radius: 3px; }
.slider-dots { display: flex; gap: 7px; }
.slider-dots button { border: 0; background: #6d7890; width: 7px; height: 7px; border-radius: 9px; padding: 0; }
.slider-dots button[aria-pressed="true"] { background: var(--lime); width: 25px; }
.discovery-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 45px; }
.discovery-strip > span { color: var(--muted); margin-right: 10px; font-size: 14px; }
.discovery-strip a { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: white; border-radius: 30px; padding: 8px 18px; font-size: 14px; }
.shelf { margin: 46px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-heading h2 .icon { color: #759333; }
.section-heading p { font-size: 14px; margin: 7px 0 0; color: var(--muted); }
.more { font-size: 14px; white-space: nowrap; color: var(--muted); }
.comic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.comic-card { min-width: 0; background: white; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.comic-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #15244912; }
.cover { position: relative; display: block; background: #d9e1e9; aspect-ratio: 2 / 3; overflow: hidden; }
.cover img { width: 100%; height: 100%; aspect-ratio: 2 / 3; object-fit: cover; font-size: 14px; color: #32445a; }
.cover-state { position: absolute; right: 9px; top: 9px; background: #172239df; color: #fff; border-radius: 4px; padding: 2px 7px; font-size: 12px; }
.cover-read { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 12px 10px; color: white; background: linear-gradient(transparent, #0c152ccc); font-size: 13px; }
.card-body { padding: 14px; }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 1px; color: #637938; font-weight: 600; margin-bottom: 7px; }
.card-body .eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body h3 { height: 48px; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author, .chapter-meta { font-size: 13px; color: var(--muted); margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 44px; line-height: 22px; color: var(--muted); font-size: 13px; margin: 9px 0 0; }
.update-section { background: #eaf0dd; padding: 26px; border-radius: 10px; }
.update-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.update-list article { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
.update-date { font-size: 14px; color: #657a3c; padding-top: 2px; }
.update-list h3 { margin: 0 0 5px; }
.update-list p { margin: 0; font-size: 13px; color: var(--muted); }
.update-list article > a { grid-column: 2; font-size: 13px; margin-top: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.split-section { display: grid; grid-template-columns: 1.35fr 1fr; gap: 38px; }
.ranking { list-style: none; padding: 0; margin: 0; }
.ranking li { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; }
.rank-number { font-size: 28px; font-style: italic; font-weight: 800; color: #82934a; }
.ranking h3 { margin: 0 0 4px; }
.ranking p { margin: 0; color: var(--muted); font-size: 13px; }
.ranking li > a { margin-left: auto; font-size: 13px; white-space: nowrap; }
.editor-note { background: var(--navy); border-radius: 12px; color: white; padding: 38px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.editor-note .eyebrow { color: var(--lime); }
.editor-note h2 { font-size: 30px; margin: 28px 0; }
.editor-note p { color: #bcc8df; }
.editor-note .button { align-self: flex-start; }
.about-band { border-top: 1px solid var(--line); margin-top: 55px; padding: 35px 0; max-width: 960px; }
.about-band p { color: var(--muted); }
.about-band a { font-size: 14px; }
.mobile-band { background: var(--navy); color: white; display: flex; gap: 32px; align-items: center; padding: 36px; border-radius: 12px; }
.mobile-band > img { flex: 0 0 120px; }
.mobile-band .eyebrow { color: var(--lime); }
.mobile-band p { color: #bcc8df; }
.mobile-band .small { margin: 16px 0 0; }
.small { font-size: 12px; color: var(--muted); }
footer { background: white; border-top: 1px solid var(--line); padding: 38px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-inner p { margin: 15px 0; font-size: 14px; color: var(--muted); }
.footer-inner nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; font-size: 14px; }
.copyright { color: var(--muted); font-size: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin: 0 0 25px; }
.category-banner { background: var(--navy); border-radius: 12px; color: white; padding: 36px; }
.category-banner .eyebrow { color: var(--lime); }
.category-banner h1 { display: flex; gap: 14px; align-items: center; margin: 12px 0; }
.category-banner h1 .icon { width: 35px; height: 35px; }
.category-banner p { max-width: 820px; color: #c4cddd; }
.pill { display: inline-block; border: 1px solid #626f88; border-radius: 30px; padding: 3px 13px; font-size: 13px; }
.featured-book { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px; margin: 25px 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.featured-book img { width: 120px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 6px; background: #d9e1e9; }
.featured-book h2 { margin-bottom: 10px; }
.featured-book p { font-size: 14px; max-width: 840px; }
.muted { color: var(--muted); }
.filters { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 22px; font-size: 14px; }
.filters label { display: flex; align-items: center; gap: 10px; }
select { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; max-width: 100%; }
.filters > span { margin-left: auto; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.pagination [aria-current] { padding: 6px 15px; background: var(--navy); color: white; border-radius: 5px; }
.detail-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 42px; background: white; padding: 32px; border-radius: 12px; border: 1px solid var(--line); }
.detail-cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: #dae1ea; border-radius: 8px; }
.detail-hero h1 { margin: 10px 0; }
.detail-hero h2 { font-size: 19px; }
.book-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding: 15px 0; margin: 20px 0; gap: 10px; }
.book-facts dt { font-size: 13px; color: var(--muted); }
.book-facts dd { margin: 5px 0 0; font-size: 14px; }
.detail-hero .small { margin-top: 14px; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chapter-grid a { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); padding: 20px; background: white; border-radius: 7px; }
.chapter-grid a:hover { border-color: #92a866; }
.chapter-grid span { color: var(--muted); font-size: 13px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: #dae1ea; border-radius: 8px; }
.prose { max-width: 880px; }
.prose h2 { margin-top: 38px; font-size: 23px; }
.prose p { color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: 7px; max-width: calc(100% - 32px); background: #17233a; color: white; z-index: 20; box-shadow: 0 4px 30px #0003; display: none; }
.toast.show { display: block; }
.image-failed { color: #465973; background: #dce4ed; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
