/* 拨云 depth-5（review3）：把日夜开关的三层质感（内凹槽 / 金色颗粒浮起 / 叠云）延伸到全站的输入框、次级按钮、切换项、卡片和标题区。
   只用 depth.css 里已有的变量；不改布局，只改底色、描边、阴影和圆角（输入框 12px、按钮 999px、卡片 16px）。 */
:root{--dp5-r-in:12px;--dp5-r-card:16px}

/* ---------- 1 输入框：统一凹槽 ---------- */
html:is([data-tone],[data-theme]) :is(main,dialog,.record-library,#record-library-panel) :is(input:is([type=text],[type=date],[type=time],[type=number],[type=search],[type=email],[type=password],[type=tel]),select,textarea):not(.dp5-skip){
  background:var(--dp-groove)!important;border:1px solid color-mix(in srgb,var(--dp-hair) 28%,transparent)!important;border-radius:var(--dp5-r-in)!important;
  box-shadow:var(--dp-in)!important;transition:box-shadow .3s var(--dp-ease)!important}
html:is([data-tone],[data-theme]) :is(main,dialog,.record-library,#record-library-panel) :is(input,select,textarea):focus-visible{outline:none!important;box-shadow:var(--dp-in),0 0 0 2px color-mix(in srgb,var(--dp-gold) 60%,transparent)!important}
html:is([data-tone],[data-theme]) :is(main,dialog) :is(input,select,textarea)[aria-invalid=true]{box-shadow:var(--dp-in),0 0 0 2px rgba(180,60,40,.55)!important}

/* ---------- 2 主按钮：金色颗粒（工具页里漏掉的几处） ---------- */
html[data-tone] main :is(.meihua-primary,.hp-btn-primary,.tz-btn-main,.ox-go .btn,#meihua-now){
  background:var(--dp-grain),radial-gradient(120% 140% at 30% 0%,var(--dp-gold-hi),var(--dp-gold) 52%,var(--dp-gold-lo))!important;background-blend-mode:soft-light,normal!important;
  color:var(--dp-gold-ink)!important;border:0!important;border-radius:999px!important;text-shadow:0 1px 0 rgba(255,255,255,.35);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.55),inset 0 -3px 6px rgba(130,90,20,.3),0 10px 20px -10px rgba(140,100,30,.6)!important;transition:transform .35s var(--dp-spring),filter .2s!important}
