/* 赫铭阁 2026-11-10 竖屏阅读层；不改变排盘算法。 */
:root{color-scheme:light}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body.hmg-premium{overflow-wrap:break-word}.hmg-premium img,.hmg-premium svg{max-width:100%}.hmg-premium button,.hmg-premium summary,.hmg-premium a{-webkit-tap-highlight-color:#b9362a15;touch-action:manipulation}.hmg-premium :is(.tool-workbench,.bz-workbench,.overview-content,.zt-layout,.bazhai-workspace)>*{min-width:0}
@media(max-width:760px){
 body.hmg-premium:has(>.app-header){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:calc(60px + env(safe-area-inset-top)) 106px minmax(0,1fr)!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
 .hmg-premium>.app-header{grid-column:1!important;grid-row:1!important;padding:calc(9px + env(safe-area-inset-top)) 16px 9px!important;gap:12px!important;min-width:0}.hmg-premium .brand{gap:9px}.hmg-premium .brand strong{font-size:21px!important;letter-spacing:2px!important}.hmg-premium .brand small{font-size:8px!important;letter-spacing:1px!important}.hmg-premium .seal{width:35px!important;height:35px!important;font-size:24px!important}.friends-edition-label{font-size:10px!important;max-width:116px;text-align:right;line-height:1.6!important}
 .hmg-premium>.tabs{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:44px 44px!important;gap:4px!important;padding:7px 10px!important;overflow:hidden!important;align-content:center;border-bottom:1px solid #ded2be!important;height:auto!important;width:100%!important}.hmg-premium>.tabs:before,.hmg-premium>.tabs:after,.hmg-premium>.tabs button:before{display:none!important}.hmg-premium>.tabs button{min-width:0!important;min-height:44px!important;height:44px!important;padding:4px!important;justify-content:center!important;gap:0!important;font-size:12px!important;letter-spacing:0!important;white-space:nowrap!important;margin:0!important}.hmg-premium>.tabs button[aria-selected=true]{box-shadow:inset 0 -2px #ad392c!important}
 .hmg-premium>.workspace{grid-column:1!important;grid-row:3!important;height:100%!important;min-height:0!important;overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}.hmg-premium>.workspace iframe{height:100%!important;min-width:0!important}
 body.hmg-premium>main,body.hmg-premium .atlas-main{width:auto!important;min-width:0!important;margin-left:0!important;padding:20px 14px 32px!important}.hmg-premium .tool-heading,.hmg-premium .bz-page-heading,.hmg-premium .zw-heading,.hmg-premium .atlas-heading,.hmg-premium .ft-intro{margin:0 0 19px!important;gap:9px}.hmg-premium :is(.tool-heading,.bz-page-heading,.zw-heading,.atlas-heading,.ft-intro) h1{font-size:clamp(23px,6.2vw,29px)!important;line-height:1.45!important;margin:6px 0 8px!important}.hmg-premium :is(.tool-heading-poem,.heading-poem,.zw-heading-note){display:none!important}.hmg-premium :is(.tool-heading,.bz-page-heading,.zw-heading,.atlas-heading,.ft-intro) p{font-size:13px!important;line-height:1.8!important}
 .hmg-premium :is(input,select,textarea):not([type=checkbox]):not([type=radio]){font-size:16px!important;max-width:100%;min-width:0}.hmg-premium :is(.btn-primary,.bz-primary,.zw-primary,.generate-button,.ft-primary){min-height:48px!important;font-size:15px!important}.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs){gap:5px!important;overflow-x:auto!important;scrollbar-width:thin;overscroll-behavior-inline:contain;padding-bottom:8px!important}.hmg-premium :is(.report-tabs,.bz-tabs,.zw-tabs) button{flex:0 0 auto;min-height:44px!important;font-size:13px!important;padding:10px 13px!important}
 .hmg-premium :is(.tool-workbench,.bz-workbench,.bazhai-workspace){grid-template-columns:minmax(0,1fr)!important;gap:16px!important}.hmg-premium :is(.paper,.bz-card,.zw-card,.ft-card,.card){border-radius:12px!important}.hmg-premium :is(.panel-paper,.report-overview,.bz-main-report,.zw-main-card){padding:17px 13px!important}.hmg-premium :is(.explanation,.talent-oral-reading,.talent-linked-guide,.talent-chart-guide,.talent-growth-guide,.dh-reading-card p){font-size:14px!important;line-height:1.95!important}.hmg-premium .talent-oral-scenes{grid-template-columns:1fr!important}
 .hmg-premium.dh-home .dh-hero{padding:23px 20px!important;min-height:300px!important}.hmg-premium.dh-home .dh-hero h1{font-size:30px!important;line-height:1.5!important;margin:20px 0 15px!important}.hmg-premium.dh-home .dh-hero p{font-size:13px!important;line-height:1.9!important}.hmg-premium.dh-home .dh-explore-grid{grid-template-columns:1fr!important;gap:12px!important}.hmg-premium.dh-home .dh-tool-card{min-height:0!important;padding:22px!important}.hmg-premium.dh-home .dh-tool-card p{font-size:14px!important;max-width:none!important}.hmg-premium.dh-home .dh-tool-card h3{font-size:24px!important;margin:12px 0!important}.hmg-premium.dh-home .dh-tool-footer small{font-size:12px!important}.hmg-premium.dh-home .dh-tool-top span{max-width:none!important;font-size:10px!important}.hmg-premium.dh-home .dh-today{padding:21px!important}.hmg-premium.dh-home .dh-quick-row{grid-template-columns:1fr!important}.hmg-premium.dh-home .dh-quick{min-height:70px!important}.hmg-premium .dh-contact-card strong{font-size:21px!important;overflow-wrap:anywhere}
 .hmg-premium .ref-top-meta{gap:12px;flex-wrap:wrap}.hmg-premium .ref-calendar-bottom{gap:14px;flex-wrap:wrap}.hmg-premium .ref-clock p{font-size:12px!important;line-height:1.8}.hmg-premium .ref-leaders{font-size:12px!important;line-height:1.9!important}.hmg-premium .ref-header-footer{gap:14px;flex-wrap:wrap}.hmg-premium .ref-chart-nav{width:100%;justify-content:space-between}.hmg-premium .ref-chart-nav button{min-height:44px!important;flex:1}.hmg-premium .ref-chart-nav small{width:100%;text-align:center}.hmg-premium .qm-reference-header{padding:16px 12px!important}.hmg-premium .qm-reference-grid{width:100%;min-width:0!important}.hmg-premium .ref-cell-notes{font-size:8px!important}.hmg-premium .ref-stem-glyph{max-width:none}
 .hmg-premium .bz-four-summary{gap:7px!important}.hmg-premium .bz-four-summary>div{min-width:0;padding:15px 5px!important}.hmg-premium .bz-table{font-size:12px!important}.hmg-premium .bz-table td,.hmg-premium .bz-table th{padding:9px 5px!important}.hmg-premium .bz-hidden-stem{font-size:11px!important}
 .hmg-premium .zt-plate-toolbar{gap:10px;flex-wrap:wrap}.hmg-premium .zt-plate-toolbar>.zw-primary{width:100%}.hmg-premium .zt-controls{display:flex;flex-wrap:wrap;gap:9px!important}.hmg-premium .zt-controls label{min-width:0;max-width:100%}.hmg-premium .zt-layout{grid-template-columns:minmax(0,1fr)!important}.hmg-premium .zt-selected{position:static!important;max-height:none!important}.hmg-premium .zt-study-tabs button{min-height:44px!important}.hmg-premium .zt-mode.is-simple .zt-board{width:100%!important;min-width:0!important}.hmg-premium .zt-mode.is-simple .zt-center h4{font-size:13px!important}.hmg-premium .zt-time-row>div{overscroll-behavior-inline:contain;scrollbar-width:thin}.hmg-premium .zt-study-content{font-size:14px;line-height:1.95}
 .hmg-premium .bazhai-map{padding:8px!important;gap:5px!important}.hmg-premium .direction-tile{min-height:100px!important;font-size:13px!important;line-height:1.7}.hmg-premium #custDirs{grid-template-columns:minmax(0,1fr)!important}.hmg-premium #custDirs .dir-name{font-size:15px!important}.hmg-premium #custDirs .dir-desc{font-size:14px!important}.hmg-premium .ft-form-grid{grid-template-columns:minmax(0,1fr)!important}.hmg-premium .ft-yi-ji{grid-template-columns:minmax(0,1fr)!important}.hmg-premium .ft-wordlist{font-size:14px!important;line-height:1.9}.hmg-premium .ft-time{min-height:70px}.hmg-premium .ft-time small{font-size:11px!important}
 .hmg-premium .modal-mask{padding:12px!important}.hmg-premium .modal{width:min(100%,540px)!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto;padding:22px!important}.hmg-premium dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;overflow:auto}
}
@media(max-width:374px){.hmg-premium>.tabs button{font-size:11px!important}.hmg-premium .qm-reference-grid .ref-layout{grid-template-columns:25px minmax(0,1fr) 25px!important}.hmg-premium .zt-mode.is-simple .zt-star.zt-major>span{font-size:13px!important}.hmg-premium.dh-home .dh-hero h1{font-size:28px!important}}
