:root {
  --bg:#f7f6f3; --surface:#fff; --ink:#242320; --muted:#79756f; --light:#a29c94;
  --line:#e8e4de; --green:#2b6f5b; --serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:92px; -webkit-text-size-adjust:100%; }
body { margin:0; min-width:280px; color:var(--ink); background:var(--bg); font:13px/1.65 var(--sans); -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; color:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button { border:0; background:none; padding:0; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
[hidden] { display:none!important; }
::selection { background:#d5e7dd; }
.wrap { max-width:1240px; margin-inline:auto; padding-inline:24px; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }
.icon { width:16px; height:16px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.skip-link { position:fixed; z-index:200; left:20px; top:-60px; background:white; padding:8px 15px; border-radius:8px; }
.skip-link:focus { top:10px; }
.site-header { height:66px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img { border-radius:9px; background:white; object-fit:contain; box-shadow:0 2px 8px #29211610; border:1px solid #e8e4de; }
.brand span { font:600 15px var(--serif); letter-spacing:.06em; }
.top-nav { display:flex; align-items:center; gap:8px; }
.nav-pill { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:30px; height:33px; padding-inline:13px; white-space:nowrap; font-size:12px; transition:transform .2s,box-shadow .2s; }
.nav-pill:hover { transform:translateY(-2px); }
.nav-pill .icon { width:14px; height:14px; }
.nav-pill[aria-current="page"] { box-shadow:0 0 0 2px var(--bg),0 0 0 3px #a5aaa2; }
.nav-film { background:linear-gradient(115deg,#9265d2,#b28ce6 75%,#d1b9ee); color:white; box-shadow:0 4px 10px #a780d326; }
.nav-audio { background:linear-gradient(115deg,#f39db7,#f6b879 80%,#f4ca87); color:white; box-shadow:0 4px 10px #f4a58b26; }
.nav-software { color:#d9f3ed; background:linear-gradient(115deg,#11262d,#21434b); border:1px solid #3a6b69; box-shadow:0 4px 10px #18393f15; }
.nav-software .icon { color:#88d0bc; }
.nav-books { color:white; background:#252522; box-shadow:0 4px 10px #24232017; }
.nav-professional { color:#edf5ff; background:linear-gradient(115deg,#244f72,#487d9c); box-shadow:0 4px 10px #244f7226; }
.hero { display:flex; justify-content:space-between; align-items:center; gap:28px; padding-top:23px; padding-bottom:23px; min-height:207px; }
.hero-copy { min-width:0; }
.eyebrow { margin:0 0 6px; color:var(--green); font-size:11px; font-weight:600; letter-spacing:.22em; }
h1 { margin:0; font:600 clamp(28px,3vw,38px)/1.4 var(--serif); letter-spacing:.015em; }
.hero-description { color:var(--muted); font-size:13px; line-height:1.85; max-width:37em; margin:10px 0 0; }
.hero-description strong { color:var(--ink); font-weight:600; }
.stats { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.stat { display:inline-flex; align-items:center; gap:5px; background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:2px 8px; font-size:11px; color:var(--muted); box-shadow:0 1px 2px #18141005; }
.stat i { font-style:normal; color:var(--light); font-size:10px; letter-spacing:.03em; }
.hero-art { flex-shrink:0; width:184px; border-radius:16px; border:1px solid #d6dfE7; background:#edf3f7; box-shadow:0 16px 30px -23px #17375277; padding:5px; }
.hero-art img { display:block; width:100%; height:auto; border-radius:11px; }
.quote-wrap { margin-bottom:3px; }
.quote-card { position:relative; padding:19px 22px 15px; background:var(--surface); border:1px solid var(--line); border-radius:15px; box-shadow:0 1px 2px #18141005; min-height:117px; }
.quote-label { color:#749589; font-size:10px; letter-spacing:.18em; margin:0 0 7px; }
.quote-card blockquote { font:16px/1.8 var(--serif); letter-spacing:.025em; margin:0 32px 10px 0; color:#585850; }
.quote-bottom { display:flex; align-items:center; gap:22px; font-size:10.5px; color:var(--muted); }
.quote-bottom button { color:#628c7a; font-size:11px; }
.quote-bottom button:hover { color:var(--green); }
.quote-refresh { position:absolute; top:12px; right:12px; color:#a4aaa2; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; }
.icon-button:hover { background:#eeeee8; color:var(--green); }
.quote-refresh .icon { width:13px; height:13px; }
.toolbar { position:sticky; top:0; z-index:30; background:#f7f6f3ec; backdrop-filter:blur(14px); border-bottom:1px solid transparent; transition:box-shadow .2s; }
.toolbar.is-stuck { border-color:var(--line); box-shadow:0 8px 20px -18px #29251f99; }
.toolbar-inner { min-height:73px; display:flex; align-items:center; gap:12px; justify-content:space-between; }
.search-box { display:flex; align-items:center; gap:9px; width:420px; height:40px; border:1px solid var(--line); border-radius:11px; padding:0 12px; background:white; box-shadow:0 1px 2px #18141005; color:#aaa69d; }
.search-box:focus-within { border-color:#a6c4b6; box-shadow:0 0 0 3px #2b6f5b09; }
.search-box input { width:100%; min-width:0; background:none; outline:none; border:0; font-size:12px; height:100%; }
.search-box input::placeholder { color:#a09b93; }
.search-box input:focus-visible { outline:none; }
.search-box kbd { font:11px var(--sans); border:1px solid #ece9e3; border-radius:4px; padding:0 5px; color:#b1aba2; }
.filter-controls { display:flex; align-items:center; gap:9px; }
.control { height:40px; padding:0 13px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:0 1px 2px #18141005; color:var(--muted); font-size:12px; white-space:nowrap; }
.control:hover { border-color:#cbd9cf; color:var(--green); }
select.control { cursor:pointer; padding-right:28px; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%239b9b91' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; }
.random-button .icon { width:14px; height:14px; color:#9d9386; }
.shelf { min-height:340px; padding-top:4px; }
.category-chips { display:flex; flex-wrap:wrap; gap:8px; padding-bottom:7px; }
.chip { display:inline-flex; align-items:center; gap:4px; min-height:31px; padding:4px 13px; background:white; color:#79756e; border:1px solid var(--line); border-radius:24px; font-size:12px; box-shadow:0 1px 2px #18141004; transition:background .15s,color .15s,border-color .15s; }
.chip small { font-size:10px; color:#aaa49b; font-variant-numeric:tabular-nums; }
.chip:hover { border-color:#c9d7cd; color:var(--green); }
.chip[aria-pressed="true"] { color:white; background:#242521; border-color:#242521; }
.chip[aria-pressed="true"] small { color:#c5c8bd; }
.shelf-summary { display:flex; align-items:center; gap:15px; min-height:45px; color:#9e988f; font-size:11px; }
.shelf-summary #reset { font-size:11px; color:var(--green); }
.preview-label { display:flex; align-items:center; gap:5px; margin-left:auto; color:#a59c8e; font-size:10px; }
.preview-label i { display:inline-block; width:5px; height:5px; border-radius:50%; background:#cbbd9b; }
.book-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:31px 22px; }
.book-item { position:relative; min-width:0; }
.book-link { display:flex; flex-direction:column; text-align:left; width:100%; min-width:0; }
.cover { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; aspect-ratio:2/3; overflow:hidden; border-radius:9px; color:#fff; padding:30px 14px 27px; background:linear-gradient(145deg,hsl(var(--h) var(--s) var(--l)),hsl(calc(var(--h) - 9) calc(var(--s) - 5%) calc(var(--l) + 9%))); box-shadow:0 1px 2px #18141022,0 10px 20px -14px #18141099; transition:transform .3s,box-shadow .3s; }
.cover:before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,#0003,transparent 14%),repeating-linear-gradient(46deg,#ffffff09 0 2px,transparent 2px 5px); }
.cover:after { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px #ffffff26,inset 0 1px 0 #ffffff33; pointer-events:none; }
.cover-image { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; }
.cover.image-cover .cover-title,.cover.image-cover .cover-author,.cover.image-cover .cover-category { visibility:hidden; }
.cover-title { z-index:1; font:600 18px/1.6 var(--serif); letter-spacing:.04em; text-align:center; word-break:break-word; overflow-wrap:anywhere; text-wrap:balance; text-shadow:0 1px 3px #0003; display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.cover-title.long { font-size:15px; }
.cover-author { z-index:1; font-size:9px; color:#ffffffb3; letter-spacing:.08em; text-align:center; margin-top:9px; line-height:1.5; }
.cover-format { position:absolute; top:8px; right:8px; background:#ffffff2b; border-radius:4px; padding:1px 5px; font:9px/1.5 var(--sans); letter-spacing:.06em; z-index:2; }
.cover-category { position:absolute; bottom:16px; left:8px; right:8px; text-align:center; font-size:9px; color:#ffffffa6; letter-spacing:.22em; z-index:1; }
.book-title { font-size:12px; font-weight:500; line-height:1.55; margin:9px 0 0; min-height:3.1em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.book-author { font-size:10.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-height:1.65em; margin:0; }
.book-meta { display:flex; align-items:center; gap:6px; margin:3px 0 0; font-size:10px; color:var(--light); flex-wrap:wrap; }
.book-meta .dot { width:2px; height:2px; border-radius:50%; background:#bdb6ab; }
.book-isbn { display:flex; flex-wrap:wrap; gap:0 4px; margin:4px 0 0; color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }
.book-isbn span:last-child { min-width:0; overflow-wrap:anywhere; }
.dialog-isbn { margin:8px 0 0; color:var(--muted); font-size:12px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.code-label { font-size:9px; color:#7a8c7b; }
.book-link:hover .cover { transform:translateY(-5px); box-shadow:0 3px 6px #18141015,0 23px 32px -21px #181410a6; }
.book-link:hover .book-title { color:var(--green); }
.book-item.highlight .cover { outline:3px solid #87ad96; outline-offset:4px; }
.shelf-more { text-align:center; padding:32px 0 0; }
.shelf-more p { margin:12px 0 0; font-size:12px; color:var(--muted); }
.shelf-ending { display:flex; align-items:center; justify-content:center; gap:12px; padding:48px 0 37px; color:#b0aa9e; }
.shelf-ending>span { height:1px; width:44px; background:#e4e0d7; }
.shelf-ending .icon { width:14px; height:14px; }
.shelf-ending p { font:11px var(--serif); letter-spacing:.08em; }
.empty-state { grid-column:1/-1; display:flex; align-items:center; flex-direction:column; padding:65px 15px 75px; text-align:center; color:var(--muted); }
.empty-state>.icon { height:30px; width:30px; color:#9baf9e; margin-bottom:12px; }
.empty-state h2 { font:600 18px var(--serif); margin:8px 0; }
.empty-state p { font-size:12px; color:var(--light); margin:0 0 20px; }
.empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.skeleton-cover { aspect-ratio:2/3; border-radius:9px; background:linear-gradient(110deg,#ebe8e1 25%,#f2efe9 45%,#ebe8e1 65%); background-size:200% 100%; animation:shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position:-200% 0; } }
.site-footer { text-align:center; border-top:1px solid var(--line); padding-top:24px; padding-bottom:35px; color:var(--light); font-size:11px; }
.site-footer p { margin:4px 0; }
.site-footer b { font-weight:500; color:#76746a; }
.footer-dot { margin-inline:10px; }
.footer-links { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin:7px 0 12px; }
.footer-links button { color:#688b78; font-size:11px; border-bottom:1px dashed #c3d2c5; }
.site-footer .footer-note { font-size:10px; }
.footer-small { color:#b7b0a5; font-size:10px; }
.floating-guestbook { position:fixed; z-index:35; right:22px; bottom:24px; display:flex; align-items:center; gap:7px; height:41px; border-radius:28px; padding:0 16px; color:white; background:var(--green); box-shadow:0 8px 20px -9px #1f5a48cc; font-size:12px; }
.floating-guestbook:hover { background:#235c4b; }
.floating-guestbook .icon { width:14px; height:14px; }
.back-top { position:fixed; z-index:35; right:22px; bottom:76px; width:39px; height:39px; border:1px solid var(--line); background:white; color:#878476; box-shadow:0 5px 15px #00000008; }
.toast { position:fixed; z-index:150; left:50%; bottom:25px; transform:translate(-50%,15px); opacity:0; pointer-events:none; max-width:calc(100% - 40px); width:max-content; padding:10px 18px; color:#fff; background:#282824f5; border-radius:24px; font-size:12px; transition:opacity .2s,transform .2s; box-shadow:0 5px 20px #0002; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.resource-dialog { width:min(420px,calc(100% - 36px)); padding:30px; border:1px solid var(--line); border-radius:20px; background:var(--bg); color:var(--ink); box-shadow:0 24px 80px #0003; }
.resource-dialog::backdrop { background:#24241e55; backdrop-filter:blur(3px); }
.dialog-close { position:absolute; right:10px; top:10px; color:var(--muted); }
.dialog-label { font-size:10px; letter-spacing:.18em; color:var(--green); }
.resource-dialog h2 { font:600 25px/1.6 var(--serif); margin:10px 0 4px; }
#dialog-author { color:var(--muted); font-size:12px; margin:0; }
.dialog-description { font-size:13px; line-height:1.9; color:#827d71; margin:18px 0; }
.dialog-links { display:flex; flex-direction:column; gap:9px; }
.dialog-download { display:block; text-align:center; color:white; background:var(--green); border-radius:9px; padding:10px; }
.dialog-code { text-align:center; color:var(--muted); font-size:12px; }
.dialog-code button { color:var(--green); margin-left:9px; }
.noscript { position:fixed; bottom:0; background:#fff5dd; width:100%; padding:15px; text-align:center; margin:0; z-index:200; }
@media(min-width:1500px) { .wrap { max-width:1288px; } }
@media(max-width:1023px) {
  .wrap { padding-inline:22px; }
  .brand span { display:none; }
  .hero-art { width:148px; }
  .book-grid { grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:26px 18px; }
  .search-box { flex:1; }
  .cover-title { font-size:17px; }
}
@media(max-width:639px) {
  html { scroll-padding-top:125px; }
  .wrap { padding-inline:16px; }
  .site-header { height:58px; gap:12px; }
  .brand img { width:29px; height:29px; }
  .top-nav { gap:5px; }
  .nav-pill { height:29px; padding-inline:9px; gap:4px; font-size:10px; }
  .nav-pill .icon { width:12px; height:12px; }
  .nav-pill[data-short] span { display:none; }
  .nav-pill[data-short]:after { content:attr(data-short); }
  .nav-books span:last-child { display:none; }
  .hero { position:relative; min-height:0; padding-top:13px; padding-bottom:17px; display:block; }
  .eyebrow { font-size:10px; margin-bottom:5px; }
  h1 { font-size:29px; max-width:calc(100% - 110px); }
  .hero-description { margin-top:9px; font-size:11px; line-height:1.8; max-width:100%; }
  .hero-copy { min-height:96px; }
  .hero .eyebrow { max-width:calc(100% - 110px); }
  .hero-description { padding-top:10px; }
  .hero-art { position:absolute; right:16px; top:10px; width:96px; border-radius:10px; padding:3px; }
  .hero-art img { border-radius:6px; }
  .stats { margin-top:9px; gap:9px; flex-wrap:wrap; }
  .stat { border:0; background:none; box-shadow:none; padding:0; font-size:10px; gap:4px; }
  .stat i { font-size:10px; }
  .stat+.stat:before { content:""; width:1px; height:9px; background:#dcd6cd; margin-right:5px; }
  .quote-card { border-radius:12px; min-height:105px; padding:14px 16px 12px; }
  .quote-card blockquote { font-size:14px; line-height:1.8; margin-right:15px; margin-bottom:9px; }
  .quote-label { font-size:9px; }
  .quote-bottom { font-size:10px; gap:16px; }
  .quote-bottom button { font-size:10px; }
  .quote-refresh { top:6px; right:5px; }
  .toolbar-inner { flex-wrap:wrap; gap:8px; padding-block:12px; }
  .search-box { width:100%; flex:1 1 100%; height:38px; }
  .filter-controls { width:100%; gap:7px; }
  .control { height:34px; border-radius:9px; padding-inline:11px; font-size:11px; }
  select.control { flex:1; padding-right:25px; min-width:0; }
  .random-button { flex:1.12; }
  .category-chips { gap:6px; flex-wrap:nowrap; overflow:auto; scrollbar-width:none; padding-bottom:8px; }
  .category-chips::-webkit-scrollbar { display:none; }
  .chip { white-space:nowrap; flex-shrink:0; min-height:29px; font-size:11px; padding:3px 11px; }
  .chip small { font-size:9px; }
  .shelf-summary { min-height:36px; font-size:10px; }
  .book-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:23px 12px; }
  .cover { border-radius:7px; padding:23px 10px; }
  .cover-title { font-size:15px; line-height:1.55; letter-spacing:.015em; }
  .cover-title.long { font-size:12px; }
  .cover-author { font-size:8px; margin-top:6px; letter-spacing:.01em; }
  .cover-format { right:5px; top:5px; font-size:7px; padding:1px 4px; }
  .cover-category { font-size:8px; bottom:12px; }
  .book-title { font-size:11px; margin-top:7px; }
  .book-author { font-size:9px; }
  .book-meta { font-size:9px; gap:4px; }
  .shelf-ending { padding:35px 0 27px; gap:9px; }
  .shelf-ending>span { width:25px; }
  .shelf-ending p { font-size:10px; }
  .site-footer { padding-bottom:85px; font-size:10px; }
  .floating-guestbook { right:15px; bottom:19px; height:38px; font-size:11px; padding:0 13px; }
  .back-top { right:15px; bottom:68px; width:36px; height:36px; }
}
@media(max-width:370px) { .nav-pill { padding-inline:7px; font-size:9px; } .top-nav { gap:4px; } .site-header { gap:6px; } .nav-pill .icon { display:none; } .cover-title { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*:before,*:after { animation:none!important; transition:none!important; } }
