:root {
    --yellow: #ffda42;
    --ink: #20221f;
    --muted: #6b716b;
    --line: #e5e8e1;
    --paper: #ffffff;
    --bg: #f7f8f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 16px; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
a:hover { color: #816400; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #947000; outline-offset: 5px; }
img { display: block; max-width: 100%; object-fit: cover; background: #e7e9e3; }
svg { flex-shrink: 0; }
.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; letter-spacing: -.035em; }
h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
h3 { font-size: 18px; }
p { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-top { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 800; }
.brand img { border-radius: 13px; background: none; }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }
.shelf-link { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 9px 17px; border: 1px solid var(--line); border-radius: 99px; }
.main-nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; padding-bottom: 14px; }
.nav-link { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 4px; border-radius: 9px; font-size: 15px; white-space: nowrap; }
.nav-link:hover { background: #f5f5ef; }
.nav-link.active { background: var(--yellow); color: var(--ink); font-weight: 700; }
main > section { margin-top: 76px; }
main > section:first-child { margin-top: 32px; }
.hero { background: var(--yellow); border-radius: 22px; display: grid; grid-template-columns: 1.12fr 1fr; min-height: 470px; padding: 26px; gap: 36px; overflow: hidden; }
.hero-copy { padding: 24px 10px 20px 20px; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 9px; color: #677061; }
.hero .eyebrow { color: #56501a; }
.hero h1 { font-size: 20px; margin: 20px 0 8px; }
.hero-lead { font-size: 43px; color: var(--ink); font-weight: 800; letter-spacing: -.055em; line-height: 1.45; margin-bottom: 16px; }
.hero-copy > p:not(.hero-lead) { font-size: 15px; color: #585221; max-width: 470px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 600; min-height: 45px; }
.dark { background: var(--ink); color: white; }
.dark:hover { background: #3c4433; color: white; }
.outline { background: transparent; border-color: #bec3b4; color: var(--ink); }
.hero .outline { border-color: #b39b2e; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; font-size: 12px; }
.hero-notes .icon { width: 15px; height: 15px; }
.hero-art { position: relative; min-width: 0; border-radius: 15px; overflow: hidden; background: #405345; min-height: 430px; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-position: center; }
.hero-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #11221aee, transparent 75%); }
.hero-badge { position: absolute; z-index: 1; top: 18px; left: 18px; background: white; color: #282a26; padding: 5px 12px; border-radius: 99px; font-size: 12px; }
.hero-caption { position: absolute; z-index: 1; bottom: 30px; left: 28px; right: 20px; color: white; }
.hero-caption span { font-size: 12px; letter-spacing: 2px; color: #ffe27a; }
.hero-caption h2 { margin: 10px 0; font-size: 27px; }
.hero-caption p { color: #e8eee8; font-size: 14px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.section-heading p { font-size: 14px; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-tile { background: white; border: 1px solid var(--line); padding: 22px 17px; border-radius: 13px; transition: transform .2s; }
.category-tile:hover { transform: translateY(-4px); }
.category-tile > .icon { width: 34px; height: 34px; padding: 5px; box-sizing: content-box; background: #fff3c3; color: #57451a; border-radius: 12px; }
.category-tile:nth-child(2) > .icon { background: #ffebe1; color: #a44727; }
.category-tile:nth-child(3) > .icon { background: #e6edff; color: #3f5691; }
.category-tile:nth-child(4) > .icon { background: #ffe6ed; color: #9b4360; }
.category-tile:nth-child(5) > .icon { background: #e7f1e4; color: #3a6841; }
.category-tile:nth-child(6) > .icon { background: #eee9f7; color: #61507c; }
.category-tile h3 { margin: 16px 0 8px; }
.category-tile p { font-size: 13px; min-height: 70px; }
.category-tile > span { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; }
.book-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.cover { width: 100%; aspect-ratio: 3/4; height: auto; border-radius: 10px; }
.book-card { min-width: 0; }
.book-card .eyebrow { margin-top: 14px; font-size: 12px; letter-spacing: 0; }
.book-card h3 { font-size: 16px; margin: 6px 0; }
.book-card p { font-size: 13px; line-height: 1.75; }
.book-card > a { display: block; overflow: hidden; border-radius: 10px; }
.book-card img { transition: transform .25s; }
.book-card a:hover img { transform: scale(1.035); }
.rank-section { background: #242c25; padding: 35px; border-radius: 18px; color: white; }
.rank-section .eyebrow { color: #e6d88f; }
.rank-section p { color: #b9c4b9; }
.rank-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 38px; }
.rank-item { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid #475048; }
.rank-number { font-size: 34px; font-weight: 800; color: var(--yellow); font-style: italic; }
.rank-item > div { flex: 1; }
.rank-item p { font-size: 13px; margin-top: 5px; }
.circle-link { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #677368; border-radius: 50%; }
.circle-link:after { content: ""; }
.wide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.wide-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; background: #edf1fa; border-radius: 14px; padding: 19px; }
.wide-card:nth-child(2), .wide-card:nth-child(3) { background: #f0edf5; }
.wide-card p { font-size: 14px; margin: 10px 0 16px; }
.mood-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.mood-card { padding: 28px 23px; border-top: 3px solid #c46f7e; background: #fff1f0; border-radius: 0 0 13px 13px; display: flex; flex-direction: column; }
.mood-label { font-size: 12px; color: #985162; margin-bottom: 20px; }
.mood-card p { font-size: 14px; line-height: 1.9; margin: 16px 0 24px; flex: 1; }
.adventure-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.adventure-card { position: relative; overflow: hidden; border-radius: 16px; }
.adventure-card img { aspect-ratio: 4/5; border-radius: 0; }
.adventure-card > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: 22px; background: linear-gradient(0deg,#122a29f5,transparent 90%); color: white; }
.adventure-card span { font-size: 12px; color: #dee99d; }
.adventure-card h3 { margin: 7px 0; }
.adventure-card p { color: #d5e3dc; font-size: 13px; }
.clue-list { border-top: 2px solid var(--ink); }
.clue-list article { display: grid; grid-template-columns: 75px 230px 1fr 100px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.clue-tag { font-size: 12px; color: #796a4d; }
.clue-list p, .clue-list a { font-size: 14px; }
.finish-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.finish-item { display: flex; gap: 18px; padding: 22px; background: #eaf1e6; border-radius: 12px; align-items: center; }
.finish-item > .icon:first-child { background: #d2e3c5; border-radius: 50%; width: 40px; height: 40px; padding: 9px; }
.finish-item > div { flex: 1; }
.finish-item p { font-size: 13px; }
.bookshelf { border: 1px dashed #b4bfa8; padding: 32px; border-radius: 16px; background: white; }
#shelf-content .button { margin-top: 15px; }
.saved-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.saved-row > a:first-child { flex: 1; }
.guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; }
.guide-steps article { border-left: 2px solid #d5ddca; padding-left: 22px; }
.guide-steps span { font-size: 33px; font-weight: 800; color: #8a947f; }
.guide-steps h3 { margin: 14px 0 10px; }
.guide-steps p { font-size: 14px; }
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; border-top: 1px solid var(--line); padding-top: 40px; }
.about-large { font-size: 31px; line-height: 1.6; font-weight: 700; color: var(--ink); max-width: 250px; margin-top: 20px; }
.about-section > div > p:not(.about-large) { font-size: 15px; margin-bottom: 15px; }
.subscribe-section { display: grid; grid-template-columns: 130px 1fr 190px; align-items: center; gap: 32px; padding: 32px; background: var(--yellow); border-radius: 18px; }
.subscribe-brand { text-align: center; font-weight: 700; }
.subscribe-brand img { margin: auto; background: none; }
.subscribe-section h2 { font-size: 24px; margin-bottom: 10px; }
.subscribe-section p { color: #574e23; font-size: 14px; }
.subscribe-section .muted { font-size: 12px; margin-top: 8px; }
.subscribe-actions { display: grid; gap: 12px; }
.site-footer { margin-top: 48px; padding: 30px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 13px; gap: 16px; }
.site-footer > div { display: flex; gap: 24px; }
.site-footer > .muted { width: 100%; font-size: 12px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; font-size: 13px; color: var(--muted); }
.category-hero { padding: 38px; background: #fff0a9; border-radius: 18px; margin-top: 0; }
.category-hero h1 { display: flex; align-items: center; gap: 15px; font-size: 35px; margin-bottom: 18px; }
.category-hero h1 .icon { width: 36px; height: 36px; }
.hero-lead.small { font-size: 24px; }
.category-hero > p { max-width: 820px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pills span { font-size: 12px; padding: 4px 12px; background: #fffaf0; border: 1px solid #d7d9cb; border-radius: 99px; }
.search-box { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: white; padding: 8px 14px; border-radius: 8px; }
.search-box input { border: 0; width: 220px; max-width: 100%; background: transparent; font-size: 14px; }
.catalog .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; }
.catalog .cover { aspect-ratio: 4/3; }
.catalog h3 { font-size: 20px; }
.catalog p { font-size: 15px; }
.column-notes { background: white; padding: 32px; border-radius: 14px; border: 1px solid var(--line); }
.column-notes h2, .column-notes h3 { margin-bottom: 16px; }
.column-notes p + h3 { margin-top: 24px; }
.detail-hero { display: grid; grid-template-columns: 280px 1fr; gap: 46px; margin-top: 0; }
.detail-hero h1 { font-size: 38px; }
.synopsis { color: #464e44; margin: 24px 0; font-size: 17px; }
.detail-hero time { font-size: 14px; }
.chapter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.chapter-tile { padding: 27px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.chapter-tile span { font-size: 12px; color: var(--muted); }
.chapter-tile h3 { margin: 12px 0; }
.chapter-tile p { font-size: 14px; }
.chapter-tile > .icon { margin-top: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; }
.reader { max-width: 820px; margin: auto; }
.reader-header { text-align: center; padding: 30px 0; }
.reader-header h1 { font-size: 30px; margin: 16px 0; }
.reader-header p { font-size: 14px; }
.reader-note { padding: 24px; border: 1px solid #dfe4d6; border-radius: 12px; background: #f0f3e9; }
.reader-note h2 { font-size: 18px; margin-bottom: 8px; }
.reader-note p { font-size: 14px; }
.story-panel { margin: 44px 0; background: white; border: 1px solid var(--line); overflow: hidden; border-radius: 14px; }
.panel-caption { padding: 30px; }
.panel-caption h2 { font-size: 24px; margin-bottom: 18px; }
.panel-caption p { font-size: 18px; line-height: 2; color: #424a40; }
figure { margin: 0; }
.panel-image { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: #e8ece5; }
figcaption { font-size: 12px; padding: 12px 24px; color: var(--muted); background: #f5f6f2; }
.chapter-end { text-align: center; padding: 35px; border-block: 1px solid var(--line); }
.chapter-end > span { color: #527248; }
.chapter-end h2 { justify-content: center; margin: 12px 0; font-size: 24px; }
.chapter-end p { font-size: 15px; }
.reader-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.night { --bg: #171d19; --paper: #222b24; --ink: #e4eadd; --muted: #adb9aa; --line: #3c493b; }
.night .site-header, .night .story-panel { background: #222b24; }
.night .reader-note, .night figcaption { background: #2b352a; }
.night .panel-caption p { color: #d5dfce; }
.night .dark { background: #ffda42; color: #20221f; }
.large-reading .panel-caption p { font-size: 22px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #222b24; color: white; padding: 12px 22px; border-radius: 9px; max-width: calc(100% - 30px); z-index: 10; display: none; }
.toast.show { display: block; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; width: auto; height: auto; background: white; padding: 12px; z-index: 20; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
    .hero { gap: 20px; }
    .hero-lead { font-size: 34px; }
    .hero-copy { padding: 15px 5px; }
    .main-nav { gap: 4px; }
    .nav-link { font-size: 13px; gap: 5px; }
    .nav-link .icon { width: 18px; }
    .category-grid, .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .category-tile p { min-height: 46px; }
    .wide-card { grid-template-columns: 105px 1fr; gap: 15px; }
    .wide-card h3 { font-size: 17px; }
    .mood-grid, .adventure-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .clue-list article { grid-template-columns: 70px 180px 1fr; }
    .clue-list article > a { grid-column: 2; }
    .subscribe-section { grid-template-columns: 100px 1fr; }
    .subscribe-actions { grid-column: 2; grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 32px); }
    .header-top { height: 78px; }
    .brand { font-size: 21px; gap: 8px; }
    .brand small { font-size: 10px; letter-spacing: 1px; }
    .shelf-link { padding: 8px 10px; font-size: 12px; }
    .main-nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .nav-link { flex: 1 0 calc(25% - 6px); padding: 8px 2px; font-size: 12px; }
    .hero { grid-template-columns: 1fr; padding: 19px; gap: 24px; border-radius: 16px; }
    .hero-copy { padding: 6px; }
    .hero h1 { margin-top: 12px; }
    .hero-lead { font-size: 38px; }
    .hero-art { min-height: 350px; }
    .hero-caption { left: 20px; bottom: 23px; }
    .hero-caption h2 { font-size: 24px; }
    .hero-notes { font-size: 11px; gap: 11px; }
    main > section { margin-top: 52px; }
    main > section:first-child { margin-top: 22px; }
    h2 { font-size: 23px; gap: 8px; }
    .section-heading { gap: 14px; align-items: start; }
    .section-heading p { font-size: 13px; }
    .text-link { font-size: 12px; }
    .section-heading > .text-link { margin-top: 29px; }
    .section-heading > .text-link .icon { display: none; }
    .category-grid, .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
    .category-tile { padding: 18px; }
    .category-tile p { min-height: 48px; }
    .book-card h3 { font-size: 16px; }
    .book-card p { font-size: 13px; }
    .rank-section { padding: 24px 20px; }
    .rank-grid { grid-template-columns: 1fr; }
    .rank-number { font-size: 29px; }
    .rank-item { gap: 18px; padding: 18px 0; }
    .rank-item h3 { font-size: 17px; }
    .wide-grid { grid-template-columns: 1fr; gap: 16px; }
    .wide-card { grid-template-columns: 110px 1fr; padding: 15px; }
    .wide-card p { font-size: 13px; }
    .mood-grid, .adventure-grid { gap: 14px; }
    .mood-card { padding: 22px 16px; }
    .mood-card h3 { font-size: 17px; }
    .mood-card p { font-size: 13px; }
    .adventure-card > div { padding: 14px; }
    .adventure-card h3 { font-size: 16px; }
    .adventure-card img { aspect-ratio: 3/5; }
    .clue-list article { grid-template-columns: 60px 1fr; gap: 8px 10px; }
    .clue-list h3 { font-size: 16px; }
    .clue-list p { grid-column: 2; }
    .finish-grid { grid-template-columns: 1fr; }
    .finish-item { padding: 18px; gap: 12px; }
    .finish-item h3 { font-size: 17px; }
    .bookshelf { padding: 24px 19px; }
    .guide-steps { grid-template-columns: 1fr; gap: 24px; }
    .guide-steps article { display: grid; grid-template-columns: 45px 1fr; column-gap: 12px; }
    .guide-steps h3 { margin-top: 12px; }
    .guide-steps p { grid-column: 2; }
    .about-section { grid-template-columns: 1fr; gap: 24px; }
    .about-large { max-width: none; font-size: 28px; }
    .subscribe-section { grid-template-columns: 60px 1fr; padding: 24px 20px; gap: 20px; }
    .subscribe-brand { align-self: start; font-size: 12px; }
    .subscribe-brand img { height: 60px; }
    .subscribe-section h2 { font-size: 21px; }
    .subscribe-section h2 .icon { display: none; }
    .subscribe-actions { grid-column: 1/-1; }
    .subscribe-actions .button { padding: 10px 6px; font-size: 13px; }
    .site-footer { flex-direction: column; }
    .category-hero { padding: 25px; }
    .category-hero h1 { font-size: 29px; }
    .hero-lead.small { font-size: 21px; }
    .catalog .section-heading { flex-direction: column; }
    .search-box { width: 100%; }
    .search-box input { width: 100%; min-width: 0; }
    .catalog .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
    .catalog .cover { aspect-ratio: 3/4; }
    .catalog h3 { font-size: 17px; }
    .catalog p { font-size: 13px; }
    .column-notes { padding: 24px; }
    .detail-hero { grid-template-columns: 1fr; gap: 26px; }
    .detail-hero > div:first-child { max-width: 230px; margin: auto; }
    .detail-hero h1 { font-size: 29px; }
    .synopsis { font-size: 16px; }
    .chapter-grid { grid-template-columns: 1fr; gap: 16px; }
    .related-grid { grid-template-columns: 1fr; }
    .related-grid .book-card { display: grid; grid-template-columns: 90px 1fr; column-gap: 16px; }
    .related-grid .book-card > a { grid-row: 1/4; }
    .related-grid .eyebrow { margin-top: 0; }
    .reader-header h1 { font-size: 24px; }
    .reader-note { padding: 20px; }
    .reader-note .button { font-size: 12px; padding: 9px 12px; }
    .panel-caption { padding: 22px; }
    .panel-caption h2 { font-size: 22px; }
    .panel-caption p { font-size: 17px; }
    .reader-nav .button { padding: 10px 13px; font-size: 13px; }
    .chapter-end { padding: 28px 14px; }
    .chapter-end h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