html[data-tone] main :is(.meihua-primary,.hp-btn-primary,.tz-btn-main,#meihua-now):active{transform:translateY(1px) scale(.985)}
html[data-tone] main :is(.meihua-primary,.hp-btn-primary,.tz-btn-main):disabled{filter:saturate(.35);opacity:.75}

/* ---------- 3 次级按钮：浮起的纸片，按下内凹 ---------- */
html:is([data-tone],[data-theme]) :is(main,#record-library-panel,.record-library,.fx-acct-menu,#site-account-menu) :is(.tz-btn-line,.hp-btn-ghost,.hp-chip,#record-signin,.fx-acct-lib,.record-new,.ox-more a,.meihua-secondary,button.secondary){
  border-radius:999px!important;background:var(--dp-card)!important;border:1px solid color-mix(in srgb,var(--dp-hair) 70%,transparent)!important;box-shadow:var(--dp-up)!important;
  transition:transform .35s var(--dp-spring),box-shadow .3s var(--dp-ease)!important}
html:is([data-tone],[data-theme]) :is(main,#record-library-panel,.record-library) :is(.tz-btn-line,.hp-btn-ghost,.hp-chip,#record-signin,.fx-acct-lib):hover{transform:translateY(-1px);box-shadow:var(--dp-up-hi)!important}
html:is([data-tone],[data-theme]) :is(main,#record-library-panel,.record-library) :is(.tz-btn-line,.hp-btn-ghost,.hp-chip,#record-signin,.fx-acct-lib):active{transform:translateY(1px);box-shadow:var(--dp-in)!important}
html[data-tone] main .hp-chip[aria-pressed=true]{background:var(--dp-grain),radial-gradient(120% 160% at 30% 0%,var(--dp-gold-hi),var(--dp-gold) 55%,var(--dp-gold-lo))!important;background-blend-mode:soft-light,normal!important;color:var(--dp-gold-ink)!important;border-color:transparent!important}

/* ---------- 4 切换项：凹槽轨道 + 选中项金色浮起（梅花起卦方式、塔罗、合盘标签） ---------- */
html[data-tone] main :is(.meihua-segment,.tz-seg,.hp-tabs,.ox-tabs){background:var(--dp-groove)!important;box-shadow:var(--dp-in-deep)!important;border:0!important;border-radius:999px!important;padding:4px!important}
html[data-tone] main :is(.meihua-segment,.tz-seg,.hp-tabs,.ox-tabs).seg-slide::before,html[data-tone] main :is(.meihua-segment,.tz-seg,.hp-tabs,.ox-tabs).seg-slide::after{opacity:0!important}
html[data-tone] body main .meihua-workbench .meihua-segment.meihua-segment label>span,html[data-tone] main :is(.tz-seg,.hp-tabs,.ox-tabs) :is(button,a){border-radius:999px!important;color:var(--ink-2,#5F5F4D)!important;background:transparent!important;transition:color .25s,background-color .25s!important}
html[data-tone] body main .meihua-workbench .meihua-segment.meihua-segment label:has(input:checked)>span,html[data-tone] body main .meihua-workbench .meihua-segment.meihua-segment input:checked+span,
html[data-tone] main :is(.tz-seg,.hp-tabs,.ox-tabs) :is(button,a):is([aria-pressed=true],[aria-selected=true],[aria-current],.on,.active){
  background:var(--dp-grain),radial-gradient(120% 160% at 30% 0%,var(--dp-gold-hi),var(--dp-gold) 55%,var(--dp-gold-lo))!important;background-blend-mode:soft-light,normal!important;
  color:var(--dp-gold-ink)!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.5),inset 0 -2px 4px rgba(130,90,20,.3),0 6px 12px -6px rgba(120,80,10,.55)!important}
html[data-tone=dark] body main .meihua-workbench .meihua-segment.meihua-segment label>span,html[data-tone=dark] main :is(.tz-seg,.hp-tabs,.ox-tabs) :is(button,a){color:#C9C3B2!important}
html[data-tone=dark] body main .meihua-workbench .meihua-segment.meihua-segment input:checked+span,html[data-tone=dark] main :is(.tz-seg,.hp-tabs,.ox-tabs) :is(button,a):is([aria-pressed=true],[aria-selected=true],[aria-current],.on,.active){color:var(--dp-gold-ink)!important}

/* ---------- 5 卡片：浅浮起，结论卡加右下叠云 ---------- */
html[data-tone] main :is(.hp-sec,.hp-pcard,.meihua-diagram,.tz-read,.tz-board,.meihua-reading-item){
  background:var(--dp-card)!important;border:1px solid color-mix(in srgb,var(--dp-hair) 35%,transparent)!important;border-radius:var(--dp5-r-card)!important;box-shadow:var(--dp-up)!important}
html[data-tone] main .meihua-reading-item{padding:16px 20px!important;margin-bottom:12px}
html[data-tone] main :is(.hp-summary,.meihua-conclusion,.hp-sec.is-emph){
  position:relative;background:var(--dp-clouds),var(--dp-card)!important;border:1px solid color-mix(in srgb,var(--dp-hair) 50%,transparent)!important;border-radius:var(--dp5-r-card)!important;box-shadow:var(--dp-up)!important}

/* ---------- 6 标题区：金色细光分隔 ---------- */
html[data-tone] main :is(.meihua-heading,.tz-head,.hp-result-head,.hp-sec-head){position:relative}
html[data-tone] main :is(.meihua-heading,.tz-head,.hp-result-head)::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;
  background:linear-gradient(90deg,var(--dp-gold),color-mix(in srgb,var(--dp-gold-hi) 60%,transparent) 45%,transparent);pointer-events:none}
html[data-tone] main .hp-sec-head{padding-bottom:8px;margin-bottom:12px;background:linear-gradient(90deg,color-mix(in srgb,var(--dp-gold) 70%,transparent),transparent 60%) bottom/100% 1px no-repeat}

@media (prefers-reduced-motion:reduce){html :is(.tz-btn-line,.hp-btn-ghost,.hp-chip,#record-signin,.fx-acct-lib,.meihua-primary,.hp-btn-primary,.tz-btn-main){transition:none!important;transform:none!important}}

/* ── round4：总览日主说明胶囊（ui4 3.1：夜 #EFEBDD on rgba(22,19,28,.82)，日 #3A3426 on rgba(250,247,238,.88)） ── */
html[data-theme] body .ox-fig figcaption{z-index:2;background:rgba(250,247,238,.88);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html[data-theme] body .ox-fig figcaption span{color:#3A3426}
html[data-theme=night] body .ox-fig figcaption{background:rgba(22,19,28,.82)}
html[data-theme=night] body .ox-fig figcaption span{color:#EFEBDD}

/* ── round4：字阶收敛为 8 级 12/14/16/18/22/28/40/64（ui4 P1-4） ──
   站点页 H1 64（手机 40）；app 页 H1 28；H2 28（手机 22）；导航 14 / 行高 1.6；标题行高 1.25；正文 16 / 1.75 */
:root{--t-xs:12px;--t-sm:14px;--t-md:16px;--t-lg:18px;--t-xl:22px;--t-2xl:28px;--t-3xl:64px;--t-4xl:64px}
@media (max-width:899px){:root{--t-lg:18px;--t-xl:22px;--t-2xl:22px;--t-3xl:40px;--t-4xl:40px}}
html body :is(h1,h2.fx-h,.fx-hero h1,.ha h1,.ox-intro h1){font-size:64px!important;line-height:1.25!important}
html body :is(h1,h2.fx-h,.ha h1,.ox-intro h1) :is(span,i,em,b):not(.h1-kw):not(.mute){font-size:inherit!important;line-height:inherit!important}
html body.site-workspace h1:not(.fx-h){font-size:28px!important;line-height:1.25!important}
html body h2:not(.fx-h):not(.ox-h1){font-size:28px!important;line-height:1.25!important}
html body h3{font-size:18px!important;line-height:1.4!important}
html[data-theme] body .ox-copy h2.ox-h1{font-size:40px!important;line-height:1.25!important}
@media (max-width:899px){
  html body :is(h1,h2.fx-h,.fx-hero h1,.ha h1,.ox-intro h1){font-size:40px!important}
  html body.site-workspace h1:not(.fx-h){font-size:28px!important}
  html body h2:not(.fx-h):not(.ox-h1){font-size:22px!important}
  html[data-theme] body .ox-copy h2.ox-h1{font-size:28px!important}
  html body h3{font-size:18px!important}
}
/* 导航 14 / 1.6 */
html body :is(header.top,.app-header,.app-shortcuts,.site-nav,nav) :is(a,button):not(.logo):not(.brand){font-size:14px!important;line-height:1.6!important}
/* 零碎字号归位 */
html body :is(.lab,.fx-hero .lab,.fx-more .lab,figcaption .lab,.record-search){font-size:12px!important}
html body :is(.lead,p.lead,.ox-lead,.ha .lead){font-size:18px!important;line-height:1.6!important}
html body main summary{font-size:16px!important}
html body main :is(p,li,a):not([class]){font-size:inherit}
html[data-tone] body .fx-hero h2.fx-h,html[data-tone] body .fx-hero h2.fx-h *,html[data-theme] body .fx-hero h2.fx-h,html[data-theme] body .fx-hero h2.fx-h *{font-size:64px!important;line-height:1.1!important}
@media (max-width:899px){html[data-tone] body .fx-hero h2.fx-h,html[data-tone] body .fx-hero h2.fx-h *,html[data-theme] body .fx-hero h2.fx-h,html[data-theme] body .fx-hero h2.fx-h *{font-size:40px!important}}
html body :is(label,legend,.xt-crumbs,.xt-crumbs *,.record-status,#record-signin~span,span.auth-state){font-size:14px!important}
html body :is(summary,.record-primary-button){font-size:16px!important}
html body .record-primary-button{font-size:14px!important}
html body .h1-kw{font-size:14px!important}
html body main :is(p,ul a,ol a):not([class]){font-size:16px}
html body :is(.mods-g b,.kb-cats b,.gt b,.rzq b,.stems b,.dm-grid b){font-size:18px}
html body .dm .n b{font-size:28px!important}
html body .dm .n span,html body .xt-note{font-size:12px!important}
html body .dm a,html body .kb-grid a{font-size:16px!important}
html body .kb-grid a b{font-size:18px!important}
html body .fc-tools>span{font-size:14px!important}
html:is([data-tone],[data-theme]) body:is(*,[data-active-screen]) .fx-mh.fx-mh h2.fx-h,html:is([data-tone],[data-theme]) body:is(*,[data-active-screen]) .fx-mh.fx-mh h2.fx-h *{font-size:64px!important;line-height:1.1!important}
@media (max-width:899px){html:is([data-tone],[data-theme]) body:is(*,[data-active-screen]) .fx-mh.fx-mh h2.fx-h,html:is([data-tone],[data-theme]) body:is(*,[data-active-screen]) .fx-mh.fx-mh h2.fx-h *{font-size:40px!important}}
html body .xt-grid a b{font-size:18px!important}
html body footer.foot :is(div,a,span){font-size:14px!important}
html body figcaption{font-size:12px}
html body :is(.app-header,.top,header) span:not([class]){font-size:14px}
/* P2-1 大字字体统一：总览体系名用 FX Serif 700，序号用 Cormorant 600 */
html[data-theme] body .ox-glyph{font-family:"FX Latin","FX Serif",serif!important;font-weight:700!important}
html[data-theme] body .ox-glyph small{font-family:var(--xt-body)!important;font-weight:400!important}
html[data-theme] body .ox-no{font-family:"FX Latin","FX Serif",serif!important;font-weight:600!important}
/* P2-5 总览四卡：等高，导语最多 3 行，要点每条最多 2 行，底部链接贴底 */
html[data-theme] body .ox-cards{gap:24px;align-items:stretch}
html[data-theme] body .ox-card{display:flex}
html[data-theme] body .ox-core{flex:1}
html[data-theme] body .ox-say{min-height:calc(4 * 1.75em)}
html[data-theme] body .ox-pts{margin-bottom:24px}
html[data-theme] body .ox-pts li{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media (max-width:899px){html[data-theme] body .ox-say{min-height:0}}
/* round4：语言切换统一“EN 简 繁”。标签变短后 761px 以上（含英文工具页 1280）都显示，不再隐藏 */
@media (min-width:761px){html body .app-header .xt-band-lang,html[lang^=en] body .app-header .xt-band-lang{display:flex!important;align-items:center}}
html body .xt-lang a,html body .acct-lang a,html body .fx-lang a{letter-spacing:.02em}
/* 手机语言行（账号菜单底部）：一行三个，14px，高 44px */
html body .acct-lang{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between;gap:4px}
html body .acct-lang a{flex:1 1 0;justify-content:center;min-height:44px;font-size:14px!important}
html body .acct-lang a[aria-current=true]{font-weight:700;color:var(--dp-gold-ink,inherit)}
html body .acct-lang a:not([aria-current]){opacity:.75}
/* 登录入口全站统一：不带箭头 */
html body .site-account-menu>summary [data-icon=ChevronDown]{display:none!important}
/* 日夜切换：点击区域 ≥44px（原 .44 缩放后 41px 高）；只放大比例，三层样式不变 */
html body .u021{width:106px!important;height:46px!important}
html body .u021-scale{transform:scale(.47)!important}
/* P2-2 单体系页的子 tab 只留本体系（其他体系在页尾“其他板块”里有链接） */
html:is([data-xt-page=western],[data-xt-page=jyotish],[data-xt-page=ziwei]) .reference-nav :is([data-reference],.sandpan-entry){display:none!important}
html:is([data-xt-page=western],[data-xt-page=jyotish],[data-xt-page=ziwei]) .reference-nav{min-height:0!important;padding-top:0!important;padding-bottom:0!important}
/* P1-5 西占/印占手机端视图切换：不折行、可横向滑动，目录按钮贴右不被截 */
@media (max-width:760px){
  html body :is(.astro-view-switch,.jy-view-switch,[class*=view-switch]){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;gap:8px!important;padding:4px 0 4px 4px!important;scrollbar-width:none;align-items:center}
  html body :is(.astro-view-switch,.jy-view-switch,[class*=view-switch])::-webkit-scrollbar{display:none}
  html body :is(.astro-view-switch,.jy-view-switch,[class*=view-switch])>button{flex:0 0 auto!important;height:36px!important;min-height:36px!important;padding:0 14px!important;font-size:14px!important;white-space:nowrap!important;scroll-snap-align:start}
  html body :is(.astro-view-switch,.jy-view-switch,[class*=view-switch])>button:is(#astro-outline-open,[id$=outline-open]){position:sticky!important;right:0;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:0!important;display:grid;place-items:center;z-index:2;background:var(--dp-card)!important;box-shadow:-16px 0 16px -4px var(--dp-bg,rgba(0,0,0,.25))!important;border-radius:999px!important}
  html body :is(.astro-view-switch,.jy-view-switch,[class*=view-switch]).seg-slide::before{display:none!important}
}
/* P2-8 桌面塔罗右栏：还没出解读时，右栏和左栏等高，牌阵竖向居中，不再留一大块空白 */
@media (min-width:900px){
  html body .tz-layout:has(.tz-result:is(:empty,[hidden])){align-items:stretch!important}
  html body .tz-layout:has(.tz-result:is(:empty,[hidden])) .tz-main{display:flex;flex-direction:column}
  html body .tz-layout:has(.tz-result:is(:empty,[hidden])) .tz-board-wrap{flex:1;display:flex;flex-direction:column}
  html body .tz-layout:has(.tz-result:is(:empty,[hidden])) .tz-board{flex:1;align-content:center}
}
/* P1-11 y≈640 接缝：天空层（光晕+颗粒）从“固定在视口”改为铺满整页，长页/整页截图都不再在一屏高处断开 */
html.dp-js{position:relative}
html body>.dp-sky{position:absolute!important;inset:0!important;height:auto!important;min-height:100vh}
/* 英文八字 hero 标语：手机上“性别”另起一行，不再以圆点开头 */
@media (max-width:760px){html[lang^=en] body .fx-hero .sub .fx-g{display:block}html[lang^=en] body .fx-hero .sub .fx-dot{display:none}}
html body .fx-hero .sub .fx-dot{font-style:normal}
/* 首页天干卡说明文字对比度（P1-7 剩余） */
html body .dm .n span{color:#4A4232!important;opacity:1!important}
html:is([data-theme=night],[data-tone=dark]) body .dm .n span{color:#D9D2C0!important}
html body #site-account-content .fx-acct-lib{justify-content:center!important;text-align:center!important}
/* R5 语言切换：工具页、/app 各宽度都显示“EN 简 繁”。手机放在顶栏第二行靠右（与首页一致），点按区 44×44；桌面 ≥32×32；颜色全站统一（不用透明度） */
html body .app-header .xt-band-lang{display:flex!important;align-items:center}
html body :is(.xt-lang,.acct-lang,.fx-lang) a{opacity:1!important;color:var(--ink-2,#5b5446)!important}
html body :is(.xt-lang,.acct-lang,.fx-lang) a[aria-current]{color:var(--ink,#1f1b14)!important;font-weight:600}
html[data-tone=dark] body :is(.xt-lang,.acct-lang,.fx-lang) a,html[data-theme=night] body :is(.xt-lang,.acct-lang,.fx-lang) a{color:#D9D2C0!important}
html[data-tone=dark] body :is(.xt-lang,.acct-lang,.fx-lang) a[aria-current],html[data-theme=night] body :is(.xt-lang,.acct-lang,.fx-lang) a[aria-current]{color:#F3EBD8!important}
@media (min-width:761px){html body :is(.xt-lang,.acct-lang) a{min-width:32px;min-height:32px;display:inline-flex!important;align-items:center;justify-content:center}}
@media (max-width:760px){
  html body .app-header{height:auto!important}
  html[data-tone] body .app-header .app-shortcuts,html body .app-header .app-shortcuts{flex-wrap:wrap!important;justify-content:flex-end!important;row-gap:0!important}
  html body .app-header .xt-band-lang{order:9;flex-basis:100%;justify-content:flex-end;margin:-2px -10px -8px 0}
  html body .app-header .xt-band-lang .xt-lang{gap:0!important}
  html body :is(.xt-lang,.fx-lang,.acct-lang) a{min-width:44px;min-height:44px;display:inline-flex!important;align-items:center;justify-content:center;padding:0!important}
}
/* R5 手机「我的」抽屉：账号菜单内容搬进抽屉后按普通块排版 */
html body .fx-sheet .fx-me-acct #site-account-content{position:static!important;inset:auto!important;transform:none!important;width:auto!important;min-width:0!important;max-width:none!important;display:block!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0 0 8px!important;background:transparent!important}
html body .fx-sheet .fx-lang{display:flex;gap:4px}
/* R5 英文梅花 390：标题和题注可以换行，不再撑出屏幕 */
html body #fx-mh-hero,html body #fx-mh-hero .t{min-width:0;max-width:100%}
html body #fx-mh-hero .lab,html body #fx-mh-hero h2.fx-h,html body #fx-mh-hero .sub{white-space:normal!important;overflow-wrap:break-word}
@media (max-width:760px){html body #fx-mh-hero{grid-template-columns:minmax(0,1fr)!important}html body #fx-mh-hero .art{max-width:100%;overflow:hidden}}
/* R5 合盘“两人的关系”选中项：深底浅字（与性别按钮一致），对比度 ≥ 4.5:1 */
html:is([data-tone],[data-theme]) body :is(main,#_r5) .hp-chips .hp-chip[aria-checked=true]:is(.hp-chip,#_r5){background:#2A251C!important;background-image:none!important;color:#F7F2E6!important;-webkit-text-fill-color:#F7F2E6!important;border-color:#2A251C!important}
html:is([data-tone=dark],[data-theme=night]) body :is(main,#_r5) .hp-chips .hp-chip[aria-checked=true]:is(.hp-chip,#_r5){background:#E9DFC6!important;color:#1D1A14!important;-webkit-text-fill-color:#1D1A14!important;border-color:#E9DFC6!important}
/* ===== R5 8 级字阶收尾（12/14/16/18/22/28/40/64） ===== */
html[data-tone] body main :is(.section-head,.section-head.compact-head) h2,html[data-tone] body main .section-head>div>h2{font-size:28px!important;line-height:1.2!important}
@media (max-width:760px){html[data-tone] body main :is(.section-head,.section-head.compact-head) h2,html[data-tone] body main .section-head>div>h2{font-size:22px!important}}
html[data-tone] body .zw-head h3{font-size:28px!important;line-height:1.2!important}
@media (max-width:760px){html[data-tone] body .zw-head h3{font-size:22px!important}}
html[data-tone] body .ziwei-center strong{font-size:40px!important;line-height:1.15!important}
html[data-tone] body :is(.ziwei-chart-toolbar button,.blind-path-label,.chuangong-summary,.ziwei-chart article p,.ziwei-chart .ziwei-shensha,#meihua-diagrams figcaption,.gua figcaption,.meihua-diagram figcaption){font-size:12px!important}
html[data-tone] body :is(.ziwei-references article h3,.ziwei-detail-section .panel-label){font-size:18px!important}
html[data-tone] body :is(.ziwei-surrounded,.ziwei-transformations) article strong,html[data-tone] body .ziwei-palace-reading>summary{font-size:16px!important}
html body .fx-more :is(.row,a){font-size:18px!important}
html[data-tone] body .jy-head h3{font-size:22px!important}
html[data-tone] body .jt>i{font-size:14px!important}html[data-tone] body :is(td,th,summary) .jt>i{font-size:12px!important}html[data-tone] body .jt.jt-z>i{font-size:16px!important}html[data-tone] body :is(td,th,summary) .jt.jt-z>i{font-size:12px!important}
html[data-tone] body :is(#jy-hero,#fx-zw-hero) h2.fx-h{font-size:64px!important;line-height:1.15!important}
@media (max-width:760px){html[data-tone] body :is(#jy-hero,#fx-zw-hero,.fx-mh,.fx-hero) h2.fx-h,html[data-tone] body :is(#jy-hero,#fx-zw-hero,.fx-mh,.fx-hero) h2.fx-h *{font-size:40px!important;line-height:1.15!important}}
html[data-tone] body #fx-mh-hero h2.fx-h{font-size:40px!important}
html body h1{line-height:1.15}
html body :is(h1,.xt-band h1)+p{margin-top:12px!important}
.western-chart-loading,[class*=astro] .loading-text{font-size:14px!important}
/* ===== R5 三层质感：选项卡（凹槽/金面+颗粒）、卡片（凹槽+云层）、标题区（云层） ===== */
html[data-tone=light] body main :is([role=tab],.rp-ten-item,.seg-slide>button,.workbench-tabs button,.ziwei-scope button):not([aria-selected=true]):not([aria-pressed=true]):not(.active):not(.is-active){box-shadow:inset 0 1px 2px rgba(110,80,20,.12)!important}
html[data-tone=light] body main :is([role=tab],.rp-ten-item)[aria-selected=true]{background:var(--dp-grain,none),linear-gradient(180deg,#F4DDA4,#D6A956 55%,#B48737)!important;background-blend-mode:overlay,normal;color:#2A1E08!important;-webkit-text-fill-color:#2A1E08!important}
html[data-tone] body main :is(.sky-fragment,.jy-ovi,.rp-g-cards>li>button,.rp-g-cards li,.practice-main-item){box-shadow:inset 0 2px 5px rgba(110,80,20,.10)!important;position:relative;isolation:isolate}
html[data-tone] body main :is(.sky-fragment,.jy-ovi,.practice-main-item)::after{content:"";position:absolute;inset:0;background:var(--dp-clouds,none);opacity:.12;pointer-events:none;border-radius:inherit;z-index:-1}
html[data-tone] body :is(.fx-hero,.fx-mh,.ox-hero){isolation:isolate}
html[data-tone] body :is(.fx-hero,.fx-mh,.ox-hero)::before{content:"";position:absolute;inset:0;background:var(--dp-clouds,none);opacity:.10;pointer-events:none;z-index:-1}
html[data-tone] main .ox-go{background-image:var(--dp-grain,none),linear-gradient(180deg,#F4DDA4,#D6A956 55%,#B48737)!important;background-blend-mode:overlay,normal}
html body .home-main :is(input,select),html body .ha :is(input,select){border-radius:12px!important}
/* ===== R5 手机底栏字体与激活色、滚动性能、横向撑宽 ===== */
html body :is(.fx-mnav,.xt-mnav,.mnav),html body :is(.fx-mnav,.xt-mnav,.mnav) *{font-family:"FX Latin","FX Serif",serif!important}
html[data-tone=light] body :is(.fx-mnav>.on,.xt-mnav>[aria-current]),html[data-theme=day] body .xt-mnav>[aria-current]{color:#8A6420!important}
html body .fc-index{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:color-mix(in srgb,var(--ui-bg,#f7f4ec) 96%,transparent)!important}
html[data-tone=dark] body .fc-index{background:rgba(16,19,17,.92)!important}
html body :is(.app-header,.site-header,header.top){-webkit-backdrop-filter:saturate(1.2) blur(8px)!important;backdrop-filter:saturate(1.2) blur(8px)!important}
html body main :is(.report-section,.reading-disclosure,.ziwei-detail-section,.jy-sec):not(:first-of-type){content-visibility:auto;contain-intrinsic-size:auto 600px}
html,body{overflow-x:clip}
/* ===== R5 总览：四卡底部对齐（链接上方留白一致）、标题字体与字重 ===== */
html body .ox-card{display:flex;flex-direction:column}
html body .ox-card>.ox-core{display:flex;flex-direction:column;flex:1 1 auto}
html body .ox-card .ox-pts{margin-top:auto!important;margin-bottom:0!important}
html body .ox-card .ox-pts>li:nth-child(n+4){display:none}
html body .ox-card .ox-pts>li{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html body .ox-card .ox-more{margin-top:24px!important}
html body :is(.ox-intro h1,.ox-hero h1,.ox-hero h2){font-family:"FX Latin","FX Black",serif!important}
html body .ox-h .ox-no{font-size:22px!important;font-weight:600!important}
html body .ox-h h2,html body .ox-card h3{font-weight:900!important}
html[data-tone] body #fx-mh-hero h2.fx-h *{font-size:inherit!important;line-height:inherit!important}
