/* 网页紫微盘面微调（手写文件，可改；page.css 由 tools-build 生成，不要改）。2026-11-06
   目标：白底细线通栏、字重分层、宫底三项不挤不叠、星与星之间留白。 */

/* 1. 去掉墨底金框：盘面直接通栏，不再有外圈黑边 */
html:not(.site-embedded) body #chart-view.mp-root { box-shadow:none !important; border-radius:0 !important; margin:0 auto !important; }
body #chart-view .ziwei-plate { background:#fff; padding:calc(var(--rpx)*34) calc(var(--rpx)*28) calc(var(--rpx)*36) !important; }

/* 2. 字体：统一用屏显清楚的黑体，避免 Windows 雅黑粗体糊成一团 */
body #chart-view .quiz-ziwei { font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Source Han Sans SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif; -webkit-font-smoothing:antialiased; }

/* 3. 宫格：稍高一点，留出呼吸感；格线更细更淡 */
body #chart-view .ziwei-ring { grid-auto-rows:minmax(calc(var(--rpx)*252),auto) !important; background:#4a4a4a !important; }
body #chart-view .ziwei-palace { min-height:calc(var(--rpx)*252) !important; }
body #chart-view .palace-inner { padding:calc(var(--rpx)*8) calc(var(--rpx)*6) calc(var(--rpx)*4) !important; }

/* 4. 星曜：星与星之间留一点缝，主星稍重、杂曜稍轻 */
body #chart-view .palace-stars { gap:calc(var(--rpx)*6) calc(var(--rpx)*3) !important; }
body #chart-view .star-glyph { line-height:1.12 !important; }
body #chart-view .mode-fly .star-major, body #chart-view .mode-transformations .star-major { font-weight:700 !important; }
body #chart-view .mode-fly .star-minor, body #chart-view .mode-fly .star-adjective { font-weight:600 !important; }
body #chart-view .star-tone { border-radius:calc(var(--rpx)*6) !important; }

/* 5. 宫底：岁数/年份/大限标签用细字小字，大限岁数用常规字重等宽数字，宫名与干支保持粗；三块不再互相挤压重叠 */
body #chart-view .foot-fly { gap:calc(var(--rpx)*3) !important; }
body #chart-view .foot-side { flex:0 0 auto !important; min-width:0; font-size:calc(var(--rpx)*16) !important; line-height:1.3 !important; font-weight:400 !important; color:#6f7f93 !important; }
body #chart-view .foot-side .foot-tag, body #chart-view .foot-side .foot-month { font-size:calc(var(--rpx)*16) !important; font-weight:400 !important; }
body #chart-view .foot-main { min-width:0; overflow:hidden; }
body #chart-view .palace-range { max-width:100%; overflow:hidden; text-overflow:clip; font-size:calc(var(--rpx)*19) !important; font-weight:400 !important; letter-spacing:-.02em; font-variant-numeric:tabular-nums; color:#333 !important; }
body #chart-view .palace-name { font-size:calc(var(--rpx)*29) !important; font-weight:700 !important; letter-spacing:.04em; }
body #chart-view .palace-ganzhi { font-size:calc(var(--rpx)*29) !important; font-weight:700 !important; }

/* 6. 盘心：标题与信息行距放松 */
body #chart-view .center-title { letter-spacing:calc(var(--rpx)*8) !important; color:#4a4a4a !important; }
body #chart-view .center-line { line-height:1.6 !important; color:#555 !important; }

/* 7. 出盘后顶栏随页面一起滑动，不吸顶 */
#chart-head { position:relative !important; top:auto !important; }
