:root {
    --ink: #152e38;
    --muted: #61747b;
    --line: #dce6e7;
    --teal: #103c43;
    --lime: #d4f174;
    --paper: #f5f8f8;
}
* { box-sizing: border-box; }
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.8; }
a { color: inherit; text-decoration: none; }
a:hover { color: #167b79; }
button, .button { font: inherit; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; padding: 10px 18px; background: white; color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid #188f90; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 38px; line-height: 1.35; letter-spacing: -1px; }
h2 { font-size: 25px; line-height: 1.5; }
h3 { font-size: 18px; line-height: 1.6; }
p { color: var(--muted); }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; background: #d9e7e8; }
.container { width: min(1200px, calc(100% - 40px)); margin: auto; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; min-height: 94px; gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 24px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 14px 14px 14px 3px; background: var(--teal); color: var(--lime); font-size: 30px; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 2px; }
.header-note { font-size: 14px; color: var(--muted); }
.shelf-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.shelf-count { border-radius: 50%; background: var(--lime); padding: 0 7px; }
.main-nav { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; padding-block: 8px 13px; }
.main-nav a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 4px; font-size: 14px; border-radius: 8px; }
.main-nav a.active { background: var(--teal); color: white; }
.hero { margin-top: 32px; border-radius: 20px; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--teal); color: white; overflow: hidden; }
.hero-copy { padding: 43px 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 2px; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { font-size: 20px; margin: 18px 0 8px; letter-spacing: 2px; }
.hero-lead { color: white; font-size: 42px; line-height: 1.4; font-weight: 800; margin-bottom: 20px; }
.hero-copy > p:not(.hero-lead) { color: #c6dcdc; max-width: 410px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 700; }
.button.ghost { background: transparent; border-color: #759698; color: inherit; }
.hero-art { position: relative; display: block; min-height: 445px; }
.hero-art img { height: 100%; position: absolute; inset: 0; aspect-ratio: 1.15; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(5,27,40,.94),transparent 75%); }
.hero-caption { position: absolute; bottom: 32px; left: 30px; right: 24px; z-index: 1; color: white; }
.hero-caption h2 { margin: 7px 0; font-size: 30px; }
.hero-caption p { color: #e2eded; }
.hero-caption span { font-size: 14px; }
.module { margin-top: 64px; scroll-margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-head h2 { display: flex; align-items: center; gap: 11px; }
.section-head h2 .icon { color: #168481; }
.section-head > a { font-size: 14px; white-space: nowrap; }
.updates { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.updates > a { display: flex; align-items: center; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.updates > a:nth-last-child(-n+2) { border-bottom: 0; }
.updates > a:nth-child(odd) { border-right: 1px solid var(--line); }
.updates time { font-size: 16px; font-weight: 700; color: #12847f; }
.updates p { font-size: 14px; }
.updates .icon { margin-left: auto; }
.categories { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.categories > a { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.categories .icon { background: #e8f4ef; box-sizing: content-box; padding: 12px; border-radius: 12px; margin-bottom: 14px; color: #168481; }
.categories > a:nth-child(2n) .icon { background: #eff0fc; color: #656ba0; }
.categories p { font-size: 14px; margin: 8px 0 16px; }
.categories span { font-size: 14px; color: #168481; }
.cover-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; }
.cover-card { min-width: 0; }
.cover-card img { aspect-ratio: 3 / 4; border-radius: 10px; transition: transform .2s; }
.cover-card a:hover img { transform: translateY(-4px); }
.card-meta { display: flex; justify-content: space-between; gap: 3px; font-size: 12px; margin: 13px 0 4px; color: #168481; }
.cover-card h3 { font-size: 16px; }
.cover-card p { font-size: 12px; margin-top: 5px; }
.romance-module { background: #f0edf7; padding: 28px; border-radius: 16px; }
.romance-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.romance-split article { display: grid; grid-template-columns: 135px 1fr; gap: 20px; }
.romance-split img { height: 100%; min-height: 240px; border-radius: 50% 50% 8px 8px; }
.romance-split span { font-size: 12px; color: #746888; }
.romance-split p { font-size: 14px; margin: 10px 0; }
.romance-split a { font-size: 14px; }
.adventure-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.adventure-strip a { position: relative; border-radius: 12px; overflow: hidden; background: var(--teal); color: white; }
.adventure-strip img { aspect-ratio: 4 / 3; }
.adventure-strip a > div { padding: 17px; }
.adventure-strip span { font-size: 12px; color: var(--lime); }
.adventure-strip p { color: #c7dcde; font-size: 13px; }
.section-note { margin: -12px 0 22px; font-size: 14px; }
.ranking { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 40px; }
.ranking a { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ranking strong { font-size: 32px; color: #42938f; font-style: italic; }
.ranking p { font-size: 14px; }
.ranking .icon { margin-left: auto; }
.campus { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.campus article { border-top: 3px solid #8ebbbb; padding: 22px 0; }
.campus .number { font-size: 14px; color: #137c79; }
.campus h3 { margin: 9px 0; }
.campus p { margin-bottom: 18px; }
.campus a { font-size: 16px; }
.mystery { background: #202f40; color: white; border-radius: 16px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.mystery h3 { font-size: 28px; margin: 15px 0; }
.mystery p { color: #bdcedb; }
.mystery ol { margin: 0; padding-left: 24px; }
.mystery li { padding: 6px 0 14px 8px; }
.mystery li p { font-size: 14px; }
.completed { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.completed a { display: flex; gap: 20px; align-items: center; padding: 22px; border: 1px solid #c8dfd1; border-left: 5px solid #549b73; background: #eef5ef; }
.completed p { font-size: 14px; }
.reading-tips { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.reading-tips > div { border-left: 2px solid #bad4d3; padding-left: 22px; }
.reading-tips h3 { margin-bottom: 12px; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-lead { font-size: 34px; line-height: 1.5; color: var(--teal); font-weight: 700; }
.about p + p { margin-top: 16px; }
.subscribe { background: #e6efec; border-radius: 16px; padding: 38px; display: grid; grid-template-columns: 150px 1fr; gap: 38px; align-items: center; }
.subscription-brand { background: var(--teal); color: var(--lime); border-radius: 18px; text-align: center; padding: 14px; font-size: 56px; font-weight: 800; }
.subscription-brand span { display: block; font-size: 14px; font-weight: 400; letter-spacing: 3px; }
.subscribe h3 { font-size: 24px; margin-bottom: 10px; }
.small { font-size: 13px; margin-top: 15px; }
.site-footer { margin-top: 64px; padding: 36px 0; background: white; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.site-footer p { margin-bottom: 7px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; font-size: 14px; color: var(--muted); }
.page-heading { padding: 36px; background: #e8f1ee; border-radius: 15px; }
.page-heading h1 { margin: 13px 0; }
.page-heading p { max-width: 850px; margin-bottom: 18px; }
.page-heading > span:last-child { font-size: 14px; }
.catalog-notes { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.catalog-notes article { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.catalog-notes p { margin: 12px 0; }
.book-detail { display: grid; grid-template-columns: 240px 1fr; gap: 44px; background: white; padding: 32px; border-radius: 16px; }
.book-detail > img { aspect-ratio: 3 / 4; border-radius: 12px; }
.book-detail h1 { margin: 12px 0 20px; }
.book-detail p + p { margin-top: 20px; font-size: 14px; }
.chapter-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.chapter-list a { background: white; border: 1px solid var(--line); padding: 20px; display: flex; justify-content: space-between; align-items: center; border-radius: 10px; }
.reader-heading { max-width: 880px; margin: 0 auto 30px; }
.reader-heading h1 { margin: 16px 0; font-size: 30px; }
.reader-heading p { margin-top: 12px; }
.reader-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.reader-body { max-width: 780px; margin: auto; font-size: var(--reader-size,18px); }
.panel { margin-bottom: 40px; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel h2 { padding: 20px 24px; font-size: 20px; }
.panel figure { margin: 0; }
.panel img { aspect-ratio: 4 / 3; object-fit: contain; }
.panel figcaption { text-align: center; font-size: 13px; padding: 8px; color: var(--muted); }
.panel p { padding: 18px 28px 30px; line-height: 2.1; color: var(--ink); }
.chapter-end { text-align: center; padding: 32px 16px; }
.chapter-nav { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
dialog { width: min(550px,calc(100% - 30px)); border: 0; border-radius: 16px; padding: 26px; color: var(--ink); }
dialog::backdrop { background: #102d3baa; }
#shelf-items > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--teal); color: white; padding: 12px 22px; border-radius: 10px; z-index: 9; display: none; max-width: calc(100% - 30px); }
.toast.visible { display: block; }
body.night { --ink: #e0e9ec; --muted: #aebfc5; --paper: #152127; --line: #34464e; }
.night .panel, .night .site-header, .night .site-footer { background: #1b2b32; }
.night button { color: #17333c; }
@media(max-width: 1000px) {
    .hero-copy { padding: 30px; }
    .hero-lead { font-size: 34px; }
    .cover-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
    .romance-split article { grid-template-columns: 100px 1fr; }
    .main-nav a { gap: 4px; font-size: 13px; }
    .adventure-strip { grid-template-columns: repeat(2,1fr); }
}
@media(max-width: 680px) {
    .container { width: calc(100% - 28px); }
    .header-top { min-height: 82px; gap: 8px; }
    .brand { font-size: 21px; gap: 8px; }
    .brand small { font-size: 12px; letter-spacing: 0; }
    .brand-mark { width: 41px; height: 43px; }
    .header-note { display: none; }
    .shelf-toggle { font-size: 12px; padding: 7px; gap: 5px; }
    .shelf-toggle > .icon { display: none; }
    .main-nav { grid-template-columns: repeat(4,1fr); gap: 5px; }
    .main-nav a { font-size: 12px; gap: 5px; padding: 9px 2px; }
    .main-nav .icon { width: 16px; height: 16px; }
    .hero { grid-template-columns: 1fr; margin-top: 22px; }
    .hero-copy { padding: 27px; }
    .hero-lead { font-size: 36px; }
    .hero-art { min-height: 290px; }
    .hero-caption { bottom: 22px; left: 24px; }
    .hero-caption h2 { font-size: 25px; }
    .module { margin-top: 44px; }
    h2 { font-size: 21px; }
    .section-head { gap: 8px; margin-bottom: 20px; }
    .section-head > a { font-size: 12px; }
    .section-head > a .icon { display: none; }
    .updates { grid-template-columns: 1fr; }
    .updates > a { padding: 18px; }
    .updates > a:nth-child(odd) { border-right: 0; }
    .updates > a:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .categories { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .categories > a { padding: 17px; }
    .categories h3 { font-size: 16px; }
    .categories p { font-size: 13px; }
    .cover-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
    .romance-module { padding: 20px; }
    .romance-split { grid-template-columns: 1fr; }
    .romance-split article { grid-template-columns: 100px 1fr; gap: 16px; }
    .romance-split img { min-height: 230px; }
    .adventure-strip { gap: 12px; }
    .adventure-strip a > div { padding: 13px; }
    .adventure-strip h3 { font-size: 16px; }
    .ranking { grid-template-columns: 1fr; }
    .campus, .reading-tips { grid-template-columns: 1fr; gap: 20px; }
    .mystery { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
    .completed { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 20px; }
    .about-lead { font-size: 29px; }
    .subscribe { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
    .subscription-brand { width: 110px; font-size: 40px; }
    .subscribe h3 { font-size: 22px; }
    .page-heading { padding: 25px; }
    h1 { font-size: 30px; }
    .catalog-notes, .chapter-list { grid-template-columns: 1fr; }
    .book-detail { grid-template-columns: 1fr; gap: 25px; padding: 24px; }
    .book-detail > img { width: 180px; margin: auto; }
    .reader-heading h1 { font-size: 25px; }
    .panel p { padding: 15px 20px 25px; }
    .chapter-nav .button { flex: 1 1 40%; font-size: 14px; padding: 10px; }
}
@media(prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
