:root {
    --ink: #192825;
    --muted: #68766f;
    --paper: #f5f7f4;
    --line: #dce4de;
    --green: #c3f45b;
    --deep: #163d32;
    --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { color: inherit; }
button { border: 0; }
a:hover { color: #417c38; }
:focus-visible { outline: 3px solid #65a53a; outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -1px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; min-height: 100px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 27px; font-weight: 900; letter-spacing: -1px; }
.brand small { display: block; font-size: 12px; color: var(--muted); letter-spacing: 2px; font-weight: 400; }
.header-note { color: var(--muted); margin-left: auto; font-size: 14px; }
.header-mobile { padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.main-nav { display: flex; gap: 25px; overflow-x: auto; scrollbar-width: thin; }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 15px 0; flex-shrink: 0; border-bottom: 3px solid transparent; font-size: 14px; }
.main-nav a.active { border-color: #528b32; color: #326a29; font-weight: 700; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 16px; }
.home-title h1 { font-size: 18px; margin: 0; letter-spacing: 0; }
.home-title span { font-size: 13px; color: var(--muted); }
.hero { position: relative; background: var(--deep); color: white; border-radius: 14px; overflow: hidden; }
.hero-slide { display: grid; grid-template-columns: 1fr 1fr; min-height: 438px; }
.hero-art { grid-column: 2; grid-row: 1; align-self: stretch; position: relative; background: #2d554b; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep), transparent 50%); }
.hero-image { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-copy { grid-column: 1; grid-row: 1; padding: 44px 20px 92px 42px; z-index: 1; }
.hero-label { display: inline-block; font-size: 13px; color: var(--green); letter-spacing: 2px; border: 1px solid #568165; padding: 4px 10px; margin-bottom: 20px; }
.hero h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 16px; }
.hero-meta { font-size: 14px; color: #e1e8de; }
.hero-desc { color: #c6d5ce; font-size: 15px; max-width: 460px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1px solid transparent; min-height: 44px; }
.primary { background: var(--green); color: #183024; }
.ghost { background: transparent; color: white; border-color: #779388; }
.dark { background: var(--deep); color: white; }
.outline { background: transparent; border-color: #abbcb1; }
.subtle { background: #e7eee8; }
.disabled { opacity: .6; background: #e3e7e2; }
.slider-controls { z-index: 2; display: flex; align-items: center; gap: 15px; position: absolute; bottom: 25px; left: 42px; }
.slider-controls button { background: transparent; color: white; min-width: 32px; min-height: 32px; border: 1px solid #6f8c7e; border-radius: 50%; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { min-width: 8px; min-height: 8px; width: 8px; height: 8px; padding: 0; background: #6b8a7d; border: 0; }
.slider-dots button[aria-pressed="true"] { background: var(--green); width: 25px; border-radius: 10px; }
.slider-controls .pause-slider { border: 0; border-radius: 0; font-size: 12px; }
.quick-bar { display: flex; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); padding: 28px 0; }
.quick-bar > div { margin-right: auto; }
.quick-bar strong, .quick-bar span { display: block; }
.quick-bar span { color: var(--muted); font-size: 13px; }
.quick-bar a { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.shelf, .catalog-section, .chapter-section, .story-gallery { margin: 46px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; }
.section-heading .icon { width: 23px; height: 23px; color: #4c7736; }
.more, .section-heading > span { font-size: 14px; color: var(--muted); }
.comic-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.comic-card { min-width: 0; background: var(--card); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.comic-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #173c3012; }
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #d8e3da; color: #3e5947; font-size: 14px; }
.cover-link { display: block; overflow: hidden; }
.card-copy { padding: 14px; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: #517149; margin-bottom: 7px; }
.card-copy h3 { margin: 0 0 7px; height: 49px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.author, .status, .latest { font-size: 12px; }
.author { color: var(--muted); margin-bottom: 9px; }
.synopsis { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; color: var(--muted); height: 43px; margin-bottom: 12px; }
.latest { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 5px; }
.status { color: #47773e; }
.ranking-strip { display: grid; grid-template-columns: 1fr 1.6fr; gap: 45px; background: #e7efdf; padding: 34px; border-radius: 10px; margin: 48px 0; }
.ranking-strip h2 { font-size: 30px; margin: 15px 0; }
.ranking-strip p { font-size: 14px; color: #61705b; }
.ranking-strip ol { list-style: none; padding: 0; margin: 0; }
.ranking-strip li { display: flex; align-items: center; gap: 19px; padding: 13px 0; border-bottom: 1px solid #cbd7c2; }
.ranking-strip li:last-child { border: 0; }
.ranking-strip h3 { margin: 0 0 3px; font-size: 16px; }
.ranking-strip li p { font-size: 12px; margin: 0; }
.ranking-strip li > a { margin-left: auto; font-size: 13px; white-space: nowrap; }
.rank-number { font-size: 29px; font-weight: 800; color: #597340; font-style: italic; }
.about-panel { border-top: 1px solid var(--line); padding: 40px 0; }
.about-panel p { max-width: 940px; color: var(--muted); line-height: 1.9; }
.about-panel a { font-size: 14px; font-weight: 700; }
.mobile-panel { background: var(--green); border-radius: 12px; padding: 36px; display: flex; align-items: center; gap: 32px; margin: 16px 0 56px; }
.mobile-panel img { flex: 0 0 120px; }
.mobile-panel h2 { font-size: 32px; margin-bottom: 10px; }
.mobile-panel p { max-width: 800px; font-size: 15px; }
.site-footer { background: #142b23; color: #d9e6dc; padding: 42px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr .8fr; gap: 50px; }
.site-footer p { font-size: 14px; color: #a8bbae; margin-top: 14px; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px; font-size: 14px; }
.site-footer nav:last-child { grid-template-columns: 1fr; }
.copyright { border-top: 1px solid #365043; margin-top: 28px; padding-top: 18px; font-size: 12px; color: #a8bbae; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; font-size: 13px; color: var(--muted); }
.category-intro { padding: 22px 0; max-width: 850px; }
.category-intro p { color: var(--muted); }
.feature-pick { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 25px; background: #e5eddc; border-radius: 10px; }
.feature-pick > a { width: 150px; }
.feature-pick .cover { height: 190px; }
.feature-pick h2 { margin-bottom: 12px; }
.feature-pick p { max-width: 800px; }
.catalog-controls { display: flex; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.catalog-controls label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
input, select { padding: 9px 12px; border: 1px solid #bacabd; border-radius: 5px; background: var(--card); min-width: 0; max-width: 100%; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 30px 0; font-size: 14px; }
.pagination [aria-current] { padding: 7px 16px; background: var(--deep); color: white; border-radius: 4px; }
.ranking-note { padding: 25px; border: 1px solid var(--line); margin-bottom: 40px; }
.detail-hero { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 40px; background: var(--card); padding: 30px; border: 1px solid var(--line); border-radius: 12px; }
.detail-hero > .cover { border-radius: 8px; align-self: start; }
.detail-hero h1 { margin-bottom: 10px; }
.detail-hero h2 { font-size: 20px; margin-top: 25px; margin-bottom: 12px; }
.alias { color: var(--muted); font-size: 14px; }
.metadata { display: flex; flex-wrap: wrap; gap: 15px 35px; }
.metadata dt { font-size: 12px; color: var(--muted); }
.metadata dd { margin: 0; font-size: 14px; }
.chapter-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.chapter-list a { display: block; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.chapter-section { scroll-margin-top: 20px; }
.story-gallery > div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #d8e3da; border-radius: 8px; }
.prose { max-width: 850px; margin: 50px auto 80px; }
.prose p { line-height: 2; color: var(--muted); }
.prose h2 { margin-top: 36px; }
.back-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; background: var(--deep); color: white; border-radius: 50%; border: 1px solid #799584; z-index: 5; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #102d23; color: white; padding: 14px 22px; border-radius: 8px; max-width: calc(100% - 50px); width: max-content; z-index: 20; }
.image-error { object-fit: contain; background: #d7e3d4; outline: 1px solid #c3d2c0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
