/* 赫铭阁 · 东方书房 / 2026-11 视觉体系。只作用于呈现层。 */
:root{--hm-bg:#f5f2eb;--hm-surface:#fffefa;--hm-ink:#292a25;--hm-muted:#78786d;--hm-line:#e5dfd2;--hm-gold:#af8d54;--hm-red:#a8382c;--hm-soft:#eee7d9;--hm-font:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;--hm-serif:"Source Han Serif SC","STSong","SimSun",serif}
body.hmg-premium{background:var(--hm-bg)!important;color:var(--hm-ink);font-family:var(--hm-font);--dh-ink:#292a25;--dh-muted:#78786d;--dh-line:#e5dfd2;--dh-red:#a8382c;--dh-gold:#af8d54;--line:#e5dfd2;--ink:#292a25;--muted:#78786d;--bg:#f5f2eb;--paper:#fffefa;--ft-line:#e5dfd2;--ft-ink:#292a25;--ft-muted:#78786d}
body.hmg-premium:before{display:none!important}.hmg-premium :is(button,input,select,textarea){font-family:var(--hm-font)}.hmg-premium :is(input,select,textarea):not([type=checkbox]):not([type=radio]){border-color:#dcd8cc!important;background:#fffefa!important;border-radius:8px!important;font-size:14px!important;color:#35372f;box-shadow:none;min-height:44px}.hmg-premium :is(input,select,textarea):focus-visible{outline:2px solid #ab824a!important;outline-offset:2px}.hmg-premium button{transition:background .15s,border-color .15s,box-shadow .15s}.hmg-premium :is(.btn-primary,.bz-primary,.zw-primary,.generate-button,.ft-primary,.dh-primary-link){background:#a8382c!important;border:1px solid #a8382c!important;color:#fff9ee!important;border-radius:8px!important;box-shadow:0 3px 7px #8d322116!important;min-height:46px;font-weight:600;letter-spacing:.4px}.hmg-premium :is(.btn-primary,.bz-primary,.zw-primary,.generate-button,.ft-primary,.dh-primary-link):hover{background:#8f2e24!important;box-shadow:0 5px 13px #8d322124!important}.hmg-premium button:focus-visible,.hmg-premium a:focus-visible{outline:2px solid #a8382c;outline-offset:3px}.hmg-premium [hidden]{display:none!important}
/* 共同的书页尺度与阅读层级 */
.hmg-premium :is(.tool-heading,.bz-page-heading,.zw-heading,.atlas-heading,.ft-intro){margin:5px 0 23px!important;gap:20px;align-items:center}.hmg-premium :is(.tool-heading h1,.bz-page-heading h1,.zw-heading h1,.atlas-heading h1,.ft-intro h1){font:700 clamp(26px,2.4vw,34px)/1.5 var(--hm-font)!important;letter-spacing:.5px!important;border:0!important;padding:0!important;margin:5px 0 7px!important;color:#292a25}.hmg-premium :is(.tool-heading p,.bz-page-heading p,.zw-heading p,.atlas-heading p,.ft-intro p){font:14px/1.8 var(--hm-font)!important;color:#7b796e!important;margin:0!important}.hmg-premium :is(.tool-heading-poem,.heading-poem,.zw-heading-note){font:13px/2 var(--hm-serif)!important;color:#998665!important;letter-spacing:2px}.hmg-premium :is(.dh-eyebrow,.bz-eyebrow,.zw-eyebrow,.eyebrow,.ft-kicker){font:600 10px/1.6 var(--hm-font)!important;letter-spacing:2px;color:#aa8750!important}.hmg-premium :is(.card,.paper,.bz-card,.zw-card,.ft-card,.mini-card,.panel-paper,.profile-card){border:1px solid #e5dfd2!important;border-radius:13px!important;background:#fffefa!important;box-shadow:0 4px 16px #50432204!important}.hmg-premium :is(.card-title,.section-heading h2,.bz-section-title h2,.zw-title h2){font-family:var(--hm-font)!important;font-weight:700!important;font-size:21px!important;color:#30332b;letter-spacing:.4px}.hmg-premium :is(.bz-inset,.zw-inset,.archive-card,.insight-card,.knowledge-card,.dh-life-card){border:1px solid #e9e3d7!important;background:#fffefa!important;border-radius:10px!important;box-shadow:none!important}.hmg-premium :is(.dh-action,.bz-case-callout,.bz-callout,.dh-lead-box){background:#f2ede2!important;border-color:#ddd0b5!important;color:#66543a!important;border-radius:8px!important}.hmg-premium :is(.dh-evidence,.bz-help,.zw-muted,.mini-description){color:#7c796f!important;line-height:1.8}.hmg-premium :is(.dh-life-card,.insight-card) h3{font:600 20px/1.5 var(--hm-font)!important}.hmg-premium :is(.dh-life-card,.insight-card) p{font-size:14px!important;line-height:1.95!important}.hmg-premium :is(.dh-data-strip,.bz-metric-row){gap:10px}.hmg-premium :is(.dh-data-strip>div,.bz-metric-row>div){background:#f6f2e9;border-radius:8px;border:0}.hmg-premium :is(.zw-table,.bz-table){border-collapse:collapse}.hmg-premium :is(.zw-table th,.bz-table th){background:#f3eee3!important;color:#79715f!important;font-size:12px!important;letter-spacing:.5px}.hmg-premium :is(.zw-table td,.bz-table td){border-color:#ece6da!important;font-size:14px!important;padding:14px 12px!important}
/* 选项卡使用单一强调，不让每一项都争夺注意。 */
.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs){background:transparent!important;border:0!important;border-bottom:1px solid #e6dfd0!important;border-radius:0!important;padding:0 0 8px!important;gap:5px!important;box-shadow:none!important;margin-bottom:22px}.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs) button{font:500 13px/1.5 var(--hm-font)!important;min-height:43px!important;padding:10px 15px!important;background:transparent!important;color:#87806e!important;border:0!important;border-radius:7px!important;box-shadow:none!important;white-space:nowrap}.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs) button[aria-selected=true]{background:#f1e6d2!important;color:#8e3327!important;font-weight:700!important;box-shadow:inset 0 -2px #aa4534!important}.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs) button:hover{background:#f6f0e5!important}.hmg-premium :is(.zw-case-card,.bz-case-box){border-style:dashed!important;background:transparent!important;box-shadow:none!important}.hmg-premium :is(.zw-input-card,.bz-input-column .bz-card){background:#fffefa!important}.hmg-premium :is(.zw-input-card>summary,.bz-form-shell>summary){font-family:var(--hm-font)!important;font-weight:600!important}.hmg-premium .zg-banner{padding:13px 18px;background:#eee7d8;border:0;border-radius:10px;box-shadow:none;margin-bottom:16px}.hmg-premium .zg-banner b{font:600 14px var(--hm-font)}.hmg-premium .zg-banner p{font-size:12px;margin:4px 0 0;color:#8b806c}.hmg-premium .zg-banner button{min-height:40px!important;font-size:12px;padding:8px 15px}
/* 首页：山水长卷、一枚日签、六扇入口。 */
.hmg-premium.dh-home main{max-width:1400px;padding:30px 35px 55px}.hmg-premium.dh-home .dh-brand-intro{margin-bottom:17px}.hmg-premium.dh-home .dh-welcome{display:block;position:relative}.hmg-premium.dh-home .dh-hero{min-height:382px;padding:39px 37px;border:1px solid #d7c6a9;border-radius:16px;background:#ece5d6}.hmg-premium.dh-home .dh-hero>div{max-width:55%}.hmg-premium.dh-home .dh-hero h1{font:700 clamp(32px,3.15vw,48px)/1.45 var(--hm-font);letter-spacing:-.6px;margin:24px 0 17px}.hmg-premium.dh-home .dh-hero p{font-size:14px;line-height:2;color:#746d5b;max-width:380px}.hmg-premium.dh-home .dh-hero>img{object-position:right 52%;opacity:.86}.hmg-premium.dh-home .dh-hero:before{background:linear-gradient(90deg,#f5f0e3 0%,#f5f0e3df 33%,#f5f0e333 75%)}.hmg-premium.dh-home .dh-hero:after{display:none}.hmg-premium.dh-home .dh-today{position:absolute;right:24px;top:24px;bottom:24px;width:290px;min-height:0;border:1px solid #e0d3ba;border-radius:12px;padding:23px;background:#fffdf6ed;box-shadow:0 9px 25px #5d492211;backdrop-filter:blur(5px)}.hmg-premium.dh-home .dh-today-head b{font-size:17px;letter-spacing:2px}.hmg-premium.dh-home .dh-today-head small{font-size:8px}.hmg-premium.dh-home .dh-today-date{gap:15px;margin:15px 0 5px}.hmg-premium.dh-home .dh-today-date strong{font-size:58px}.hmg-premium.dh-home .dh-today-date p{font-size:12px}.hmg-premium.dh-home .dh-today-date small{font-size:10px}.hmg-premium.dh-home .dh-today-labels{font-size:9px;gap:3px}.hmg-premium.dh-home .dh-today-labels span{padding:2px 5px}.hmg-premium.dh-home .dh-today-yi{font-size:11px;line-height:1.7;gap:6px;margin:15px 0}.hmg-premium.dh-home .dh-today-footer{font-size:9px;line-height:1.8}.hmg-premium.dh-home .dh-today-footer a{font-size:10px;white-space:normal;max-width:73px}.hmg-premium.dh-home .dh-quick-row{gap:12px;margin:18px 0 33px}.hmg-premium.dh-home .dh-quick{background:#fffefa;border-color:#e3ddd0;border-radius:10px;min-height:78px;padding:15px 20px;box-shadow:0 4px 12px #44352203}.hmg-premium.dh-home .dh-quick b{font-size:14px;font-weight:600}.hmg-premium.dh-home .dh-quick svg{width:24px;color:#ad8952}.hmg-premium.dh-home .dh-section-head{margin:27px 0 17px}.hmg-premium.dh-home .dh-section-head h2{font-size:25px;line-height:1.6;letter-spacing:-.3px}.hmg-premium.dh-home .dh-section-head .dh-eyebrow{letter-spacing:1.2px}.hmg-premium.dh-home .dh-explore-grid{counter-reset:tool;gap:15px}.hmg-premium.dh-home .dh-tool-card,.hmg-premium.dh-home .dh-tool-card.featured{counter-increment:tool;min-height:222px;background:#fffefa;border:1px solid #e0dacd;border-radius:12px;padding:23px 24px;box-shadow:0 3px 15px #47351903;isolation:isolate}.hmg-premium.dh-home .dh-tool-card:after{content:counter(tool,decimal-leading-zero);font:90px/1 Georgia,serif;position:absolute;inset:auto 16px 25px auto;width:auto;height:auto;mask-image:none;background:none;border:0;opacity:.045;color:#866c42;z-index:-1}.hmg-premium.dh-home .dh-tool-card h3{font-size:24px;margin:20px 0 9px;letter-spacing:1px}.hmg-premium.dh-home .dh-tool-card p{font-size:13px;line-height:1.9;max-width:95%;color:#80796a}.hmg-premium.dh-home .dh-tool-card .dh-tool-top span{color:#ad9267!important;font-size:9px;letter-spacing:1.5px;opacity:1!important}.hmg-premium.dh-home .dh-tool-card .dh-tool-top i{width:38px;height:38px;border:1px solid #e5d7bd;background:#f8f3e9;color:#a8844a;border-radius:9px}.hmg-premium.dh-home .dh-tool-card.featured .dh-tool-top i{color:#a8382c;border-color:#e0c2ad;background:#faf0e6}.hmg-premium.dh-home .dh-tool-footer{border-color:#eee6d7;padding-top:13px;margin-top:18px}.hmg-premium.dh-home .dh-tool-card:hover{border-color:#c4a571;box-shadow:0 10px 25px #4633150b;transform:translateY(-3px)}.hmg-premium.dh-home .dh-membership-intro{padding:25px 28px;border:1px solid #e4d7c1;background:#eee7d9;border-radius:12px}.hmg-premium.dh-home .dh-membership-intro h2{font-size:23px;line-height:1.6}.hmg-premium.dh-home .dh-contact{background:#faf7f0;border-color:#dfd5c2;border-radius:12px;padding:30px}.hmg-premium.dh-home .dh-contact h2{font-size:25px}.hmg-premium.dh-home .dh-contact-card{background:#f0e8d8;border-color:#dcc7a2;border-radius:9px}
/* 四柱：把四根柱子排成视觉中心，日主用淡朱砂标出。 */
.hmg-premium .bz-workbench{gap:22px}.hmg-premium .bz-form{padding:20px}.hmg-premium .bz-form label{font-size:12px;color:#837a69}.hmg-premium .bz-form>h2{font:600 17px var(--hm-font);letter-spacing:1px}.hmg-premium .bz-profile{padding:23px 26px!important;border-radius:13px!important;background:#eee8da!important;border-color:#e0d3ba!important}.hmg-premium .bz-profile h2{font-size:25px!important;font-family:var(--hm-font)!important;margin-bottom:8px}.hmg-premium .bz-profile p{font-size:13px!important}.hmg-premium .bz-day-master{border-color:#d3bc91}.hmg-premium .bz-four-summary{gap:10px;margin:13px 0 19px}.hmg-premium .bz-four-summary>div{border-radius:11px;background:#fffefa;border:1px solid #e6dfd1;padding:18px 12px;box-shadow:none}.hmg-premium .bz-four-summary>div.is-day{background:#f7e9df;border-color:#dfbda4}.hmg-premium .bz-four-summary .bz-char{font-size:35px;line-height:1.45}.hmg-premium .bz-main-report{padding:22px!important}.hmg-premium .bz-toolbar{margin-bottom:18px}.hmg-premium .bz-pillar-char{font-size:30px}.hmg-premium .bz-table .bz-char{font-size:27px}.hmg-premium .bz-hidden-stem{font-size:20px}.hmg-premium .bz-hidden-god{font-size:12px}.hmg-premium .bz-extras{gap:10px}.hmg-premium .bz-extras>div{border-color:#e7dfd0;background:#f7f3e9;border-radius:8px}.hmg-premium .bz-extras strong{font-size:23px}.hmg-premium .bz-cycle-strip button{border:1px solid #e5dccb;border-radius:7px;background:#fffefa;min-width:90px}.hmg-premium .bz-cycle-strip button.is-active{background:#f0e4ce;border-color:#bc955a}.hmg-premium .bz-classics blockquote{border-left-color:#b9955c;background:#f4eee1;padding:14px 17px}.hmg-premium .bz-source{color:#a08354}
/* 紫微：安静的纸面和有辨识度的选中宫。 */
.hmg-premium .zw-profile{padding:21px 25px!important;background:#eee8da!important;border-color:#ded0b5!important;border-radius:12px!important}.hmg-premium .zw-profile h2{font:600 25px var(--hm-font)!important}.hmg-premium .zw-profile p{font-size:13px!important}.hmg-premium .zw-profile-values{gap:13px}.hmg-premium .zw-profile-values>div{padding:2px 17px}.hmg-premium .zw-profile-values strong{font:28px var(--hm-serif)!important}.hmg-premium .zw-main-card{padding:21px!important}.hmg-premium .zt-plate-toolbar{margin:10px 0 13px}.hmg-premium .zt-plate-toolbar>div{background:#eee7d7}.hmg-premium .zt-controls{background:#f6f2e9;border-color:#e4dac7;border-radius:9px;padding:13px}.hmg-premium .zt-board{border-color:#c8b18b!important;background:#e9dfcd!important;border-radius:5px!important}.hmg-premium .zt-palace{border-color:#dfd3bf!important;background:#fffdf7!important}.hmg-premium .zt-palace.is-related{background:#f7f1e4!important}.hmg-premium .zt-palace.is-selected{background:#f1dfca!important;outline-color:#aa6c45!important;box-shadow:inset 0 0 0 1px #a54a31!important}.hmg-premium .zt-palace-title strong{color:#745a37}.hmg-premium .zt-center{background:radial-gradient(ellipse,#fffcf3,#efe5d2)}.hmg-premium .zt-center h3{color:#9e3b2e}.hmg-premium .zt-center p{color:#887350}.hmg-premium .zt-time-rails{border-color:#d9c8a9;background:#fffefa;border-radius:9px}.hmg-premium .zt-time-row button{border-color:#e6dfd0;border-radius:6px;background:#fffefa}.hmg-premium .zt-time-row button.is-active{background:#efe2c9;border-color:#b98f53;color:#a8382c}.hmg-premium .zt-study-tabs{background:#eee6d5;border-color:#ddcfb3}.hmg-premium .zt-study-tabs [aria-selected=true]{background:#fffefa;box-shadow:0 2px 7px #5b47200a}.hmg-premium .zt-study-content{padding:24px}.hmg-premium .zt-symbol-list button{background:#f4ecdc;border-color:#dfc9a3;border-radius:6px;color:#9a3b2d}.hmg-premium .zt-study-content p{color:#777264;font-size:14px;line-height:1.9}
/* 奇门：固定轴线、细格线与舒展的字距。 */
.hmg-premium .result-intro{padding-bottom:16px;border-bottom:1px solid #e7decf;margin-bottom:17px}.hmg-premium .result-intro h2{font:700 23px var(--hm-font)!important;letter-spacing:.5px}.hmg-premium .result-intro p{font-size:12px;color:#8a806d}.hmg-premium .qm-header.qm-reference-header{background:#f3eee3!important;border-color:#e0d3ba!important;padding:20px 22px!important;border-radius:10px!important}.hmg-premium .ref-clock p{font-size:14px}.hmg-premium .ref-clock p label{font-size:11px;letter-spacing:1px}.hmg-premium .ref-top-meta{margin-bottom:13px}.hmg-premium .ref-four-pillars strong{font-size:26px}.hmg-premium .ref-leaders b{font-size:18px}.hmg-premium .ref-header-footer{margin-top:17px;padding-top:13px}.hmg-premium .ref-six-yi span{background:#fffaf0;border-color:#ddd0b9;color:#a08a65;border-radius:5px}.hmg-premium .ref-chart-nav button{background:#fffaf0;border-color:#d4bd94;font-family:var(--hm-font);color:#986039}.hmg-premium .qm-grid.qm-reference-grid{border:1px solid #c7ae85!important;border-radius:7px!important;background:#d6c5a8!important;padding:0!important;gap:1px!important}.hmg-premium .qm-reference-grid .qm-cell{background:#fffdf7!important}.hmg-premium .qm-reference-grid .qm-cell:nth-child(2n){background:#fcf7ed!important}.hmg-premium .qm-reference-grid .ref-center{background:radial-gradient(ellipse,#fffdf7,#efe4d0)!important}.hmg-premium .ref-cell-notes{color:#9b896d}.hmg-premium .ref-cell-notes>span:first-child{color:#99815b}.hmg-premium .ref-five-elements{color:#a08b6a}.hmg-premium .qm-patterns{padding:15px 18px;border:1px solid #e3d8c4;background:#f7f1e5;border-radius:8px}.hmg-premium .ql-shell{background:#fffefa}.hmg-premium .ql-tabs{background:#f2ecdf;border-color:#e1d5bf}.hmg-premium .ql-tabs button[aria-selected=true]{background:#fffefa;color:#9c3b2c}
/* 八宅：让八方成为主图，说明放在图外。 */
.hmg-premium .bazhai-workspace{gap:23px}.hmg-premium .bazhai-settings{background:#fffefa!important;border-color:#e2d9c8!important;border-radius:12px!important}.hmg-premium .bazhai-results .result-hero{background:#eee5d3!important;border-color:#dac4a1!important;border-radius:10px}.hmg-premium .gua-name-big{font-size:39px;color:#a13a2a;letter-spacing:3px}.hmg-premium .group-badge{background:#fff9ed;color:#9d8152;border-color:#d8c29b}.hmg-premium .bazhai-map{gap:7px;background:#f5f0e4;border:1px solid #e2d4b9;padding:12px;border-radius:12px}.hmg-premium .direction-tile{background:#fffefa;border:1px solid #dfd5c1;border-radius:7px;min-height:112px;box-shadow:none}.hmg-premium .direction-tile.is-good{background:#f5e6d8;border-color:#ddbea1}.hmg-premium .direction-tile.is-bad{background:#f0ede4;border-color:#d9d4c5}.hmg-premium .direction-center{background:#b28b50;color:#fff9e8;border-radius:7px;font-size:24px}.hmg-premium .direction-tile>small{font-size:12px}.hmg-premium .direction-row{border-color:#e8dfd0}.hmg-premium .dir-name{font-size:16px}.hmg-premium .dir-desc{font-size:13px;color:#85775f}.hmg-premium .dir-mark{font-size:12px;padding:4px 8px;border-radius:5px}
/* 天赋数字：细线图谱、大数字、少量朱砂。 */
.hmg-premium .atlas-main{max-width:1450px;padding-top:29px}.hmg-premium .input-sheet{padding:29px 31px;background:#fffefa!important}.hmg-premium .calendar-switch{border:1px solid #e1d7c4;background:#f2ede1;border-radius:8px;padding:4px;gap:4px}.hmg-premium .calendar-switch button{min-height:43px;font-size:15px;border:0;border-radius:5px}.hmg-premium .calendar-switch button.selected{background:#fffefa;color:#9d3529;box-shadow:0 1px 5px #6d51221a}.hmg-premium .field-caption label{font-size:14px;font-weight:600;color:#4c4d43}.hmg-premium .field-caption>span{font-size:11px;color:#9c9179}.hmg-premium .field-with-icon{border:1px solid #dcd3c2;border-radius:8px;background:#fcfaf4;min-height:50px}.hmg-premium .field-with-icon input{background:transparent!important;border:0!important;font-size:19px!important;padding-block:10px}.hmg-premium .generate-button{margin-top:20px;min-height:49px;font-size:15px}.hmg-premium .preview-sheet{padding:25px 28px;background:#fffefa!important}.hmg-premium .chart-heading{font:600 16px var(--hm-font);color:#595747}.hmg-premium .chart-caption{font-size:11px;color:#a49a85}.hmg-premium .number-row,.hmg-premium .core-number-row{background:#f7f2e8;border:1px solid #eae0cb;border-radius:8px!important;padding:13px 15px}.hmg-premium .number-row strong{color:#a8382c}.hmg-premium .number-row .row-label{color:#4f5147;font-weight:500}.hmg-premium .row-icon{background:#f0e3ce;color:#b28a4c}.hmg-premium .row-arrow{background:#f0e5d1;color:#b38b52}.hmg-premium .interpretation{background:#f7f0e4;border:1px solid #e4d2b2;border-radius:12px}.hmg-premium .interpretation h3{font-size:27px;color:#9e392b}.hmg-premium .profile-card{background:#eee7d8!important;border-color:#ddceb3!important;padding:23px 27px}.hmg-premium .profile-name h2{font:700 28px var(--hm-font)!important}.hmg-premium .profile-stat strong{font-size:27px!important}.hmg-premium .profile-stat.life strong{font-size:40px!important}.hmg-premium .profile-type{background:#fbf7ee;border-color:#e0d0b3}.hmg-premium .profile-type h3{font-size:25px!important}.hmg-premium .report-overview{padding:25px}.hmg-premium .mini-card{padding:19px}.hmg-premium .mini-card h3{font:600 17px var(--hm-font);letter-spacing:.5px}.hmg-premium .linked-item{border-color:#e1d4bd;background:#fffdfa;border-radius:6px;font-size:16px}.hmg-premium .trait-grid>div{background:#f6f0e4;border-color:#e9ddc7;border-radius:8px}.hmg-premium .archive-card h3{font-family:var(--hm-font);font-size:18px}
/* 日历：日期、宜忌、方位各有明确位置。 */
.hmg-premium .ft-card{padding:25px}.hmg-premium .ft-daily-hero{border:1px solid #dac8a8;background:#f0e7d5;border-radius:11px;padding:24px;gap:25px}.hmg-premium .ft-date-big{border-color:#d9c7a5}.hmg-premium .ft-date-big strong{font:72px/1 Georgia,serif;color:#9f392c!important}.hmg-premium .ft-daily-hero h2{font:600 25px var(--hm-serif)}.hmg-premium .ft-yi-ji{gap:17px;margin:25px 0}.hmg-premium .ft-yi-ji>div{padding:18px;border:1px solid #e6dfd1;border-radius:9px;background:#fffefa}.hmg-premium .ft-wordlist{font-size:14px;line-height:2}.hmg-premium .ft-symbol{border-radius:6px;background:#f2e8d4;border-color:#dfc9a2}.hmg-premium .ft-time{border-color:#e2dbcb;background:#faf7f0;border-radius:7px;padding:13px 7px}.hmg-premium .ft-time.good{background:#f4e5d5;border-color:#dfc1a0}.hmg-premium .ft-time strong{font-size:15px}.hmg-premium .ft-time small{font-size:11px;color:#98896e}.hmg-premium .ft-direction{background:#f7f3e9;border-color:#e3d8c2;border-radius:9px}.hmg-premium .ft-direction strong{font-size:25px;color:#99723d}.hmg-premium .ft-rule{background:transparent;border-style:dashed;border-color:#d9ceb9;border-radius:9px}.hmg-premium .ft-badge{font-size:11px;background:#f2ebdc;border-color:#e4d5b9;color:#96764b}.hmg-premium .ft-badge.good{background:#f8e7dd;color:#a74431}.hmg-premium .ft-date-heading strong{font-size:24px;color:#9b382c}.hmg-premium .hmg-daily-tabs{background:#eae2d1;border-color:#dbcaac;border-radius:10px;padding:6px}.hmg-premium .hmg-daily-tabs [aria-selected=true]{background:#fffefa;color:#9b382c;box-shadow:0 1px 6px #6d512213}.hmg-premium .dh-zodiac-card{background:#fffefa;border-color:#e4dccd;border-radius:9px}.hmg-premium .dh-wardrobe-grid article{border-color:#e4dccd;border-radius:9px;background:#fffefa}
/* 统一工作台外框。 */
.hmg-premium .app-header{background:#fffefa!important;border-color:#e2d9c8!important;box-shadow:none!important}.hmg-premium .brand strong{font-size:23px!important;letter-spacing:3px}.hmg-premium .brand small{color:#a58b61!important;font-size:8px!important}.hmg-premium .tabs{background:#efeadf!important;border-color:#ded3bd!important;gap:5px!important}.hmg-premium .tabs button{border-radius:7px!important;color:#57574a!important;font-size:14px!important;font-weight:500!important;min-height:49px!important;padding:10px 14px!important}.hmg-premium .tabs button:before{border-color:#ceb88f;background:#f5ead3;box-shadow:none;color:#b08a4a;font-size:15px;border-radius:5px}.hmg-premium .tabs button[aria-selected=true]{background:#fffaf0!important;border-color:#d1bb94!important;color:#97382b!important;box-shadow:inset 2px 0 #a8382c,0 2px 6px #69492305!important;font-weight:600!important}.hmg-premium .tabs button[aria-selected=true]:before{background:#b08a4c;border-color:#b08a4c;color:#fff8e7}.hmg-premium .tabs:before{font-size:10px;letter-spacing:2px;color:#a0875f}.hmg-premium .tabs:after{color:#aa9674;font-size:10px}.hmg-premium .workspace iframe{background:#f5f2eb!important}.hmg-premium .hmg-member-nav{border-color:#ded2bc;background:#fffaf0;border-radius:20px;font-size:11px;color:#9c6c41}
@media(min-width:1001px){body.hmg-premium:has(>.app-header){grid-template-columns:184px minmax(0,1fr);grid-template-rows:76px minmax(0,1fr)}.hmg-premium .tabs{padding:22px 11px!important}.hmg-premium .app-header{padding:13px 28px!important}}
@media(min-width:1280px){.hmg-premium .tool-workbench{grid-template-columns:280px minmax(0,1fr);gap:22px}.hmg-premium .bz-workbench{grid-template-columns:265px minmax(0,1fr)}.hmg-premium .bazhai-workspace{grid-template-columns:285px minmax(0,1fr)}}
@media(max-width:1100px){.hmg-premium.dh-home .dh-hero>div{max-width:54%}.hmg-premium.dh-home .dh-hero h1{font-size:34px}.hmg-premium.dh-home .dh-today{width:268px;right:20px;padding:20px}.hmg-premium.dh-home .dh-hero{padding:31px 28px}.hmg-premium .dh-portrait{padding:20px}.hmg-premium .dh-portrait-grid{gap:12px}.hmg-premium .dh-life-card{padding:20px!important}}
@media(max-width:800px){.hmg-premium.dh-home main{padding:23px 22px 40px}.hmg-premium.dh-home .dh-hero{min-height:335px;padding:30px}.hmg-premium.dh-home .dh-hero>div{max-width:100%}.hmg-premium.dh-home .dh-hero h1{font-size:37px}.hmg-premium.dh-home .dh-today{position:relative;inset:auto;width:auto;margin-top:14px;padding:23px;min-height:0;backdrop-filter:none;box-shadow:none}.hmg-premium.dh-home .dh-today-date{margin:15px 0}.hmg-premium.dh-home .dh-today-date strong{font-size:60px}.hmg-premium.dh-home .dh-today-date p{font-size:14px}.hmg-premium.dh-home .dh-today-yi{font-size:12px}.hmg-premium.dh-home .dh-today-footer{font-size:10px}.hmg-premium.dh-home .dh-today-footer a{max-width:none;font-size:11px}.hmg-premium.dh-home .dh-quick-row{margin-bottom:26px}.hmg-premium.dh-home .dh-tool-card,.hmg-premium.dh-home .dh-tool-card.featured{padding:20px;min-height:220px}.hmg-premium .bz-profile,.hmg-premium .zw-profile{padding:20px!important}.hmg-premium .bz-main-report,.hmg-premium .zw-main-card{padding:17px!important}.hmg-premium .zw-profile-values>div{padding:2px 12px}.hmg-premium .ref-clock p{font-size:12px}.hmg-premium .zt-study-content{padding:18px}.hmg-premium .input-sheet,.hmg-premium .preview-sheet{padding:24px}.hmg-premium .report-overview{padding:20px}}
@media(max-width:520px){body.hmg-premium:has(>.app-header){grid-template-rows:70px 58px minmax(0,1fr)}.hmg-premium .app-header{padding:11px 17px!important}.hmg-premium .brand strong{font-size:20px!important}.hmg-premium .brand .seal{height:33px!important;width:33px!important;font-size:24px!important}.hmg-premium .tabs{padding:7px 12px!important;gap:4px!important}.hmg-premium .tabs button{min-height:43px!important;font-size:12px!important;padding:8px 11px!important;gap:6px!important}.hmg-premium .tabs button:before{font-size:13px;width:18px;height:20px}.hmg-premium .hmg-member-nav{font-size:10px;min-height:37px;padding:5px 10px}.hmg-premium :is(.tool-heading h1,.bz-page-heading h1,.zw-heading h1,.atlas-heading h1,.ft-intro h1){font-size:27px!important;letter-spacing:0!important}.hmg-premium :is(.tool-heading p,.bz-page-heading p,.zw-heading p,.atlas-heading p,.ft-intro p){font-size:12px!important;line-height:1.9!important}.hmg-premium :is(.tool-heading-poem,.heading-poem,.zw-heading-note){display:none!important}.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs) button{font-size:12px!important;padding:9px 11px!important;min-height:42px!important}.hmg-premium .dh-life-card{padding:17px!important}.hmg-premium .dh-life-card h3{font-size:19px!important}.hmg-premium .dh-life-card p{font-size:13px!important}.hmg-premium .bz-profile h2,.hmg-premium .zw-profile h2{font-size:23px!important}.hmg-premium .bz-profile p,.hmg-premium .zw-profile p{font-size:12px!important}.hmg-premium .bz-four-summary{gap:6px}.hmg-premium .bz-four-summary>div{padding:13px 6px;border-radius:8px}.hmg-premium .bz-four-summary .bz-char{font-size:29px}.hmg-premium .bz-four-summary small{font-size:10px}.hmg-premium :is(.zw-table td,.bz-table td){padding:12px 8px!important;font-size:12px!important}.hmg-premium .zw-main-card,.hmg-premium .bz-main-report{padding:13px!important}.hmg-premium .ref-four-pillars strong{font-size:23px}.hmg-premium .qm-header.qm-reference-header{padding:16px 12px!important}.hmg-premium .qm-reference-grid .qm-pal{font-size:9px!important}.hmg-premium .ref-chart-nav button{font-size:12px}.hmg-premium .bazhai-map{gap:5px;padding:8px}.hmg-premium .direction-tile{min-height:92px;padding:10px 5px;font-size:13px}.hmg-premium .direction-tile>small{font-size:10px}.hmg-premium .direction-center{font-size:20px}.hmg-premium .gua-name-big{font-size:33px}.hmg-premium .input-sheet,.hmg-premium .preview-sheet{padding:21px 18px}.hmg-premium .calendar-switch button{font-size:14px}.hmg-premium .field-caption{gap:7px}.hmg-premium .field-caption label{font-size:13px}.hmg-premium .field-caption>span{font-size:10px}.hmg-premium .number-row,.hmg-premium .core-number-row{padding:11px 12px}.hmg-premium .profile-card{padding:19px 18px!important}.hmg-premium .profile-name h2{font-size:25px!important}.hmg-premium .profile-stat strong{font-size:24px!important}.hmg-premium .profile-stat.life strong{font-size:36px!important}.hmg-premium .profile-type h3{font-size:23px!important}.hmg-premium .report-overview{padding:17px 14px}.hmg-premium .ft-card{padding:19px 16px}.hmg-premium .ft-daily-hero{padding:18px;gap:15px}.hmg-premium .ft-date-big strong{font-size:61px!important}.hmg-premium .ft-daily-hero h2{font-size:22px}.hmg-premium .ft-yi-ji>div{padding:14px}.hmg-premium .ft-time{padding:10px 5px}.hmg-premium .ft-time strong{font-size:14px}.hmg-premium .ft-time small{font-size:10px}.hmg-premium .ft-wordlist{font-size:13px}.hmg-premium.dh-home main{padding:19px 16px 36px}.hmg-premium.dh-home .dh-hero{min-height:320px;padding:28px 24px;border-radius:12px}.hmg-premium.dh-home .dh-hero h1{font-size:32px;letter-spacing:-.5px;margin:22px 0 16px}.hmg-premium.dh-home .dh-hero p{font-size:12px;line-height:2}.hmg-premium.dh-home .dh-today{padding:20px;border-radius:11px}.hmg-premium.dh-home .dh-quick{padding:14px 17px}.hmg-premium.dh-home .dh-section-head h2{font-size:21px}.hmg-premium.dh-home .dh-tool-card,.hmg-premium.dh-home .dh-tool-card.featured{padding:17px 14px;min-height:229px}.hmg-premium.dh-home .dh-tool-card h3{font-size:21px;letter-spacing:.5px;margin:17px 0 10px}.hmg-premium.dh-home .dh-tool-card p{font-size:12px;line-height:1.9;max-width:100%}.hmg-premium.dh-home .dh-tool-card .dh-tool-top i{width:29px;height:29px;border-radius:7px}.hmg-premium.dh-home .dh-tool-card .dh-tool-top span{font-size:8px;letter-spacing:.5px;max-width:65px}.hmg-premium.dh-home .dh-tool-footer{margin-top:15px;padding-top:10px}.hmg-premium.dh-home .dh-tool-footer small{font-size:9px}.hmg-premium.dh-home .dh-contact,.hmg-premium.dh-home .dh-membership-intro{padding:22px}.hmg-premium.dh-home .dh-membership-intro h2,.hmg-premium.dh-home .dh-contact h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.hmg-premium *{scroll-behavior:auto!important;transition:none!important}.hmg-premium .dh-tool-card:hover{transform:none!important}}
/* 次级快捷填入按钮保持清晰对比度；窄屏盘心年份完整显示。 */
body.hmg-premium #bazhaiQuickBtn{background:#eee5d5!important;color:#6c5336!important;border-color:#d8c7aa!important;box-shadow:none!important}
@media(max-width:520px){.hmg-premium .zt-center h4{font-size:13px!important;line-height:1.65!important;letter-spacing:0!important;white-space:normal;overflow-wrap:normal}.hmg-premium .zg-banner p{display:none}.hmg-premium .zg-banner{padding:13px!important;gap:10px!important}.hmg-premium .zg-banner b{font-size:12px}}
body.hmg-premium #qiNowBtn{background:#eee5d5!important;color:#6c5336!important;border-color:#d8c7aa!important;box-shadow:none!important}
.hmg-premium .card-title{border-left:2px solid #b49a6c!important;padding-left:10px!important}.hmg-premium .card-title:before,.hmg-premium :is(.tool-heading,.atlas-heading,.bz-page-heading,.zw-heading) h1:before{display:none!important}
/* 值符/值使清晰框选，保持原字体与象意点击。 */
.ref-leader-badges{display:flex;gap:8px;flex-wrap:wrap}.ref-leader-badge{display:inline-flex;gap:4px;align-items:center;border:1px solid #c9a474;border-radius:5px;padding:5px 8px;background:#fffbf2;color:#866a45}.qm-reference-grid .ref-zhifu-mark{border:1px solid #ba4837;border-radius:5px;padding:1px 3px;justify-self:center}
/* 八宅以文字和方位为主，去掉五行配色与装饰画。 */
body[data-tool=index] :is(.empty-compass,.bazhai-empty svg,.bazhai-empty img,.bazhai-map .direction-trigram){display:none!important}body[data-tool=index] .bazhai-results :is(.direction-tile,.direction-center,.gua-name-big,.group-badge){color:#443c30!important;background:#fffdf8!important;border-color:#dfd5c3!important;background-image:none!important}body[data-tool=index] .bazhai-map{background:#f5f0e7!important;background-image:none!important}body[data-tool=index] .direction-tile.is-good:before,body[data-tool=index] .direction-tile.is-bad:before{background:none!important}body[data-tool=index] .direction-center strong{font-size:20px}body[data-tool=index] .bazhai-empty{min-height:230px!important;background:#fffdf8!important;background-image:none!important}
.talent-oral-reading{font-size:14px;line-height:1.95;color:#4d493f}.talent-oral-reading>p{margin:13px 0}.talent-oral-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.talent-oral-scenes article,.talent-base-guide article{padding:18px;background:#f8f4ec;border:1px solid #e9dfd0;border-radius:10px}.talent-oral-scenes h4,.talent-composition h4,.talent-base-guide h4{font-size:15px;color:#8f3b2d;margin:0 0 9px}.talent-oral-scenes p,.talent-base-guide p{margin:0;line-height:1.95}.talent-composition{border-left:2px solid #bc9a64;padding:6px 0 6px 17px;margin:15px 0 24px;font-size:14px;line-height:1.95}.talent-chart-guide,.talent-growth-guide{margin-top:28px;border-top:1px solid #e6ddce;padding-top:20px;font-size:14px;line-height:1.95}.talent-base-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.talent-base-guide small{color:#8f7b5b}.talent-linked-guide{margin-top:22px;font-size:14px;line-height:1.95}.talent-linked-detail{margin:15px 0;border:1px solid #e1d5c1;border-radius:10px;background:#fffdf8;overflow:hidden}.talent-linked-detail>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;padding:17px 20px;background:#f6f0e5;list-style:none}.talent-linked-detail>summary span{font-size:12px;color:#8b7859}.talent-linked-detail>div{padding:8px 20px 20px}.archive-card p{font-size:13px;color:#665f51;line-height:1.9;text-align:left}.talent-depth-body{padding-bottom:20px}.talent-oral-reading b,.talent-composition b{margin-right:4px}
@media(max-width:900px){.talent-oral-scenes{grid-template-columns:1fr}.talent-base-guide{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.talent-base-guide{grid-template-columns:1fr}.talent-linked-detail>summary,.talent-linked-detail>div{padding:15px}.talent-oral-reading{font-size:14px;line-height:2}}
/* 奇门：值符神、值符九星与值使八门使用同一边框。 */
.qm-reference-grid .ref-layout .ref-zhifu-mark{border:1px solid #bd5443!important;border-radius:5px;padding:1px 3px;box-sizing:border-box;justify-self:center}
/* 八宅：单一生日输入，保留测算必需的性别。旧日期控件仅用于内部同步。 */
body[data-tool=index] #inputCard .form-row:has(#inpName),body[data-tool=index] #inputCard .form-row:has(#inpYear),body[data-tool=index] #inputCard .form-row:has(#inpMonth),body[data-tool=index] #inputCard .form-row:has(#inpDay),body[data-tool=index] #inputCard .advanced,body[data-tool=index] #bazhaiQuickBtn{display:none!important}body[data-tool=index] #inputCard .form-grid{grid-template-columns:1fr!important}body[data-tool=index] #inputCard .form-row:has(.gender-toggle){grid-column:1/-1}.bazhai-quick-help{font-size:12px;line-height:1.85;color:#85775f;margin:10px 0 0}#bazhaiQuickError{font-size:12px;color:#ad382a;line-height:1.8;margin:8px 0}#bazhaiQuickError:empty{display:none}body[data-tool=index] #inpBazhaiQuick{font-size:20px!important;letter-spacing:1px;min-height:52px}body[data-tool=index] #calcBtn{margin-top:18px}
/* 吉方红字细框；凶方黑字，均不再采用五行配色。 */
body[data-tool=index] .bazhai-results .direction-tile.is-good{color:#ad392d!important;border:1px solid #e7bcb3!important;background:#fffaf6!important}body[data-tool=index] .bazhai-results .direction-tile.is-bad{color:#272624!important;border:1px solid #d7d1c7!important;background:#fffdf8!important}body[data-tool=index] .direction-tile.is-good small{color:#ad392d!important}body[data-tool=index] .direction-tile.is-bad small{color:#272624!important}body[data-tool=index] #custDirs .direction-row:has(.good){border:1px solid #e7bcb3!important}body[data-tool=index] #custDirs .direction-row:has(.good) .dir-name,body[data-tool=index] #custDirs .dir-mark.good{color:#ad392d!important}body[data-tool=index] #custDirs .direction-row:has(.bad) .dir-name,body[data-tool=index] #custDirs .dir-mark.bad{color:#272624!important}body[data-tool=index] #custDirs .dir-mark{background:transparent!important;border:1px solid currentColor!important}

/* 击刑标记跟随具体天盘干，含寄干；不改变盘内干位。 */
.qm-reference-grid .ref-stem-glyph{display:inline-flex;position:relative!important;align-items:center;line-height:1.2}.qm-reference-grid .ref-strike-tag{position:absolute!important;top:-7px;right:-8px;color:#c32d25!important;font:600 10px/1 "Microsoft YaHei",sans-serif!important;letter-spacing:0;white-space:nowrap;pointer-events:none}.qm-reference-grid .ref-carried-unit .ref-strike-tag{top:-6px;right:-7px;font-size:9px!important}
