/* review-fixes #2/#6：全站同一套底部导航和顶栏右侧按钮。首页/总览 .mnav、排盘页 .fx-mnav、知识库和英文页 .xt-mnav 共用这一份样式，颜色跟主题走。 */
:root{--fc-nav-bg:#FAF7F0;--fc-nav-ink:#5F5F4D;--fc-nav-on:#8A6420;--fc-nav-line:rgba(41,41,25,.12);--fc-pill-bg:#FBF8F1;--fc-pill-ink:#292919;--fc-pill-line:rgba(41,41,25,.16)}
html[data-theme=night],html[data-tone=dark]{--fc-nav-bg:rgba(16,19,17,.96);--fc-nav-ink:#A7A796;--fc-nav-on:#CDB57A;--fc-nav-line:rgba(239,235,221,.12);--fc-pill-bg:#1A1D1A;--fc-pill-ink:#EFEBDD;--fc-pill-line:rgba(239,235,221,.16)}
@media (max-width:760px){
  html body nav.mnav,html body nav.fx-mnav,html body nav.xt-mnav{display:flex!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:60!important;height:calc(56px + env(safe-area-inset-bottom))!important;margin:0!important;padding:0 0 env(safe-area-inset-bottom)!important;background:var(--fc-nav-bg)!important;border-top:1px solid var(--fc-nav-line)!important;box-shadow:none!important;justify-content:space-around!important;align-items:stretch!important;-webkit-backdrop-filter:saturate(1.2) blur(8px);backdrop-filter:saturate(1.2) blur(8px)}
  html body nav:is(.mnav,.fx-mnav,.xt-mnav)>:is(a,button),html body nav:is(.mnav,.fx-mnav,.xt-mnav)>:is(a,button):visited{flex:1 1 0!important;min-width:44px!important;height:56px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--fc-nav-ink)!important;opacity:1!important;font:500 12px/1 "Noto Serif SC","Source Han Serif SC",var(--fx-serif,serif)!important;letter-spacing:.08em!important;text-decoration:none!important}
  html body nav:is(.mnav,.fx-mnav,.xt-mnav)>:is(a,button):is(.on,[aria-current]){color:var(--fc-nav-on)!important;font-weight:700!important}
  html body nav:is(.mnav,.fx-mnav,.xt-mnav)>:is(a,button)::before,html body nav:is(.mnav,.fx-mnav,.xt-mnav)>:is(a,button)::after{display:none!important}
}
/* 顶栏右侧：登录 + 日夜切换，统一成 44px 胶囊 */
html body .top :is(.pill,.fx-acct),html body .fc-pill{min-height:44px!important;height:44px!important;padding:0 18px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid var(--fc-pill-line)!important;border-radius:999px!important;background:var(--fc-pill-bg)!important;color:var(--fc-pill-ink)!important;box-shadow:0 1px 2px rgba(0,0,0,.06)!important;font:500 14px/1 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:.04em!important;text-decoration:none!important;white-space:nowrap;cursor:pointer}
html body .top .fx-acct{margin-left:auto}
html body .top .fx-acct+.pill,html body .top .pill+.pill{margin-left:8px}
.xt-page .top{gap:24px}
html body .top .fc-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}html body .top .fc-tools .fx-acct{margin-left:0!important}html body .top .fc-tools .pill+.pill{margin-left:0!important}
@media (max-width:760px){.xt-page .top>.xt-lang,.top .ov-lang{display:none!important}.xt-page .top{gap:12px}}
html[data-tone] body .app-header .site-account-menu>summary{min-height:44px!important;height:44px!important;padding:0 16px 0 18px!important;border:1px solid var(--fc-pill-line)!important;border-radius:999px!important;background:var(--fc-pill-bg)!important;color:var(--fc-pill-ink)!important;box-shadow:0 1px 2px rgba(0,0,0,.06)!important;font:500 14px/1 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:.04em!important}
html[data-tone] body .app-header .site-account-menu>summary *{color:inherit!important}
html body .app-header .app-shortcuts{gap:8px!important;align-items:center!important;flex-wrap:nowrap!important;white-space:nowrap}
html[data-tone] body .app-header .site-account-menu>summary span{font-size:14px!important;letter-spacing:.04em!important}
/* #7 对比度：面包屑和小注（知识库、英文页）、总览眉标和印占色、总览夜间“今年”标签 */
html:not([data-theme=night]) .xt-crumbs,html:not([data-theme=night]) .xt-main .xt-note{color:#6B6B5E!important}
html[data-theme]:not([data-theme=night]) .ox-kick{color:#8A6420!important}
html[data-theme]:not([data-theme=night]){--el-earth:#7E5F1C;--ox-sys-jyotish:#7E5F1C}
html[data-theme=night] .ox-nowline em{color:#101311!important}
/* 日主卡片：未选中的只把插画调淡，文字保持可读 */
.dm a.dim{opacity:1!important}.dm a.dim .p{opacity:.35}
html[data-theme=night] .dm a.dim .n span{color:#8E9088!important}
/* #7 手机点击区：总览“改资料/看完整 →”、页脚链接、语言切换 */
@media (max-width:760px){
  html[data-theme] :is(.ox-edit,.ox-more){display:inline-flex!important;align-items:center;min-height:44px!important}
  .foot a,.xt-lang a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
}
/* P2：英文正文不加字距；“optional”小字 12px */
html[lang=en] .xt-main :is(p,li,.lead){letter-spacing:0!important;line-height:1.6}
.rzq label small{font-size:12px!important;opacity:1!important;color:#6B6B5E}
html[data-theme=night] .rzq label small{color:#A7A796}
/* 日夜开关：恢复排盘页原来的天空开关，并在首页/总览/知识库/英文页复用；44px 点击区 */
.fc-sky{--ux-ease:cubic-bezier(.2,.8,.2,1);--ux-spring:cubic-bezier(.34,1.45,.64,1);--ux-accent:#8A6A2E;box-sizing:border-box}.fc-sky *{box-sizing:border-box}
html[data-theme=night] .fc-sky{--ux-accent:#D6A956}
.u021{position:relative;width:99px;height:44px;flex:none;display:flex;align-items:center;justify-content:center}
.u021-scale{width:224px;height:94px;transform:scale(.44);transform-origin:50% 50%;flex:none}
.u021-sw{position:relative;width:224px;height:94px;border:0;padding:0;border-radius:999px;overflow:hidden;isolation:isolate;
  background:linear-gradient(180deg,#F3E4BE,#FBF4E2);box-shadow:inset 0 4px 10px rgba(110,80,20,.22),inset 0 -2px 4px rgba(255,255,255,.5),0 18px 34px -18px rgba(140,100,30,.55);transition:box-shadow .8s var(--ux-ease)}
.u021-sw::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,#16131C,#2B2142);opacity:0;transition:opacity .8s var(--ux-ease)}
.u021-sw:focus-visible{outline:4px solid var(--ux-accent);outline-offset:8px}
.u021.is-night .u021-sw::before{opacity:1}
.u021.is-night .u021-sw{box-shadow:inset 0 4px 10px rgba(0,0,0,.5),inset 0 -2px 4px rgba(255,255,255,.08),0 18px 34px -18px rgba(20,16,40,.9)}
.u021-halo{position:absolute;z-index:1;left:47px;top:47px;width:0;height:0;transition:transform .9s var(--ux-spring)}
.u021-halo i{position:absolute;border-radius:50%;background:rgba(214,169,86,.14)}
.u021-halo i:nth-child(1){width:130px;height:130px;margin:-65px}
.u021-halo i:nth-child(2){width:176px;height:176px;margin:-88px}
.u021-halo i:nth-child(3){width:222px;height:222px;margin:-111px}
.u021.is-night .u021-halo{transform:translateX(130px)}
.u021.is-night .u021-halo i{background:rgba(251,244,226,.06)}
.u021-knob{position:absolute;z-index:3;left:8px;top:8px;width:78px;height:78px;border-radius:50%;overflow:hidden;
  background:radial-gradient(circle at 35% 30%,#F4DDA4,#D6A956 50%,#B48737);box-shadow:0 6px 14px -4px rgba(120,80,10,.5),inset -4px -6px 10px rgba(130,90,20,.35),inset 4px 4px 8px rgba(255,255,255,.45);
  transition:transform .9s var(--ux-spring)}
.u021-moon{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FBF6EA,#E9DFC6 60%,#CFC2A2);opacity:0;transform:translateX(100%);transition:transform .8s var(--ux-ease),opacity .4s var(--ux-ease)}
.u021-moon i{position:absolute;border-radius:50%;background:#C9BB98;box-shadow:inset 1px 2px 2px rgba(0,0,0,.18)}
.u021-moon i:nth-child(1){left:20px;top:16px;width:20px;height:20px}
.u021-moon i:nth-child(2){left:46px;top:40px;width:14px;height:14px}
.u021-moon i:nth-child(3){left:24px;top:48px;width:9px;height:9px}
.u021.is-night .u021-knob{transform:translateX(130px) rotate(200deg)}
.u021.is-night .u021-moon{opacity:1;transform:none}
.u021-clouds{position:absolute;z-index:2;inset:0;transition:transform .8s var(--ux-ease),opacity .6s var(--ux-ease)}
.u021-clouds i{position:absolute;border-radius:999px;background:#FFFDF7}
.u021-clouds i:nth-child(1){right:-10px;bottom:-18px;width:120px;height:56px;box-shadow:-46px 8px 0 -6px #FFFDF7,-80px 18px 0 -10px #FFFDF7}
.u021-clouds i:nth-child(2){right:20px;bottom:-30px;width:96px;height:52px;background:#F1E6CC;box-shadow:-44px 6px 0 -8px #F1E6CC;z-index:-1}
.u021.is-night .u021-clouds{transform:translateY(80px);opacity:0}
.u021-stars{position:absolute;z-index:1;inset:0;opacity:0;transform:translateY(-30px);transition:transform .8s var(--ux-ease),opacity .6s var(--ux-ease)}
.u021-stars i{position:absolute;width:4px;height:4px;border-radius:50%;background:#F4DDA4;box-shadow:0 0 6px #D6A956;animation:u021-tw 2.4s ease-in-out infinite}
.u021.is-night .u021-stars{opacity:1;transform:none}
@keyframes u021-tw{50%{opacity:.3;transform:scale(.6)}}
.fc-sky .u021-sw{cursor:pointer;min-height:0!important;border-radius:999px!important;margin:0!important}
.fc-sky .u021-sw:focus-visible{outline:4px solid var(--ux-accent);outline-offset:8px}
.fc-sky .u021-stars i{animation:u021-tw 2.4s ease-in-out infinite}
html body .top .fc-tools #tg[hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){.fc-sky *{transition-duration:.001ms!important;animation:none!important}}
/* 首页 375 宽：H1 略收，逗号不顶到边 */
@media (max-width:380px){html body .t>h1{font-size:50px!important;line-height:1.08!important}}
html body header.top>.xt-lang{order:1}html body header.top>.fc-tools{order:2}
