:root { --ink:#172620; --forest:#183b31; --jade:#316654; --moss:#63856d; --paper:#f5f0e4; --paper-deep:#e8dfc9; --gold:#b99456; --line:rgba(24,59,49,.16); --serif:"Songti SC","STSong","Noto Serif CJK SC",serif; --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans); line-height:1.65; }
button,input { font:inherit; }
button { color:inherit; }
a { color:inherit; }
.site-header { height:72px; display:flex; align-items:center; justify-content:space-between; max-width:1200px; margin:auto; padding:0 32px; position:relative; z-index:5; }
.brand { display:flex; align-items:center; gap:10px; color:var(--forest); text-decoration:none; font-family:var(--serif); font-size:21px; font-weight:700; }
.brand-mark,.book-seal { display:grid; place-items:center; color:var(--paper); background:var(--forest); border-radius:50%; font-family:var(--serif); }
.brand-mark { width:34px; height:34px; font-size:18px; }
.site-header nav { display:flex; gap:28px; }
.site-header nav a { color:#365146; font-size:14px; text-decoration:none; }
.site-header nav a:hover { color:var(--forest); }
.menu-button { display:none; border:0; background:transparent; padding:8px; }
.menu-button span { display:block; width:22px; height:1px; background:var(--forest); margin:5px; }
.hero { min-height:610px; max-width:1440px; margin:0 auto; position:relative; overflow:hidden; color:#fff9e9; }
.hero-image,.hero-shade { position:absolute; inset:0; }
.hero-image { background:url("assets/hero-mountains.png") center/cover no-repeat; transform:scale(1.005); }
.hero-shade { background:linear-gradient(90deg,rgba(11,27,21,.78) 0%,rgba(11,27,21,.48) 43%,rgba(11,27,21,.08) 74%), linear-gradient(0deg,rgba(7,20,15,.5),transparent 55%); }
.hero-content { position:relative; z-index:1; max-width:600px; padding:126px 72px 110px; }
.eyebrow { margin:0 0 12px; color:var(--jade); font-size:12px; font-weight:700; letter-spacing:2px; text-transform:uppercase; }
.hero .eyebrow { color:#e6d2a2; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:var(--serif); letter-spacing:0; }
h1 { font-size:68px; line-height:1; margin:0 0 22px; font-weight:700; }
h2 { color:var(--forest); font-size:38px; line-height:1.25; margin-bottom:14px; }
h3 { font-size:20px; margin-bottom:8px; }
.hero-copy { color:rgba(255,249,233,.9); max-width:520px; font-size:17px; line-height:1.85; }
.hero-actions { display:flex; gap:12px; margin-top:30px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 20px; text-decoration:none; font-size:14px; border:1px solid transparent; }
.button-primary { background:#e6d2a2; color:#1a352b; }
.button-primary:hover { background:#fff0c8; }
.button-quiet { border-color:rgba(255,255,255,.5); color:#fff9e9; }
.hero-note { position:absolute; right:36px; bottom:20px; z-index:1; color:rgba(255,249,233,.72); font-size:12px; }
.stats-band { display:grid; grid-template-columns:repeat(4,1fr); max-width:1120px; margin:-42px auto 0; position:relative; z-index:2; background:#fffdf6; box-shadow:0 12px 35px rgba(26,54,42,.13); }
.stats-band div { padding:25px 30px; border-right:1px solid var(--line); }
.stats-band div:last-child { border:0; }
.stats-band strong,.stats-band span { display:block; }
.stats-band strong { font-family:var(--serif); color:var(--forest); font-size:25px; line-height:1.2; }
.stats-band span { color:#698076; font-size:12px; margin-top:4px; }
.section { max-width:1120px; margin:0 auto; padding:110px 32px; }
.section-heading { max-width:720px; }
.section-heading > p:last-child { color:#52655d; }
.section-heading.compact { max-width:none; display:flex; align-items:baseline; justify-content:space-between; }
.section-heading.compact h2 { margin:0; }
.history-section { display:grid; grid-template-columns: .95fr 1.05fr; gap:80px; }
.timeline { padding-top:10px; }
.timeline-entry { position:relative; padding:0 0 25px 34px; border-left:1px solid var(--line); }
.timeline-entry:before { content:""; position:absolute; width:9px; height:9px; border:2px solid var(--jade); border-radius:50%; background:var(--paper); left:-6px; top:5px; }
.timeline-entry:last-child { padding-bottom:0; }
.timeline-entry .period { color:var(--moss); font-size:12px; font-weight:700; letter-spacing:1px; }
.timeline-entry p { color:#52655d; font-size:14px; margin-bottom:0; }
.featured-section { padding-top:0; }
.featured-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; min-height:320px; margin-top:28px; }
.featured-book { text-align:left; border:1px solid var(--line); background:#ecdfc5; padding:34px; cursor:pointer; transition:transform .2s, box-shadow .2s; display:flex; flex-direction:column; align-items:flex-start; }
.featured-book:nth-child(3) { background:#dce5d9; }
.featured-book:hover,.book-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(22,51,41,.12); }
.featured-main { background:var(--forest); color:#f8f0dd; border-color:var(--forest); }
.book-seal { width:34px; height:34px; font-size:17px; flex:0 0 auto; }
.featured-main .book-seal { background:#e6d2a2; color:var(--forest); }
.book-meta { font-size:12px; color:#62766b; margin-top:32px; }
.featured-main .book-meta { color:#d4c8a8; }
.featured-book strong { font-family:var(--serif); font-size:27px; line-height:1.25; margin-top:6px; }
.featured-book em { font-family:var(--serif); font-size:16px; margin-top:12px; font-style:normal; color:#d6c69f; }
.book-link,.open-book { margin-top:auto; padding-top:30px; font-size:13px; }
.book-link b,.open-book b { font-size:18px; font-weight:400; margin-left:4px; }
.library-section { background:#efe8d8; max-width:none; padding-left:max(32px,calc((100vw - 1056px)/2)); padding-right:max(32px,calc((100vw - 1056px)/2)); }
.library-heading { max-width:1056px; margin:auto; display:flex; align-items:end; justify-content:space-between; gap:24px; }
.library-heading h2 { margin:0; }
.search-box { position:relative; width:310px; }
.search-box input { width:100%; height:44px; border:1px solid var(--line); background:#faf7ee; padding:0 38px 0 14px; outline:none; font-size:14px; }
.search-box input:focus { border-color:var(--jade); box-shadow:0 0 0 3px rgba(49,102,84,.12); }
.search-box span:last-child { position:absolute; right:14px; top:8px; color:var(--jade); font-size:24px; }
.filter-bar { max-width:1056px; margin:30px auto 24px; display:flex; gap:8px; flex-wrap:wrap; }
.filter-bar button { min-height:34px; border:1px solid var(--line); background:transparent; padding:0 13px; color:#51665c; cursor:pointer; font-size:13px; }
.filter-bar button.is-active,.filter-bar button:hover { border-color:var(--forest); background:var(--forest); color:#fffaf0; }
.book-grid { max-width:1056px; margin:auto; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.book-card { min-height:228px; text-align:left; border:1px solid var(--line); background:#faf7ee; padding:23px; cursor:pointer; transition:transform .2s,box-shadow .2s; display:flex; flex-direction:column; align-items:flex-start; }
.book-card-top { width:100%; display:flex; justify-content:space-between; align-items:center; color:#74877c; font-size:11px; }
.book-card-top .book-seal { width:30px; height:30px; background:#dce5d9; color:var(--forest); }
.book-card strong { font-family:var(--serif); color:var(--forest); font-size:23px; margin-top:22px; line-height:1.2; }
.book-card small { color:#7a8a80; font-size:11px; margin-top:7px; }
.book-card p { color:#506359; font-size:13px; line-height:1.65; margin:13px 0 0; }
.empty-state { grid-column:1/-1; color:#63786d; }
.collection-note { max-width:1056px; margin:24px auto 0; color:#6b7d72; font-size:12px; }
.guide-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; margin-top:32px; }
.guide-grid article { border-top:1px solid var(--forest); padding-top:20px; }
.guide-grid span { display:block; color:var(--gold); font-family:var(--serif); font-size:18px; }
.guide-grid p { color:#5e6d65; font-size:14px; }
footer { background:var(--forest); color:#d8dece; padding:46px max(32px,calc((100vw - 1056px)/2)); font-size:12px; }
.footer-brand { display:flex; align-items:center; gap:9px; color:#f7eedb; font-family:var(--serif); font-size:17px; margin-bottom:15px; }
.footer-brand span { border:1px solid #d2bc84; display:grid; place-items:center; width:28px; height:28px; color:#e6d2a2; }
footer p { max-width:730px; margin-bottom:8px; }
.record-slot { color:#e8d39f; }
.reader { width:min(1080px,calc(100vw - 32px)); max-height:min(760px,calc(100vh - 32px)); padding:0; border:0; background:transparent; color:var(--ink); }
.reader::backdrop { background:rgba(11,27,21,.68); backdrop-filter:blur(3px); }
.reader-shell { background:#fbf7ec; max-height:inherit; overflow:auto; }
.reader-header { display:flex; justify-content:space-between; align-items:flex-start; padding:30px 36px 20px; border-bottom:1px solid var(--line); }
.reader-header p { color:var(--moss); font-size:12px; font-weight:700; margin-bottom:3px; }
.reader-header h2 { margin:0; font-size:30px; }
.reader-tools { display:flex; gap:7px; }
.icon-button { width:36px; height:36px; border:1px solid var(--line); background:transparent; color:var(--forest); font-size:25px; line-height:1; cursor:pointer; }
.icon-button:hover { background:var(--forest); color:#fffaf0; }
.type-button { font-family:var(--sans); font-size:12px; font-weight:700; }
.reader-modebar { display:flex; align-items:center; gap:8px; padding:12px 36px; border-bottom:1px solid var(--line); background:#f4eddd; }
.reader-modebar button { min-height:31px; border:1px solid var(--line); background:transparent; color:#52655d; padding:0 12px; font-size:12px; cursor:pointer; }
.reader-modebar button.is-active,.reader-modebar button:hover { color:#fffaf0; border-color:var(--forest); background:var(--forest); }
.reader-modebar span { margin-left:auto; color:#728378; font-size:11px; }
.reader-body { display:grid; grid-template-columns:280px 1fr; min-height:430px; }
.reader-aside { background:#eee4ce; padding:30px; color:#506359; font-size:14px; }
.reader-aside dl { border-top:1px solid var(--line); margin:25px 0; padding-top:16px; }
.reader-aside dl div { margin-bottom:13px; }
.reader-aside dt { color:#74877c; font-size:11px; }
.reader-aside dd { margin:2px 0 0; }
.bookmark-button,.inline-reader-button,.source-link { display:flex; width:100%; justify-content:space-between; align-items:center; border:1px solid var(--forest); color:var(--forest); min-height:42px; padding:0 12px; background:transparent; text-decoration:none; font-size:13px; text-align:left; cursor:pointer; }
.bookmark-button { margin-bottom:6px; border-color:#9fb8a7; color:#315f4f; }
.bookmark-button span { font-size:16px; }
.bookmark-button.is-saved { background:#dce9da; border-color:#6e947c; }
.bookmark-hint { color:#77867e; font-size:11px; line-height:1.45; margin:0 0 16px; }
.inline-reader-button { margin-bottom:8px; background:var(--forest); color:#fffaf0; }
.inline-reader-button:hover,.source-link:hover { color:#fffaf0; background:var(--jade); }
.reader-text { padding:44px max(32px,7vw); font-family:var(--serif); font-size:var(--reader-font-size,18px); line-height:2.05; }
.reader-text p { margin:0 0 18px; }
.reader-lead { font-family:var(--sans); color:var(--moss); font-size:11px; font-weight:700; letter-spacing:1px; }
.reader-callout { margin-top:32px; padding:22px; background:#e7efdf; color:#40584b; font-family:var(--sans); font-size:13px; line-height:1.7; }
.reader-callout p { margin:5px 0 0; }
.embedded-notice { margin-bottom:16px; padding:11px 13px; background:#e7efdf; color:#40584b; font-family:var(--sans); font-size:12px; line-height:1.6; }
.source-frame { display:block; width:100%; height:680px; border:1px solid var(--line); background:#fff; }
.reader-footer { display:flex; justify-content:space-between; align-items:center; min-height:58px; padding:0 36px; border-top:1px solid var(--line); background:#f4eddd; }
.reader-footer button { display:flex; align-items:center; gap:8px; border:0; background:transparent; color:var(--forest); padding:10px 0; font-size:13px; cursor:pointer; }
.reader-footer button:hover { color:var(--jade); }
.reader-footer span { color:#738278; font-size:11px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:760px) { .site-header { height:62px; padding:0 18px; } .site-header nav { display:none; position:absolute; left:0; right:0; top:62px; padding:18px; background:#fbf7ec; border-bottom:1px solid var(--line); box-shadow:0 12px 20px rgba(22,51,41,.12); } .site-header.menu-open nav { display:grid; gap:14px; } .menu-button { display:block; } .hero { min-height:570px; } .hero-image { background-position:61% center; } .hero-shade { background:linear-gradient(90deg,rgba(11,27,21,.78),rgba(11,27,21,.42)),linear-gradient(0deg,rgba(7,20,15,.6),transparent 60%); } .hero-content { padding:105px 24px 104px; } h1 { font-size:54px; } h2 { font-size:30px; } .hero-copy { font-size:15px; } .hero-note { left:24px; right:24px; bottom:18px; } .stats-band { grid-template-columns:repeat(2,1fr); margin:0; box-shadow:none; } .stats-band div { padding:18px; border-bottom:1px solid var(--line); } .stats-band div:nth-child(2) { border-right:0; } .section { padding:72px 24px; } .history-section { display:block; } .timeline { margin-top:34px; } .featured-section { padding-top:0; } .featured-grid { grid-template-columns:1fr; } .featured-book { min-height:195px; } .featured-main { min-height:245px; } .library-section { padding-left:24px; padding-right:24px; } .library-heading { display:block; } .search-box { width:100%; margin-top:22px; } .book-grid { grid-template-columns:1fr; } .guide-grid { grid-template-columns:1fr; gap:20px; } .reader { width:100vw; max-height:100vh; height:100vh; } .reader-shell { height:100%; } .reader-header { padding:20px 22px 15px; position:sticky; top:0; background:#fbf7ec; z-index:2; } .reader-header h2 { font-size:25px; } .reader-modebar { padding:10px 22px; position:sticky; top:75px; z-index:2; } .reader-modebar span { display:none; } .reader-body { display:block; } .reader-aside { padding:24px; } .reader-text { padding:32px 24px 48px; font-size:var(--reader-font-size,17px); } .source-frame { height:680px; } .reader-footer { padding:0 22px; position:sticky; bottom:0; } }
