/* 手机版官网排盘：沿用米白、朱砂、墨色与五行配色；不进入小程序构建。 */
body { background:#f5efe3 !important; color:#222; }
.bz-head { background:#fffdf8; border-color:#e2d3b6; backdrop-filter:none; }
/* 标题行 + 工具行随页面滑走，只把「资料/四柱/细盘/显示设置」吸在顶部；--bm-head-top 由 mobile.js 按实际高度算出 */
#chart-head { position:sticky; top:var(--bm-head-top,0px); width:100%; max-width:480px; margin:0 auto; box-sizing:border-box; }
#bm-head-space { width:100%; pointer-events:none; }
.bz-head-title b { font-family:var(--sans); font-size:17px; letter-spacing:1px; }
.bz-head-title small { color:#827565; }
.bz-tools { gap:0; padding:0 4px 4px; }
.bz-tool,.bz-tool.is-primary { flex:1 1 0; min-width:0; padding:0 3px; border:0; border-radius:4px; background:#fffdf8; color:#5b4b3d; font:12px var(--sans); }
.bz-tool svg { width:14px; height:14px; }
.bz-tool:hover { background:#f5eee2; }
.bm-tabs { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid #eadfcd; }
.bm-tabs button { height:44px; background:#fffdf8; border:0; border-bottom:3px solid transparent; color:#827565; font:14px var(--sans); cursor:pointer; transition:background .15s,color .15s; }
.bm-tabs button[aria-selected="true"] { color:#a72f28; border-bottom-color:#a72f28; font-weight:700; background:#f4e8d8; }
.bm-tabs button:hover { background:#f5eee2; }
button:focus-visible,select:focus-visible,input:focus-visible,[role="button"]:focus-visible { outline:2px solid #a72f28; outline-offset:2px; }
.bm-panel { max-width:480px; margin:auto; min-height:65vh; background:#fffdf8; padding:12px 0 28px; font:14px/1.6 var(--sans); }
.bm-panel h2 { font-size:15px; font-weight:600; margin:4px 14px 12px; }
.bm-facts { margin:0; }
.bm-facts>div { display:grid; grid-template-columns:80px minmax(0,1fr); padding:9px 14px; gap:10px; }
.bm-facts>div:nth-child(odd) { background:#f3eddf; }
.bm-facts dt { color:#887867; }
.bm-facts dd { margin:0; overflow-wrap:anywhere; }
.bm-caption { margin:14px; color:#827565; font-size:12px; }
.bm-table { border-collapse:collapse; width:100%; table-layout:fixed; text-align:center; }
.bm-table caption { text-align:left; margin:0 14px 10px; font-weight:600; }
.bm-table th { font-weight:400; color:#887867; }
.bm-table th:first-child { width:42px; }
.bm-table td,.bm-table th { padding:5px 2px; vertical-align:top; overflow-wrap:anywhere; }
.bm-table td { border-left:1px solid #eee4d5; }
.bm-table .bm-ganzhi td { font-size:28px; font-weight:600; }
.bm-hidden { background:#f3eddf; }
.bm-hidden td { line-height:1.9; }
.bm-hidden small { font-size:12px; color:#3d4650; }
.bm-shensha { border-top:1px solid #e2d3b6; }
.bm-shensha td { font-size:12px; line-height:1.85; padding:8px 2px; color:#6d6453; }
.bm-relations { margin-top:12px; border-top:7px solid #f5efe3; padding-top:12px; }
.bm-relations p { margin:8px 14px; font-size:13px; }
.bm-relations b { color:#77818d; margin-right:8px; font-weight:400; }
.bm-setting { display:flex; align-items:center; justify-content:space-between; min-height:54px; margin:0 14px; border-bottom:1px solid #eadfcd; gap:12px; }
.bm-setting input { width:20px; height:20px; accent-color:#a72f28; }
.bm-setting select { border-color:#e2d3b6; background-color:white; max-width:160px; }
.bm-reset { margin:8px 14px; border:1px solid #e2d3b6; border-radius:5px; background:#fffdf8; padding:10px 16px; color:#68503a; cursor:pointer; }
.bm-save-status { margin:8px 14px; color:#a72f28; font-size:12px; }
.bm-panel .element-wood { color:#238446; }.bm-panel .element-fire { color:#d62d2d; }.bm-panel .element-earth { color:#916c38; }.bm-panel .element-metal { color:#ad7800; }.bm-panel .element-water { color:#2863bd; }
body #chart-view { box-shadow:none; background:white; }
body #chart-view .lanjiang-global-background,body #chart-view .professional-dragon-top { display:none !important; }
body #chart-view .bazi-page,body #chart-view .quiz-bazi-shell,body #chart-view .professional-sheet { background:#fffdf8 !important; background-image:none !important; }
body #chart-view .quiz-bazi-shell { padding:0 !important; }
body #chart-view .professional-sheet { padding:0 4px 20px !important; --professional-major-divider:#cdbb9f; --professional-rule:#e5d9c6; --professional-band:#f3eddf; }
body #chart-view .professional-sheet-header { display:none !important; }
body #chart-view .professional-pillar-main { padding-top:4px !important; }
body #chart-view .professional-pillar-row-labels { top:4px !important; }
body #chart-view .professional-pillar-board { padding-top:4px !important; }
body #chart-view .professional-pillar-head,body #chart-view .professional-pillar-row-label,body #chart-view .professional-pillar-chang-sheng-label { color:#887867 !important; font-weight:400 !important; }
body #chart-view .professional-pillar-shi-shen,body #chart-view .professional-pillar-gender,body #chart-view .professional-pillar-di-shi { font-weight:400 !important; }
body #chart-view .professional-pillar-na-yin-row span { color:#333 !important; font-weight:400 !important; }
body #chart-view .professional-pillar-hidden { background:#f3eddf !important; }
body #chart-view .professional-pillar-grid::after { background:#f3eddf !important; border-radius:0 !important; }
body #chart-view .professional-hidden-line { font-weight:400 !important; }
body #chart-view .professional-pillar-shen-sha-name { color:#766b54 !important; font-size:11px !important; font-weight:400 !important; line-height:1.65 !important; }
body #chart-view .professional-pillar-head-row::before,body #chart-view .professional-pillar-grid::before { width:1px !important; background:#cdbb9f !important; }
body #chart-view .professional-fold-bar { min-height:36px !important; border-radius:0 !important; background:#f3eddf !important; margin:0 !important; border-top:1px solid #e2d3b6; border-bottom:1px solid #e2d3b6; }
body #chart-view .professional-fold-title { font-size:13px !important; font-weight:400 !important; color:#79664f !important; }
body #chart-view .professional-fold-action { background:transparent; border:0; color:#a72f28 !important; }
body #chart-view .professional-qiyun-block { background:#f3eddf !important; padding:7px 4px !important; }
body #chart-view .professional-continuous-line,body #chart-view .professional-qiyun-age { font-size:12px !important; font-weight:400 !important; line-height:1.8 !important; }
body #chart-view .professional-line-action { background:#fffdf8 !important; border:1px solid #dfcfb6 !important; color:#a72f28 !important; border-radius:4px !important; }
body #chart-view .professional-luck-band-title,body #chart-view .flow-month-title,body #chart-view .flow-day-title { font:500 13px/1.5 var(--sans) !important; color:#887867 !important; margin:7px 4px 3px !important; }
body #chart-view .web-hint { font-size:11px; color:#9b8c78; }
body #chart-view .professional-luck-band-title .web-today { font:12px var(--sans); background:#f6e7dc; color:#a72f28; border-radius:4px; box-shadow:none; padding:7px 12px; }
body #chart-view .professional-luck-section { padding:0 !important; border-bottom:7px solid #f5efe3 !important; }
body #chart-view .professional-luck-table,body #chart-view .yun-row,body #chart-view .flow-day-row { gap:0 !important; padding:0 !important; }
body #chart-view .professional-luck-column.professional-luck-band-column { width:48px !important; min-width:48px !important; flex:0 0 48px !important; padding:5px 1px !important; border:0 !important; border-right:1px solid #eaddcb !important; border-radius:0 !important; background:#fffdf8 !important; box-shadow:none !important; }
body #chart-view .professional-luck-column.professional-luck-band-column.is-selected { background:#f2e6d4 !important; box-shadow:inset 0 -2px #a72f28 !important; }
body #chart-view .professional-luck-band-year,body #chart-view .professional-luck-band-age { font-size:11px !important; color:#75634e !important; font-weight:400 !important; }
body #chart-view .professional-sheet .professional-flow-tools .yun-item,body #chart-view .professional-sheet .professional-flow-tools .flow-day-item { min-width:48px !important; border:0 !important; border-right:1px solid #eaddcb !important; border-radius:0 !important; background:#fffdf8 !important; }
body #chart-view .professional-sheet .professional-flow-tools .yun-item.is-selected,body #chart-view .professional-sheet .professional-flow-tools .flow-day-item.is-selected { background:#f2e6d4 !important; box-shadow:inset 0 -2px #a72f28 !important; }
body #chart-view .mp-scroll-x { mask-image:none; -webkit-mask-image:none; scrollbar-width:thin; scrollbar-color:#d7c6ab transparent; }
body #chart-view .mp-scroll-x::-webkit-scrollbar { display:block; height:3px; }
body #chart-view .mp-scroll-x::-webkit-scrollbar-thumb { background:#d7c6ab; }
body #chart-view .professional-luck-column:active,body #chart-view .yun-item:active { transform:none !important; }
body:not(.bm-show-days) #chart-view .flow-day-title,body:not(.bm-show-days) #chart-view .flow-day-title + .mp-scroll-x { display:none !important; }
body:not(.bm-show-stars) #chart-view .professional-summary-row:has(.professional-pillar-shen-sha-row) { display:none !important; }
body.bm-mono .professional-pillar-gan,body.bm-mono .professional-pillar-zhi,body.bm-mono .bm-ganzhi span { color:#292f36 !important; }
body.bm-hidden-mono .professional-hidden-line span,body.bm-hidden-mono .bm-hidden span { color:#292f36 !important; }
body.bm-flow-mono #chart-view .professional-luck-section [class*="element-"],body.bm-flow-mono #chart-view .professional-flow-tools [class*="element-"] { color:#292f36 !important; }
body.bm-large .bm-panel { font-size:16px; }
body.bm-large .bm-shensha td,body.bm-large .bm-hidden small { font-size:14px; }
@media (prefers-reduced-motion:reduce) { .bm-tabs button,.bz-tool { transition:none; } }
/* 盘面文字颜色：外层墨金主题把 body 字色设成浅米色，纸色面板上必须显式给深色，否则主星/星运/纳音等几乎看不见 */
.bm-panel { color:#2b241c; }
.bm-panel .bm-table td,.bm-facts dd { color:#2b241c; }
.bm-table th,.bm-facts dt { color:#76644f; }
.bm-panel .bm-caption { color:#76644f; }
.bm-relations p { color:#2b241c; }
.bm-relations b { color:#76644f; }
.bm-setting { color:#2b241c; }
.bm-shensha td { color:#5c513f; }
/* 2026-11-06：顶栏和「资料/四柱/细盘/显示设置」随页面一起滑动，不吸顶 */
#chart-head { position:relative !important; top:auto !important; }
/* 2026-11-06：去掉盘面外的墨色黑边与金框，细盘紧接「专业细盘」栏 */
html:not(.site-embedded) body #chart-view.mp-root { box-shadow:none !important; border-radius:0 !important; margin-top:0 !important; margin-bottom:0 !important; }
body #chart-view .bazi-nav { position:relative !important; top:auto !important; }
