/* 青史人物志 · 宣纸古籍风（首页 / 答题页 / 结果页共用；不用 Tailwind，改样式直接改这里，改完给各页的 rw.css?v= 换版本号） */
:root {
    --paper: #f3eadb; --paper2: #eadfc9; --card: #fbf7ef; --card2: #f6efe2;
    --ink: #2a221c; --ink2: #574a3f; --mute: #8d7f71; --line: rgba(95, 70, 45, .16); --line2: rgba(95, 70, 45, .26);
    --red: #b23a2b; --red2: #cf5641; --gold: #a8823f; --cyan: #3b5c5f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); overflow-x: hidden;
       font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(110% 60% at 50% -8%, #fbf5e8 0%, rgba(251, 245, 232, 0) 62%),
                radial-gradient(70% 45% at 105% 100%, rgba(178, 58, 43, .07), transparent 70%),
                radial-gradient(60% 40% at -10% 70%, rgba(59, 92, 95, .06), transparent 70%); }
body::after { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 240 240%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%223%22/%3E%3CfeColorMatrix values=%220 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 0.9 0%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E'); }
a { color: inherit; }
button { font-family: inherit; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 0 18px; }
.serif { font-family: 'Songti SC', 'Noto Serif SC', 'Noto Serif CJK SC', 'Source Han Serif SC', STSong, 'SimSun', serif; }
.num { font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif; }
.mute { color: var(--mute); }
.hide { display: none !important; }

/* 顶栏 */
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 460px; margin: 0 auto; padding: 14px 18px; }
.nav .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .35);
        color: var(--ink2); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.brand { text-decoration: none; line-height: 1; }
.brand b { display: block; font-size: 17px; letter-spacing: .14em; color: var(--ink); }
.brand small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .3em; color: var(--red); white-space: nowrap; }

/* 印章 */
.seal { display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--red); color: #fbf0e3; border-radius: 6px;
        font-family: 'Songti SC', 'Noto Serif SC', 'Noto Serif CJK SC', STSong, serif; font-weight: 900; line-height: 1.05; letter-spacing: 0;
        box-shadow: inset 0 0 0 2px rgba(251, 240, 227, .55), inset 0 0 0 4px var(--red), 0 6px 14px -8px rgba(140, 40, 25, .7); }
.seal.v { writing-mode: vertical-rl; text-orientation: upright; }

/* 卡片 / 按钮 / 标签 */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 36px -28px rgba(80, 50, 20, .55); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 16px; border-radius: 14px; border: 0; cursor: pointer;
       font-size: 16px; font-weight: 800; letter-spacing: .18em; text-decoration: none; transition: transform .12s; }
.btn:active { transform: scale(.98); }
.btn-red { background: linear-gradient(180deg, #c44836, #a53324); color: #fff6ea; box-shadow: 0 14px 26px -16px rgba(160, 45, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-ink { background: linear-gradient(180deg, #3a3029, #241d18); color: #f6eedf; box-shadow: 0 14px 26px -18px rgba(30, 20, 10, .9); }
.btn-line { background: rgba(255, 255, 255, .4); border: 1px solid var(--line2); color: var(--ink2); letter-spacing: .12em; font-size: 14px; font-weight: 700; }
.btn[disabled] { opacity: .6; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(178, 58, 43, .3); background: rgba(178, 58, 43, .06);
        color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .22em; color: var(--red); }
.tag i[data-ic] { font-size: 13px; }

/* 分隔：两侧细线 + 中间小字 */
.sec { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: .3em; white-space: nowrap; }
.sec::before, .sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); }
.h2 { margin: 0 0 6px; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: .08em; color: var(--ink); }
.sub { margin: 0 0 16px; text-align: center; font-size: 13px; line-height: 1.8; color: var(--mute); }
.sub, .hero p, .acts p, .box p, .gets small { text-wrap: pretty; }

/* 购买按钮 */
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 8px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .45);
         color: var(--ink2); font-size: 13px; font-weight: 800; text-decoration: none; }
.mk-pf { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 800; line-height: 1; font-style: normal; }
.mk-pf.xy { background: #ffe14d; color: #1a1500; } .mk-pf.xhs { background: #ff2442; color: #fff; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 0 18px; background: rgba(42, 30, 20, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.show { display: flex; }
.modal .box { position: relative; width: 100%; max-width: 380px; padding: 26px 22px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .6); }
.modal .x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--mute); cursor: pointer; }
.inp { width: 100%; padding: 15px; border-radius: 14px; border: 1px solid var(--line2); background: #fffdf8; color: var(--ink); text-align: center;
       font-size: 18px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; outline: none; }
.inp:focus { border-color: rgba(178, 58, 43, .55); box-shadow: 0 0 0 3px rgba(178, 58, 43, .1); }
.inp::placeholder { color: #b9ab9b; letter-spacing: .3em; }
.err { margin-top: 10px; padding: 8px; border-radius: 10px; background: rgba(178, 58, 43, .08); color: var(--red); font-size: 12.5px; text-align: center; }

/* 共用组件（ui.js）在浅色页上的样子 */
.mcrc-ritual { background: radial-gradient(circle at 50% 38%, rgba(178, 58, 43, .12), rgba(243, 234, 219, .98) 62%) !important; }
.mcrc-ritual .tr { stroke: rgba(95, 70, 45, .14) !important; }
.mcrc-ritual .br { filter: none !important; }
.mcrc-ritual .pct, .mcrc-ritual .tt { color: var(--ink) !important; }
.mcrc-ritual .tt { font-family: 'Songti SC', 'Noto Serif SC', STSong, serif; }
.mcrc-ritual .ln { color: rgba(42, 34, 28, .45) !important; } .mcrc-ritual .ln.ok { color: var(--ink2) !important; }
.mcrc-foot .rl { background: linear-gradient(90deg, transparent, var(--line2), transparent) !important; }
.mcrc-foot, .mcrc-foot .nt { color: var(--mute) !important; } .mcrc-foot a { color: var(--ink2) !important; } .mcrc-foot .lk i { color: var(--line2) !important; }
a[data-nopress] b { color: var(--ink) !important; } a[data-nopress] span span { color: var(--mute) !important; }
a[data-nopress] { background: var(--card) !important; }
[data-mcrc-rec] a { background: var(--card) !important; border-color: var(--line) !important; }
[data-mcrc-rec] a[style*="6b7280"] { background: none !important; }
[data-mcrc-rec] span[style*="f1f5f9"] { color: var(--ink) !important; }
[data-mcrc-rec] span[style*="9ca3af"], [data-mcrc-rec] a[style*="6b7280"] { color: var(--mute) !important; }
[data-mcrc-rec] span[style*="c4b5fd"] { color: var(--red) !important; }
[data-mcrc-rec] span[style*="255,255,255,.1"] { background: var(--line2) !important; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .06s; } .rise > *:nth-child(3) { animation-delay: .12s; } .rise > *:nth-child(4) { animation-delay: .18s; }
.rise > *:nth-child(5) { animation-delay: .24s; } .rise > *:nth-child(6) { animation-delay: .3s; } .rise > *:nth-child(n+7) { animation-delay: .36s; }
