/* 道枢学社 · 魏晋修仙风 — site styles */
:root {
  --paper: #F2ECE0; --silk: #F8F4EA; --field: #FDFBF6; --capsule: #EFE6D5; --tint: #EBE1CD; --mast: #ECE3D0;
  --ink: #231F1B; --ink2: #4A443C; --ink3: #6E675E; --ink4: #8F887C; --body: #2E2A25;
  --rule: #CBBFA8; --rule2: #DDD3C0; --rule3: #E3D9C6; --chip: #BFB29A; --dots: #B9AC93;
  --red: #A33A2C; --red-d: #8E2F22; --shen: #57478A; --shen-b: #B3A8D3; --shen-l: #B8A9E6; --xing: #84622A; --xing-b: #C9AF7E; --xing-l: #D9B96E;
  --night: #131922; --dark: #1A1714; --night-t: #EDE6D8; --night-m: #AAB1BB;
  --kai: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', '楷体', serif;
  --xingshu: 'Zhi Mang Xing', 'STXingkai', '华文行楷', cursive;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--red); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; padding: 8px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 14px; height: 14px; }
mark { background: #F0DCC2; color: var(--red-d); padding: 0 1px; border-radius: 1px; }

/* ---------- buttons: ink, seal (朱印), line, gold ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font-family: var(--serif); font-size: 15.5px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(242, 236, 224, .32); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-seal { background: var(--red); color: #F8F4EA; font-family: var(--kai); font-size: 19px; font-weight: 400; letter-spacing: .18em; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(248, 244, 234, .5); }
.btn-seal:hover { background: var(--red-d); color: #F8F4EA; box-shadow: inset 0 0 0 3px var(--red-d), inset 0 0 0 4px rgba(248, 244, 234, .5); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(35, 31, 27, .22); }
.btn-line:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px rgba(242, 236, 224, .3); }
.card .btn-line { box-shadow: inset 0 0 0 2px var(--silk), inset 0 0 0 3px rgba(35, 31, 27, .22); }
.btn-gold { background: var(--xing-l); color: var(--night); box-shadow: inset 0 0 0 3px var(--xing-l), inset 0 0 0 4px rgba(19, 25, 34, .28); }
.btn-gold:hover { background: #E6C987; color: var(--night); }
.btn-ghost { background: transparent; color: var(--night-t); border-color: rgba(237, 230, 216, .5); }
.btn-ghost:hover { background: rgba(237, 230, 216, .1); color: var(--night-t); }
.btn-paper { background: var(--paper); color: var(--night); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(19, 25, 34, .22); }
.btn-paper:hover { background: #fff; color: var(--night); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; letter-spacing: .1em; }
.btn-seal.btn-sm { font-size: 17px; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-seal.btn-lg { font-size: 21px; }
.btn-block { width: 100%; }
.btn.is-off, .is-off.btn { opacity: .5; cursor: default; }
.btn[disabled] { opacity: .6; cursor: wait; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); }
.small-link { font-family: var(--sans); font-size: 13.5px; color: var(--ink3); }

/* ---------- top bars ---------- */
.eco { background: var(--dark); color: #CFC6B8; font-family: var(--sans); font-size: 13px; }
.eco-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.eco-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.eco-a { display: inline-flex; align-items: center; min-height: 40px; color: #CFC6B8; text-decoration: none; }
.eco-a:hover { color: #fff; }
.eco-a.is-on { color: var(--night-t); font-weight: 500; box-shadow: inset 0 -2px 0 var(--xing-l); }
.eco-a.is-off { opacity: .55; }
.eco-lang { display: flex; gap: 10px; align-items: center; }
.eco-lang a { color: #CFC6B8; text-decoration: none; } .eco-lang .is-on { color: var(--night-t); }
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(242, 236, 224, .97); border-bottom: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--rule2); }
.hdr-in { display: flex; align-items: center; gap: 12px 36px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--kai); font-size: 28px; letter-spacing: .1em; }
.logo-en { font-family: var(--serif); font-size: 9.5px; font-weight: 500; letter-spacing: .34em; color: var(--ink2); }
.hdr-nav { display: flex; gap: 0 28px; font-size: 16.5px; letter-spacing: .06em; }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.hdr-nav a.is-on { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--sans); }
.hdr-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.hdr-user { display: inline-flex; align-items: center; gap: 4px; }
.hdr-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.hdr-reg { color: var(--red); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.umenu { position: relative; }
.umenu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; }
.umenu-name { font-size: 14.5px; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umenu-pop, .mnav-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 180px; padding: 8px; background: var(--silk); border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(35, 31, 27, .12); }
.umenu-pop a, .umenu-pop button, .mnav-pop a, .mnav-pop button, .mnav-pop .is-off { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 0 12px; border: 0; background: transparent; font-size: 15px; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.umenu-pop a:hover, .umenu-pop button:hover, .mnav-pop a:hover { background: var(--tint); color: var(--ink); }
.mnav { position: relative; display: none; }
.mnav-btn { border: 1px solid var(--chip); border-radius: 2px; }
.mnav-pop { width: min(320px, calc(100vw - 32px)); padding: 10px 12px 14px; }
.mnav-pop nav a { font-family: var(--kai); font-size: 22px; letter-spacing: .1em; border-bottom: 1px solid var(--rule3); min-height: 50px; }
.mnav-sites { margin-top: 10px; }
.mnav-sites p { margin: 4px 12px; font-size: 12.5px; letter-spacing: .14em; color: var(--red); }
.mnav-user { margin-top: 8px; border-top: 1px solid var(--rule3); padding-top: 6px; }
@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .mnav { display: block; }
  .hdr-in { min-height: 62px; gap: 8px; }
}
@media (max-width: 720px) {
  .hdr-user .hdr-link, .umenu-name, .hdr-tools .hdr-icon[href="/search/"] { display: none; }
  .logo-name { font-size: 23px; }
  .logo-en { display: none; }
  .logo .logo-mark { width: 28px; height: 28px; }
  .eco-a { min-height: 36px; }
}

/* ---------- shared pieces ---------- */
.card { background: var(--silk); border: 1px solid var(--rule); outline: 1px solid var(--rule2); outline-offset: -7px; border-radius: 2px; }
.sec { padding-top: clamp(56px, 7vw, 96px); }
.sec-last { padding-bottom: clamp(56px, 7vw, 96px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.sec-title-row { display: flex; align-items: center; gap: 14px; }
.seal-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1.5px solid var(--red); border-radius: 3px; color: var(--red); font-family: var(--kai); font-size: 20px; line-height: 1; }
.sec-title { margin: 0; font-family: var(--kai); font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: .08em; line-height: 1.25; }
.sec-sub { margin: 10px 0 0; font-size: 15px; color: var(--ink3); }
.sec-aside { margin: 0; font-size: 15px; color: var(--ink3); }
.tag { display: inline-block; padding: 0 8px; border: 1px solid var(--chip); border-radius: 2px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; line-height: 1.75; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.tag-shen { border-color: var(--shen-b); color: var(--shen); }
.tag-xing { border-color: var(--xing-b); color: var(--xing); }
.meta-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border: 1px solid var(--chip); border-radius: 2px; font-family: var(--sans); font-size: 12px; line-height: 1.6; color: var(--ink2); white-space: nowrap; }
.badge-seal, .badge-best { background: var(--red); border-color: var(--red); color: #F8F4EA; }
.badge-student { border-color: var(--shen-b); color: var(--shen); }
.badge-level { border-color: var(--xing-b); color: var(--xing); }
.badge-lock { border-color: var(--chip); color: var(--ink2); }
.badge-pending { border-color: #D7B48A; color: #8A5A1E; background: #FAF0DD; }
.badge-ok { border-color: #A9C29A; color: #3E5A2E; }
.badge-off { border-color: var(--chip); color: var(--ink4); }
.kind-seal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 4px; border: 1.5px solid var(--ink4); border-radius: 3px; font-family: var(--kai); font-size: 22px; line-height: 1; color: var(--ink2); }
.seal-v { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 2px; background: var(--red); color: #F6F0E2; border-radius: 3px; writing-mode: vertical-rl; font-family: var(--kai); font-size: 14px; line-height: 1.05; }
.seal-v-sm { width: 30px; height: 30px; font-size: 13px; }
.seal-v-lg { width: 54px; height: 54px; padding: 4px; font-size: 19px; }
.seal-4 { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 4px; background: var(--red); color: #F6F0E2; border-radius: 3px; writing-mode: vertical-rl; font-family: var(--kai); font-size: 18px; line-height: 1.05; }
.ava { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1.5px solid var(--ink4); border-radius: 3px; font-family: var(--kai); font-size: 22px; line-height: 1; color: var(--ink2); background: var(--silk); }
.ava-student { border-color: var(--shen); color: var(--shen); }
.ava-admin { border-color: var(--ink); background: var(--ink); }
.ava-sm { width: 30px; height: 30px; font-size: 17px; }
.ava-sm .logo-mark { width: 20px; height: 20px; }
.ava-lg { width: 72px; height: 72px; font-size: 38px; }
.ava-lg .logo-mark { width: 46px; height: 46px; }
.crumbs { padding-top: 18px; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.crumbs a { color: var(--ink3); text-decoration: none; }
.crumbs [aria-current] { color: var(--ink); }
.crumb-sep { margin: 0 8px; }
.empty-note { margin: 20px 0; font-size: 15px; color: var(--ink3); }
.empty { padding: 14px 0; color: var(--ink4); font-size: 14px; }
.row-link { display: flex; align-items: baseline; gap: 10px; min-height: 56px; padding: 16px 0 10px; color: var(--ink); text-decoration: none; }
.row-link:hover .row-title { color: var(--red); }
.row-title { flex: 0 1 auto; min-width: 0; font-size: 16.5px; line-height: 1.55; }
.dots { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted var(--dots); }
.row-note { flex: none; font-family: var(--sans); font-size: 13.5px; color: var(--ink3); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--sans); font-size: 14px; color: var(--ink2); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--chip); border-radius: 2px; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--red); color: var(--red); }
.searchbox { position: relative; display: flex; gap: 8px; max-width: 600px; padding: 6px; background: #FBF8F1; border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 3px; border-radius: 2px; font-family: var(--sans); }
.searchbox input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 14px; border: 0; background: transparent; font: inherit; font-size: 16.5px; color: var(--ink); }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { border-color: var(--ink4); }
.searchbox .btn { min-height: 50px; padding: 0 26px; font-family: var(--kai); font-size: 19px; font-weight: 400; letter-spacing: .24em; }
.searchbox-wide { max-width: 760px; }
input::placeholder, textarea::placeholder { color: #857D72; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; font-family: var(--sans); font-size: 15px; }
.pg-step { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; }
.pg-step.is-off { color: #A9A08F; }
.pg-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border: 1px solid var(--chip); border-radius: 3px; color: var(--ink); text-decoration: none; }
.pg-num.is-on { background: var(--red); border-color: var(--red); color: #F8F4EA; }
.pg-gap { color: var(--ink4); }

/* ---------- hills, moon and scroll (SVG painted with classes) ---------- */
.hill-stop { stop-color: #2B2723; stop-opacity: 1; } .hill-stop-end { stop-opacity: 0; }
.mist-stop { stop-color: var(--paper); stop-opacity: .88; } .mist-0 { stop-opacity: 0; }
.moon-stop { stop-color: #FFFDF7; stop-opacity: .9; } .moon-stop-end { stop-opacity: 0; }
.moon { fill: #FFFDF7; stroke: rgba(35, 31, 27, .16); stroke-width: 1; }
.ring-faint { fill: none; stroke: rgba(35, 31, 27, .22); stroke-width: 1; stroke-dasharray: 2 6; }
.arc-shen { fill: none; stroke: var(--shen); stroke-width: 1.8; stroke-linecap: round; }
.arc-xing { fill: none; stroke: #9A7434; stroke-width: 1.8; stroke-linecap: round; }
.bird { fill: none; stroke: #2B2723; stroke-width: 1.2; opacity: .5; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); }
.hero-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 64%; }
.hero-hills .hh1 { opacity: .09; } .hero-hills .hh2 { opacity: .14; } .hero-hills .hh3 { opacity: .22; }
.hero-hills .stars circle { fill: var(--night-t); opacity: 0; }
.hero-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-top: clamp(44px, 7vw, 92px); padding-bottom: clamp(80px, 10vw, 140px); }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .2em; color: var(--red); }
.eyebrow span { width: 8px; height: 8px; background: currentColor; }
.hero-title { margin: 0; font-family: var(--kai); font-size: clamp(34px, 4.5vw, 64px); line-height: 1.3; font-weight: 400; letter-spacing: .04em; }
.hero-lead { margin: 0; max-width: 32em; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.95; color: var(--ink2); }
.hero-night { background: var(--night); color: var(--night-t); }
.hero-night .hill-stop { stop-color: #9AA7B8; }
.hero-night .mist-stop { stop-color: var(--night); }
.hero-night .hero-hills .hh1 { opacity: .10; } .hero-night .hero-hills .hh2 { opacity: .16; }
.hero-night .hero-hills .stars circle { opacity: .6; }
.hero-night .eyebrow { color: var(--xing-l); }
.hero-night .hero-lead, .hero-night .chips { color: var(--night-m); }
.hero-night .chip { border-color: rgba(237, 230, 216, .32); color: var(--night-t); }
.hero-night .searchbox { background: var(--paper); border-color: var(--paper); outline-color: rgba(242, 236, 224, .6); }
.hero-night .searchbox .btn-ink { background: var(--xing-l); color: var(--night); box-shadow: inset 0 0 0 3px var(--xing-l), inset 0 0 0 4px rgba(19, 25, 34, .3); }
.scroll { flex: 0 1 360px; min-width: 260px; margin: 0 auto; }
.scroll-rod-top { display: block; width: 100%; height: auto; }
.scroll-rod-top line { stroke: #5B4631; stroke-width: 1.2; } .scroll-rod-top circle { fill: #5B4631; }
.scroll-mount { position: relative; width: 100%; aspect-ratio: 360 / 600; background: #E4D8C0; border: 1px solid var(--rule); }
.scroll-bar { position: absolute; left: -10px; right: -10px; background: #5B4631; }
.scroll-bar-top { top: -6px; height: 10px; border-radius: 5px; }
.scroll-bar-bot { left: -16px; right: -16px; bottom: -8px; height: 16px; border-radius: 8px; }
.scroll-tie { position: absolute; top: 0; width: 7px; height: 13%; background: var(--rule); opacity: .6; }
.scroll-tie-l { left: 30%; } .scroll-tie-r { right: 30%; }
.scroll-silk { position: absolute; left: 7%; right: 7%; top: 14%; bottom: 9%; overflow: hidden; background: #F6F0E2; border: 1px solid var(--rule); }
.scroll-silk svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-poem { position: absolute; right: 9%; top: 7%; writing-mode: vertical-rl; font-family: var(--xingshu); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.55; letter-spacing: .12em; color: #2A2520; }
.scroll-seal { position: absolute; right: 11%; top: 57%; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--red); color: #F6F0E2; border-radius: 3px; writing-mode: vertical-rl; font-family: var(--kai); font-size: 13px; line-height: 1; }
.hero-night .scroll-mount { background: #2A313C; border-color: #3A4250; }
.hero-night .scroll-bar, .hero-night .scroll-rod-top circle { background: #0B0F15; fill: #0B0F15; }
.hero-night .scroll-rod-top line { stroke: #0B0F15; }
.hero-night .scroll-tie { background: #3A4250; }
.hero-night .scroll-silk { background: #1A222D; border-color: #3A4250; }
.hero-night .moon { fill: #ECE6D6; stroke: rgba(236, 230, 214, .3); }
.hero-night .moon-stop { stop-color: #ECE6D6; }
.hero-night .ring-faint { stroke: rgba(236, 230, 214, .25); }
.hero-night .arc-shen { stroke: var(--shen-l); } .hero-night .arc-xing { stroke: var(--xing-l); }
.hero-night .bird { stroke: #ECE6D6; }
.hero-night .scroll-poem { color: #E9E2D2; }
@media (max-width: 720px) { .scroll { flex: 0 1 230px; min-width: 0; } }

/* ---------- home sections ---------- */
.doors { display: flex; flex-wrap: wrap; gap: 22px; }
.door { flex: 1 1 250px; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 30px; color: var(--ink); text-decoration: none; }
.door:hover { outline-color: var(--red); color: var(--ink); }
.door-seal { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--red); border-radius: 4px; color: var(--red); font-family: var(--kai); font-size: 32px; line-height: 1; }
.door-name { position: relative; font-size: 21px; font-weight: 700; letter-spacing: .08em; }
.door-meta { position: relative; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.door-text { position: relative; font-size: 15px; line-height: 1.85; color: var(--ink2); }
.door-cta { position: relative; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; }
.door-night { background: var(--night); border-color: var(--night); outline-color: rgba(237, 230, 216, .18); color: var(--night-t); }
.door-night:hover { color: var(--night-t); outline-color: var(--xing-l); }
.door-night .door-seal { border-color: var(--xing-l); color: var(--xing-l); }
.door-night .door-meta { color: var(--night-m); } .door-night .door-text { color: #CFC9BD; } .door-night .door-cta { color: var(--xing-l); }
.door-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 120' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C40 60 70 66 100 52 C130 38 160 46 190 60 C220 74 250 62 300 54 L300 120 L0 120 Z' fill='%239AA7B8' fill-opacity='.12'/%3E%3Cpath d='M0 104 C50 90 90 96 140 86 C190 76 230 88 300 82 L300 120 L0 120 Z' fill='%239AA7B8' fill-opacity='.18'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.door.is-off { opacity: .6; }
.qa-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.qa-main { flex: 2 1 560px; min-width: 0; }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 36px; border-top: 1px solid var(--rule); }
.q-list li { flex: 1 1 300px; min-width: 0; border-bottom: 1px solid var(--rule2); }
.q-list .row-link { min-height: 62px; padding: 18px 0 12px; }
.lx { flex: 1 1 320px; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.lx-head { display: flex; align-items: center; gap: 12px; }
.lx-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 23px; background: var(--night); }
.lx-title { margin: 0; font-family: var(--kai); font-size: 26px; font-weight: 400; letter-spacing: .08em; }
.lx-sub { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.lx-text { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink2); }
.lx-form { display: flex; flex-direction: column; gap: 10px; }
.lx-form label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink2); }
.lx-form textarea, .composer textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--chip); border-radius: 2px; background: var(--field); font-family: var(--serif); font-size: 16px; line-height: 1.8; color: var(--ink); resize: vertical; }
.lx-note { margin: 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.7; color: var(--ink3); }
.vols { display: flex; flex-wrap: wrap; gap: 24px; }
.vol { flex: 1 1 460px; min-width: 0; padding: 30px 30px 18px; }
.vol-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.vol-name { margin: 0; font-family: var(--kai); font-size: 36px; font-weight: 400; letter-spacing: .12em; }
.vol-desc { font-size: 14px; color: var(--ink3); }
.vol-shen .vol-name { color: var(--shen); } .vol-xing .vol-name { color: var(--xing); }
.vol-list { list-style: none; margin: 0; padding: 0; }
.vol-list li + li { border-top: 1px solid var(--rule3); }
.vol-list .row-title { font-size: 17px; font-weight: 600; }
.vol-n { flex: none; width: 22px; font-family: var(--kai); font-size: 19px; }
.vol-shen .vol-n { color: var(--shen); } .vol-xing .vol-n { color: var(--xing); }
.vol-n-red { color: var(--red); }
.feat { display: flex; flex-wrap: wrap; gap: 28px; }
.feat-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.feat-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: 14px 14px 0; background: #EDE5D3; }
.feat-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat-media .mist-stop { stop-color: #EDE5D3; }
.feat-badge { position: absolute; left: 18px; top: 16px; padding: 2px 10px; border: 1px solid var(--red); background: rgba(248, 244, 234, .7); color: var(--red); font-family: var(--sans); font-size: 12.5px; }
.play-btn { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 2px solid var(--red); border-radius: 50%; background: rgba(248, 244, 234, .88); color: var(--red); }
.play-btn svg { width: 26px; height: 26px; }
.feat-body { display: flex; flex-direction: column; gap: 16px; padding: 26px 30px 30px; }
.feat-body > p { margin: 0; }
.feat-title { margin: 0; font-family: var(--kai); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.4; font-weight: 400; letter-spacing: .04em; }
.feat-title a { text-decoration: none; }
.answer { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--capsule); border-radius: 2px; }
.answer p { margin: 0; font-size: 16px; line-height: 1.95; color: var(--body); }
.answer-seal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--red); color: #F8F4EA; border-radius: 3px; font-family: var(--kai); font-size: 18px; line-height: 1; }
.answer-lg { margin-top: 24px; padding: 20px 24px; }
.answer-lg p { font-size: 17px; }
.answer-label { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--red); }
.feat-list { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.feat-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--rule2); }
.feat-item-title { margin: 0; font-family: var(--kai); font-size: 24px; line-height: 1.45; font-weight: 400; letter-spacing: .04em; }
.feat-item-title a { text-decoration: none; }
.feat-item-text { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink2); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.steps li { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps strong { display: block; font-size: 17px; letter-spacing: .06em; }
.steps li span span { font-size: 14px; color: var(--ink3); }
.step-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--red); color: #F8F4EA; border-radius: 3px; font-family: var(--kai); font-size: 24px; line-height: 1; }
.courses { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.course { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.course-title { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; letter-spacing: .04em; }
.course-text { margin: 0 0 auto; font-size: 15px; line-height: 1.9; color: var(--ink2); }
.band { position: relative; overflow: hidden; margin-top: clamp(56px, 7vw, 96px); background: var(--night); color: var(--night-t); }
.band-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-stars circle { fill: var(--night-t); opacity: .5; }
.band-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; }
.band-hills path { fill: #9AA7B8; }
.band-in { position: relative; display: flex; flex-wrap: wrap; gap: 26px; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.band-main { flex: 3 1 560px; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(237, 230, 216, .2); outline: 1px solid rgba(237, 230, 216, .1); outline-offset: -8px; }
.band-main > *:not(.band-rings) { position: relative; }
.band-rings { position: absolute; right: -170px; top: -130px; width: 420px; height: 420px; }
.band-rings circle { fill: none; stroke: rgba(237, 230, 216, .14); }
.band-rings .dash { stroke-dasharray: 2 6; }
.band-rings .dot-xing { fill: var(--xing-l); stroke: none; } .band-rings .dot-shen { fill: var(--shen-l); stroke: none; } .band-rings .dot-core { fill: var(--red); stroke: none; }
.band-eyebrow { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .16em; color: var(--xing-l); }
.band-eyebrow-shen { color: var(--shen-l); }
.band-title { margin: 0; font-family: var(--kai); font-size: clamp(32px, 3.4vw, 46px); line-height: 1.35; font-weight: 400; letter-spacing: .08em; }
.band-title-sm { font-size: clamp(30px, 3vw, 38px); }
.band-text { margin: 0; max-width: 30em; font-size: 16px; line-height: 1.95; color: #B9BFC8; }
.band-path { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; color: #CFC9BD; }
.band-path span { padding: 4px 12px; border: 1px solid rgba(237, 230, 216, .3); border-radius: 2px; }
.band-path i { font-style: normal; }
.band-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.band-side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 40px); background: rgba(26, 33, 43, .85); border: 1px solid rgba(237, 230, 216, .12); outline: 1px solid rgba(237, 230, 216, .08); outline-offset: -8px; }
.band-list { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #CFC9BD; }
.band-list li { display: flex; align-items: center; gap: 10px; }
.band-list li::before { content: ''; width: 6px; height: 6px; background: var(--xing-l); }
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-bottom: clamp(64px, 8vw, 110px); }
.about-quote { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; justify-content: center; align-items: flex-start; gap: 26px; }
.about-quote figcaption { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 12px; }
.about-src { writing-mode: vertical-rl; font-size: 14px; letter-spacing: .24em; color: var(--ink3); }
.about-quote blockquote { margin: 0; writing-mode: vertical-rl; font-family: var(--xingshu); font-size: clamp(30px, 3vw, 42px); line-height: 1.7; letter-spacing: .14em; color: var(--ink); }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-text .sec-head { margin-bottom: 0; }
.about-lead { margin: 0; font-size: 17px; line-height: 2; color: #3B362F; }
.about-note { margin: 0; font-size: 15px; color: var(--ink3); }
.about-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }

/* ---------- footer ---------- */
.ftr { background: var(--dark); color: #CFC6B8; font-family: var(--sans); }
.ftr-edge { display: block; width: 100%; height: 48px; background: var(--paper); }
.ftr-edge path { fill: var(--dark); }
.ftr-in { display: flex; flex-wrap: wrap; gap: 32px 40px; padding-top: 36px; padding-bottom: 24px; }
.ftr-brand { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ftr-brand p { margin: 0; max-width: 26em; font-family: var(--serif); font-size: 14px; line-height: 1.9; color: #ACA394; }
.logo-dark, .logo-dark:hover { color: var(--night-t); }
.logo-dark .logo-name { font-size: 26px; }
.ftr-co { font-family: var(--sans) !important; font-size: 13px !important; color: var(--ink4) !important; }
.ftr-col { flex: 1 1 140px; display: flex; flex-direction: column; font-size: 14px; }
.ftr-col h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--ink4); }
.ftr-col a, .ftr-col .is-off { display: inline-flex; align-items: center; min-height: 38px; color: #CFC6B8; text-decoration: none; }
.ftr-col a:hover { color: #fff; }
.ftr-col .is-off { opacity: .55; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid rgba(207, 198, 184, .18); font-size: 13px; color: var(--ink4); }
.ftr-motto { font-family: var(--xingshu); font-size: 18px; letter-spacing: .1em; color: #ACA394; }

/* ---------- library ---------- */
.lib-mast { position: relative; overflow: hidden; background: var(--mast); border-bottom: 1px solid var(--rule); }
.lib-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.lib-mast-in { position: relative; padding-bottom: 36px; }
.lib-title-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.lib-title { margin: 0; font-family: var(--kai); font-size: clamp(38px, 4.2vw, 56px); line-height: 1.2; font-weight: 400; letter-spacing: .1em; }
.lib-lead { margin: 12px 0 0; max-width: 36em; font-size: 17px; line-height: 1.9; color: #3B362F; }
.lib-mast .searchbox { margin-top: 22px; }
.hot { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-family: var(--sans); font-size: 14px; color: var(--ink3); }
.hot a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.lib-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px 40px; padding-top: 40px; padding-bottom: 88px; }
.lib-side { flex: 0 0 268px; min-width: 0; display: flex; flex-direction: column; gap: 22px; font-family: var(--sans); }
.lib-main { flex: 1 1 560px; min-width: 0; }
.panel { padding: 22px 20px 16px; background: var(--silk); border: 1px solid var(--rule); outline: 1px solid var(--rule2); outline-offset: -6px; border-radius: 2px; }
.panel-title { margin: 0 0 8px; padding: 0 4px; font-family: var(--kai); font-size: 26px; font-weight: 400; letter-spacing: .12em; }
.panel-title-sm { font-size: 21px; letter-spacing: .06em; }
.vn-list, .vn-sub { list-style: none; margin: 0; padding: 0; }
.vn-all, .vn-vol-a { display: flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 6px; border-bottom: 1px solid var(--rule3); font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.vn-desc { font-size: 12px; font-weight: 400; color: var(--ink4); }
.vn-shen { color: var(--shen); } .vn-xing { color: var(--xing); }
.vn-all.is-on, .vn-vol-a.is-on { background: var(--tint); box-shadow: inset 3px 0 0 var(--red); }
.vn-sub { padding: 4px 0 8px 14px; border-bottom: 1px solid var(--rule3); }
.vn-sub a { display: flex; align-items: center; min-height: 36px; padding: 0 8px; font-size: 14.5px; color: #3B362F; text-decoration: none; }
.vn-sub a.is-on { background: var(--tint); box-shadow: inset 3px 0 0 var(--red); color: var(--ink); font-weight: 700; }
.flt-label { margin: 10px 4px 6px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--ink3); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 6px; }
.fchip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--chip); border-radius: 2px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fsep { width: 1px; height: 22px; background: var(--rule); margin: 0 6px; }
.ask-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: var(--night); border-radius: 2px; color: var(--night-t); }
.ask-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; background: #1E2632; }
.ask-card strong { display: block; font-size: 15px; }
.ask-card span { display: block; font-size: 13.5px; line-height: 1.7; color: #B9BFC8; }
.ask-card a { display: inline-flex; min-height: 36px; align-items: center; font-size: 14px; font-weight: 500; color: var(--xing-l); }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.lib-main > .list-head, .qa-page > .list-head { margin-top: 0; }
.vol-intro + .list-head, .topic-intro + .list-head { margin-top: 40px; }
.list-title { margin: 0; font-family: var(--kai); font-size: 28px; font-weight: 400; letter-spacing: .08em; }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--sans); font-size: 14px; }
.sort > span { margin-right: 6px; color: var(--ink3); }
.sort-a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 2px; color: var(--ink); text-decoration: none; }
.sort-a.is-on { background: var(--ink); color: var(--paper); }
.art-list { list-style: none; margin: 0; padding: 0; }
.art-item { border-bottom: 1px solid var(--rule2); }
.art-row { display: flex; gap: 22px; padding: 26px 0; }
.art-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.art-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.art-title { margin: 0; font-family: var(--kai); font-size: 25px; line-height: 1.45; font-weight: 400; letter-spacing: .03em; }
.art-title a { text-decoration: none; }
.art-text { margin: 0; max-width: 40em; font-size: 15.5px; line-height: 1.9; color: var(--ink2); }
.art-foot { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-family: var(--sans); font-size: 13px; color: var(--ink4); }
.vol-intro { padding: 28px 32px; }
.vol-intro-title { margin: 8px 0 0; font-family: var(--kai); font-size: 40px; font-weight: 400; letter-spacing: .12em; }
.vol-intro.vol-shen .vol-intro-title { color: var(--shen); } .vol-intro.vol-xing .vol-intro-title { color: var(--xing); }
.vol-intro-text { margin: 8px 0 0; font-size: 16px; line-height: 1.9; color: #3B362F; }
.topic-intro { padding: 28px 32px; }
.topic-title { margin: 8px 0 0; font-family: var(--kai); font-size: 48px; line-height: 1.2; font-weight: 400; letter-spacing: .12em; }
.topic-shen { color: var(--shen); } .topic-xing { color: var(--xing); }
.topic-text { margin: 12px 0 0; max-width: 36em; font-size: 16.5px; line-height: 2; color: #3B362F; }
.topic-start { margin: 22px 0 4px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--red); }
.start-list { list-style: none; margin: 0; padding: 0; max-width: 40em; border-top: 1px solid var(--rule3); }
.start-list li { border-bottom: 1px solid var(--rule3); }
.start-list .row-title { font-weight: 600; }
.search-top { background: var(--mast); border-bottom: 1px solid var(--rule); padding-bottom: 28px; }
.search-top .searchbox { margin-top: 18px; }
.search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--sans); }
.topic-hits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.topic-hit { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--silk); border: 1px solid var(--rule); box-shadow: inset 3px 0 0 var(--shen); text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: 13px; }
.topic-hit-xing { box-shadow: inset 3px 0 0 var(--xing); }
.topic-hit strong { font-family: var(--kai); font-size: 22px; font-weight: 400; letter-spacing: .1em; }
.topic-hit em { font-style: normal; color: var(--ink3); }
.search-count { margin: 20px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--sans); font-size: 14px; color: var(--ink3); }
.empty-search { margin-top: 24px; padding: 24px 28px; }
.empty-search p { margin: 0 0 14px; }
.empty-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .lib-side { flex-basis: 100%; order: 2; } }

/* ---------- article ---------- */
.preview-bar, .sample-bar { margin: 0; padding: 10px clamp(16px, 4vw, 40px); font-family: var(--sans); font-size: 14px; text-align: center; }
.preview-bar { background: #3A3328; color: #F2E6CF; } .preview-bar a { color: var(--xing-l); }
.sample-bar { background: #F6E9C9; color: #6B5320; border-bottom: 1px solid #E4D3A8; }
.art-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-top: 26px; padding-bottom: 80px; }
.art-side { flex: 0 0 250px; min-width: 0; display: flex; flex-direction: column; gap: 22px; font-family: var(--sans); position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.art-main { flex: 1 1 600px; min-width: 0; max-width: 800px; }
.toc-head { display: flex; align-items: baseline; justify-content: space-between; }
.toc-read { font-size: 12.5px; color: var(--ink4); }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 4px; border: 0; background: var(--rule3); border-radius: 2px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--rule3); }
progress::-webkit-progress-value { background: var(--red); }
progress::-moz-progress-bar { background: var(--red); }
.toc-bar { margin: 8px 4px; width: calc(100% - 8px); }
.toc-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.toc-list a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; color: #3B362F; text-decoration: none; line-height: 1.4; }
.toc-list a.is-on { background: var(--tint); box-shadow: inset 3px 0 0 var(--red); color: var(--ink); font-weight: 700; }
.toc-n { flex: none; min-width: 18px; font-family: var(--kai); font-size: 17px; color: var(--ink4); }
.toc-list a.is-on .toc-n { color: var(--red); }
.toc-all { display: flex; align-items: center; width: 100%; min-height: 40px; margin-top: 4px; padding: 0 8px; border: 0; border-top: 1px solid var(--rule3); background: transparent; font-size: 13.5px; color: var(--ink3); cursor: pointer; }
.series-list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.55; }
.series-list a, .series-list .is-on { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--rule3); color: #3B362F; text-decoration: none; }
.series-list b { flex: none; width: 16px; font-weight: 400; color: var(--ink4); }
.series-list .is-on { color: var(--red); font-weight: 700; }
.tone-shen { color: var(--shen); } .tone-xing { color: var(--xing); }
.reader-set { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 13.5px; color: var(--ink3); }
.fs-group { display: inline-flex; border: 1px solid var(--chip); border-radius: 2px; }
.fs-group button { min-width: 36px; min-height: 34px; border: 0; background: transparent; cursor: pointer; }
.fs-group button.is-on { background: var(--ink); color: var(--paper); }
@media (max-width: 960px) { .art-side { position: static; max-height: none; flex-basis: 100%; order: 2; } }
.art-h1 { margin: 14px 0 0; font-family: var(--kai); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.35; font-weight: 400; letter-spacing: .04em; }
.art-sub { margin: 8px 0 0; font-size: 17px; color: var(--ink3); }
.byline { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-family: var(--sans); font-size: 14px; color: var(--ink3); }
.byline-who { color: var(--ink); font-weight: 500; }
.prov { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: 14px; color: var(--ink2); }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; margin-top: 26px; padding: 0; background: #EDE5D3; border: 1px solid var(--rule); cursor: pointer; }
.video-art, .video-thumb, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { object-fit: cover; opacity: .92; }
.video-note { position: absolute; left: 18px; bottom: 14px; font-family: var(--sans); font-size: 12.5px; color: var(--ink2); background: rgba(248, 244, 234, .8); padding: 0 8px; }
.prose { margin-top: 36px; font-size: 18px; line-height: 2.05; color: var(--body); }
.prose.fs-s { font-size: 16px; } .prose.fs-l { font-size: 20px; }
.prose p { margin: 0 0 1.15em; text-align: justify; }
.prose h2 { margin: 2.2em 0 .9em; font-family: var(--kai); font-size: 1.65em; line-height: 1.4; font-weight: 400; letter-spacing: .04em; scroll-margin-top: 100px; }
.prose h3 { margin: 1.8em 0 .7em; font-size: 1.12em; font-weight: 700; scroll-margin-top: 100px; }
.prose h4 { margin: 1.5em 0 .6em; font-size: 1em; font-weight: 700; }
.prose blockquote { margin: 0 0 1.15em; padding: 4px 0 4px 22px; border-left: 2px solid var(--red); font-family: var(--kai); font-size: 1.22em; line-height: 1.85; letter-spacing: .05em; color: #3B362F; }
.prose blockquote p { margin: 0 0 .4em; text-align: left; }
.prose > blockquote:first-child { margin-bottom: 2em; padding: 0; border: 0; text-align: center; font-family: var(--xingshu); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.7; letter-spacing: .08em; color: #2A2520; }
.prose > blockquote:first-child p { text-align: center; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.6em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--red-d); text-underline-offset: 3px; }
.prose img { display: block; margin: 1.5em auto; border: 1px solid var(--rule); }
.prose code { padding: 0 .3em; background: var(--capsule); border-radius: 2px; font-size: .9em; }
.prose hr { border: 0; margin: 2.2em 0; text-align: center; }
.prose hr::after { content: '· · ·'; letter-spacing: .6em; color: var(--ink4); }
.prose-page { margin-top: 18px; font-size: 17px; }
.gate { display: flex; align-items: flex-start; gap: 18px; margin-top: 30px; padding: 28px; }
.gate-title { margin: 0 0 6px; font-family: var(--kai); font-size: 26px; font-weight: 400; letter-spacing: .06em; }
.gate p { margin: 0; color: var(--ink2); }
.gate-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px !important; }
.end-card { display: flex; align-items: flex-start; gap: 18px; margin-top: 40px; padding: 24px 26px; }
.end-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.end-card p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink2); }
.end-note { font-family: var(--sans); font-size: 13px !important; color: var(--ink3) !important; }
.art-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.like-btn.is-on { background: var(--red); border-color: var(--red); color: #F8F4EA; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(248, 244, 234, .5); }
.prevnext { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; font-family: var(--sans); }
.prevnext a { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); text-decoration: none; }
.prevnext a span { font-size: 12.5px; color: var(--ink3); }
.prevnext a strong { font-family: var(--serif); font-size: 16px; }
.prevnext .pn-next { align-items: flex-end; text-align: right; }
.more { margin-top: 40px; }
.block-title { margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; font-family: var(--kai); font-size: 28px; font-weight: 400; letter-spacing: .08em; }
.block-title-lg { font-size: 34px; letter-spacing: .1em; margin: 0; }
.count { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--ink3); }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.more-list li { border-bottom: 1px solid var(--rule2); }
.course-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; padding: 24px 26px; background: var(--night); border-radius: 2px; color: var(--night-t); }
.course-cta > div { flex: 1 1 320px; min-width: 0; }
.course-cta p { margin: 4px 0 0; font-size: 15px; line-height: 1.85; color: #B9BFC8; }
.course-cta-eyebrow { margin: 0 !important; font-family: var(--sans); font-size: 13px !important; letter-spacing: .12em; color: var(--shen-l) !important; }
.course-cta-title { margin: 4px 0 0; font-family: var(--kai); font-size: 26px; font-weight: 400; letter-spacing: .06em; }
.replies { margin-top: 64px; scroll-margin-top: 90px; }
.replies-note { margin: 10px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink4); }
.replies-note a { color: var(--ink3); }
.threads { list-style: none; margin: 0; padding: 0; }
.thread { padding: 26px 0; border-bottom: 1px solid var(--rule2); }
.cmt { display: flex; gap: 16px; scroll-margin-top: 100px; }
.cmt:target { animation: glow 2.4s ease-out; }
@keyframes glow { from { background: #F6E9C9; } to { background: transparent; } }
.cmt-main { flex: 1 1 auto; min-width: 0; }
.cmt-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--sans); font-size: 13.5px; color: var(--ink4); }
.cmt-name { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.cmt-floor { margin-left: auto; color: var(--ink4); text-decoration: none; }
.cmt-body { margin-top: 8px; font-size: 16.5px; line-height: 1.95; color: var(--body); word-break: break-word; }
.cmt-body p { margin: 0 0 .5em; }
.cmt-to { font-family: var(--sans); font-size: 14px; color: var(--ink3); }
.cmt-acts { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: 13.5px; color: var(--ink3); }
.act { min-height: 32px; padding: 0; border: 0; background: transparent; font-family: var(--sans); font-size: 13.5px; color: var(--ink3); cursor: pointer; }
.act:hover { color: var(--red); }
.act.is-on { color: var(--red); font-weight: 700; }
.act-more { margin: 8px 0 0 58px; color: var(--red); }
.cmt-nest { list-style: none; margin: 14px 0 0 58px; padding: 0 0 0 22px; border-left: 2px solid var(--rule3); }
.cmt-nest > li { padding: 6px 0 10px; }
.cmt-reply .ava { width: 36px; height: 36px; font-size: 19px; }
.cmt-author { padding: 16px 18px; background: var(--silk); border: 1px solid var(--rule3); box-shadow: inset 2px 0 0 var(--red); border-radius: 2px; }
.reply-slot { margin-left: 58px; }
.reply-slot:empty { display: none; }
@media (max-width: 600px) { .cmt-nest, .reply-slot, .act-more { margin-left: 0; } .cmt-nest { padding-left: 14px; } }
.load-more { display: flex; justify-content: center; margin-top: 22px; }
.composer { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; padding: 26px 28px; font-family: var(--sans); }
.composer-title { margin: 0; font-family: var(--kai); font-size: 26px; font-weight: 400; letter-spacing: .1em; }
.composer-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.composer-foot .small-link { margin-right: auto; }
.composer-note { font-size: 13px; color: var(--ink4); }
.composer-inline { margin: 12px 0 0; padding: 14px 16px; background: var(--silk); border: 1px solid var(--rule); }
.composer-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 36px; padding: 24px 28px; }
.composer-login p { margin: 0; font-size: 15px; color: var(--ink2); }
.composer-login strong { display: block; font-family: var(--kai); font-size: 24px; font-weight: 400; letter-spacing: .08em; color: var(--ink); }
.composer-login-btns { display: flex; gap: 12px; }
.composer-off { margin-top: 36px; padding: 20px 24px; font-family: var(--sans); font-size: 15px; color: var(--ink2); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; font-family: var(--sans); }
.form-narrow { max-width: 480px; margin-bottom: 36px; }
.form-title { margin: 0; font-family: var(--kai); font-size: 24px; font-weight: 400; letter-spacing: .08em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink2); }
.field small { font-size: 12.5px; color: var(--ink3); }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--chip); border-radius: 2px; background: var(--field); font-family: var(--sans); font-size: 16px; color: var(--ink); }
textarea.input { padding: 12px 14px; line-height: 1.8; resize: vertical; font-family: var(--serif); }
.input:focus, .lx-form textarea:focus, .composer textarea:focus { outline: none; border-color: var(--ink3); box-shadow: 0 0 0 3px rgba(163, 58, 44, .12); }
.input.is-bad { border-color: var(--red); }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field-sm { flex: 1 1 140px; } .field-grow { flex: 3 1 240px; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; color: var(--ink2); cursor: pointer; }
.check input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; padding: 10px 14px; border-radius: 2px; font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.form-msg.is-error { background: #F6E3DF; border: 1px solid #E0B4AA; color: var(--red-d); }
.form-msg.is-ok { background: #E9EEE1; border: 1px solid #BFD0AE; color: #3E5A2E; }

/* ---------- auth, account, levels ---------- */
.auth { position: relative; overflow: hidden; display: flex; justify-content: center; padding: clamp(36px, 7vw, 80px) 16px 150px; }
.auth-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 240px; }
.auth-card { position: relative; width: min(470px, 100%); padding: 32px 32px 26px; }
.auth-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.auth-title { margin: 0; font-family: var(--kai); font-size: 32px; font-weight: 400; letter-spacing: .08em; line-height: 1.3; }
.auth-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.85; color: var(--ink2); }
.auth-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule3); font-family: var(--sans); font-size: 14px; color: var(--ink3); text-align: center; }
.auth-foot a { color: var(--red); }
.auth-btns { display: flex; gap: 12px; }
.acct { padding-top: 32px; padding-bottom: 80px; }
.acct-card { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; padding: 28px 30px; }
.acct-info { flex: 1 1 260px; min-width: 0; }
.acct-name { margin: 0; font-family: var(--kai); font-size: 34px; font-weight: 400; letter-spacing: .08em; line-height: 1.3; }
.acct-badges { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acct-bio { margin: 8px 0 0; color: var(--ink2); }
.acct-meta { margin: 6px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.acct-level { flex: 1 1 260px; min-width: 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--rule2); font-family: var(--sans); }
.acct-level-name { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.acct-level-name strong { font-family: var(--kai); font-size: 30px; font-weight: 400; letter-spacing: .12em; color: var(--xing); }
.lv-n { font-size: 13px; color: var(--ink3); }
.acct-level-desc { margin: 2px 0 10px; font-size: 13.5px; color: var(--ink2); }
.lv-bar { height: 6px; }
.acct-level-next { margin: 8px 0 4px; font-size: 13px; color: var(--ink3); }
.acct-warn { margin: 16px 0 0; padding: 12px 16px; background: #F6E3DF; border: 1px solid #E0B4AA; color: var(--red-d); font-family: var(--sans); font-size: 14px; }
.acct-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; border-bottom: 1px solid var(--ink); font-family: var(--sans); }
.acct-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink); text-decoration: none; font-size: 15px; }
.acct-tab.is-on { background: var(--ink); color: var(--paper); }
.acct-panel { padding-top: 22px; }
.mine { list-style: none; margin: 0; padding: 0; }
.mine li { padding: 16px 0; border-bottom: 1px solid var(--rule2); }
.mine-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--sans); font-size: 13.5px; color: var(--ink4); }
.mine-head a { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mine-body { margin: 6px 0 0; color: var(--ink2); }
.ptable { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.ptable th, .ptable td { padding: 10px 12px; border-bottom: 1px solid var(--rule2); text-align: left; }
.ptable th { font-weight: 500; color: var(--ink3); border-bottom-color: var(--ink); }
.plus { color: #3E5A2E; font-weight: 700; } .minus { color: var(--red-d); font-weight: 700; }
.links-panel p { margin: 0 0 14px; color: var(--ink2); }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--silk); border: 1px solid var(--rule); }
.link-card div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-family: var(--sans); }
.link-card strong { font-size: 16px; } .link-card span { font-size: 12.5px; color: var(--ink3); }
.link-card .door-seal { width: 40px; height: 40px; font-size: 22px; border-width: 1.5px; }
.levels-head { margin-bottom: 28px; }
.level-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.level-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.level-card div { flex: 1 1 auto; min-width: 0; }
.level-card p { margin: 0; font-size: 14px; color: var(--ink2); }
.level-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--red); border-radius: 3px; color: var(--red); font-family: var(--kai); font-size: 22px; }
.level-name { margin: 0; font-family: var(--kai); font-size: 28px; font-weight: 400; letter-spacing: .12em; color: var(--xing); }
.level-min { flex: none; font-family: var(--sans); font-size: 13px; color: var(--ink3); }
.ptable-rules { max-width: 760px; }
.levels-note { font-size: 14px; color: var(--ink3); }

/* ---------- static pages, contact, notices ---------- */
.page-wrap { padding-bottom: 80px; }
.page-card { margin-top: 22px; padding: clamp(24px, 4vw, 44px); max-width: 860px; }
.page-title { margin: 0; font-family: var(--kai); font-size: clamp(32px, 3.4vw, 44px); font-weight: 400; letter-spacing: .08em; }
.page-lead { margin: 10px 0 22px; color: var(--ink2); }
.courses-page { max-width: 1120px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.contact-grid .page-card { flex: 2 1 520px; }
.contact-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.side-card { padding: 22px 24px; font-size: 15px; color: var(--ink2); }
.side-card p { margin: 0 0 8px; }
.side-quote { text-align: center; }
.side-poem { font-family: var(--xingshu); font-size: 34px; letter-spacing: .14em; color: var(--ink) !important; }
.notice-page { padding-top: clamp(40px, 8vw, 90px); padding-bottom: clamp(60px, 10vw, 120px); }
.notice { display: flex; align-items: flex-start; gap: 20px; max-width: 640px; margin: 0 auto; padding: 30px 32px; }
.notice-title { margin: 0 0 8px; font-family: var(--kai); font-size: 32px; font-weight: 400; letter-spacing: .08em; }
.notice p { margin: 0; color: var(--ink2); }
.notice-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px !important; }

/* ---------- toast ---------- */
.toast-pop { position: fixed; left: 50%; bottom: 28px; z-index: 90; max-width: calc(100vw - 32px); padding: 12px 20px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 14.5px; border-radius: 2px; box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(242, 236, 224, .3), 0 10px 30px rgba(0, 0, 0, .2); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast-pop.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 960px) { .art-side .toc { display: none; } }
