:root {
  color-scheme: light;
  --ink: #302a23;
  --muted: #716556;
  --red: #8e392e;
  --line: #d9cfbf;
  --paper: #fbf9f3;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: linear-gradient(#fbfaf5eb, #fbfaf5eb), url("assets/paper.gif") repeat;
  color: var(--ink);
  font: 15px/1.65 var(--sans);
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, summary, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a85128; outline-offset: 3px; }
section:focus, main:focus, body:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: 0; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: absolute; z-index: 10; background: white; padding: 8px 20px; }
.frame { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.masthead {
  position: relative;
  z-index: 0;
  background: #fcfbf8;
}
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 38%;
  background: linear-gradient(90deg,#fcfbf8,transparent 31%), url("assets/masthead.jpg") no-repeat left -572px top;
  background-size: auto, 1290px 153px;
}
.mast-inner { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #28201b; }
.wordmark-icon { width: 64px; height: 58px; object-fit: contain; }
.wordmark-name { display: grid; justify-items: start; }
.wordmark-name > strong { font: 700 28px/1.35 "LXGW WenKai", var(--serif); letter-spacing: .06em; white-space: nowrap; }
.wordmark-name > span { font: 500 12px/1.5 Georgia,serif; letter-spacing: .025em; white-space: nowrap; }
.search-form { display: flex; align-items: stretch; background: #fffdf9ed; border: 1px solid #bfb2a1; width: 280px; }
.search-form:focus-within { border-color: var(--red); }
.search-form input { min-width: 0; width: 100%; padding: 10px 13px; border: 0; background: none; font-size: 14px; }
.search-form input::placeholder { color: #776d60; }
.search-form button { background: #f0ecdf; border: 0; border-left: 1px solid #d4c9b7; min-width: 62px; font-size: 14px; }
.search-form button:hover { background: #e5dcca; }
.nav { background: #57391f url("assets/nav.jpg") repeat-x center / auto 100%; border-bottom: 2px solid #aa8458; }
.nav-inner { display: flex; align-items: stretch; }
.nav a { padding: 10px 24px; color: #fff9e9; position: relative; font-size: 15px; letter-spacing: .045em; }
.nav a[aria-current], .nav a:hover { background: #28190f55; }
.nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 24px; right: 24px; height: 3px; background: #efcf94; }
.layout { display: grid; grid-template-columns: 198px minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 32px 60px; }
.content { min-width: 0; }
.sidebar { position: sticky; top: 16px; }
.side-links { border-top: 3px solid #7a4932; background: #f5f1e8c9; }
.side-heading, #menuButton { color: #533b2b; padding: 13px 17px; font: 600 21px/1.4 var(--serif); letter-spacing: .08em; border-bottom: 1px solid #cfc1ad; }
#menuButton { display: none; }
#sectionNav { padding: 4px 13px 8px; }
.nav-group + .nav-group { border-top: 1px solid #ded5c4; }
.nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border: 0; background: none; padding: 7px 4px; text-align: left; font-size: 14px; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"], .nav-panel a:hover { color: var(--red); }
.nav-toggle[aria-expanded="true"] { font-weight: 700; }
.nav-indicator { color: #786954; font: 17px/1 var(--sans); }
.nav-panel a { display: block; padding: 6px 8px 10px 13px; color: #6e5847; font-size: 13px; }
.nav-panel a::after { content: " ›"; }
.spotlight {
  display: grid; grid-template-columns: 53% 47%; position: relative; isolation: isolate;
  min-height: 290px; border: 1px solid #d6c7af; overflow: hidden;
  background: linear-gradient(105deg, #f5f0e2ed, #f1e8d6e8), url("assets/paper.gif");
}
.spot-copy { grid-area: 1 / 1; min-width: 0; padding: 27px clamp(20px, 2.8vw, 43px) 31px; position: relative; z-index: 1; align-self: center; }
.spot-copy[inert] { visibility: hidden; }
.spot-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #735747; }
.spot-label span:first-child { font-weight: 700; color: var(--red); letter-spacing: .12em; }
.spot-label i { height: 1px; width: 23px; background: #b19475; }
.spot-titles { margin: 13px 0 7px; }
.spot-titles h1 { font-size: clamp(27px, 2.8vw, 42px); color: #412e23; font-weight: 650; letter-spacing: .07em; line-height: 1.35; text-wrap: balance; }
.spot-subtitle { font: 500 clamp(16px, 1.45vw, 21px)/1.55 var(--serif); color: #624a3b; letter-spacing: .05em; }
.spot-subtitle:empty { display: none; }
.spot-note { color: #6e5948; font-size: 14px; line-height: 1.8; }
.primary-button { display: inline-flex; align-items: center; gap: 20px; padding: 7px 16px; min-height: 40px; margin-top: 16px; border: 1px solid #80352a; background: var(--red); color: #fffaf1; font-size: 14px; }
.primary-button:hover { background: #732b23; }
.spot-art {
  --jacket: url("assets/preview/books/20250910110931FileLogoImg.webp");
  grid-area: 1 / 2; position: relative; isolation: isolate; overflow: hidden;
  background: #d3c4ab;
}
.spot-art::before, .spot-art::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; }
.spot-art::before { background: var(--jacket) 50% 35% / 110% auto no-repeat; filter: grayscale(1) sepia(.4); mix-blend-mode: multiply; opacity: .15; }
.spot-art::after { background: linear-gradient(110deg, #eae2cfb8, transparent 45%, #5d40211c), linear-gradient(0deg,#49321e26,transparent 48%); }
#spotCover { position: absolute; inset: 0; margin: auto; width: auto; height: 228px; max-width: 80%; object-fit: contain; transform: rotate(-6deg) translateY(-4px); filter: drop-shadow(9px 12px 7px #45331f50); }
.spot-pager { position: absolute; bottom: 10px; right: 12px; display: flex; align-items: center; background: #fbf7efe8; color: #503724; border: 1px solid #ad9b80; }
.spot-pager button { display: grid; place-items: center; border: 0; background: none; width: 35px; height: 32px; font: 24px/1 Georgia, serif; }
.spot-pager button:hover { background: #e8ddc9; }
#spotIndex { min-width: 36px; text-align: center; font: 13px/1.4 Georgia, serif; font-variant-numeric: tabular-nums; }
.section { margin-top: 37px; scroll-margin-top: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #c9bba6; padding: 0 0 11px; margin-bottom: 19px; }
.section-title h2 { display: flex; gap: 13px; align-items: center; color: #4d3022; font-weight: 650; font-size: 27px; line-height: 1.4; letter-spacing: .055em; overflow-wrap: anywhere; }
.section-title h2::before { content: ""; flex: none; width: 5px; height: 23px; background: var(--red); }
.shelf-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 13px; }
.shelf-heading > span { color: var(--muted); font-size: 12px; }
.text-button, .ink-link { color: var(--red); font-size: 14px; font-weight: 500; }
.text-button { flex: none; background: none; border: 0; padding: 5px 2px 5px 8px; }
.text-button::after { content: " ›"; font-family: Georgia, serif; font-size: 17px; }
.text-button:hover, .ink-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.book { display: flex; flex-direction: column; align-items: stretch; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.cover { width: 100%; height: clamp(145px, 14vw, 202px); display: grid; place-items: center; padding: 15px; border: 1px solid #e4ddcf; background: #f0ece2; }
.book:nth-child(4n+2) .cover { background-color: #f3e9df; }
.book:nth-child(4n+3) .cover { background-color: #ecebe2; }
.book:nth-child(4n) .cover { background-color: #eee8dd; }
.cover img { display: block; width: auto; height: auto; max-width: 93%; max-height: 100%; min-height: 0; box-shadow: 2px 4px 6px #3e2e1f30; }
.book-info { display: block; min-width: 0; }
.book .book-info { flex: 1; padding-top: 10px; width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; align-items: baseline; gap: 4px 8px; }
.book-info strong { font: 600 17px/1.45 var(--serif); color: #3e3027; overflow-wrap: anywhere; }
.book .book-info strong { grid-column: 1 / -1; }
.book-date, .book-price { font: 12px/1.6 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.book:hover .cover { border-color: #b79e7f; }
.book:hover strong, .editorial-book:hover strong { color: var(--red); }
.search-results { margin: 0 0 30px; background: #fffdf7; border: 1px solid var(--line); padding: 18px; }
.search-results h2 { font-size: 21px; }
.no-results { grid-column: 1 / -1; color: var(--muted); }
#editorialSections { border-bottom: 1px solid var(--line); }
.editorial-section { margin: 0; padding: 22px 4px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: 24px; align-items: center; border-top: 1px solid var(--line); }
.editorial-section:first-child { border-top: 0; padding-top: 6px; }
.editorial-header h3 { font-size: 22px; font-weight: 600; color: #563a2b; line-height: 1.4; margin-bottom: 6px; }
.editorial-header p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.editorial-shelf-link { display: inline-block; margin-top: 7px; }
.shelf-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.shelf-note:empty { display: none; }
.missing-cover { display: grid; place-items: center; min-height: 62px; min-width: 42px; padding: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.editorial-books { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.editorial-book { min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; padding: 0; background: none; border: 0; }
.editorial-book img { width: 61px; height: 89px; object-fit: contain; filter: drop-shadow(1px 2px 2px #46352024); flex: none; }
.editorial-book .book-info strong { font-size: 15px; font-weight: 550; display: block; }
.editorial-book time { display: block; margin-top: 5px; }
.collection { display: flex; align-items: center; min-height: 189px; position: relative; background: #3e3228 url("assets/preview/archive-bg.webp") center 55% / cover; isolation: isolate; }
.collection::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#291e17ec 0%,#2f2119e6 25%,#39291dd4 53%,#39291d19 100%); }
.collection-copy { padding: 25px 31px; max-width: 510px; color: #fff9e9; }
.collection h3 { font: 600 27px/1.4 var(--serif); letter-spacing: .05em; }
.collection p { color: #f4e9d6; margin: 6px 0 13px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions a, .hero-actions button { display: inline-flex; align-items: center; gap: 12px; min-height: 39px; padding: 6px 13px; font-size: 14px; border: 1px solid #c8b89c; }
.hero-actions a { color: #4d3928; background: #f3e8d3; border-color: #f3e8d3; }
.hero-actions button { background: #21181266; color: #fff8ec; }
.hero-actions a:hover, .hero-actions button:hover { background: #fffae9; color: #422c17; }
.sub-libraries { margin: 19px 0; }
.sub-libraries > h3 { font-size: 20px; margin-bottom: 10px; }
.sub-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.sub-card { background: #fffdf7; border: 1px solid var(--line); }
.sub-card:hover { border-color: #b09570; }
.db-art { aspect-ratio: 2.8; background-position: center; background-size: cover; }
.theme-book .db-art { background-image: url("assets/preview/book.webp"); }
.theme-news .db-art { background-image: url("assets/preview/news.webp"); }
.theme-journal .db-art { background-image: url("assets/preview/journal.webp"); }
.theme-red .db-art { background-image: url("assets/preview/red.webp"); }
.theme-medicine .db-art { background-image: url("assets/preview/medicine.webp"); }
.theme-education .db-art { background-image: url("assets/preview/education.webp"); }
.db-copy { padding: 12px 27px 12px 13px; position: relative; }
.db-copy h4 { font: 600 17px/1.4 var(--serif); }
.db-copy p, .directory-description, .digital-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.db-copy p { margin-top: 5px; }
.direction { position: absolute; right: 11px; top: 13px; color: var(--red); font-family: var(--sans); }
.other-disclosure { border: 1px solid var(--line); border-top: 0; background: #fbf9f1; }
.other-disclosure summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 19px; font: 600 17px/1.4 var(--serif); color: #543d2c; cursor: pointer; }
.other-disclosure summary::-webkit-details-marker { display: none; }
.disclosure-end { font: 13px/1.4 var(--sans); color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.chevron { display: inline-block; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
details[open] .chevron, .menu-open .chevron { transform: rotate(225deg); }
.directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; padding: 0 18px; }
.directory-link { position: relative; display: grid; padding: 12px 24px 12px 1px; border-top: 1px solid var(--line); }
.directory-link:hover strong { color: var(--red); }
.directory-link strong { font-size: 15px; font-weight: 600; }
.digital-note { margin: 4px 18px 14px; }
.feature { border-block: 1px solid var(--line); background: linear-gradient(90deg,#f0e8d8 35%, #f4eedff0 65%, #ede3cf7a), url("assets/preview/journal.webp") right 50% / auto 230% no-repeat; padding: 22px 25px; }
.feature h2, .service h2 { font-size: 22px; color: #573b29; }
.feature p, .service p { margin: 5px 0 8px; font-size: 14px; color: #665948; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 27px; }
.service { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid #cfc1ab; padding-top: 14px; scroll-margin-top: 15px; }
.service a { margin-top: auto; }
footer { border-top: 3px solid #a47b51; background: #4c382a; color: #f6eddd; }
.foot-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; padding-block: 22px; }
footer strong { font: 550 19px/1.5 var(--serif); }
footer p, footer a { font-size: 13px; }
footer p { color: #e1d4c4; }
footer a { margin-left: auto; }
@media (max-width: 1100px) {
  .frame { width: calc(100% - 44px); }
  .layout { grid-template-columns: 174px minmax(0,1fr); gap: 24px; }
  .nav a { padding-inline: 19px; }
  .spot-copy { padding-inline: 25px; }
  .book-grid { gap: 15px; }
  .editorial-section { grid-template-columns: 1fr 2fr; gap: 15px; }
  .editorial-book { gap: 8px; }
  .editorial-book img { width: 51px; height: 76px; }
  .editorial-books { gap: 10px; }
}
@media (max-width: 880px) {
  .layout { display: block; padding-top: 14px; }
  .sidebar { position: static; margin-bottom: 13px; }
  .side-heading, #sectionNav { display: none; }
  .side-links { border-top: 0; border-bottom: 1px solid var(--line); background: transparent; }
  #menuButton { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 41px; border: 0; background: none; padding: 6px 3px; font: 550 15px/1.5 var(--sans); }
  #menuButton .chevron { margin-right: 5px; }
  .menu-open #sectionNav { display: block; padding: 4px 12px; background: #f3eee2; }
  .spotlight { min-height: 265px; }
  #spotCover { height: 205px; }
  .nav a { flex: 1; text-align: center; padding: 9px 7px; font-size: 14px; }
  .book .cover { height: clamp(150px,23vw,195px); }
}
@media (max-width: 640px) {
  .frame { width: calc(100% - 30px); }
  .masthead::before { bottom: auto; height: 83px; inset-inline-start: 25%; }
  .mast-inner { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .wordmark { height: 83px; width: fit-content; gap: 8px; }
  .wordmark-icon { width: 47px; height: 44px; }
  .wordmark-name > strong { font-size: clamp(18px,5.3vw,25px); }
  .wordmark-name > span { font-size: clamp(9px,2.45vw,11px); }
  .search-form { width: 100%; margin-bottom: 10px; }
  .search-form input { padding-block: 7px; font-size: 16px; }
  .mast-inner:has(.search-form) { position: relative; isolation: isolate; }
  .mast-inner::after { content: ""; position: absolute; top: 82px; bottom: 0; left: -15px; right: -15px; background: #fbfaf7; z-index: -1; }
  .nav .secondary-nav { display: none; }
  .nav a { padding: 9px 0; }
  .layout { padding-block: 7px 36px; }
  .sidebar { margin-bottom: 11px; }
  .spotlight { min-height: 252px; grid-template-columns: 55% 45%; }
  .spot-copy { padding: 14px 13px 18px; }
  .spot-label { font-size: 12px; gap: 7px; }
  .spot-label i { width: 12px; }
  .spot-titles { margin-block: 10px 5px; }
  .spot-titles h1 { font-size: clamp(23px,6.5vw,33px); letter-spacing: .035em; }
  .spot-subtitle { font-size: 15px; }
  .spot-note { font-size: 12px; line-height: 1.7; }
  #spotCover { width: 70%; height: 170px; transform: rotate(-5deg) translateY(-10px); }
  .primary-button { margin-top: 12px; min-height: 36px; padding: 5px 10px; gap: 10px; }
  .spot-pager { right: 5px; bottom: 5px; }
  .spot-pager button { width: 32px; height: 31px; }
  #spotIndex { min-width: 28px; }
  .section { margin-top: 27px; }
  .section-title { padding-bottom: 9px; margin-bottom: 13px; gap: 8px; }
  .section-title h2 { font-size: 23px; gap: 9px; }
  .section-title h2::before { height: 18px; width: 4px; }
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 13px; }
  .book .cover { height: clamp(142px,43vw,211px); padding: 12px; }
  .book-info strong { font-size: 16px; }
  .book .book-info { gap: 3px 4px; }
  .editorial-section { margin: 0; grid-template-columns: 1fr; gap: 12px; padding: 17px 0; }
  .editorial-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 10px; }
  .editorial-header h3 { font-size: 20px; margin: 0; }
  .editorial-header p { grid-column: 1 / -1; grid-row: 2; }
  .editorial-shelf-link { grid-column: 2; grid-row: 1; margin: 0; justify-self: end; white-space: nowrap; }
  .editorial-books { gap: 12px; align-items: start; }
  .editorial-book { align-items: flex-start; }
  .editorial-book img { width: 42px; height: 62px; }
  .editorial-book .book-info strong { font-size: 14px; }
  .editorial-book time { font-size: 11px; }
  .collection-copy { padding: 20px 16px; }
  .collection h3 { font-size: 24px; }
  .collection { min-height: 172px; }
  .collection::before { background: linear-gradient(90deg,#291d15ec,#302117b8 85%); }
  .sub-grid, .directory { grid-template-columns: 1fr; }
  .sub-card { display: grid; grid-template-columns: 29% 1fr; }
  .db-art { aspect-ratio: auto; }
  .db-copy { padding-block: 10px; }
  .other-disclosure summary { font-size: 16px; gap: 5px; padding: 13px 11px; }
  .disclosure-end { gap: 7px; font-size: 12px; white-space: nowrap; }
  .service-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 18px; }
  .feature { padding: 17px; }
  .foot-inner { gap: 5px 13px; }
  footer p { order: 3; width: 100%; }
  .search-results { margin-top: 0; padding: 13px; }
  .search-results .section-title h2 { font-size: 18px; }
}
@media (max-width: 410px) {
  .spotlight { min-height: 268px; }
}
@media (max-width: 360px) {
  .frame { width: calc(100% - 24px); }
  .mast-inner::after { left: -12px; right: -12px; }
  .book .book-info { grid-template-columns: 1fr; }
  .book-price { grid-column: 1; }
  .editorial-book { display: grid; }
  .editorial-book img { width: 48px; height: 68px; }
  .spot-label { gap: 4px; }
}
@media (max-height: 640px) and (min-width: 881px) {
  .sidebar { position: static; }
}
