@charset "UTF-8";

:root {
  --ink: #202b28;
  --muted: #727a75;
  --green: #173e35;
  --green-2: #245a4c;
  --green-soft: #e5eee9;
  --red: #ae4c3b;
  --red-soft: #f5e9e4;
  --gold: #bda575;
  --paper: #f5f4ef;
  --card: #fffefa;
  --line: #e3e3da;
  --line-dark: #ced2c9;
  --article-size: 18px;
  --sidebar-width: 248px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
::selection { color: var(--green); background: #e4d9b8; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); display: flex; flex-direction: column; color: #e8eee9; background: var(--green); border-right: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 99px; padding: 23px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-seal { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; color: #fff7e8; background: var(--red); border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-family: var(--serif); font-size: 25px; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255,255,255,.35); }
.brand strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 3px; }
.brand small { display: block; margin-top: 5px; color: #a9bdb3; font-size: 8px; letter-spacing: 1.35px; }
.main-nav { display: grid; gap: 4px; padding: 21px 13px 13px; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; color: #bdcbc4; border-radius: 6px; font-size: 13px; transition: .18s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.main-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.main-nav a.active::before { position: absolute; left: -13px; width: 3px; height: 22px; content: ""; background: #d4bc8b; border-radius: 0 3px 3px 0; }
.main-nav svg { width: 18px; height: 18px; }
.main-nav a span { flex: 1; }
.main-nav em { color: #91a99e; font-size: 10px; font-style: normal; }
.main-nav a.active em { color: #dbc99f; }
.sidebar-divider { display: flex; align-items: center; gap: 10px; margin: 10px 24px 8px; color: #809d90; font-size: 10px; letter-spacing: 1px; white-space: nowrap; }
.sidebar-divider::after { width: 100%; height: 1px; content: ""; background: rgba(255,255,255,.09); }
.book-nav { display: grid; gap: 1px; padding: 0 13px; overflow-y: auto; scrollbar-width: thin; }
.book-nav a { display: flex; align-items: center; gap: 12px; padding: 8px 13px; color: #a9bdb3; border-radius: 5px; font-family: var(--serif); font-size: 13px; }
.book-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.book-nav a span { color: #6f9181; font-family: var(--sans); font-size: 10px; }
.book-nav a small { margin-left: auto; color: #6f9181; font-family: var(--sans); font-size: 9px; }
.sidebar-foot { margin-top: auto; padding: 20px 25px 23px; color: #759487; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; line-height: 1.6; }
.sidebar-foot div { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: #b5c6bd; font-size: 11px; }
.sidebar-foot p { margin: 2px 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #75a68e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(117,166,142,.1); }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 34px; background: rgba(245,244,239,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.global-search { position: relative; display: flex; align-items: center; width: min(620px, 65%); height: 40px; margin: 0 auto; background: #fff; border: 1px solid var(--line-dark); border-radius: 6px; transition: .2s; }
.global-search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(36,90,76,.08); }
.global-search > svg { width: 17px; margin-left: 13px; color: #7b8781; }
.global-search input { width: 100%; min-width: 0; height: 100%; padding: 0 10px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.global-search input::-webkit-search-cancel-button { display: none; }
.global-search kbd { padding: 1px 6px; color: #969c96; background: #f5f5f0; border: 1px solid #e0e1da; border-radius: 3px; font: 11px var(--sans); }
.global-search button { align-self: stretch; margin: -1px; padding: 0 17px; color: #fff; background: var(--green); border: 0; border-radius: 0 6px 6px 0; font-size: 12px; }
.topbar-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.open-source-link { padding: 7px 10px; color: var(--green); border: 1px solid var(--line-dark); border-radius: 4px; font-size: 10px; white-space: nowrap; }
.open-source-link:hover { background: var(--green-soft); }
.site-footer a { margin-left: 7px; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.mobile-menu { display: none !important; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 0; border-radius: 5px; }
.icon-button:hover { background: rgba(23,62,53,.07); }
.search-suggestions { position: fixed; z-index: 60; top: 61px; left: calc(var(--sidebar-width) + 50%); width: min(620px, 55vw); padding: 7px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 15px 50px rgba(25,45,37,.15); }
.suggestion-label { padding: 7px 10px; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.suggestion-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; text-align: left; background: transparent; border: 0; border-radius: 5px; }
.suggestion-item:hover { background: var(--green-soft); }
.suggestion-item > svg { width: 16px; color: var(--green-2); }
.suggestion-item div { min-width: 0; flex: 1; }
.suggestion-item strong { display: block; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-item small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-all { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px; color: var(--green); background: var(--paper); border: 0; border-radius: 4px; font-size: 11px; }
.suggestion-all svg { width: 14px; }

.page-container { width: 100%; max-width: 1540px; margin: 0 auto; padding: 34px 42px 56px; flex: 1; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 42px; padding: 19px 0 24px; color: #8b918b; border-top: 1px solid var(--line); font-size: 10px; }
.reading-progress { position: fixed; z-index: 100; top: 0; left: var(--sidebar-width); width: 0; height: 2px; background: var(--red); transition: width .08s linear; }
.back-to-top { position: fixed; z-index: 25; right: 25px; bottom: 25px; display: grid; place-items: center; width: 39px; height: 39px; color: var(--green); background: var(--card); border: 1px solid var(--line-dark); border-radius: 50%; box-shadow: 0 5px 20px rgba(23,62,53,.1); }
.toast { position: fixed; z-index: 100; left: calc(50% + var(--sidebar-width)/2); bottom: 35px; max-width: 80vw; padding: 11px 19px; color: #fff; background: #203c34; border-radius: 5px; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hero { position: relative; min-height: 290px; padding: 45px 50px; overflow: hidden; color: #fff; background: var(--green); border-radius: 9px; }
.hero::before { position: absolute; top: -92px; right: -15px; width: 390px; height: 390px; content: ""; border: 1px solid rgba(212,188,139,.16); border-radius: 50%; box-shadow: 0 0 0 48px rgba(212,188,139,.035), 0 0 0 100px rgba(212,188,139,.025); }
.hero::after { position: absolute; right: 59px; bottom: -81px; content: "民"; color: rgba(232,218,183,.08); font-family: var(--serif); font-size: 330px; line-height: 1; }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--red); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.hero .eyebrow { color: #d5c398; }
.eyebrow::before { width: 20px; height: 1px; content: ""; background: currentColor; }
.hero h1 { margin: 17px 0 11px; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 49px); font-weight: 500; letter-spacing: 4px; line-height: 1.25; }
.hero h1 span { color: #ddc99e; }
.hero-description { margin: 0; color: #b9cbc2; font-family: var(--serif); font-size: 15px; line-height: 1.8; letter-spacing: .5px; }
.hero-search { position: relative; z-index: 2; display: flex; width: min(630px, 100%); height: 51px; margin-top: 27px; background: #fff; border-radius: 5px; box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.hero-search svg { width: 18px; margin: auto 0 auto 17px; color: #718078; }
.hero-search input { width: 100%; min-width: 0; padding: 0 14px; color: var(--ink); border: 0; outline: 0; border-radius: 5px; font-size: 13px; }
.hero-search button { display: flex; align-items: center; gap: 8px; margin: 5px; padding: 0 20px; color: #fff; background: var(--red); border: 0; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.hero-search button svg { width: 15px; margin: 0; color: #fff; }
.hero-side-note { position: absolute; z-index: 2; right: 35px; top: 36px; display: flex; align-items: center; gap: 8px; color: #d5c398; font-size: 10px; letter-spacing: 1px; }
.hero-side-note svg { width: 16px; }
.hero-hot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; color: #8eaaa0; font-size: 10px; }
.hero-hot button { padding: 2px 6px; color: #b9cbc2; background: transparent; border: 0; border-bottom: 1px solid transparent; font-size: 10px; }
.hero-hot button:hover { color: #fff; border-color: #d5c398; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 25px 0 38px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; }
.stat { position: relative; padding: 21px 27px; }
.stat + .stat::before { position: absolute; top: 22px; bottom: 22px; left: 0; width: 1px; content: ""; background: var(--line); }
.stat strong { color: var(--green); font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.stat strong small { margin-left: 4px; font-family: var(--sans); font-size: 11px; font-weight: 400; }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, .8fr); gap: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-head h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: 1px; }
.section-head > a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.section-head > a:hover { color: var(--green); }
.section-head > a svg { width: 14px; }
.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.book-card { position: relative; display: flex; align-items: center; gap: 17px; min-height: 104px; padding: 19px 21px; overflow: hidden; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 6px; transition: .18s ease; }
.book-card:hover { border-color: #b7c5bc; box-shadow: 0 5px 18px rgba(23,62,53,.06); transform: translateY(-2px); }
.book-card:last-child { grid-column: 1 / -1; }
.book-index { display: grid; place-items: center; width: 43px; height: 51px; flex: 0 0 auto; color: var(--green); background: var(--green-soft); border-radius: 3px; font-family: var(--serif); font-size: 22px; }
.book-card:nth-child(4) .book-index, .book-card:nth-child(5) .book-index { color: var(--red); background: var(--red-soft); }
.book-card-content { min-width: 0; }
.book-card-content small { color: #93988f; font-size: 9px; letter-spacing: 1.3px; }
.book-card h3 { margin: 5px 0 7px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.book-card p { margin: 0; color: var(--muted); font-size: 10px; }
.book-card > svg { width: 16px; margin-left: auto; color: #a2aaa4; }
.latest-panel { padding-left: 4px; }
.latest-list { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.latest-item { display: block; padding: 17px 18px; }
.latest-item + .latest-item { border-top: 1px solid var(--line); }
.latest-item:hover { background: #fafaf5; }
.latest-item time { color: var(--red); font: 10px Georgia, serif; }
.latest-item h3 { display: -webkit-box; overflow: hidden; margin: 6px 0 7px; font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-item p { display: flex; align-items: center; justify-content: space-between; margin: 0; color: var(--muted); font-size: 9px; }
.latest-item p svg { width: 13px; }
.reference-banner { position: relative; display: flex; align-items: center; gap: 17px; margin-top: 17px; padding: 20px; overflow: hidden; background: #eae8de; border: 1px solid #dedbcf; border-radius: 6px; }
.reference-banner > svg { width: 26px; height: 26px; color: var(--green-2); }
.reference-banner h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 15px; }
.reference-banner p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.reference-banner > svg:last-child { width: 15px; margin-left: auto; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 26px; }
.page-heading h1 { margin: 9px 0 7px; font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: 1px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.page-count strong { margin-right: 4px; color: var(--green); font: 26px Georgia, serif; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 8px 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 20px; font-size: 11px; }
.filter-chip:hover, .filter-chip.active { color: #fff; background: var(--green); border-color: var(--green); }
.inline-search { display: flex; align-items: center; gap: 8px; width: 235px; height: 36px; margin-left: auto; padding: 0 11px; background: var(--card); border: 1px solid var(--line); border-radius: 5px; }
.inline-search svg { width: 15px; color: var(--muted); }
.inline-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 11px; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.document-card { position: relative; display: flex; flex-direction: column; min-height: 226px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; transition: .18s; }
.document-card:hover { border-color: #b9c8bf; box-shadow: 0 6px 20px rgba(23,62,53,.06); transform: translateY(-2px); }
.document-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.document-year { color: var(--red); font: 12px Georgia, serif; }
.document-category { padding: 4px 8px; color: var(--green-2); background: var(--green-soft); border-radius: 3px; font-size: 9px; }
.document-card h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.45; }
.document-card .full-title { display: -webkit-box; overflow: hidden; margin: 8px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.document-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 13px; color: #838b85; border-top: 1px solid var(--line); font-size: 9px; }
.document-card-meta span { display: flex; align-items: center; gap: 4px; }
.document-card-meta svg { width: 12px; }
.card-arrow { position: absolute; right: 19px; bottom: 18px; width: 15px; color: #8b968f; }
.empty-state { padding: 70px 20px; text-align: center; background: var(--card); border: 1px dashed var(--line-dark); border-radius: 7px; }
.empty-state svg { width: 34px; height: 34px; color: #9aa79f; }
.empty-state h2 { margin: 15px 0 7px; font-family: var(--serif); font-size: 21px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state a, .empty-state button { display: inline-block; margin-top: 19px; padding: 9px 16px; color: #fff; background: var(--green); border: 0; border-radius: 4px; font-size: 11px; }

.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 19px; color: var(--muted); font-size: 10px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs svg { width: 11px; }
.breadcrumbs span { overflow: hidden; max-width: 440px; text-overflow: ellipsis; white-space: nowrap; }
.document-header { position: relative; padding: 27px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; }
.document-header-main { padding-right: 160px; }
.document-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.version-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: var(--green-2); background: var(--green-soft); border-radius: 3px; font-size: 9px; }
.version-badge::before { width: 5px; height: 5px; content: ""; background: #5a8d76; border-radius: 50%; }
.document-number { color: var(--muted); font-size: 10px; }
.document-header h1 { max-width: 900px; margin: 13px 0 14px; font-family: var(--serif); font-size: clamp(23px,2.5vw,32px); font-weight: 600; line-height: 1.45; }
.document-meta { display: flex; flex-wrap: wrap; gap: 10px 23px; color: var(--muted); font-size: 10px; }
.document-meta span { display: flex; align-items: center; gap: 6px; }
.document-meta svg { width: 13px; }
.document-actions { position: absolute; top: 27px; right: 27px; display: flex; gap: 7px; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 11px; color: var(--green); background: transparent; border: 1px solid var(--line-dark); border-radius: 4px; font-size: 10px; }
.action-button:hover { background: var(--green-soft); border-color: #b5c5bb; }
.action-button.active { color: var(--red); background: var(--red-soft); border-color: #e4c9c0; }
.action-button.active svg { fill: currentColor; }
.action-button svg { width: 14px; }
.action-button.icon-only { width: 34px; padding: 0; }
.reader-tools { display: flex; align-items: center; gap: 15px; margin: 15px 0; padding: 10px 14px; background: #eeeee7; border: 1px solid var(--line); border-radius: 5px; }
.reader-tools .inline-search { width: 280px; height: 33px; margin: 0; background: var(--card); }
.reader-tool-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.font-controls { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.font-controls button { display: grid; place-items: center; width: 27px; height: 27px; background: var(--card); border: 1px solid var(--line-dark); border-radius: 3px; }
.font-controls button:hover { color: var(--green); border-color: var(--green-2); }
.font-controls svg { width: 13px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px; color: var(--muted); background: transparent; border: 0; font-size: 10px; }
.text-button:hover { color: var(--green); }
.text-button svg { width: 14px; }
.reader-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); align-items: start; gap: 20px; }
.outline { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; scrollbar-width: thin; }
.outline-title { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.outline-title strong { font-family: var(--serif); font-size: 14px; }
.outline-title span { color: var(--muted); font-size: 9px; }
.outline-list { padding: 7px; }
.outline a { display: block; padding: 8px 9px; color: #68756f; border-left: 2px solid transparent; border-radius: 0 3px 3px 0; font-size: 10px; line-height: 1.5; }
.outline a:hover { color: var(--green); background: var(--green-soft); }
.outline a.active { color: var(--green); background: var(--green-soft); border-left-color: var(--green-2); }
.outline a.outline-book { margin-top: 7px; color: var(--green); font-family: var(--serif); font-size: 13px; font-weight: 600; }
.outline a.outline-chapter { padding-left: 14px; }
.outline a.outline-section { padding-left: 24px; color: #89918b; font-size: 9px; }
.article-stream { min-width: 0; }
.articles-paper { padding: 18px 45px 38px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.article-division { margin: 37px 0 25px; padding: 20px 0 13px; text-align: center; border-top: 1px solid var(--line); }
.article-division:first-child { margin-top: 4px; padding-top: 9px; border-top: 0; }
.article-division h2 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: 3px; }
.article-division h3 { margin: 8px 0 0; color: #59665f; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 1px; }
.article-block { position: relative; display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 15px; padding: 19px 0 21px; border-bottom: 1px solid #eeeeE7; scroll-margin-top: 90px; }
.article-block:last-child { border-bottom: 0; }
.article-block:target, .article-block.targeted { margin: 0 -14px; padding-right: 14px; padding-left: 14px; background: #fbf7e9; border-radius: 4px; box-shadow: 0 0 0 14px #fbf7e9; }
.article-label { padding-top: 3px; color: var(--green); font-family: var(--serif); font-size: 16px; font-weight: 600; white-space: nowrap; }
.article-content { min-width: 0; }
.article-content p { margin: 0; font-family: var(--serif); font-size: var(--article-size); line-height: 2; text-align: justify; text-justify: inter-ideograph; }
.article-content p + p { margin-top: 8px; }
.article-actions { position: absolute; top: 14px; right: 0; display: flex; gap: 2px; padding-left: 8px; background: var(--card); opacity: 0; transition: .15s; }
.article-block:hover .article-actions, .article-actions:focus-within { opacity: 1; }
.article-actions button { display: grid; place-items: center; width: 27px; height: 27px; color: #8c968f; background: transparent; border: 0; border-radius: 3px; }
.article-actions button:hover { color: var(--green); background: var(--green-soft); }
.article-actions button.active { color: var(--red); }
.article-actions button.active svg { fill: currentColor; }
.article-actions svg { width: 13px; height: 13px; }
.article-block[data-filtered="true"] { display: none; }
.article-division[data-filtered="true"] { display: none; }
.reader-end { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; }
.reader-end a { display: flex; align-items: center; gap: 7px; padding: 12px 15px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; }
.reader-end a:hover { color: var(--green); border-color: #b8c5bd; }
.reader-end svg { width: 14px; }
.filtered-empty { padding: 45px; color: var(--muted); text-align: center; font-size: 12px; }

.search-header { margin-bottom: 22px; }
.search-header h1 { margin: 10px 0 9px; font-family: var(--serif); font-size: 29px; font-weight: 600; }
.search-header h1 em { color: var(--red); font-style: normal; }
.search-header p { margin: 0; color: var(--muted); font-size: 11px; }
.search-filters { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-filters select { height: 34px; margin-left: auto; padding: 0 27px 0 10px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 4px; font-size: 10px; }
.search-results { display: grid; gap: 11px; }
.result-card { display: block; padding: 21px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; transition: .16s; }
.result-card:hover { border-color: #b5c6bc; box-shadow: 0 4px 16px rgba(23,62,53,.05); }
.result-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.result-meta .result-doc { overflow: hidden; max-width: 60%; text-overflow: ellipsis; white-space: nowrap; }
.result-meta .result-label { color: var(--green); font-weight: 600; }
.result-meta svg { width: 13px; margin-left: auto; }
.result-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.result-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #5f6963; font-family: var(--serif); font-size: 14px; line-height: 1.8; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
mark { padding: 0 2px; color: #863e31; background: #f6e5b9; border-radius: 2px; }
.load-more { display: block; margin: 24px auto 0; padding: 10px 24px; color: var(--green); background: var(--card); border: 1px solid var(--line-dark); border-radius: 4px; font-size: 11px; }

.favorites-section { margin-top: 30px; }
.favorites-section:first-child { margin-top: 0; }
.favorites-section .section-head h2 { font-size: 20px; }
.saved-articles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.saved-article { padding: 19px 21px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.saved-article .result-meta { margin-bottom: 7px; }
.saved-article h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 16px; }
.saved-article p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recent-list { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.recent-item { display: flex; align-items: center; gap: 13px; padding: 15px 19px; }
.recent-item + .recent-item { border-top: 1px solid var(--line); }
.recent-item > svg { width: 17px; color: #87948c; }
.recent-item div { min-width: 0; flex: 1; }
.recent-item h3 { overflow: hidden; margin: 0 0 4px; font-family: var(--serif); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.recent-item p { margin: 0; color: var(--muted); font-size: 10px; }
.recent-item > svg:last-child { width: 14px; }

.reference-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.reference-card { display: flex; flex-direction: column; min-height: 260px; padding: 27px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.reference-card-icon { display: grid; place-items: center; width: 48px; height: 56px; margin-bottom: 21px; color: var(--green); background: var(--green-soft); border-radius: 3px; }
.reference-card-icon svg { width: 23px; height: 23px; }
.reference-card small { color: var(--red); font-size: 10px; letter-spacing: 1px; }
.reference-card h2 { margin: 9px 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.reference-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.reference-card .source-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 17px; color: var(--green); border-top: 1px solid var(--line); font-size: 10px; }
.source-link svg { width: 14px; }
.archive-note { color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 18px 20px; color: #6c7066; background: #ecebe2; border: 1px solid #deddd1; border-radius: 6px; font-size: 11px; line-height: 1.8; }
.notice svg { width: 17px; margin-top: 2px; color: var(--green-2); }
.notice strong { color: var(--ink); }
.sidebar-scrim { display: none; }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 30px; background: var(--paper); }

@media (min-width: 1500px) {
  :root { --sidebar-width: 264px; }
  .page-container { padding-right: 52px; padding-left: 52px; }
  .document-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .reader-layout { grid-template-columns: 255px minmax(0,1fr); }
  .articles-paper { padding-right: 60px; padding-left: 60px; }
}

@media (max-width: 1150px) {
  :root { --sidebar-width: 220px; }
  .page-container { padding: 28px 28px 45px; }
  .topbar { padding: 0 25px; }
  .topbar-meta { display: none; }
  .open-source-link { display: none; }
  .global-search { width: min(650px,90%); }
  .brand { padding-right: 18px; padding-left: 18px; }
  .main-nav a { font-size: 12px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-grid { grid-template-columns: 1fr; }
  .latest-panel { padding-left: 0; }
  .latest-list { display: grid; grid-template-columns: repeat(2,1fr); }
  .latest-item + .latest-item { border-top: 0; }
  .latest-item:nth-child(even) { border-left: 1px solid var(--line); }
  .latest-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reader-layout { grid-template-columns: 205px minmax(0,1fr); gap: 14px; }
  .articles-paper { padding-right: 28px; padding-left: 28px; }
  .article-block { grid-template-columns: max-content minmax(0,1fr); gap: 12px; }
  .article-label { font-size: 14px; }
  .site-footer { margin: 0 28px; }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 248px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(15,35,29,.45); }
  body.sidebar-open .sidebar-scrim { display: block; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-grid !important; }
  .topbar { gap: 10px; height: 64px; padding: 0 17px; }
  .global-search { width: 100%; margin: 0; }
  .global-search kbd { display: none; }
  .search-suggestions { top: 57px; left: 50%; width: calc(100vw - 34px); }
  .reading-progress { left: 0; }
  .toast { left: 50%; }
  .page-container { padding: 24px 20px 42px; }
  .hero { min-height: 280px; padding: 37px 32px; }
  .hero-side-note { display: none; }
  .hero::after { right: 10px; }
  .stats-row { margin-bottom: 30px; }
  .stat { padding: 17px 20px; }
  .stat strong { font-size: 24px; }
  .reader-layout { grid-template-columns: 1fr; }
  .outline { display: none; }
  .document-header-main { padding-right: 0; }
  .document-actions { position: static; margin-top: 19px; }
  .reader-tools { flex-wrap: wrap; }
  .reader-tools .inline-search { width: 100%; }
  .reader-tool-right { width: 100%; margin-left: 0; }
  .font-controls { margin-left: auto; }
  .article-block { display: block; padding: 19px 0; }
  .article-label { margin-bottom: 8px; font-size: 15px; }
  .article-actions { opacity: 1; }
  .reference-grid { grid-template-columns: 1fr; }
  .reference-card { min-height: 220px; }
  .site-footer { flex-direction: column; margin: 0 20px; }
  .saved-articles { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 12px; }
  .global-search button { display: none; }
  .global-search input { font-size: 12px; }
  .page-container { padding: 20px 14px 35px; }
  .hero { min-height: 0; padding: 30px 23px; border-radius: 6px; }
  .hero h1 { margin-top: 14px; font-size: 32px; letter-spacing: 2px; }
  .hero-description { font-size: 13px; }
  .hero-search { height: 47px; }
  .hero-search button { padding: 0 14px; }
  .hero-search button svg { display: none; }
  .hero-hot { line-height: 1.8; }
  .stats-row { grid-template-columns: repeat(2,1fr); margin-top: 15px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .books-grid { grid-template-columns: 1fr; }
  .book-card:last-child { grid-column: auto; }
  .book-card { min-height: 93px; }
  .latest-list { grid-template-columns: 1fr; }
  .latest-item:nth-child(even) { border-left: 0; }
  .latest-item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .section-head h2 { font-size: 21px; }
  .page-heading { align-items: flex-start; margin-top: 2px; }
  .page-heading h1 { font-size: 27px; }
  .page-count { padding-top: 25px; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-chips { flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px 5px; overflow-x: auto; }
  .filter-chip { flex: 0 0 auto; }
  .inline-search { width: 100%; margin: 0; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 205px; }
  .document-header { padding: 22px 20px; }
  .document-header h1 { font-size: 23px; }
  .document-meta { flex-direction: column; gap: 7px; }
  .reader-tools { padding: 10px; }
  .reader-tool-right .text-button { font-size: 9px; }
  .articles-paper { padding: 13px 20px 25px; }
  .article-block { display: block; padding: 19px 0; }
  .article-label { margin-bottom: 8px; font-size: 15px; }
  .article-content p { font-size: min(var(--article-size),20px); line-height: 1.95; }
  .article-actions { top: 15px; }
  .article-division h2 { font-size: 21px; }
  .article-division h3 { font-size: 14px; }
  .search-filters { align-items: flex-start; flex-direction: column; }
  .search-filters select { width: 100%; margin-left: 0; }
  .result-card { padding: 18px; }
  .result-meta .result-doc { max-width: 65%; }
  .breadcrumbs span { max-width: 230px; }
  .reader-end a { max-width: 48%; }
  .reader-end a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-footer { margin: 0 14px; }
}

@media print {
  .sidebar, .topbar, .site-footer, .reader-tools, .outline, .document-actions, .article-actions, .reader-end, .back-to-top, .reading-progress, .breadcrumbs { display: none !important; }
  .workspace { margin: 0; }
  .page-container { max-width: none; padding: 0; }
  .reader-layout { display: block; }
  .document-header, .articles-paper { border: 0; }
  .document-header { padding: 0 0 20px; }
  .articles-paper { padding: 0; }
  .article-block { break-inside: avoid; }
  body { background: #fff; }
}
