* { box-sizing: border-box; }
:root { --ink: #152322; --muted: #687774; --accent: #007f64; --lime: #c8f169; --paper: #fff; --line: #e2e9e6; --soft: #f3f6f4; }
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.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ed9735; outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 36px; line-height: 1.3; }
h2 { font-size: 24px; line-height: 1.4; }
h3 { font-size: 17px; line-height: 1.5; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-top { display: flex; align-items: center; gap: 28px; min-height: 88px; }
.header-top h1 { margin: 0; font-size: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.brand-note { font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 24px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.pill { background: #eff7e5; border-radius: 24px; padding: 8px 18px; color: #326322; }
.main-nav { display: flex; justify-content: space-between; gap: 16px; }
.main-nav a { padding: 13px 2px 16px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 15px; border-bottom: 3px solid transparent; }
.main-nav .active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.hero { width: 100%; margin-top: 30px; aspect-ratio: 16 / 7; min-height: 380px; position: relative; border-radius: 20px; overflow: hidden; background: #123c36; color: white; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s; }
.hero-slide.selected { opacity: 1; visibility: visible; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,29,28,.97),rgba(6,29,28,.78) 36%,rgba(6,29,28,.08) 100%); }
.hero-copy { position: absolute; top: 50%; transform: translateY(-50%); left: 5%; width: 48%; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 15px; }
.hero .eyebrow { color: var(--lime); }
.hero h2 { font-size: clamp(30px,3.6vw,48px); margin-bottom: 15px; letter-spacing: 1px; }
.hero-meta { font-size: 14px; opacity: .85; }
.hero-intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #e2ebe6; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #006651; color: white; }
.hero .primary { background: var(--lime); color: #18351e; }
.glass { border: 1px solid #a4b5b0; color: white; background: #ffffff14; }
.light { background: #edf2ee; color: #243d35; }
.slider-controls { position: absolute; right: 28px; bottom: 24px; display: flex; gap: 10px; align-items: center; }
.slider-controls > button { background: #18352dce; color: white; min-width: 32px; height: 32px; border-radius: 7px; font-size: 13px; }
.slider-dots { display: flex; gap: 7px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 8px; background: #ffffff70; }
.slider-dots button[aria-pressed="true"] { width: 25px; background: var(--lime); }
.discovery-bar { display: flex; justify-content: space-between; gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.discovery-bar > span { display: flex; align-items: center; gap: 9px; color: var(--accent); font-weight: 700; }
.discovery-bar > div { display: flex; gap: 28px; color: var(--muted); }
.section { margin: 42px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-heading h2 .icon { color: var(--accent); width: 23px; height: 23px; }
.section-heading > a, .section-heading > span { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.comic-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 23px; align-items: stretch; }
.comic-card { min-width: 0; }
.comic-card[hidden] { display: none; }
.cover { position: relative; border-radius: 11px; overflow: hidden; background: #dce6e0; aspect-ratio: 2 / 3; }
.cover img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; transition: transform .25s; }
.cover:hover img { transform: scale(1.035); }
.cover-label { position: absolute; left: 9px; bottom: 9px; font-size: 12px; color: white; background: #172d26db; padding: 2px 8px; border-radius: 4px; }
.card-copy { padding: 13px 0 0; }
.card-copy h3 { margin-bottom: 4px; height: 26px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.genre, .meta, .muted, .muted-link { color: var(--muted); font-size: 13px; }
.card-copy p { margin-bottom: 4px; }
.chapter { font-size: 13px; color: #3c6358; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-intro { color: var(--muted); font-size: 13px; line-height: 1.65; height: 43px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; background: #eef4ef; color: #376249; padding: 1px 7px; font-size: 12px; border-radius: 4px; margin-top: 6px; }
.tinted { padding: 26px; background: #f3f6f4; border-radius: 16px; }
.feature-strip { display: grid; grid-template-columns: 230px 1fr; gap: 32px; background: #ebf2ee; border-radius: 14px; overflow: hidden; margin-bottom: 24px; align-items: center; }
.feature-strip > img { width: 100%; height: 235px; object-fit: cover; }
.feature-strip > div { padding: 24px 30px 24px 0; }
.feature-strip h3 { font-size: 26px; margin: 5px 0 9px; }
.feature-strip p { color: #51645c; max-width: 750px; }
.ranking { display: grid; grid-template-columns: 1fr 1fr; gap: 0 38px; padding: 0; margin: 0; list-style: none; }
.ranking li { display: flex; align-items: center; gap: 22px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.rank-number { font-size: 34px; font-weight: 800; font-style: italic; color: var(--accent); }
.ranking h3, .ranking p { margin: 0; }
.ranking p, .ranking li > a { font-size: 13px; color: var(--muted); }
.ranking li > a { margin-left: auto; white-space: nowrap; }
.section-note { color: var(--muted); font-size: 14px; }
.mood-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.mood { padding: 26px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; background: #f7faf7; }
.mood strong { font-size: 21px; }
.mood span { font-size: 14px; color: var(--muted); }
.about-copy { max-width: 1020px; color: #52645c; line-height: 2; }
.mobile-banner { background: #163f35; color: white; padding: 38px 44px; display: flex; align-items: center; gap: 55px; justify-content: space-between; border-radius: 18px; margin: 48px 0; }
.mobile-banner > div { max-width: 810px; }
.mobile-banner h2 { font-size: 32px; }
.mobile-banner .eyebrow { color: var(--lime); }
.mobile-banner .meta { color: #ccd9d0; margin: 13px 0 0; }
.mobile-banner > img { width: 140px; height: 140px; flex-shrink: 0; }
.site-footer { background: #f3f6f4; border-top: 1px solid var(--line); padding: 40px 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr .7fr; gap: 50px; }
.footer-grid .brand { font-size: 22px; }
.footer-grid p { font-size: 14px; color: var(--muted); max-width: 350px; margin: 12px 0; }
.footer-grid nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; align-content: start; }
.footer-grid nav:last-child { grid-template-columns: 1fr; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin: 25px 0; }
.page-heading { padding: 25px 0 10px; }
.page-heading h1 .icon { width: 30px; height: 30px; margin-right: 10px; }
.page-heading p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 18px; background: var(--soft); padding: 18px; border-radius: 12px; margin-bottom: 26px; align-items: end; }
.filters label { font-size: 13px; color: #53645c; display: flex; flex-direction: column; gap: 6px; }
select, input { max-width: 100%; padding: 9px 12px; border: 1px solid #ccd9d0; border-radius: 6px; color: #233e32; background: white; font-size: 14px; }
.search-label { flex: 1; min-width: 180px; }
.pagination { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-top: 25px; }
.pagination [aria-current] { background: var(--accent); padding: 5px 14px; border-radius: 6px; color: white; }
.filter-count { color: var(--muted); font-size: 14px; margin-top: 20px; }
.detail-head { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 28px; border: 1px solid var(--line); background: #f5f8f5; border-radius: 16px; }
.detail-cover img { width: 230px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 10px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; font-size: 14px; }
.facts > div { display: flex; gap: 15px; }
.facts dt { color: var(--muted); flex-shrink: 0; }
.facts dd { margin: 0; }
.story-intro { max-width: 900px; line-height: 2; }
.chapter-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.chapter-grid a { border: 1px solid var(--line); border-radius: 9px; padding: 18px; display: flex; flex-direction: column; gap: 5px; }
.chapter-grid span { font-size: 13px; color: var(--muted); }
.related-art img { width: 100%; max-height: 310px; object-fit: cover; border-radius: 14px; background: #e2eee5; }
.prose { max-width: 900px; min-height: 60vh; }
.prose h2 { margin-top: 36px; }
.prose p { line-height: 2; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #183f32; color: white; padding: 12px 20px; border-radius: 8px; max-width: 90%; z-index: 20; }
.image-error { background: #e2e9e3; color: #344f43; font-size: 14px; min-height: 180px; }
.image-retry { display: block; margin: 8px auto; padding: 7px 16px; background: #e3eddf; color: #254532; border-radius: 6px; font-size: 13px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
