:root {
    --paper: #f7f4ed;
    --paper-deep: #ece6d9;
    --ink: #20231f;
    --ink-soft: #5d625b;
    --line: #d8d1c4;
    --vermilion: #9f332d;
    --vermilion-dark: #7f2723;
    --pine: #31584a;
    --white: #fffefa;
    --shadow: 0 16px 40px rgba(44, 39, 31, .09);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; line-height: 1.75; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.15em; height: 1.15em; stroke-width: 1.8; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.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; }

.site-header { position: sticky; top: 0; z-index: 20; height: 72px; background: rgba(247, 244, 237, .94); border-bottom: 1px solid rgba(150, 139, 120, .28); backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--vermilion); border-radius: 3px; font: 700 21px/1 "STKaiti", "KaiTi", serif; }
.brand-name { font: 700 21px/1 "STKaiti", "KaiTi", serif; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: 28px; margin-right: auto; }
.main-nav a { position: relative; display: flex; align-items: center; color: #4d514b; font-size: 15px; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--vermilion); transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--vermilion); }
.main-nav a:hover::after, .main-nav a.active::after { left: 0; right: 0; }
.header-search { width: 250px; height: 40px; display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.header-search:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(49, 88, 74, .12); }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 0 4px 0 14px; font-size: 14px; color: var(--ink); }
.header-search input::placeholder { color: #96968e; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.menu-button { display: none; margin-left: auto; }

.hero { position: relative; min-height: 590px; overflow: hidden; background: #d5d2c6; }
.hero-art { position: absolute; inset: 0; background-image: url("/assets/images/hero-ink-landscape.jpg"); background-position: center; background-size: cover; filter: saturate(.72) contrast(.94); transform: scale(1.01); }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 57%; background: rgba(238, 233, 220, .92); box-shadow: 80px 0 90px rgba(238, 233, 220, .78); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-top: 105px; }
.hero-kicker, .eyebrow { margin: 0 0 10px; color: var(--vermilion); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.hero h1 { margin: 0; font: 700 68px/1.12 "STKaiti", "KaiTi", serif; }
.hero-copy { max-width: 520px; margin: 20px 0 32px; color: #4a4d47; font: 400 20px/1.8 "STSong", "SimSun", serif; }
.hero-search { display: flex; align-items: center; width: min(610px, 100%); height: 60px; padding-left: 20px; background: rgba(255, 254, 250, .96); border: 1px solid rgba(121, 116, 104, .45); border-radius: 5px; box-shadow: var(--shadow); }
.hero-search > svg { color: var(--pine); flex: none; }
.hero-search input { min-width: 0; flex: 1; height: 100%; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.hero-search button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: #fff; background: var(--vermilion); cursor: pointer; transition: .2s ease; }
.hero-search button { align-self: stretch; min-width: 96px; margin: 5px; border-radius: 3px; }
.hero-search button:hover, .primary-button:hover { background: var(--vermilion-dark); }
.quick-links { display: flex; gap: 16px; align-items: center; margin-top: 18px; color: #5b5e57; font-size: 13px; }
.quick-links span { color: #8a877e; }
.quick-links a { border-bottom: 1px solid transparent; }
.quick-links a:hover { color: var(--vermilion); border-color: currentColor; }
.art-credit { position: absolute; z-index: 2; right: 24px; bottom: 12px; margin: 0; color: rgba(28, 33, 29, .65); font-size: 11px; writing-mode: vertical-rl; }

.browse-band { padding: 64px 0; background: var(--pine); color: #fff; }
.browse-grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; }
.section-intro .eyebrow { color: #e8b6aa; }
.section-intro h2, .section-heading h2 { margin: 0; font: 700 32px/1.3 "STKaiti", "KaiTi", serif; }
.section-intro p:last-child { margin: 14px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.browse-options { display: grid; grid-template-columns: repeat(4, 1fr); }
.browse-options a { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid rgba(255, 255, 255, .18); transition: background .2s; }
.browse-options a:last-child { border-right: 1px solid rgba(255, 255, 255, .18); }
.browse-options a:hover { background: rgba(255, 255, 255, .08); }
.seal { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 13px; border: 1px solid #cf8d82; color: #f3c1b7; border-radius: 50%; font: 700 18px/1 "STKaiti", "KaiTi", serif; }
.browse-options strong { font: 700 18px/1.2 "STKaiti", "KaiTi", serif; }
.browse-options small { margin-top: 8px; color: rgba(255,255,255,.55); font-size: 12px; }

.featured-section { padding-block: 80px 94px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--vermilion); font-size: 14px; }
.text-link svg { transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.poem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.poem-card { position: relative; min-height: 245px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.poem-card:hover { transform: translateY(-3px); border-color: #bdb4a5; box-shadow: var(--shadow); }
.poem-card-featured { grid-row: span 2; min-height: 506px; display: flex; flex-direction: column; justify-content: center; background: var(--paper-deep); border-color: #cbc2b2; }
.poem-meta { display: flex; gap: 8px; align-items: center; }
.poem-meta span { color: var(--pine); font-size: 12px; }
.poem-meta span + span::before { content: "·"; margin-right: 8px; color: #aaa397; }
.poem-card h3, .list-item h2 { margin: 13px 0 4px; font: 700 24px/1.35 "STKaiti", "KaiTi", serif; }
.poem-card h3 a:hover, .list-item h2 a:hover { color: var(--vermilion); }
.author { margin: 0; color: #77786f; font-size: 13px; }
.poem-excerpt { margin: 20px 0 0; color: #4d514a; font-family: "STSong", "SimSun", serif; line-height: 2; }
.poem-card-featured .poem-excerpt { font-size: 17px; }
.card-link { position: absolute; right: 18px; bottom: 17px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--vermilion); border: 1px solid #d7b1aa; border-radius: 50%; }
.card-link:hover { color: #fff; background: var(--vermilion); }
.quote-band { padding: 84px 0; color: #f6f2e8; background: #252b27; }
.quote-inner { position: relative; text-align: center; }
.quote-mark { position: absolute; left: 8%; top: -52px; color: rgba(255,255,255,.08); font: 160px/1 Georgia, serif; }
.quote-inner blockquote { margin: 0; font: 500 34px/1.6 "STKaiti", "KaiTi", serif; }
.quote-inner p { margin: 12px 0 0; color: #b4b9b2; font-size: 13px; }
.content-index-band { padding: 54px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.content-index-inner { display: grid; grid-template-columns: 270px 1fr; gap: 54px; align-items: center; }
.content-index-inner h2 { margin: 0; font: 700 27px/1.45 "STKaiti", "KaiTi", serif; }
.content-index-inner nav { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.content-index-inner nav a { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content-index-inner nav a > svg { color: var(--vermilion); flex: none; }
.content-index-inner nav a span { display: flex; min-width: 0; flex-direction: column; }
.content-index-inner nav strong { font: 700 16px/1.3 "STKaiti", "KaiTi", serif; }
.content-index-inner nav small { margin-top: 4px; color: #8a8b84; font-size: 11px; }
.content-index-inner nav a:hover { background: var(--paper); }

.page-banner { padding: 52px 0 46px; color: #fff; background: #29352f; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; color: #7c7e76; font-size: 13px; }
.breadcrumbs svg { width: 14px; height: 14px; }
.page-banner .breadcrumbs { color: rgba(255,255,255,.6); }
.breadcrumbs a:hover { color: var(--vermilion); }
.page-banner h1 { margin: 20px 0 4px; font: 700 38px/1.3 "STKaiti", "KaiTi", serif; }
.page-banner p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }
.listing-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 44px; padding-block: 52px 84px; align-items: start; }
.filter-panel { position: sticky; top: 96px; padding-right: 28px; border-right: 1px solid var(--line); }
.filter-search label, .filter-panel legend { display: block; margin-bottom: 10px; color: var(--ink); font-weight: 700; font-size: 14px; }
.filter-search > div { display: flex; height: 40px; margin-bottom: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.filter-search input { width: 100%; min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.filter-panel fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.filter-panel label { cursor: pointer; }
.filter-panel label input { position: absolute; opacity: 0; pointer-events: none; }
.filter-panel label span { display: block; min-width: 48px; padding: 5px 10px; text-align: center; color: #676a63; background: var(--white); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.filter-panel label input:checked + span { color: #fff; background: var(--pine); border-color: var(--pine); }
.primary-button { min-height: 42px; padding: 0 18px; border-radius: 4px; font-size: 14px; }
.filter-panel .primary-button { width: 100%; }
.poem-list { min-width: 0; }
.list-item { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 8px 8px 32px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.list-item h2 { font-size: 27px; }
.list-item .poem-excerpt { max-width: 690px; margin-top: 16px; }
.list-item-main { min-width: 0; }
.read-link { align-self: center; display: flex; align-items: center; gap: 5px; flex: none; color: var(--vermilion); font-size: 13px; }
.read-link:hover svg { transform: translateX(3px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.tag-list a { padding: 2px 8px; color: #6a6c65; background: #ebe7dc; border-radius: 3px; font-size: 12px; }
.tag-list a:hover { color: var(--vermilion); }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 42px; }
.pagination a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.pagination a:hover, .pagination a.active { color: #fff; background: var(--vermilion); border-color: var(--vermilion); }
.empty-state { padding: 74px 20px; text-align: center; }
.empty-state > svg { width: 38px; height: 38px; color: #99988f; }
.empty-state h2 { margin: 18px 0 4px; font: 700 25px/1.4 "STKaiti", "KaiTi", serif; }
.empty-state p { margin: 0 0 22px; color: var(--ink-soft); }

.detail-wrap { padding-block: 28px 90px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 780px) 270px; gap: 72px; margin-top: 30px; justify-content: center; align-items: start; }
.poem-title-block { position: relative; padding: 56px 8% 45px; text-align: center; background-color: #ede8dc; background-image: radial-gradient(rgba(83, 77, 65, .055) .7px, transparent .7px); background-size: 5px 5px; border-top: 3px solid var(--pine); }
.poem-title-block::before, .poem-title-block::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: rgba(49,88,74,.35); }
.poem-title-block::before { left: 16px; top: 16px; border-left: 1px solid; border-top: 1px solid; }
.poem-title-block::after { right: 16px; bottom: 16px; border-right: 1px solid; border-bottom: 1px solid; }
.poem-title-block .poem-meta { justify-content: center; }
.poem-title-block h1 { margin: 16px 0 8px; font: 700 42px/1.3 "STKaiti", "KaiTi", serif; }
.poem-body { margin-top: 36px; font: 400 21px/2 "STSong", "SimSun", serif; }
.poem-body p { margin: 0; }
.poem-body.large { font-size: 25px; }
.detail-actions { display: flex; justify-content: center; gap: 22px; margin-top: 36px; }
.detail-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 2px; color: #676a63; background: transparent; border: 0; cursor: pointer; font-size: 12px; }
.detail-actions button:hover { color: var(--vermilion); }
.annotation-section { padding: 36px 8px 34px; border-bottom: 1px solid var(--line); }
.annotation-section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 700 24px/1.3 "STKaiti", "KaiTi", serif; }
.annotation-section h2 span { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; background: var(--vermilion); border-radius: 3px; font-size: 15px; }
.annotation-section div { color: #4c5049; line-height: 2; font-family: "STSong", "SimSun", serif; }
.detail-tags { margin-top: 30px; }
.related-panel { position: sticky; top: 104px; padding-left: 26px; border-left: 1px solid var(--line); }
.related-panel h2 { margin: 0 0 18px; font: 700 25px/1.3 "STKaiti", "KaiTi", serif; }
.related-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: "STKaiti", "KaiTi", serif; }
.related-item:hover span { color: var(--vermilion); }
.related-item small { flex: none; color: #85877f; font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.related-panel .text-link { margin-top: 22px; }

.sentence-page { padding-block: 28px 90px; }
.sentence-layout { display: grid; grid-template-columns: minmax(0, 780px) 270px; gap: 72px; margin-top: 30px; justify-content: center; align-items: start; }
.sentence-main { min-width: 0; }
.sentence-hero { position: relative; padding: 70px 9% 52px; overflow: hidden; text-align: center; background: var(--paper-deep); border-top: 3px solid var(--vermilion); }
.sentence-quote-mark { position: absolute; left: 28px; top: 4px; color: rgba(159, 51, 45, .1); font: 150px/1 Georgia, serif; }
.sentence-hero h1 { position: relative; margin: 20px auto 18px; max-width: 650px; overflow-wrap: anywhere; font: 700 44px/1.65 "STKaiti", "KaiTi", serif; }
.sentence-source { margin: 0; color: #686b64; font-size: 13px; }
.sentence-source a:hover { color: var(--vermilion); }
.sentence-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; padding: 5px 2px; color: #676a63; background: transparent; border: 0; cursor: pointer; font-size: 12px; }
.sentence-copy:hover { color: var(--vermilion); }
.sentence-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.sentence-context > div { min-height: 126px; padding: 26px 30px; }
.sentence-context > div + div { border-left: 1px solid var(--line); text-align: right; }
.sentence-context span { display: block; margin-bottom: 8px; color: #898a82; font-size: 11px; }
.sentence-context a, .sentence-context p { margin: 0; font: 700 19px/1.7 "STKaiti", "KaiTi", serif; }
.sentence-context a:hover { color: var(--vermilion); }
.sentence-facts, .sentence-work { padding: 42px 8px 38px; border-bottom: 1px solid var(--line); }
.sentence-facts .section-heading { margin-bottom: 20px; }
.sentence-facts dl { margin: 0; }
.sentence-facts dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.sentence-facts dt { color: #85877f; font-size: 12px; }
.sentence-facts dd { margin: 0; overflow-wrap: anywhere; color: #474b45; font-family: "STSong", "SimSun", serif; }
.sentence-work h2 { margin: 3px 0 2px; font: 700 29px/1.4 "STKaiti", "KaiTi", serif; }
.sentence-work h2 a:hover { color: var(--vermilion); }
.sentence-work-meta { margin: 0 0 20px; color: #85877f; font-size: 12px; }
.sentence-work > p:not(.eyebrow):not(.sentence-work-meta) { color: #4f534c; font-family: "STSong", "SimSun", serif; line-height: 2; }
.sentence-work .text-link { margin-top: 10px; }
.sentence-related { position: sticky; top: 104px; padding-left: 26px; border-left: 1px solid var(--line); }
.sentence-related h2 { margin: 0 0 15px; font: 700 23px/1.4 "STKaiti", "KaiTi", serif; }
.sentence-related > a:not(.text-link) { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 700 16px/1.55 "STKaiti", "KaiTi", serif; }
.sentence-related > a:not(.text-link) svg { flex: none; margin-top: 5px; color: var(--vermilion); }
.sentence-related > a:not(.text-link):hover span { color: var(--vermilion); }
.sentence-related .text-link { margin-top: 22px; font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }

.not-found { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found > span { color: #d4cec1; font: 700 100px/1 Georgia, serif; }
.not-found h1 { margin: 14px 0 5px; font: 700 32px/1.4 "STKaiti", "KaiTi", serif; }
.not-found p { margin: 0 0 24px; color: var(--ink-soft); }
.directory-banner .eyebrow { margin-top: 22px; color: #e5a99e; }
.directory-section { padding-block: 56px 84px; }
.directory-summary { display: flex; align-items: baseline; gap: 7px; margin-bottom: 24px; color: var(--ink-soft); }
.directory-summary strong { color: var(--vermilion); font: 700 25px/1 Georgia, serif; }
.directory-summary span { font-size: 12px; }
.directory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.directory-item { position: relative; min-height: 185px; padding: 23px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.directory-item > p { margin: 0; color: var(--pine); font-size: 11px; }
.directory-item h2 { margin: 9px 0 10px; font: 700 21px/1.35 "STKaiti", "KaiTi", serif; }
.directory-item h2 a:hover { color: var(--vermilion); }
.directory-item > div { padding-right: 20px; color: #666961; font-size: 13px; line-height: 1.8; }
.directory-item .card-link { width: 30px; height: 30px; right: 14px; bottom: 14px; }
.taxonomy-head { padding: 34px 0 50px; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.taxonomy-head .eyebrow { margin-top: 54px; }
.taxonomy-head h1 { margin: 0; font: 700 48px/1.25 "STKaiti", "KaiTi", serif; }
.taxonomy-head .container > p:last-child { max-width: 790px; margin: 18px 0 0; color: #555a53; font-family: "STSong", "SimSun", serif; line-height: 2; }
.taxonomy-content { padding-block: 60px 86px; }
.taxonomy-content .section-heading > span, .chapter-index .section-heading > span { color: var(--ink-soft); font-size: 12px; }
.taxonomy-poems { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.taxonomy-poem { position: relative; min-height: 215px; padding: 28px 54px 28px 8px; border-bottom: 1px solid var(--line); }
.taxonomy-poem:nth-child(odd) { padding-right: 62px; border-right: 1px solid var(--line); }
.taxonomy-poem:nth-child(even) { padding-left: 34px; }
.taxonomy-poem h3 { margin: 9px 0 3px; font: 700 23px/1.4 "STKaiti", "KaiTi", serif; }
.taxonomy-poem > p:last-of-type { color: #555950; font-family: "STSong", "SimSun", serif; }
.taxonomy-poem > a { position: absolute; right: 20px; bottom: 28px; color: var(--vermilion); }
.quote-list-section { padding-block: 58px 86px; }
.quote-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quote-list article { position: relative; min-height: 190px; padding: 32px 48px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.quote-list article > span { position: absolute; left: 18px; top: 15px; color: #d7b3ac; font: 54px/1 Georgia, serif; }
.quote-list blockquote { margin: 0; font: 500 20px/1.9 "STKaiti", "KaiTi", serif; }
.quote-list article > p { margin: 18px 0 0; color: #7b7e76; font-size: 12px; }
.quote-list article > a { position: absolute; right: 17px; bottom: 16px; color: var(--vermilion); }
.book-head .book-author { margin-top: 8px !important; color: var(--vermilion) !important; font-family: inherit !important; }
.chapter-index { padding-block: 58px 88px; }
.chapter-index ol { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.chapter-index li { min-height: 58px; display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.chapter-index li:nth-child(odd) { border-right: 1px solid var(--line); }
.chapter-index li > span { color: #a5a196; font: 12px/1 Georgia, serif; }
.chapter-index li a { font-family: "STSong", "SimSun", serif; }
.chapter-index li a:hover { color: var(--vermilion); }
.chapter-index li svg { color: #aaa69d; }
.classic-reader { padding-block: 28px 92px; }
.classic-reader header { max-width: 780px; margin: 56px auto 45px; text-align: center; }
.classic-reader header h1 { margin: 4px 0; font: 700 43px/1.35 "STKaiti", "KaiTi", serif; }
.classic-reader header > p:last-child { color: #777a72; }
.classic-body { max-width: 780px; margin: 0 auto; padding: 48px 7%; background: var(--white); border-top: 3px solid var(--pine); box-shadow: var(--shadow); }
.classic-body p { margin: 0 0 1.45em; font: 400 18px/2.15 "STSong", "SimSun", serif; }
.idiom-section { padding-block: 50px 86px; }
.catalog-search { width: min(560px, 100%); height: 48px; display: flex; align-items: center; margin-bottom: 30px; padding-left: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.catalog-search > svg { color: var(--pine); }
.catalog-search input { min-width: 0; flex: 1; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; }
.catalog-search button { align-self: stretch; min-width: 80px; margin: 4px; color: #fff; background: var(--vermilion); border: 0; border-radius: 3px; cursor: pointer; }
.idiom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.idiom-grid article { position: relative; min-height: 190px; padding: 24px 45px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.idiom-grid h2 { margin: 0; font: 700 22px/1.4 "STKaiti", "KaiTi", serif; }
.idiom-grid .pronunciation { margin: 3px 0 15px; color: var(--vermilion); font-size: 12px; }
.idiom-grid article > div { color: #60635c; font-size: 13px; }
.idiom-grid article > a:last-child { position: absolute; right: 16px; bottom: 17px; color: var(--vermilion); }
.idiom-detail { padding-block: 28px 90px; }
.idiom-detail header { padding: 60px 20px 45px; text-align: center; }
.idiom-detail header h1 { margin: 4px 0; font: 700 48px/1.25 "STKaiti", "KaiTi", serif; }
.idiom-detail header > p:last-child { color: var(--vermilion); }
.idiom-facts { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.idiom-facts > div { display: grid; grid-template-columns: 90px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.idiom-facts dt { color: var(--pine); font-weight: 700; }
.idiom-facts dd { margin: 0; color: #4f534c; font-family: "STSong", "SimSun", serif; line-height: 2; }
.prose-section { max-width: 850px; margin: 46px auto 0; }
.prose-section h2 { font: 700 25px/1.4 "STKaiti", "KaiTi", serif; }
.prose-section p { color: #4f534c; font-family: "STSong", "SimSun", serif; line-height: 2.1; }
.site-footer { color: #c8cbc5; background: #1d211e; }
.footer-inner { min-height: 185px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; position: relative; }
.footer-brand { color: #fff; font: 700 22px/1.2 "STKaiti", "KaiTi", serif; }
.footer-inner p { margin: 5px 0 0; font-size: 12px; color: #8f948e; }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.copyright { position: absolute; right: 0; bottom: 21px; }

@media (max-width: 900px) {
    .container { width: min(calc(100% - 32px), var(--container)); }
    .menu-button { display: inline-grid; }
    .header-search { display: none; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; height: auto; padding: 12px 16px 18px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { min-height: 44px; }
    .main-nav a::after { display: none; }
    .hero { min-height: 570px; }
    .hero-art { background-image: url("/assets/images/hero-ink-landscape.jpg"); background-position: 58% center; }
    .hero::before { width: 100%; background: rgba(238, 233, 220, .78); box-shadow: none; }
    .hero-inner { padding-top: 90px; }
    .hero h1 { font-size: 58px; }
    .browse-grid { grid-template-columns: 1fr; gap: 34px; }
    .poem-grid { grid-template-columns: repeat(2, 1fr); }
    .poem-card-featured { grid-row: auto; min-height: 245px; }
    .listing-layout { grid-template-columns: 1fr; gap: 28px; }
    .filter-panel { position: static; padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
    .filter-panel fieldset { margin-bottom: 15px; }
    .filter-panel .primary-button { width: auto; }
    .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 45px; }
    .sentence-layout { grid-template-columns: minmax(0, 1fr); gap: 45px; }
    .sentence-related { position: static; padding-left: 0; border-left: 0; }
    .related-panel { position: static; padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .content-index-inner { grid-template-columns: 1fr; gap: 28px; }
    .directory-grid { grid-template-columns: repeat(3, 1fr); }
    .idiom-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .site-header { height: 62px; }
    .main-nav { top: 62px; }
    .brand-mark { width: 32px; height: 32px; font-size: 18px; }
    .brand-name { font-size: 19px; }
    .hero { min-height: 520px; }
    .hero-inner { padding-top: 67px; }
    .hero h1 { font-size: 48px; }
    .hero-copy { margin: 16px 0 26px; font-size: 17px; }
    .hero-search { height: 54px; padding-left: 14px; }
    .hero-search input { padding: 0 9px; font-size: 13px; }
    .hero-search button { min-width: 70px; }
    .quick-links { gap: 11px; flex-wrap: wrap; }
    .art-credit { display: none; }
    .browse-band { padding: 49px 0; }
    .section-intro h2, .section-heading h2 { font-size: 27px; }
    .browse-options { grid-template-columns: repeat(2, 1fr); }
    .browse-options a { min-height: 120px; border-bottom: 1px solid rgba(255,255,255,.18); }
    .featured-section { padding-block: 58px 66px; }
    .section-heading { align-items: center; }
    .section-heading .text-link { width: 36px; height: 36px; justify-content: center; border: 1px solid #d2aba4; border-radius: 50%; font-size: 0; }
    .poem-grid { grid-template-columns: 1fr; }
    .poem-card { min-height: 222px; padding: 24px; }
    .quote-band { padding: 62px 0; }
    .quote-inner blockquote { font-size: 26px; }
    .page-banner { padding: 38px 0 34px; }
    .page-banner h1 { font-size: 30px; }
    .listing-layout { padding-block: 34px 60px; }
    .filter-panel label span { min-width: 44px; padding-inline: 8px; }
    .list-item { display: block; padding: 2px 2px 28px; }
    .list-item h2 { font-size: 24px; }
    .read-link { margin-top: 18px; }
    .detail-wrap { padding-top: 20px; }
    .detail-wrap > .breadcrumbs span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .detail-layout { margin-top: 22px; }
    .sentence-page { padding-top: 20px; }
    .sentence-page > .breadcrumbs span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sentence-layout { margin-top: 22px; }
    .sentence-hero { padding: 52px 20px 40px; }
    .sentence-hero h1 { font-size: 34px; }
    .sentence-context { grid-template-columns: 1fr; }
    .sentence-context > div { min-height: 0; padding: 22px 18px; }
    .sentence-context > div + div { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
    .sentence-facts dl > div { grid-template-columns: 58px 1fr; gap: 12px; }
    .poem-title-block { padding: 44px 18px 36px; }
    .poem-title-block h1 { font-size: 34px; }
    .poem-body { margin-top: 28px; font-size: 19px; }
    .poem-body.large { font-size: 22px; }
    .annotation-section { padding-block: 30px; }
    .annotation-section h2 { font-size: 22px; }
    .footer-inner { grid-template-columns: 1fr; padding-block: 42px 56px; }
    .footer-links { gap: 16px; flex-wrap: wrap; }
    .copyright { left: 0; right: auto; }
    .content-index-band { padding: 42px 0; }
    .content-index-inner nav { grid-template-columns: repeat(2, 1fr); }
    .content-index-inner nav a { min-height: 76px; padding: 12px; }
    .directory-section { padding-block: 38px 64px; }
    .directory-grid, .idiom-grid { grid-template-columns: 1fr; }
    .directory-item { min-height: 165px; }
    .taxonomy-head { padding-bottom: 38px; }
    .taxonomy-head .eyebrow { margin-top: 38px; }
    .taxonomy-head h1, .idiom-detail header h1 { font-size: 36px; }
    .taxonomy-poems, .quote-list, .chapter-index ol { grid-template-columns: 1fr; }
    .taxonomy-poem:nth-child(odd) { padding-right: 48px; border-right: 0; }
    .taxonomy-poem:nth-child(even) { padding-left: 8px; }
    .quote-list article { padding-inline: 40px 34px; }
    .chapter-index li:nth-child(odd) { border-right: 0; }
    .classic-reader { padding-top: 20px; }
    .classic-reader header { margin: 42px auto 32px; }
    .classic-reader header h1 { font-size: 34px; }
    .classic-body { padding: 35px 20px; }
    .classic-body p { font-size: 17px; }
    .idiom-facts > div { grid-template-columns: 62px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
