:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #172e30;
  --muted: #586965;
  --line: #d6dbd0;
  --green: #184d46;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "FangSong", "SimSun", serif;
  --sans: "Source Sans 3", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
body, button, input, select { font-family: var(--sans); }
button, input, select { font-size: 1rem; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .38; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #ac6428;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
::selection { background: #d9e8c8; color: #152b29; }
.shell { width: min(1320px, 90%); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 12px; top: -100px; background: white; padding: 12px 20px; }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 33px/1 var(--serif); letter-spacing: .085em; }
.brand-mark {
  position: relative; display: block; flex: 0 0 auto; overflow: hidden;
  width: 35px; height: 35px; border-radius: 7px 7px 8px 5px; background: #193f40;
}
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; width: 13px; height: 13px; border: solid #eeefe2;
  border-width: 1.6px 0 0 1.6px; transform: rotate(45deg) skew(8deg,8deg);
}
.brand-mark::before { left: 7px; top: 12px; }
.brand-mark::after { left: 17px; top: 14px; width: 10px; height: 10px; }
.brand-mark span { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-top: 1.5px solid #eeefe2; border-radius: 50%; transform: rotate(-4deg); }
.primary-nav { display: flex; align-self: stretch; gap: clamp(24px, 3.6vw, 56px); margin: 0 auto; }
.primary-nav a {
  position: relative; display: grid; place-items: center; min-width: 42px; padding: 0 3px;
  font-size: 15px; font-weight: 550; letter-spacing: .06em; color: var(--muted);
}
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--green); }
.primary-nav a[aria-current] { font-weight: 750; }
.primary-nav a[aria-current]::after {
  content: ''; height: 3px; width: 23px; border-radius: 8px; background: var(--green);
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
}
.search-trigger { border: 1px solid #aebdb1; border-radius: 30px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 17px; background: transparent; min-height: 38px; font-size: 14px; }
.search-trigger:hover, .filter:hover, .font-button:hover { background: #eaece2; }
.icon-search { width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; margin-right: 2px; }
.icon-search::after { content: ''; position: absolute; width: 7px; height: 1.7px; background: currentColor; bottom: -2px; right: -5px; transform: rotate(45deg); }
.search-panel { display: flex; gap: 12px; align-items: center; padding: 0 0 20px; }
.search-panel label { font-size: .9rem; white-space: nowrap; }
.search-panel input { min-width: 0; flex: 1; border: 1px solid #aab8aa; background: #fdfcf8; border-radius: 6px; padding: 9px 13px; color: var(--ink); }
.solid, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; font: inherit; line-height: 1.5; }
.solid { background: var(--green); color: white; border: 0; padding: 9px 18px; border-radius: 6px; }
.solid:hover { background: #27645b; }
.text-button { padding: 4px 0; color: var(--green); font-weight: 650; border: 0; }
.text-button:hover, .crumb a:hover, .chapter-pager:hover { text-decoration: underline; text-underline-offset: 4px; }
main.shell { min-height: calc(100svh - 166px); padding-bottom: clamp(40px, 6vw, 88px); outline: none; }
.hero {
  isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(330px, 33vw, 454px); margin-top: clamp(18px, 2.3vw, 34px);
  border-radius: 4px; background: #204c4c; color: #fffdf2;
}
.hero-art { position: absolute; right: 0; inset-block: 0; z-index: -3; width: 75%; height: 100%; object-fit: cover; object-position: 57% 53%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,#173f42 0%,#194345 25%,rgba(25,65,67,.94) 33%,rgba(25,65,67,.66) 43%,rgba(25,65,67,.18) 58%,transparent 75%);
}
.hero-text { position: relative; width: min(51%, 635px); padding: clamp(35px, 4vw, 62px); }
.hero-kicker { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .13em; color: #d7e7d8; }
.glyph { position: relative; display: inline-block; width: 17px; height: 15px; flex: 0 0 auto; color: currentColor; }
.glyph-novel::before, .glyph-novel::after { content: ''; border: 1.5px solid currentColor; position: absolute; top: 2px; width: 8px; height: 11px; }
.glyph-novel::before { left: 1px; transform: skewY(10deg); border-radius: 2px 1px 0 1px; }
.glyph-novel::after { right: 1px; transform: skewY(-10deg); border-radius: 1px 2px 1px 0; }
.glyph-video::after { content: ''; position: absolute; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; top: 2px; left: 5px; }
.glyph-music::after { content: '♪'; position: absolute; inset: -4px 0 0; font: bold 21px/1 Georgia, serif; text-align: center; }
.hero h1 { font: 750 clamp(45px, 5.3vw, 82px)/1.23 var(--serif); letter-spacing: .035em; margin: 19px 0 12px; overflow-wrap: anywhere; text-wrap: balance; }
.hero-text p { max-width: 29em; margin: 0; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.8; color: #f0f1e6; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hero-cta { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 22px; padding: 10px 17px; margin-top: 27px; border-radius: 3px; background: #f6f4df; color: #173e3c; font-size: 15px; font-weight: 700; }
.hero-cta:hover { background: white; }
.library { padding-top: 16px; }
.home-library { padding-top: clamp(34px, 4vw, 62px); }
.list-heading { display: flex; align-items: center; justify-content: space-between; column-gap: 24px; row-gap: 14px; margin-bottom: 23px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.heading-with-count { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.list-heading :is(h1,h2) { margin: 0; font: 740 clamp(27px, 2.8vw, 42px)/1.35 var(--serif); letter-spacing: .03em; overflow-wrap: anywhere; }
.count { white-space: nowrap; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 30px; }
.filter { display: grid; place-items: center; min-height: 32px; min-width: 50px; padding: 5px 11px; border-radius: 20px; font-size: 13px; line-height: 1.3; }
.filter[aria-current] { color: #fff; background: var(--green); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(24px, 3vw, 46px) clamp(16px, 2.1vw, 34px); }
.work-card { min-width: 0; }
.card-link { display: block; }
.card-art { position: relative; display: block; width: 100%; aspect-ratio: 1.76; overflow: hidden; border-radius: 3px; background-color: #c9d9d1; }
.art-video { background-color: #d7d1b8; }
.art-music { background-color: #c7d4cf; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease-out; }
.card-link:hover img { transform: scale(1.025); }
.card-link:hover h3 { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.card-info { padding: 15px 1px 3px; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.type-name { color: var(--green); font-weight: 750; letter-spacing: .06em; }
.metadata::before { content: '·'; padding-right: 8px; color: #74837c; }
.work-card h3 { margin: 4px 0 5px; font: 720 clamp(21px, 1.9vw, 29px)/1.42 var(--serif); letter-spacing: .02em; overflow-wrap: anywhere; }
.card-summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 28px 0 36px; color: var(--muted); }
.empty .text-button { margin: 0 20px 0 0; }
.not-found { padding: 70px 0; }
.not-found .solid { margin-top: 12px; }
.crumb { display: flex; gap: 8px; align-items: center; padding: 26px 0 17px; font-size: 13px; color: var(--muted); }
.crumb span { color: #8a978d; font-size: 10px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-brand { font: 730 20px/1 var(--serif); color: var(--green); letter-spacing: .12em; }
.footer-row i { font-style: normal; padding: 0 4px; }
.reader-stage { max-width: 820px; margin: 6px auto 0; }
.reader-book { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 8px 0 22px; }
.reader-book h1, .media-info h1 { margin: 0; font: 720 clamp(32px,4vw,52px)/1.35 var(--serif); letter-spacing: .03em; overflow-wrap: anywhere; }
.book-meta { margin: 7px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.share-button { flex-shrink: 0; font-size: 14px; white-space: nowrap; }
.reader-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.chapter-control, .font-tools { display: flex; align-items: center; gap: 8px; }
.chapter-control { min-width: 0; font-size: 13px; color: var(--muted); }
.chapter-control label { flex-shrink: 0; }
.chapter-control select { min-width: 0; max-width: 100%; padding: 7px 5px; font: inherit; color: var(--ink); background: transparent; border: 1px solid #aebaad; border-radius: 4px; }
.font-button { border: 1px solid #acb8aa; border-radius: 4px; min-width: 39px; min-height: 34px; background: transparent; font: 600 15px/1 var(--sans); }
.chapter-text { margin: 0 auto; max-width: 37em; font-size: var(--reader-size,19px); padding: 34px 0 12px; font-family: var(--serif); color: #253834; }
.chapter-text h2 { margin: 0 0 1.15em; font-size: 1.55em; line-height: 1.55; font-weight: 740; }
.chapter-text p { line-height: 1.95; margin: 0 0 .95em; overflow-wrap: anywhere; text-align: justify; }
.chapter-nav { display: grid; gap: 8px; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); padding: 18px 0; font-size: 14px; }
.chapter-pager { color: var(--green); font-weight: 650; }
.chapter-nav > :last-child { justify-self: end; }
.chapter-number { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.media-detail { margin: 12px auto 0; max-width: 990px; }
.media-main { min-width: 0; }
.media-info { margin-bottom: 22px; }
.media-info h1 { margin-top: 7px; }
.media-subtitle { margin: 9px 0 0; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); }
.media-description { font-size: 16px; line-height: 1.9; color: #41504a; }
.player-box video { background: #142c31; width: 100%; max-height: 75vh; aspect-ratio: 16/9; display: block; border-radius: 4px; }
.player-box audio { display: block; width: 100%; margin: 15px 0; }
.player-error { font-size: .9rem; line-height: 1.6; }
.detail-music:has(.album-cover) { max-width: 1050px; display: grid; align-items: center; gap: clamp(20px, 5vw, 60px); grid-template-columns: minmax(210px, .8fr) minmax(300px, 1.3fr); padding: 22px 0 0; }
.album-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.notice { position: fixed; z-index: 8; left: 50%; bottom: 24px; transform: translate(-50%,7px); color: white; background: #153d37; opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 4px; transition: opacity .15s; font-size: 14px; }
.notice.visible { opacity: 1; }
@media (min-width: 1600px) {
  .hero-text { width: 54%; }
}
@media (max-width: 880px) {
  .shell { width: 92%; }
  .hero-text { width: 57%; }
  .hero h1 { font-size: clamp(39px, 6vw, 57px); }
  .hero::before { background: linear-gradient(90deg,#173f42 0%,#194345 21%,rgba(25,65,67,.89) 42%,rgba(25,65,67,.15) 72%,transparent); }
  .card-grid { column-gap: 16px; }
  .primary-nav { gap: 21px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 34px); }
  .header-row { display: grid; grid-template-columns: 1fr auto; min-height: 0; padding-top: 14px; }
  .brand { gap: 9px; font-size: 28px; justify-self: start; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark::before { top: 10px; left: 5px; }
  .brand-mark::after { top: 12px; left: 15px; }
  .search-trigger { grid-column: 2; grid-row: 1; padding: 7px 13px; min-height: 34px; }
  .primary-nav { order: 3; grid-column: 1/-1; width: 100%; justify-content: space-between; margin: 7px 0 0; gap: 0; }
  .primary-nav a { padding: 9px 9px 12px; min-width: 50px; font-size: 14px; }
  .primary-nav a[aria-current]::after { bottom: 3px; width: 19px; height: 2px; }
  .search-panel { padding: 12px 0 15px; gap: 8px; }
  .search-panel label { display: none; }
  .search-panel .solid { padding-inline: 12px; }
  .hero { min-height: 345px; align-items: end; margin-top: 15px; }
  .hero-art { width: 100%; object-position: 63% center; }
  .hero::before { background: linear-gradient(0deg,rgba(13,43,44,.96) 0%,rgba(15,48,49,.82) 27%,rgba(21,58,58,.36) 60%,rgba(17,47,46,.03) 90%); }
  .hero-text { width: 100%; padding: 65px 24px 24px; }
  .hero h1 { font-size: clamp(40px, 9vw, 58px); margin: 10px 0 6px; }
  .hero-text p { max-width: 24em; font-size: 14px; -webkit-line-clamp: 2; }
  .hero-cta { margin-top: 17px; min-height: 40px; font-size: 14px; padding: 8px 14px; }
  .hero-kicker { font-size: 12px; }
  .home-library { padding-top: 29px; }
  .list-heading { flex-wrap: wrap; margin-bottom: 17px; padding-bottom: 13px; }
  .heading-with-count { gap: 8px; }
  .filters { padding: 2px; gap: 1px; }
  .filter { min-width: 35px; padding: 5px 8px; min-height: 30px; font-size: 12px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .work-card h3 { font-size: 21px; }
  .card-info { padding-top: 10px; }
  .card-summary, .book-meta { font-size: 13px; }
  .crumb { padding: 18px 0 12px; }
  .reader-book { align-items: flex-start; gap: 12px; }
  .reader-book .share-button { margin-top: 4px; }
  .chapter-text { padding-top: 24px; }
  .chapter-text p { line-height: 1.85; }
  .detail-music:has(.album-cover) { display: block; padding-top: 5px; }
  .album-cover { display: block; max-width: 350px; margin: 0 auto 24px; }
  .media-detail { margin-top: 5px; }
}
@media (max-width: 450px) {
  .card-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .card-art { aspect-ratio: 1.95; }
  .work-card h3 { font-size: 24px; }
  .hero { min-height: 317px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 26px); }
  .search-label { display: none; }
  .list-heading { align-items: start; }
  .hero-text { padding-inline: 18px; }
  .chapter-control { gap: 4px; }
  .font-tools { gap: 4px; }
  .font-button { min-width: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
