/* 黛蓝与古铜，四时与方位纹样只用于视觉。 */
:root{--navy:#071526;--panel:#0c2037;--panel-deep:#091b30;--line:#28415c;--bronze:#bfa475;--cream:#ebdfc6;--muted:#98adc5;--chart-ink:#d0b584;--song:"Songti SC","STSong","Noto Serif CJK SC",serif}
body,body[data-view=report]{color:#d1dcea;background-color:var(--navy);background-image:radial-gradient(ellipse at 50% 0%,#16304b66,transparent 60%);--text:#e4edf7;--input:#132a43}
.topbar{border-bottom:1px solid #bfa47518;max-width:1120px;height:76px}
.brand,body[data-view=report] .brand{color:#e7d9bd;font-family:var(--song);font-size:18px;letter-spacing:.16em}
.brand-mark,body[data-view=report] .brand-mark{color:#d3b780;background:#bfa4750b;border:1px solid #bfa4756b;border-radius:5px;transform:rotate(-5deg);font-family:var(--song)}
.local-tag,body[data-view=report] .local-tag{color:#9db2ca}.local-tag i{background:#bfa475}
.intro{position:relative;padding:18px 170px 15px 2px;min-height:143px;margin-bottom:22px}.intro h1{font-family:var(--song);font-weight:500;font-size:32px;color:#e9dfcc;letter-spacing:.1em;display:flex;align-items:center;gap:14px}.intro p{color:#9fb2c9;font-size:13px}.eyebrow{color:#b59b74;letter-spacing:.2em}
.intro-ornament{position:absolute;width:150px;height:150px;right:3px;top:-1px;opacity:.8}
.seal{display:inline-flex;align-items:center;justify-content:center;writing-mode:vertical-rl;font:12px/1.15 var(--song);letter-spacing:.14em;background:#8d454323;color:#d59b89;border:1px solid #a965587a;outline:1px solid #a965582e;outline-offset:2px;border-radius:2px;width:24px;height:35px;transform:rotate(-5deg);flex-shrink:0}
.birth-form{position:relative;background:#0c2037;border-color:#36506a;border-radius:6px;padding:29px;box-shadow:0 16px 60px #00000012}.birth-form::before,.birth-form::after,.report-section::before,.report-section::after{content:'';position:absolute;width:14px;height:14px;pointer-events:none;opacity:.65}.birth-form::before,.report-section::before{left:-1px;top:-1px;border-top:2px solid var(--bronze);border-left:2px solid var(--bronze)}.birth-form::after,.report-section::after{right:-1px;bottom:-1px;border-bottom:2px solid var(--bronze);border-right:2px solid var(--bronze)}
.form-title{font-family:var(--song);font-size:14px;color:#d3bc92;letter-spacing:.3em}.form-title span{background:#bfa47570}.form-progress span{background:#203950}.form-progress span.done{background:#aebfae}.field>label{color:#becbdb}.field>label span{color:#8fa7c1}
input,select{background:#122b44;border-color:#354e69;border-radius:8px}input:focus,select:focus{border-color:#bfa475;box-shadow:0 0 0 3px #bfa4750c}select option{background:#122b44}.time-panel{background:#081b30;border-color:#28415a;border-radius:8px}.time-branch strong{color:#d8c29c}.time-branch{color:#8fa8c3}
.gender-buttons button{background:#10283f;border-color:#35506c;border-radius:8px}.gender-buttons button[aria-pressed=true]{background:#294360;color:#e0eafa;border-color:#809ab8}.summary{background:#18334b;border-color:#46617a;color:#c3d5e7;border-radius:7px}.submit-button{background:#355f87;border:1px solid #6e8ba7;color:#ecdfc5;border-radius:8px;box-shadow:none;font-family:var(--song);font-size:16px;letter-spacing:.15em;font-weight:500}.submit-button:hover{background:#426f98;filter:none}.examples button{color:#bda986;border-bottom-color:#bfa47542}.form-foot{color:#92a7bc}.input-footer{color:#6c819a;letter-spacing:.18em;font-family:var(--song)}
.report-screen{max-width:1020px;padding:12px 28px 60px}.report-toolbar{margin:3px 0 25px}.report-toolbar button{color:#b8c9dd;background:#0e253d;border-color:#304960;border-radius:6px}.report-toolbar button:hover{color:#e8d7b5;border-color:#a18c69}.report-paper{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
.report-hero{display:flex;justify-content:space-between;align-items:center;gap:25px;position:relative;border-bottom:1px solid #bfa4753d;margin:0 0 24px;padding:14px 12px 26px;min-height:220px}.hero-copy{flex:1;min-width:0}.report-hero .eyebrow{color:#bda781;font-size:11px}.report-hero h1{font-family:var(--song);font-size:33px;color:#ebdfc6;letter-spacing:.12em;font-weight:500;margin:12px 0 20px;display:flex;align-items:center;gap:16px}.person-name{color:#ccd8e6;font-size:17px}.report-state{color:#8da8c3}.profile-meta{color:#96acc5;gap:8px 20px;font-size:12px}.hero-ornament{position:relative;width:200px;height:200px;flex:0 0 200px}.hero-ornament img{width:100%;height:100%;opacity:.82}.hero-ornament>span{position:absolute;inset:0;display:grid;place-items:center;color:#d5bd93;font-family:var(--song);font-size:25px;letter-spacing:.15em;padding-left:.15em}
.report-section{position:relative;margin:0 0 24px;padding:27px 30px 29px;background:var(--panel);border:1px solid #2c435a;border-radius:5px;box-shadow:0 8px 30px #00000008}.section-heading{gap:12px;margin-bottom:22px}.section-num{font:14px var(--song);color:#bda478;border:1px solid #bfa47555;display:grid;place-items:center;width:26px;height:28px;flex-shrink:0}.section-heading h2{font:500 21px var(--song);color:#e8dbbd;letter-spacing:.1em}.heading-rule{height:1px;flex:1;background:linear-gradient(90deg,#bfa47555,transparent);margin-left:8px}
.report-section p{color:#b8cadf;font-size:14px;line-height:2;margin:12px 0}.metric-grid{gap:9px;border:0;border-radius:0;background:transparent}.metric,.metric:nth-child(4n),.metric:nth-last-child(-n+4){background:#102a45;border:1px solid #35506b!important;border-radius:4px;padding:16px 15px}.metric-label{color:#91aac6;font-size:12px;letter-spacing:.06em}.metric-value{color:#d8e6f6;font-size:15px}.pillar-row{gap:9px;margin-top:14px}.pillar{background:#0b1c30;border-color:#35475d;border-radius:4px;padding:12px 4px}.pillar small{color:#859fb9}.pillar span{color:#cfb78f;font:24px/1.6 var(--song)}
.classical{background:#091a2d;border-left:2px solid #b69a6c;border-radius:0 4px 4px 0;padding:16px 19px;margin:0 0 17px}.classical small{color:#ac9574;font-size:11px}.classical p{color:#c8ba9f;font:15px/2.05 var(--song);margin:7px 0 0}.relations{grid-template-columns:repeat(3,minmax(0,1fr));display:grid;gap:12px;border:0;margin-top:23px}.relation{display:block;background:#0a1c30;border:1px solid #304259;border-radius:3px;padding:15px 16px}.relation h3{font:16px var(--song);color:#c6ad83;margin:0 0 10px;letter-spacing:.15em}.relation p{font-size:13px;color:#a6bbd2;line-height:1.9}
.body-reading{border-top:1px solid #34506b;margin-top:18px;padding-top:15px}.body-reading h3,.symptom-block h3{font:500 15px var(--song);letter-spacing:.1em;color:#e3c597;margin:0 0 7px}.body-reading p{color:#d2deed;margin:0}.body-overview{display:grid;grid-template-columns:1fr 1fr;gap:14px}.body-fact{background:#112b44;border:1px solid #354a61;padding:17px 20px;display:flex;flex-direction:column;gap:7px;border-radius:3px}.body-fact small,.body-focus>small{color:#9eb2c9;font-size:12px;letter-spacing:.1em}.body-fact strong{color:#e3ccaa;font:21px/1.65 var(--song);font-weight:400}.body-fact>span{font-size:11px;color:#92aac4}.body-focus{grid-column:1/-1;border-bottom:1px solid #2d435b;padding:4px 0 16px}.body-focus p{margin:4px 0 0;color:#d3deec}.symptom-block{padding-top:19px}.symptom-tags{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}.symptom-tags span{background:#15324f;border:1px solid #3a5570;color:#d3e2f1;font-size:13px;padding:6px 13px;border-radius:3px}.symptom-block>small{font-size:11px;color:#879fb8}
.chart-area{margin:14px auto 4px;max-width:520px}.chart-area text{fill:#bfcfe0}.chart-area .grid{stroke:#37506b}.chart-area .tick{fill:#7e96af}.chart-area .shape{fill:#bfa475;fill-opacity:.12;stroke:#d0b584}.chart-area .upper{fill:#6e5d43}.chart-area .upper-label{fill:#fff1d6}.chart-area .lower{fill:#365e83}.chart-area .lower-label{fill:#e7edf6}.chart-area rect+text{fill:#ede1ce}.chart-caption{color:#91a7c0;font-size:11px;margin-top:4px}.report-summary{background:#0a1b2e;border-left:2px solid #bca16f;border-radius:0 3px 3px 0;padding:15px 19px;margin:0}.report-summary p{color:#d3c4aa}
.source-details{background:#0a1b2c;border:1px solid #2d4259;border-radius:4px;padding:18px 22px;margin-top:4px;color:#9eb4cd}.source-details summary{color:#a6bad2}.source-details a{color:#d0b789}.source-details p{color:#9eb3cc}.audit-table th,.audit-table td{border-bottom-color:#2b4159;color:#adbed2}.report-footer{color:#6e87a0;text-align:center;font-family:var(--song);letter-spacing:.1em;margin-top:23px}
@media(min-width:900px){.profile-meta{max-width:620px}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.topbar{height:64px}.brand,body[data-view=report] .brand{font-size:16px}.input-screen{margin-top:12px}.intro{padding:13px 100px 12px 0;min-height:120px}.intro h1{font-size:26px;gap:9px;letter-spacing:.04em;white-space:nowrap}.intro-ornament{width:105px;height:105px;right:-5px;top:13px;opacity:.55}.intro .eyebrow{font-size:10px}.intro p{font-size:12px;max-width:210px}.intro .seal{display:none}.birth-form{padding:23px 19px}.report-screen{padding:8px 14px 35px}.report-toolbar{margin:2px 0 14px}.report-hero{min-height:170px;padding:9px 4px 22px;gap:5px;margin-bottom:20px}.report-hero h1{font-size:25px;letter-spacing:.06em;gap:10px;margin:10px 0 15px}.report-hero .eyebrow{font-size:10px;letter-spacing:.08em}.hero-ornament{width:100px;height:100px;flex-basis:100px;align-self:flex-start;position:absolute;right:-5px;top:0;opacity:.5;pointer-events:none}.hero-ornament>span{font-size:14px}.hero-copy{position:relative;z-index:1;padding-right:12px}.report-hero .eyebrow,.report-hero h1{max-width:calc(100% - 54px)}.report-hero .seal{width:20px;height:30px;font-size:10px}.profile-meta{font-size:11px;gap:5px 12px;max-width:100%}.report-section{padding:21px 18px;margin-bottom:20px}.section-heading{gap:9px;margin-bottom:18px}.section-heading h2{font-size:19px;letter-spacing:.07em}.section-num{font-size:12px;width:23px;height:25px}.metric-grid{grid-template-columns:1fr 1fr;gap:8px}.metric{padding:12px!important}.metric-value{font-size:14px}.pillar span{font-size:21px}.classical{padding:13px 14px}.classical p{font-size:14px}.report-section p{font-size:14px}.relations{grid-template-columns:1fr;gap:10px}.relation{display:grid;grid-template-columns:40px 1fr;gap:10px;padding:13px}.relation h3{font-size:14px;margin-top:3px}.relation p{font-size:13px}.body-overview{gap:10px}.body-fact{padding:13px 12px}.body-fact strong{font-size:18px}.body-fact small{font-size:11px}.symptom-tags{gap:7px}.symptom-tags span{font-size:12px;padding:5px 10px}.source-details{padding:16px 18px}.heading-rule{margin-left:2px}.chart-area{margin-top:5px}.report-toolbar button{padding:7px 8px}}
@media(max-width:360px){.report-hero h1{font-size:23px;gap:7px}.hero-ornament{width:83px;height:83px;opacity:.35}.report-section{padding:18px 14px}.body-fact strong{font-size:16px}.section-heading h2{font-size:18px}.intro{padding-right:80px}.intro-ornament{width:88px;height:88px}.intro h1{font-size:24px}.report-hero .eyebrow,.report-hero h1{max-width:none}.profile-meta{font-size:11px}}
@media print{body[data-view=report]{background:#fff;color:#23364b}.report-section{background:#fff;border-color:#c8c4bb;box-shadow:none}.report-hero h1,.section-heading h2,.person-name{color:#243c55}.report-section p,.body-reading p,.body-focus p{color:#38495d}.classical,.relation,.body-fact,.report-summary{background:#f5f2eb;border-color:#d0c5ae}.classical p,.body-fact strong,.report-summary p{color:#66553c}.metric,.pillar{background:#f4f6f8!important}.metric-value,.pillar span,.chart-area text{color:#304968;fill:#304968}.symptom-tags span{background:#eef2f5;color:#304968}.hero-ornament{display:none}.report-footer{color:#777}.body-fact small,.body-focus>small,.profile-meta{color:#5b6c7f}.report-section::before,.report-section::after{display:none}}
