.module-mobile-topbar{display:none}
/* Shared mobile layout for all public modules and shared reports. */
@media(max-width:760px){
 html{scrollbar-gutter:auto!important;scroll-padding-bottom:90px}
 body[data-module-page]{min-width:0;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
 body[data-module-page] main{width:calc(100% - 28px);max-width:100%;margin-inline:auto;padding-top:20px;padding-bottom:24px}
 body[data-module-page] main>*{min-width:0}
 html body[data-module-page] .module-nav{position:fixed!important;inset:auto 0 0!important;z-index:100;display:block!important;width:100%!important;height:calc(64px + env(safe-area-inset-bottom,0px))!important;min-height:64px!important;margin:0!important;padding:0 8px env(safe-area-inset-bottom,0px)!important;border:0!important;border-top:1px solid #343633!important;background:rgba(18,20,20,.97)!important;box-shadow:0 -5px 24px #0003;backdrop-filter:blur(16px)}
 html body[data-module-page] .module-nav .module-brand,html body[data-module-page] .module-nav .module-device-mobile{display:none!important}
 html body[data-module-page] .module-nav nav{display:flex!important;justify-content:space-around!important;gap:2px!important;width:100%!important;height:64px!important;max-width:620px!important;padding:0!important;margin:0 auto!important;overflow:visible!important}
 html body[data-module-page] .module-nav nav>a,html body[data-module-page] .module-nav .module-device{display:flex!important;flex:1 1 0!important;flex-direction:column;align-items:center;justify-content:center;gap:4px!important;min-width:0!important;height:56px!important;min-height:56px!important;margin:4px 0!important;padding:4px 1px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#999e98!important;font-size:11px!important;line-height:16px!important;white-space:nowrap!important;transform:none!important;text-decoration:none}
 .module-nav nav>a:before{display:block;font:19px/20px 'Songti SC','SimSun',serif;color:#aaa69a}
 .module-nav nav>a[href^='/#']:before{content:'命'}
 .module-nav nav>a[href='/meihua/']:before{content:'易'}
 .module-nav nav>a[href='/fenshui/']:before{content:'宅'}
 .module-nav nav>a[href='/zhongyi/']:before{content:'医'}
 html body[data-module-page] .module-nav nav>a.active{background:#352320!important;color:#e0ad9f!important}
 .module-nav nav>a.active:before{color:#df9c8c}
 html body[data-module-page] .module-nav nav>a.active:after{display:none!important}
 .module-nav .module-device>span:first-child{font:16px/20px 'Songti SC',serif;color:#aaa69a}
 .module-nav .module-device code{font:9px/16px Consolas,monospace}
 .module-nav .module-device .copy-toast{top:auto;bottom:calc(100% + 8px);right:0;padding:4px 8px;border-radius:4px;background:#252825}
 .module-nav .module-device .copy-toast:empty{display:none}
 body[data-module-page] h1{overflow-wrap:break-word}
 body[data-module-page] input:not([type=radio]):not([type=checkbox]):not([type=hidden]),body[data-module-page] select,body[data-module-page] textarea{min-width:0;max-width:100%;font-size:16px;box-sizing:border-box}
 body[data-module-page] textarea{min-height:88px;line-height:1.6}
 body[data-module-page] .grid{grid-template-columns:minmax(0,1fr);gap:12px}
 body[data-module-page] .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
 body[data-module-page] .fields .wide{grid-column:1/-1}
 body[data-module-page] .fields>label:has(textarea),body[data-module-page] .field:has(textarea){grid-column:1/-1}
 body[data-module-page] .panel,body[data-module-page] .notice{min-width:0;padding:16px;border-radius:10px;margin-bottom:14px}
 body[data-module-page] .panel h2,body[data-module-page] .notice h2{margin-bottom:13px;font-size:23px;line-height:1.4}
 body[data-module-page] .notice h1{font-size:28px;line-height:1.35}
 body[data-module-page] .notice p{margin:10px 0;font-size:13px;line-height:1.7}
 body[data-module-page] .field input,body[data-module-page] .field select,body[data-module-page] .field textarea{padding:10px 11px}
 body[data-module-page] .record{min-width:0;padding:11px 12px}
 body[data-module-page] .record strong{font-size:16px;margin:6px 0;overflow-wrap:anywhere}
 body[data-module-page] .history{gap:8px}
 body[data-module-page] .waiting{padding:16px;font-size:13px;line-height:1.7}
 body[data-module-page] .case-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-module-page] .case-meta div{min-width:0;padding:10px}
 body[data-module-page] .case-meta b,body[data-module-page] .meta{overflow-wrap:anywhere}
 body[data-module-page] .meta{gap:6px 14px;font-size:12px}
 body[data-module-page] .report,body[data-module-page] .ai-content{min-width:0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
 body[data-module-page] .report h2{font-size:23px;margin-top:24px}
 body[data-module-page] .report h3{font-size:18px;margin-top:20px}
 body[data-module-page] .report p{margin-bottom:12px}
 body[data-module-page] .report-table,body[data-module-page] .ai-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 body[data-module-page] .report table{min-width:480px;width:100%;font-size:12px}
 body[data-module-page] .report th,body[data-module-page] .report td{padding:8px 10px;line-height:1.6}
 body[data-module-page] .report pre{max-width:100%;overflow-x:auto}
 body[data-module-page] .share-dialog{padding:14px 14px calc(82px + env(safe-area-inset-bottom,0px));overflow-y:auto}
 body[data-module-page] .share-dialog>section{max-width:100%;max-height:calc(100dvh - 115px);overflow:auto;padding:18px}
 body[data-module-page] .share-link-row{grid-template-columns:minmax(0,1fr)!important}
 body[data-module-page] .site-footer,body[data-module-page]>footer{flex-wrap:wrap;gap:6px 12px;padding-block:14px;font-size:10px}
 /* Birth chart: keep the input workspace close to the introduction. */
 body[data-module-page=bazi] .hero{padding:12px 0 24px;gap:18px}
 body[data-module-page=bazi] .hero h1{font-size:clamp(38px,11vw,52px);line-height:1.2;letter-spacing:-.04em}
 body[data-module-page=bazi] .hero-lead{margin-top:14px;font-size:14px;line-height:1.75}
 body[data-module-page=bazi] .instrument{width:min(100%,290px);margin:8px auto 0}
 body[data-module-page=bazi] .workspace{padding:24px 0 28px;gap:24px;grid-template-columns:minmax(0,1fr)}
 body[data-module-page=bazi] .section-heading h2{font-size:25px}
 body[data-module-page=bazi] .method-list{margin-top:16px}
 body[data-module-page=bazi] .method-list li{padding-block:12px}
 body[data-module-page=bazi] .geo-readout{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body[data-module-page=bazi] .geo-readout>div{min-width:0}
 body[data-module-page=bazi] .geo-readout b{font-size:11px;overflow-wrap:anywhere}
 body[data-module-page=bazi] .pillars-section,body[data-module-page=bazi] .family-section,body[data-module-page=bazi] .luck-section,body[data-module-page=bazi] .trend-section,body[data-module-page=bazi] .rules-section,body[data-module-page=bazi] .ai-section{margin-top:28px}
 body[data-module-page=bazi] .results{padding:24px 0}
 body[data-module-page=bazi] .proof-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body[data-module-page=bazi] .history-section{padding:15px;margin-bottom:24px}
 body[data-module-page=bazi] .year-grid,body[data-module-page=bazi] .month-grid{gap:7px}
 /* Plum blossom: compact introductory, casting and interpretation blocks. */
 body[data-module-page=meihua] .mh-hero{min-height:0;padding:12px 0 24px}
 body[data-module-page=meihua] .mh-hero h1{font-size:44px;line-height:1.2}
 body[data-module-page=meihua] .mh-hero>div>span{margin-top:12px;font-size:14px}
 body[data-module-page=meihua] .casting-layout{padding:24px 0;gap:22px;grid-template-columns:minmax(0,1fr)}
 body[data-module-page=meihua] .casting-form header h2{font-size:26px}
 body[data-module-page=meihua] .casting-form>label,body[data-module-page=meihua] .casting-form>div,body[data-module-page=meihua] .casting-form fieldset{margin-top:16px}
 body[data-module-page=meihua] .mode-switch,body[data-module-page=meihua] .number-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-module-page=meihua] .mode-switch span{padding:10px}
 body[data-module-page=meihua] .casting-form button{height:44px;margin-top:20px}
 body[data-module-page=meihua] .method-aside ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:10px}
 body[data-module-page=meihua] .method-aside li{padding:10px 0 10px 25px}
 body[data-module-page=meihua] .method-aside li:before{top:13px}
 body[data-module-page=meihua] .mh-history{margin:0 0 24px;padding:16px}
 body[data-module-page=meihua] .history-grid{margin-top:14px;gap:8px}
 body[data-module-page=meihua] .history-card{padding:12px}
 body[data-module-page=meihua] .result-section{padding:24px 0}
 body[data-module-page=meihua] .result-heading h2{font-size:26px;overflow-wrap:anywhere}
 body[data-module-page=meihua] .hexagrams{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px}
 body[data-module-page=meihua] .hex-card{min-width:0;padding:11px 7px}
 body[data-module-page=meihua] .hex-figure{width:min(70%,78px);margin:18px auto;gap:7px}
 body[data-module-page=meihua] .hex-line{height:5px}
 body[data-module-page=meihua] .hex-line b{left:calc(100% + 4px)}
 body[data-module-page=meihua] .hex-card h3{font-size:18px;line-height:1.4}
 body[data-module-page=meihua] .body-use{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-module-page=meihua] .body-use article,body[data-module-page=meihua] .relation{padding:13px}
 body[data-module-page=meihua] .body-use .relation{grid-column:1/-1;grid-row:2}
 body[data-module-page=meihua] .ai-reading{margin-top:20px;padding:16px}
 body[data-module-page=fenshui] main{padding-top:20px}
 body[data-module-page=fenshui] .hero{gap:0;margin-bottom:22px;grid-template-columns:minmax(0,1fr)}
 body[data-module-page=fenshui] .hero h1{font-size:34px;line-height:1.25;margin:10px 0}
 body[data-module-page=fenshui] .hero p{font-size:13px;line-height:1.75}
 body[data-module-page=fenshui] .field.wide{grid-column:1/-1}
 body[data-module-page=zhongyi] .fields input,body[data-module-page=zhongyi] .fields select,body[data-module-page=zhongyi] .fields textarea{padding:9px 10px;margin-top:5px}
 body[data-module-page=zhongyi] .panel>h2{font-size:23px}
 body[data-module-page=zhongyi] .fields button{padding:11px}
}
@media(max-width:360px){
 html body[data-module-page] .module-nav nav>a{font-size:10px!important}
 .module-nav .module-device code{font-size:8px}
 body[data-module-page=meihua] .hex-card h3{font-size:16px}
}

@media(max-width:760px){
 body[data-module-page]{padding-top:52px!important}
 .module-mobile-topbar{position:fixed;inset:0 0 auto;z-index:101;display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 14px;border-bottom:1px solid #2c302d;background:rgba(15,18,17,.97);backdrop-filter:blur(16px)}
 .mobile-top-brand{display:flex;align-items:center;gap:8px;color:#e5dfd1;text-decoration:none;font:600 14px 'Songti SC',serif;letter-spacing:1px}
 .mobile-top-brand>span{display:grid;place-items:center;width:29px;height:29px;border:1px solid #79443c;border-radius:50%;color:#d1a196;font:17px 'Songti SC',serif}
 .module-mobile-topbar .module-device-mobile{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:32px;margin:0;padding:5px 9px;border:1px solid #333a33;border-radius:6px;color:#9da79b;background:#171b17;font-weight:400;font-size:10px;line-height:18px;transform:none}
 .module-mobile-topbar .module-device-mobile span:first-child{display:inline}
 .module-mobile-topbar .module-device-mobile code{font:10px Consolas,monospace;color:#c2c8bd}
 .module-mobile-topbar .copy-toast{position:absolute;top:calc(100% + 5px);right:0;padding:3px 7px;border-radius:4px;background:#292f28;color:#d2dcca;white-space:nowrap}
 .module-mobile-topbar .copy-toast:empty{display:none}
 html body[data-module-page] .module-nav .module-device{display:none!important}
 html{scroll-padding-top:65px}
}

@media(max-width:760px){
 body[data-module-page]{padding-top:80px!important}
 .module-mobile-topbar{height:80px;flex-wrap:wrap;align-content:center;gap:5px;padding-block:7px}
 .module-mobile-topbar .mobile-top-brand{font-size:13px;line-height:23px}
 .mobile-top-brand>span{width:24px;height:24px;font-size:15px}
 .module-mobile-topbar .module-device-mobile{flex:0 0 100%;justify-content:space-between;min-width:0;min-height:29px;padding:3px 8px;gap:8px;white-space:nowrap}
 .module-mobile-topbar .module-device-mobile code{font:11px/20px Consolas,monospace;letter-spacing:0;white-space:nowrap}
 html{scroll-padding-top:90px}
}
@media(max-width:350px){.module-mobile-topbar .module-device-mobile{gap:4px;padding-inline:6px}.module-mobile-topbar .module-device-mobile code{font-size:10px}}

/* Device identity stays on the compact header row; copying uses the full UUID. */
@media(max-width:760px){
 body[data-module-page]{padding-top:52px!important}
 .module-mobile-topbar{height:52px;flex-wrap:nowrap;align-content:normal;gap:12px;padding-block:0}
 .module-mobile-topbar .mobile-top-brand{flex:0 0 auto;white-space:nowrap}
 .module-mobile-topbar .module-device-mobile{flex:0 1 auto;min-width:0;max-width:calc(100% - 125px);justify-content:flex-start;gap:6px;padding:4px 8px;white-space:nowrap}
 .module-mobile-topbar .module-device-mobile>span:first-child{flex:0 0 auto;white-space:nowrap}
 .module-mobile-topbar .module-device-mobile code{display:block;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/20px Consolas,monospace}
 html{scroll-padding-top:65px}
}

#device-copy-notice{position:fixed;z-index:10000;left:50%;top:72px;transform:translate(-50%,-8px);padding:10px 22px;border:1px solid #5b6556;border-radius:9px;background:#263327;color:#f2f4e9;box-shadow:0 6px 24px #0005;font:500 14px/22px 'Microsoft YaHei',sans-serif;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s}
#device-copy-notice.visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(max-width:760px){
 .module-mobile-topbar .module-device-mobile{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;height:32px!important;padding:5px 9px!important;line-height:20px!important}
 .module-mobile-topbar .module-device-mobile>span:first-child{display:block!important;flex:0 0 auto!important;margin:0!important;padding:0!important;font:400 11px/20px 'Microsoft YaHei',sans-serif!important;white-space:nowrap!important}
 .module-mobile-topbar .module-device-mobile code{display:block!important;margin:0!important;padding:0!important;line-height:20px!important;align-self:center!important}
}

.instrument-face{display:contents}
@media(max-width:760px){
 body[data-module-page=bazi] main{padding-top:0}
 body[data-module-page=bazi] .hero{height:calc(100svh - 116px - env(safe-area-inset-bottom,0px));min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:center;gap:12px;padding:14px 0 12px;overflow:visible}
 body[data-module-page=bazi] .hero-copy{min-width:0}
 body[data-module-page=bazi] .hero .eyebrow{margin-bottom:8px;font-size:10px}
 body[data-module-page=bazi] .hero h1{font-size:clamp(30px,6.5svh,52px);line-height:1.15}
 body[data-module-page=bazi] .hero-lead{margin-top:12px;font-size:13px;line-height:1.65}
 body[data-module-page=bazi] .instrument{display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;gap:6px;width:100%;height:100%;max-height:400px;min-height:0;margin:0 auto;aspect-ratio:auto}
 body[data-module-page=bazi] .instrument-face{position:relative;display:grid;place-items:center;height:100%;width:auto;max-width:100%;min-height:0;aspect-ratio:1;justify-self:center}
 body[data-module-page=bazi] .instrument-data{position:static;width:min(100%,290px);gap:3px;margin:0}
 body[data-module-page=bazi] .instrument-data div{font-size:10px;line-height:17px}
 body[data-module-page=bazi] .dial-center b{font-size:clamp(25px,5svh,38px)}
 body[data-module-page=bazi] .dial-center em{margin-top:4px;font-size:9px}
 body[data-module-page=bazi] .orbit span{font-size:9px;padding-inline:4px}
}
@media(max-width:760px) and (max-height:480px){
 body[data-module-page=bazi] .hero{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:16px;padding-block:10px}
 body[data-module-page=bazi] .hero h1{font-size:30px}
 body[data-module-page=bazi] .hero-lead{font-size:12px;line-height:1.5;margin-top:8px}
 body[data-module-page=bazi] .instrument-data{width:100%;max-width:230px}
}

/* Distinct module introductions share a consistent first-screen rhythm. */
.module-intro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:24px 60px;min-height:calc(100svh - 110px);padding:40px 0 28px;box-sizing:border-box}
.intro-kicker{margin:0 0 15px;color:#be6b56;font:600 11px/1.5 Consolas,monospace;letter-spacing:.16em}
.module-intro h1{margin:0;color:#eae3d5;font:500 clamp(48px,6vw,84px)/1.15 'Songti SC','STSong',serif;letter-spacing:-.04em}
.intro-description{max-width:540px;margin:20px 0 0;color:#a7aba3;font-size:15px;line-height:1.85}
.intro-visual{display:grid;place-items:center;min-height:0}
.intro-emblem{position:relative;display:grid;place-items:center;width:min(100%,330px);aspect-ratio:1;border:1px solid #52544770;border-radius:50%;background:radial-gradient(circle,#73654b0b,transparent 68%)}
.intro-emblem:before{content:'';position:absolute;inset:18%;border:1px solid #52544760;border-radius:50%}
.intro-emblem>span{position:absolute;padding:2px 6px;background:#111412;color:#9f9b87;font-size:11px;white-space:nowrap}
.emblem-north{top:0;left:50%;transform:translate(-50%,-50%)}.emblem-east{right:0;top:50%;transform:translate(50%,-50%)}.emblem-south{bottom:0;left:50%;transform:translate(-50%,50%)}.emblem-west{left:0;top:50%;transform:translate(-50%,-50%)}
.plum-lines{display:grid;gap:9px;width:32%;transform:rotate(0deg)}.plum-lines i{height:6px;background:#baaa8b}.plum-lines i:nth-child(2),.plum-lines i:nth-child(5){background:linear-gradient(to right,#baaa8b 43%,transparent 43% 57%,#baaa8b 57%)}.plum-lines i:nth-child(4){background:#b35a48}
.space-emblem{border-radius:8px;transform:rotate(0deg)}.space-emblem:before{border-radius:0;inset:15%;transform:rotate(45deg)}.space-plan{position:relative;display:grid;place-items:center;width:45%;height:45%;border:1px solid #9e8e626e;background:linear-gradient(90deg,transparent 49.5%,#9e8e6240 49.5% 50.5%,transparent 50.5%),linear-gradient(transparent 49.5%,#9e8e6240 49.5% 50.5%,transparent 50.5%)}.space-plan b{padding:8px;color:#d1bc97;background:#151813;font:36px 'Songti SC',serif;font-weight:400}
.health-emblem{border-color:#617c6260;background:radial-gradient(circle,#728b5e10,transparent 70%)}.health-emblem:before{border-color:#617c6240}.health-center{text-align:center}.health-center b{display:block;font:54px/1.2 'Songti SC',serif;color:#c5c9ab;font-weight:400}.health-center small{display:block;margin-top:10px;color:#899b80;font-size:10px}
.intro-bottom{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 30px;align-items:center}
.intro-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 25px;margin:0}.intro-facts>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #343b324d;font-size:12px}.intro-facts dt{color:#7e8b7b}.intro-facts dd{margin:0;color:#c7c5b7;text-align:right}
.intro-start{display:inline-flex;align-items:center;justify-content:space-between;gap:25px;padding:11px 16px;border:1px solid #715146;border-radius:7px;color:#e3c2b2!important;background:#38292380;font-size:13px;text-decoration:none}.intro-start:hover{background:#51382b80}.intro-start span{font-size:18px;line-height:20px}.bazi-start{margin-top:15px;padding-block:7px;font-size:12px}
.intro-health-note{grid-column:1/-1;grid-row:2;margin:0;color:#c38f81;font-size:12px;line-height:1.6}
#module-form,#chart-form{scroll-margin-top:68px}
@media(max-width:760px){
 .module-nav nav>a[href='/']:before{content:'命'}
 body[data-module-page=meihua] main,body[data-module-page=fenshui] main,body[data-module-page=zhongyi] main{padding-top:0}
 .module-intro{height:calc(100svh - 116px - env(safe-area-inset-bottom,0px));min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:14px;padding:18px 0 16px;margin-bottom:18px}
 .module-intro h1{font-size:clamp(30px,6.5svh,52px)!important;line-height:1.15}
 .intro-kicker{margin-bottom:8px;font-size:10px}
 .intro-description{margin-top:12px;font-size:13px;line-height:1.65}
 .intro-visual{height:100%;min-height:0;padding:8px 28px}
 .intro-emblem{width:auto;height:100%;max-height:290px;max-width:100%;min-height:0;aspect-ratio:1}
 .intro-bottom{grid-column:1;display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .intro-facts{grid-template-columns:1fr;gap:0}
 .intro-facts>div{padding:5px 0;font-size:11px;line-height:17px}
 .intro-start{padding:8px 12px;font-size:12px;line-height:20px;min-height:36px}
 .intro-health-note{font-size:10px;line-height:1.5;order:1}
 .intro-health-note+.intro-start{order:2}
 .plum-lines{gap:7px}.plum-lines i{height:5px}
 .intro-emblem>span{font-size:10px}
 .health-center b{font-size:clamp(26px,6svh,48px)}
 .space-plan b{font-size:28px}
 body[data-module-page=bazi] .bazi-start{margin-top:10px;min-height:30px;padding:4px 12px}
}
@media(max-width:760px) and (max-height:480px){
 .module-intro{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;padding:10px 0;gap:8px 24px}
 .module-intro h1{font-size:29px!important}.intro-description{font-size:12px;line-height:1.5;margin-top:8px}
 .intro-bottom{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px}
 .intro-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.intro-facts>div{font-size:10px;gap:4px}
 .intro-health-note{grid-column:1/-1;grid-row:2;font-size:9px}.intro-health-note+.intro-start{grid-row:1;grid-column:2}
}

/* One shared content gutter for all four module introductions. */
body[data-module-page] main{box-sizing:border-box}
@media(max-width:760px){
 body[data-module-page] main{width:100%!important;max-width:100%!important;margin-inline:auto!important;padding-left:16px!important;padding-right:16px!important}
 body[data-module-page] .module-intro,body[data-module-page=bazi] .hero{width:100%;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box}
}

@media(min-width:761px){body[data-module-page] main{width:min(1240px,calc(100% - 48px))!important;max-width:1240px!important;padding-left:0!important;padding-right:0!important;margin-inline:auto!important}}

/* Diagram-led introductions: quiet copy, generous central instruments. */
body[data-module-page] .module-intro h1,body[data-module-page=bazi] .hero h1{font-family:'Songti SC','STSong','SimSun',serif;font-weight:400;letter-spacing:.01em}
.module-intro h1{font-size:clamp(34px,4vw,56px);line-height:1.3}
.intro-description{font-size:14px;line-height:1.8;max-width:490px;color:#969f94}
.module-intro{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.intro-emblem{width:min(100%,410px)}
body[data-module-page=bazi] .hero{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
body[data-module-page=bazi] .hero h1{font-size:clamp(36px,4.5vw,64px);line-height:1.3}
body[data-module-page=bazi] .hero-lead{font-size:14px;line-height:1.8;color:#969f94}
@media(max-width:760px){
 .module-intro{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:10px;padding-top:16px;padding-bottom:12px}
 .module-intro .intro-copy,body[data-module-page=bazi] .hero-copy{text-align:center}
 .module-intro h1,body[data-module-page=bazi] .hero h1{font-size:clamp(25px,4svh,32px)!important;line-height:1.3;letter-spacing:.04em}
 .module-intro h1 br,body[data-module-page=bazi] .hero h1 br{display:none}
 .intro-kicker,body[data-module-page=bazi] .hero .eyebrow{margin-bottom:7px;font-size:10px;letter-spacing:.13em;color:#b68570}
 .intro-description,body[data-module-page=bazi] .hero-lead{max-width:480px;margin:9px auto 0;font-size:12px;line-height:1.7;color:#959e94}
 .intro-visual{padding:12px 27px}
 .intro-emblem{width:auto;height:100%;max-height:410px;max-width:100%;aspect-ratio:1}
 .intro-emblem>span{font-size:10px;color:#a4ad99}
 .health-center b{font-size:clamp(40px,9svh,70px)}
 .health-center small{font-size:10px;letter-spacing:.08em}
 .space-plan b{font-size:clamp(30px,6svh,48px)}
 .plum-lines{gap:clamp(7px,1.2svh,11px)}
 .plum-lines i{height:clamp(5px,.8svh,7px)}
 .intro-facts>div{font-size:10px;padding-block:4px;color:#879381}
 .intro-facts dd{color:#b6bba9}
 .intro-start{font-size:12px;font-weight:400;background:#2e272080;border-color:#655243}
 .intro-health-note{font-size:10px;color:#b48e7f}
 body[data-module-page=bazi] .hero{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px;padding:16px 0 52px}
 body[data-module-page=bazi] .instrument{max-height:480px;gap:10px}
 body[data-module-page=bazi] .instrument-face{max-height:410px}
 body[data-module-page=bazi] .instrument-data{width:100%;max-width:100%;gap:3px}
 body[data-module-page=bazi] .instrument-data div{font-size:10px;line-height:17px}
 body[data-module-page=bazi] .dial-center b{font-size:clamp(32px,6svh,48px)}
 body[data-module-page=bazi] .bazi-start{position:absolute;left:0;right:0;bottom:12px;display:flex;min-height:32px;margin:0;padding:5px 12px;font-size:12px}
}
@media(max-width:760px) and (max-height:480px){
 .module-intro{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:minmax(0,1fr) auto;gap:6px 24px;padding-block:10px}
 .module-intro .intro-copy,body[data-module-page=bazi] .hero-copy{text-align:left}
 .module-intro h1,body[data-module-page=bazi] .hero h1{font-size:25px!important}
 .intro-description,body[data-module-page=bazi] .hero-lead{font-size:11px;line-height:1.6;margin-top:8px}
 .intro-visual{padding:8px 22px}
 body[data-module-page=bazi] .hero{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-rows:minmax(0,1fr);gap:18px;padding:10px 0 45px}
 body[data-module-page=bazi] .instrument{gap:5px}
 body[data-module-page=bazi] .instrument-data div{font-size:9px;line-height:14px}
 .intro-bottom{grid-template-columns:minmax(0,1fr) auto}
}

@media(max-width:760px){
 .intro-visual{container-type:size}
 .intro-visual .intro-emblem{width:min(100cqw,100cqh,410px);height:auto;max-height:100%;max-width:100%;aspect-ratio:1}
 body[data-module-page=bazi] .instrument{container-type:size}
 body[data-module-page=bazi] .instrument-face{width:min(100cqw,calc(100cqh - 76px),410px);height:auto;aspect-ratio:1}
}

/* Editorial first screen: aligned copy, central diagram, compact utility strip. */
@media(max-width:760px){
 .module-intro .intro-copy,body[data-module-page=bazi] .hero-copy{text-align:left;padding:0 0 12px;border-bottom:1px solid #42453b55}
 .module-intro .intro-kicker,body[data-module-page=bazi] .hero .eyebrow{position:relative;margin:0 0 8px;padding-left:22px;font:500 10px/16px 'Microsoft YaHei',sans-serif;letter-spacing:.12em;color:#ab927d}
 .module-intro .intro-kicker:before,body[data-module-page=bazi] .hero .eyebrow:before{position:absolute;left:0;top:7px;width:13px;height:1px;background:#ad785e;content:''}
 .module-intro h1,body[data-module-page=bazi] .hero h1{margin:0;font:400 clamp(26px,6.4vw,34px)/1.35 'Songti SC','STSong','SimSun',serif!important;letter-spacing:.015em;white-space:normal;color:#e9e1d0}
 .intro-description,body[data-module-page=bazi] .hero-lead{margin:8px 0 0;max-width:100%;font:400 12px/1.6 'Microsoft YaHei',sans-serif;color:#939b91;text-wrap:pretty}
 .module-intro{gap:10px;padding-top:18px}
 .intro-visual{padding:18px 28px}
 .intro-bottom{gap:10px}
 .intro-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .intro-facts>div{display:block;padding:0 0 8px;border-bottom:1px solid #42453b55}
 .intro-facts dt{margin-bottom:4px;font-size:10px;line-height:16px;color:#7f8a79}
 .intro-facts dd{font-size:11px;line-height:18px;text-align:left;color:#b8bdab}
 .intro-start{min-height:38px;padding:8px 12px;border-color:#6c5948;background:#352a2280;border-radius:6px;color:#d9c1a6!important}
 body[data-module-page=bazi] .hero{padding-top:18px;gap:12px}
 body[data-module-page=bazi] .instrument-data{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
 body[data-module-page=bazi] .instrument-data div{display:block;border:0;border-left:1px solid #42453b66;padding-left:10px;line-height:17px}
 body[data-module-page=bazi] .instrument-data div:first-child{padding-left:0;border-left:0}
 body[data-module-page=bazi] .instrument-data dt{font:400 9px/16px 'Microsoft YaHei',sans-serif;color:#7f8a79}
 body[data-module-page=bazi] .instrument-data dd{margin-top:3px;font:400 10px/18px Consolas,'Microsoft YaHei',sans-serif;color:#c1c4b3;white-space:nowrap}
 body[data-module-page=bazi] .instrument-face{width:min(100cqw,calc(100cqh - 64px),410px)}
 body[data-module-page=bazi] .bazi-start{min-height:36px;bottom:10px;padding:7px 12px}
}
@media(max-width:760px) and (max-height:480px){
 .module-intro .intro-copy,body[data-module-page=bazi] .hero-copy{padding-bottom:0;border-bottom:0}
 .module-intro h1,body[data-module-page=bazi] .hero h1{font-size:25px!important}
 .intro-description,body[data-module-page=bazi] .hero-lead{font-size:11px}
 .intro-facts>div{padding-bottom:4px}.intro-facts dt{margin-bottom:0}.intro-facts dd{font-size:10px}
 body[data-module-page=bazi] .instrument-data{gap:5px}
 body[data-module-page=bazi] .instrument-data div{padding-left:5px}
 body[data-module-page=bazi] .instrument-data dt{font-size:8px}
 body[data-module-page=bazi] .instrument-data dd{font-size:9px}
}

@media(max-width:760px){.module-nav nav>a[href='/countdown/']:before{content:'日'}}

@media(max-width:760px){
 html body .module-nav nav>a[href='/countdown/']:before{content:'';display:block;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4m8-4v4M4 10h16M8 14h2m4 0h2m-8 3h2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4m8-4v4M4 10h16M8 14h2m4 0h2m-8 3h2'/%3E%3C/svg%3E") center/contain no-repeat}
}

@media(max-width:760px){html body .module-nav nav>a[href='/countdown/']:before{content:'纪';width:auto;height:auto;background:none;-webkit-mask:none;mask:none;font:19px/20px 'Songti SC','SimSun',serif}}
