:root{--navy:#071526;--panel:#0c2037;--panel-deep:#091b30;--line:#2d455d;--bronze:#bfa475;--cream:#ebdfc6;--text:#c7d5e5;--muted:#91a7be;--song:"Songti SC","STSong","Noto Serif CJK SC",serif;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html{min-height:100%;background:var(--navy)}body{margin:0;color:var(--text);font-family:var(--sans);background:radial-gradient(ellipse at 50% 0%,#18344f65,transparent 65%),var(--navy);font-size:14px;line-height:1.6}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #e0c18b;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin:0}button svg,a svg{display:block}svg{max-width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portal-header{position:sticky;top:0;z-index:20;border-bottom:1px solid #bfa47526;background:#071526f2;backdrop-filter:blur(14px)}.portal-header-inner{max-width:960px;margin:auto;min-height:84px;padding:15px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px}.portal-brand{display:flex;align-items:center;gap:14px;min-width:0}.portal-logo{height:43px;width:auto;display:block;object-fit:contain;flex-shrink:0}.portal-brand-divider{height:35px;width:1px;background:#bfa47540;flex-shrink:0}.portal-brand-copy{min-width:0}.portal-brand-copy strong{display:block;color:var(--cream);font:500 24px/1.5 var(--song);letter-spacing:.1em;white-space:nowrap}.portal-brand-copy small{display:block;color:#99aec4;font-size:10px;letter-spacing:.05em}.preview-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #bfa47552;color:#d0b78e;background:#bfa47508;padding:2px 8px;white-space:nowrap;font-size:10px}.preview-badge:before{content:"";width:4px;height:4px;border-radius:50%;background:#c2aa80}.portal-main{width:100%;max-width:960px;margin:0 auto;padding:24px 24px calc(110px + env(safe-area-inset-bottom))}.portal-main.is-login{max-width:510px;padding-top:30px;padding-bottom:35px}.login-intro{text-align:center;margin:5px auto 26px}.login-ornament{width:77px;height:77px;margin:0 auto 13px;color:#c0a573}.login-intro>small{font-size:10px;letter-spacing:.3em;color:#a9916b}.login-intro h1{font:500 30px/1.6 var(--song);letter-spacing:.14em;color:var(--cream);margin:6px 0 8px}.login-intro p{font-size:12px;color:var(--muted);letter-spacing:.12em}.portal-frame{position:relative;border:1px solid var(--line);background:linear-gradient(150deg,#10294290,#0b1e32);border-radius:4px}.portal-frame:before,.portal-frame:after{content:"";position:absolute;width:15px;height:15px;pointer-events:none;z-index:1}.portal-frame:before{left:-1px;top:-1px;border-top:2px solid #bfa475a6;border-left:2px solid #bfa475a6}.portal-frame:after{right:-1px;bottom:-1px;border-bottom:2px solid #bfa475a6;border-right:2px solid #bfa475a6}.login-card{padding:25px}.panel-kicker{display:flex;align-items:center;gap:10px;color:#c6ac80;font:14px var(--song);letter-spacing:.15em;margin-bottom:19px}.panel-kicker:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#bfa47550,transparent)}.role-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}.role-option{position:relative;min-width:0;cursor:pointer}.role-option input{position:absolute;opacity:0;width:1px;height:1px}.role-option-inner{display:block;border:1px solid #3a5067;border-radius:3px;text-align:center;padding:13px 3px;background:#091d32}.role-option strong{display:block;font:17px/1.4 var(--song);font-weight:400;color:#c0d0e0}.role-option small{display:block;font-size:9px;color:#7f98b1;margin-top:4px}.role-option input:checked+.role-option-inner{border-color:#bfa475;background:#40372b44;box-shadow:inset 0 0 0 1px #bfa4751c}.role-option input:checked+.role-option-inner strong{color:#ead7b4}.role-option input:focus-visible+.role-option-inner{outline:2px solid #e0c18b;outline-offset:3px}.portal-field{display:block;margin-top:15px}.portal-field>span{display:block;color:#b0c1d4;font-size:12px;margin-bottom:7px}.portal-field input,.portal-field textarea{width:100%;background:#0a1c30;border:1px solid #354b63;border-radius:4px;padding:11px 13px;color:#dfebf6;min-height:46px}.portal-field input::placeholder,.portal-field textarea::placeholder{color:#7189a2}.portal-field textarea{resize:vertical;min-height:108px;line-height:1.9}.preview-notice{display:flex;gap:9px;align-items:flex-start;margin-top:20px;padding:12px 13px;border:1px solid #bfa47532;background:#bfa47508;color:#bca985;font-size:11px;line-height:1.85}.preview-notice i{font-style:normal;color:#c8ac7d;flex-shrink:0}.primary-button{display:flex;align-items:center;justify-content:center;gap:18px;min-height:47px;width:100%;margin-top:20px;padding:11px 17px;border:1px solid #947d57;border-radius:4px;background:linear-gradient(135deg,#6a5a3e,#4e4737);color:#f2e7d2;font:17px/1.5 var(--song);letter-spacing:.13em}.primary-button:hover{background:linear-gradient(135deg,#7b6847,#5c5340)}.primary-button svg{width:20px;height:20px}.login-footnote{text-align:center;font-size:10px;color:#728ba4;line-height:1.8;margin-top:14px}.brand-credit{text-align:center;padding:26px 0 4px}.brand-credit strong{display:block;font:500 23px/1.5 var(--song);letter-spacing:.15em;color:#d4bc93}.brand-credit small{display:block;margin-top:4px;font-size:10px;letter-spacing:.06em;color:#7f97af}
.home-main{padding-top:18px}.hero-carousel{position:relative;height:clamp(210px,30svh,290px);overflow:hidden;border:1px solid #8c765159;border-radius:4px;background:#0b2138;touch-action:pan-y}.hero-carousel:focus-visible{outline:2px solid #d3b785;outline-offset:4px}.hero-track{display:flex;height:100%;transition:transform .36s ease}.hero-slide{position:relative;display:flex;align-items:center;flex:0 0 100%;min-width:0;padding:25px 28px 45px;overflow:hidden}.hero-slide:before{content:"";position:absolute;inset:12px;border:1px solid #bfa47524;pointer-events:none}.hero-slide:after{content:"";position:absolute;width:260px;height:260px;right:-75px;top:-100px;border:1px solid #bfa47518;border-radius:50%;box-shadow:0 0 0 24px #bfa47504,0 0 0 25px #bfa4750c,0 0 0 52px #bfa47503;pointer-events:none}.hero-slide[data-slide="1"]{background:linear-gradient(115deg,#102a3b,#172e3545)}.hero-slide[data-slide="2"]{background:linear-gradient(115deg,#11243a,#302d2440)}.hero-copy{min-width:0;flex:1;position:relative;z-index:1}.hero-kicker{display:block;color:#bba27a;font-size:10px;letter-spacing:.24em;margin-bottom:11px}.hero-copy h1,.hero-copy h2{font:500 32px/1.5 var(--song);letter-spacing:.16em;color:#eadbbe;white-space:nowrap}.hero-copy p{color:#9db1c6;font-size:11px;margin-top:9px;letter-spacing:.08em}.hero-image-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;flex:0 0 108px;height:132px;margin-left:16px;border:1px solid #bfa47540;outline:1px solid #bfa47512;outline-offset:-7px;background:#08192c66;color:#a38f6e;position:relative;z-index:1}.hero-image-placeholder .placeholder-ideogram{font:27px/1.3 var(--song);letter-spacing:.15em;writing-mode:vertical-rl;opacity:.75}.hero-image-placeholder small{font-size:8px;color:#738ba3;letter-spacing:.04em}.carousel-controls{position:absolute;left:28px;right:28px;bottom:17px;display:flex;align-items:center;justify-content:space-between;z-index:2}.carousel-dots{display:flex;align-items:center;gap:8px}.carousel-dot{display:block;width:20px;height:16px;padding:0;background:transparent;border:0;position:relative}.carousel-dot:after{content:"";position:absolute;left:0;right:0;top:7px;height:2px;background:#607082}.carousel-dot[aria-current="true"]:after{background:#d4b987}.carousel-arrows{display:flex;align-items:center;gap:8px;color:#a28c68}.carousel-count{font:11px var(--song);margin-right:7px;letter-spacing:.1em}.carousel-arrow{border:1px solid #bfa47540;background:#081a2a70;width:27px;height:24px;display:grid;place-items:center;color:#bfa475;padding:3px}.carousel-arrow svg{width:14px;height:14px}.announcement{display:flex;align-items:center;gap:12px;min-height:49px;margin:16px 0 24px;padding:9px 13px;background:#0c2138;border-top:1px solid #bfa4752e;border-bottom:1px solid #bfa4752e;overflow:hidden}.announcement-label{display:flex;align-items:center;gap:7px;color:#c8ac7f;font:13px var(--song);letter-spacing:.08em;flex-shrink:0}.announcement-label svg{width:17px;height:17px}.announcement-window{flex:1;min-width:0;overflow:hidden;font-size:12px;color:#a8bdd2}.announcement-track{display:flex;width:max-content;animation:portal-notice-scroll 26s linear infinite}.announcement-track span{display:block;white-space:nowrap;padding-right:48px}.announcement:hover .announcement-track,.announcement:focus-within .announcement-track{animation-play-state:paused}@keyframes portal-notice-scroll{to{transform:translateX(-50%)}}.section-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-intro h2{font:19px var(--song);font-weight:400;color:#e4d3b2;letter-spacing:.13em}.section-intro small{font-size:10px;color:#7e98b1;letter-spacing:.06em}.service-list{display:flex;flex-direction:column;gap:12px}.service-card{display:flex;align-items:center;gap:19px;position:relative;padding:17px 20px;border:1px solid #344b62;border-radius:4px;background:linear-gradient(105deg,#112c45,#0b2035);transition:border-color .18s,background .18s;min-height:105px}.service-card:hover{border-color:#a68c61;background:linear-gradient(105deg,#17364f,#10283e)}.service-card:before{content:"";position:absolute;left:-1px;top:-1px;width:10px;height:10px;border-left:1px solid #bfa475aa;border-top:1px solid #bfa475aa}.service-placeholder{height:68px;width:68px;flex:0 0 68px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:1px solid #bfa47545;background:#081b2e;color:#c4a97b;position:relative}.service-placeholder:before{content:"";position:absolute;inset:5px;border:1px solid #bfa4751f;pointer-events:none}.service-placeholder>span{font:22px var(--song);letter-spacing:.1em}.service-placeholder>small{font-size:8px;color:#748ba2}.service-copy{flex:1;min-width:0}.service-copy h3{font:500 23px/1.4 var(--song);color:#e5d6b9;letter-spacing:.1em}.service-copy p{font-size:11px;color:#91a9c1;margin-top:7px}.service-arrow{width:24px;height:24px;flex-shrink:0;color:#ae946b}.home-bottom-note{text-align:center;margin-top:21px;font-size:10px;color:#6e87a0;letter-spacing:.12em}
.portal-bottom-nav{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,960px);display:grid;grid-template-columns:1fr 1fr;padding:5px 16px calc(7px + env(safe-area-inset-bottom));min-height:69px;background:#091b2df7;border-top:1px solid #bfa47550;box-shadow:0 -12px 36px #020b1666;backdrop-filter:blur(12px)}.portal-bottom-nav a{display:flex;align-items:center;justify-content:center;gap:10px;color:#7f99b2;min-height:53px;font:15px var(--song);letter-spacing:.13em;position:relative}.portal-bottom-nav svg{height:23px;width:23px;stroke-width:1.4}.portal-bottom-nav a[aria-current="page"]{color:#e1c89d;background:linear-gradient(0deg,#bfa4750c,transparent)}.portal-bottom-nav a[aria-current="page"]:before{content:"";position:absolute;width:27px;height:2px;top:-6px;left:calc(50% - 13px);background:#c9ac7b}
.page-heading{margin:0 0 23px}.page-heading small{font-size:10px;color:#a68f6b;letter-spacing:.22em}.page-heading h1{font:500 30px/1.6 var(--song);letter-spacing:.14em;color:#eadbbe;margin:6px 0}.page-heading p{font-size:12px;line-height:1.9;color:#8fa8c0}.mine-profile{display:flex;align-items:center;gap:17px;padding:23px}.profile-medallion{width:70px;height:70px;border:1px solid #a98e635e;border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:#d2b787;background:#bfa47506;box-shadow:inset 0 0 0 5px #0a1c2f,inset 0 0 0 6px #bfa47530;font:28px var(--song)}.profile-name{font:22px var(--song);color:#e3d2b3;overflow-wrap:anywhere}.profile-role{display:flex;align-items:center;gap:9px;font-size:12px;color:#9db4cc;margin-top:8px}.scope-panel{padding:22px;margin-top:16px}.subheading{font:17px var(--song);color:#dcc49e;letter-spacing:.12em;margin-bottom:12px}.scope-title{font-size:15px;color:#c8d7e6;line-height:1.9}.scope-detail{font-size:11px;color:#8ba3bc;margin-top:9px;line-height:1.9}.scope-preview-note{font-size:11px;line-height:1.9;color:#a38f6e;border-top:1px solid #bfa47525;padding-top:12px;margin-top:15px}.announcement-editor{margin-top:18px;padding:23px}.announcement-editor .portal-field{margin-top:0}.editor-actions{display:flex;align-items:center;gap:14px;margin-top:12px}.editor-actions .primary-button{margin:0;flex:1;letter-spacing:.06em;font-size:15px;min-height:43px}.text-button{border:0;background:transparent;padding:8px 2px;color:#a6bad0;font-size:11px;white-space:nowrap}.text-button:hover{color:#e0c69c}.editor-note{font-size:10px;color:#7891aa;margin-top:11px;line-height:1.8}.logout-button{display:block;width:100%;min-height:45px;margin-top:24px;border:1px solid #5c5146;background:#40352922;border-radius:4px;color:#c6b18e;font:15px var(--song);letter-spacing:.12em}.patients-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.patients-topline small{font-size:11px;color:#93a9be}.compact-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 15px;min-height:39px;border:1px solid #9a835c;background:#4b453531;color:#dccaab;border-radius:3px;font:14px var(--song);white-space:nowrap}.compact-button svg{width:17px;height:17px}.empty-table-frame{padding:24px 20px}.empty-table{width:100%;border-collapse:collapse;table-layout:fixed}.empty-table td{text-align:center;border-top:1px solid #bfa47520;border-bottom:1px solid #bfa47520;padding:40px 10px}.empty-emblem{width:52px;height:52px;color:#7b8f9f;margin:0 auto 15px;opacity:.75}.empty-title{font:19px var(--song);color:#b5c4d1}.empty-description{font-size:11px;color:#7e96af;line-height:1.9;margin-top:11px}.empty-table-note{font-size:11px;color:#8d7d63;margin-top:17px;line-height:1.9}.formula-list{display:flex;flex-direction:column;gap:13px}.formula-placeholder{padding:21px 22px;display:flex;align-items:center;gap:17px}.formula-number{width:51px;height:63px;border:1px solid #bfa47542;display:grid;place-items:center;color:#bfa475;font:24px var(--song);flex-shrink:0;background:#081b2d}.formula-placeholder h2{font:21px var(--song);color:#d8c5a4;letter-spacing:.1em}.formula-placeholder p{font-size:11px;color:#8199b2;margin-top:7px}.formula-status{font-size:10px;white-space:nowrap;color:#978568;margin-left:auto;border-bottom:1px solid #bfa47535;padding-bottom:2px}.portal-toast{position:fixed;z-index:100;bottom:calc(91px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);width:max-content;padding:10px 17px;border:1px solid #a28b64;border-radius:4px;color:#e7d9be;background:#11263af5;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}.portal-toast.is-visible{opacity:1}.no-script{padding:30px;text-align:center;color:#d8c5a4}
@media(min-width:800px){.home-main{max-width:800px}.hero-carousel{height:290px}.hero-slide{padding:35px 45px 50px}.hero-copy h1,.hero-copy h2{font-size:40px}.hero-image-placeholder{height:177px;flex-basis:145px}.hero-image-placeholder .placeholder-ideogram{font-size:34px}.carousel-controls{left:45px;right:45px}.service-card{min-height:117px}.portal-main:not(.home-main):not(.is-login){max-width:760px}.portal-brand-copy strong{font-size:26px}}
@media(max-width:600px){.portal-header-inner{min-height:76px;padding:13px 17px;gap:8px}.portal-brand{gap:10px}.portal-logo{height:38px}.portal-brand-divider{height:30px}.portal-brand-copy strong{font-size:21px;letter-spacing:.08em}.portal-brand-copy small{font-size:9px;letter-spacing:0}.preview-badge{font-size:9px;padding:2px 6px}.portal-header>.portal-header-inner>.preview-badge{padding:2px 5px}.portal-main{padding:20px 17px calc(105px + env(safe-area-inset-bottom))}.portal-main.is-login{padding:22px 21px 30px}.login-intro{margin-top:0;margin-bottom:22px}.login-intro h1{font-size:28px}.login-ornament{height:64px;width:64px;margin-bottom:10px}.login-card{padding:23px 20px}.brand-credit{padding-top:24px}.brand-credit strong{font-size:23px}.home-main{padding-top:15px}.hero-carousel{height:clamp(218px,30svh,260px)}.hero-slide{padding:22px 21px 42px}.hero-copy h1,.hero-copy h2{font-size:27px;letter-spacing:.11em}.hero-copy p{font-size:10px;letter-spacing:0;max-width:170px;line-height:1.8}.hero-kicker{font-size:9px;letter-spacing:.17em}.hero-image-placeholder{flex-basis:92px;height:120px;margin-left:10px}.hero-image-placeholder .placeholder-ideogram{font-size:25px}.hero-image-placeholder small{font-size:7px}.carousel-controls{left:22px;right:22px;bottom:16px}.announcement{margin-top:14px;margin-bottom:22px;gap:10px;padding-inline:11px}.service-card{gap:15px;padding:15px 15px;min-height:105px}.service-placeholder{width:63px;height:68px;flex-basis:63px}.service-copy h3{font-size:21px}.service-copy p{font-size:10px;margin-top:6px;line-height:1.8}.service-arrow{width:18px;height:18px}.page-heading h1{font-size:28px}.mine-profile{padding:21px 18px;gap:14px}.profile-medallion{width:62px;height:62px}.profile-name{font-size:20px}.scope-panel{padding:20px}.announcement-editor{padding:20px}.formula-placeholder{padding:19px 17px;gap:14px}.formula-placeholder h2{font-size:19px}.formula-status{font-size:9px}.formula-number{width:43px;height:58px;font-size:22px}.patients-topline{align-items:flex-start;gap:11px}.patients-topline small{font-size:10px;line-height:1.9}.compact-button{font-size:13px;padding:8px 11px}}
@media(max-width:360px){.portal-header-inner{padding-inline:13px}.portal-logo{height:32px}.portal-brand{gap:8px}.portal-brand-copy strong{font-size:19px}.portal-brand-copy small{font-size:8px}.portal-brand-divider{height:26px}.portal-header>.portal-header-inner>.preview-badge{display:none}.portal-main{padding-inline:14px}.hero-slide{padding-inline:18px}.hero-copy h1,.hero-copy h2{font-size:24px}.hero-image-placeholder{flex-basis:78px;margin-left:8px}.hero-copy p{max-width:150px}.service-card{gap:11px;padding-inline:12px}.service-copy h3{font-size:20px}.service-copy p{font-size:10px}.service-placeholder{width:56px;flex-basis:56px}.formula-status{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.announcement-track>span[aria-hidden="true"]{display:none}.announcement-track{width:auto}.announcement-track span{white-space:normal;padding:0}}
.login-error{margin-top:15px;padding:10px 12px;border:1px solid #a16e5952;border-radius:3px;background:#9b534010;color:#d7ad97;font-size:12px;line-height:1.8}.login-error[hidden]{display:none}.profile-account{font-size:11px;line-height:1.7;color:#829db7;margin-top:4px}

/* 与微信版共用国风概念图，细线圆章作为服务入口。 */
.hero-slide{display:block;background:#071526}.hero-slide::before,.hero-slide::after{display:none}.hero-banner-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#071526;z-index:0}.hero-art-scrim{position:absolute;inset:0;background:linear-gradient(90deg,#07152670 0%,#0715261f 49%,transparent 75%);z-index:1}.hero-copy{position:relative;z-index:2;max-width:53%}.hero-copy p{max-width:none}.carousel-controls{z-index:3}.service-art{display:block;flex:0 0 76px;width:76px;height:76px;object-fit:contain}.service-card{gap:18px}
@media(max-width:600px){.hero-carousel{height:190px}.hero-slide{padding:21px 20px 38px}.hero-copy{max-width:55%}.hero-copy h2{font-size:23px;letter-spacing:.035em}.hero-copy p{font-size:10px;line-height:1.8;max-width:none}.hero-kicker{font-size:8px;letter-spacing:.1em}.service-art{flex-basis:64px;width:64px;height:64px}.service-card{gap:15px}}
@media(max-width:360px){.hero-carousel{height:185px}.hero-slide{padding-inline:17px}.hero-copy h2{font-size:21px;letter-spacing:0}.hero-copy{max-width:55%}.hero-kicker{font-size:7px}.hero-copy p{font-size:9px}.service-art{flex-basis:55px;width:55px;height:55px}.service-card{gap:11px}}

/* 茶方简介沿用服务圆纹图标；实际产品图片与资料待提供。 */
.formulas-main .formula-card-art{display:block;flex:0 0 76px;width:76px;height:76px;object-fit:contain}.formulas-main .formula-card-copy{flex:1;min-width:0}.formulas-main .formula-placeholder{gap:19px;min-height:116px}.formulas-main .formula-status{flex-shrink:0}
@media(max-width:600px){.formulas-main .formula-card-art{flex-basis:66px;width:66px;height:66px}.formulas-main .formula-placeholder{gap:15px;padding:18px 16px}.formulas-main .formula-placeholder h2{font-size:21px}.formulas-main .formula-placeholder p{font-size:11px}}

/* 2026-11-12：米白宣纸、青绿与古铜。仅调整视觉，不改变布局与交互。 */
:root{color-scheme:light;--navy:#f6f2e9;--panel:#fffdf8;--panel-deep:#f0ece2;--line:#ded6c5;--bronze:#8b6738;--cream:#253f3a;--text:#253f3a;--muted:#5d6e63;--green:#587c68}
html{background:#f6f2e9}body{background:radial-gradient(ellipse at 50% 0%,#e6e7da70,transparent 65%),#f6f2e9;color:#253f3a}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#587c68}
.portal-header{background:#fffdf8f2;border-bottom-color:#ded6c5}.portal-logo{background:#587c68;border-radius:5px;padding:5px 7px;box-sizing:content-box}.portal-brand-divider{background:#c9cebf}.portal-brand-copy strong{color:#253f3a}.portal-brand-copy small{color:#5d6e63}.preview-badge{border-color:#c9b799;color:#856236;background:#f5eee1}.preview-badge:before{background:#8b6738}
.login-ornament,.login-intro>small{color:#8b6738}.login-intro h1{color:#253f3a}.login-intro p{color:#5d6e63}.portal-frame{border-color:#ded6c5;background:#fffdf8}.portal-frame:before,.portal-frame:after{border-color:#8b67388c}.panel-kicker{color:#8b6738}.panel-kicker:after{background:linear-gradient(90deg,#8b673852,transparent)}
.portal-field>span{color:#50685e}.portal-field input,.portal-field textarea{color:#253f3a;background:#fffefb;border-color:#d4cebf}.portal-field input::placeholder,.portal-field textarea::placeholder{color:#8b958c}.preview-notice{background:#f1eee2;border-color:#ded6c5;color:#5d6e63}.preview-notice i{color:#8b6738}.primary-button{color:#fffdf8;background:linear-gradient(135deg,#587c68,#466653);border-color:#587c68}.primary-button:hover{background:linear-gradient(135deg,#638772,#4e705b)}.login-footnote{color:#758277}.login-error{border-color:#cf9e895c;background:#b9513f0a;color:#9b493b}
.brand-credit strong{color:#587c68}.brand-credit small{color:#758277}
.hero-carousel{background:#f6f2e9;border-color:#cdbd9f;box-shadow:0 7px 22px #6a624d07}.hero-carousel:focus-visible{outline-color:#587c68}.hero-slide,.hero-slide[data-slide="1"],.hero-slide[data-slide="2"]{background:#f6f2e9}.hero-banner-image{background:#f6f2e9}.hero-art-scrim{background:linear-gradient(90deg,#f6f2e9df 0%,#f6f2e959 43%,transparent 68%)}.hero-kicker{color:#8b6738}.hero-copy h1,.hero-copy h2{color:#253f3a}.hero-copy p{color:#5d6e63}.hero-image-placeholder{border-color:#cbb998;outline-color:#ded6c5;background:#efecdf;color:#8b6738}.hero-image-placeholder small{color:#758277}.carousel-dot:after{background:#c3b69c}.carousel-dot[aria-current="true"]:after{background:#587c68}.carousel-arrows,.carousel-count{color:#8b6738}.carousel-arrow{background:#fffdf8bb;border-color:#d5c9b1;color:#8b6738}
.announcement{background:#eeeadd;border-top-color:#ded6c5;border-bottom-color:#ded6c5}.announcement-label{color:#8b6738}.announcement-window{color:#5d6e63}.section-intro h2{color:#3f6251}.section-intro small{color:#758277}.service-card{background:linear-gradient(105deg,#fffdf8,#f5f2e9);border-color:#ded6c5;box-shadow:0 4px 16px #776d4b04}.service-card:hover{background:linear-gradient(105deg,#fffefb,#edf0e5);border-color:#91a58b}.service-card:before{border-color:#8b67388c}.service-copy h3{color:#253f3a}.service-copy p{color:#5d6e63}.service-arrow{color:#8b6738}.service-placeholder{color:#8b6738;background:#f1eee2;border-color:#cdbd9f}.service-placeholder:before{border-color:#ded6c5}.service-placeholder>small,.home-bottom-note{color:#758277}
.portal-bottom-nav{background:#fffdf8f5;border-top-color:#d2c6ae;box-shadow:0 -12px 36px #4b57430b}.portal-bottom-nav a{color:#7b877a}.portal-bottom-nav a[aria-current="page"]{color:#397657;background:linear-gradient(0deg,#587c680c,transparent)}.portal-bottom-nav a[aria-current="page"]:before{background:#8b6738}
.page-heading small{color:#8b6738}.page-heading h1{color:#253f3a}.page-heading p{color:#5d6e63}.profile-medallion{color:#8b6738;border-color:#bda780;background:#edf0e5;box-shadow:inset 0 0 0 5px #fffdf8,inset 0 0 0 6px #d7ceba}.profile-name{color:#253f3a}.profile-role,.profile-account{color:#5d6e63}.subheading{color:#587c68}.scope-title{color:#253f3a}.scope-detail{color:#5d6e63}.scope-preview-note{color:#7e775f;border-top-color:#ded6c5}.text-button{color:#5d6e63}.text-button:hover{color:#8b6738}.editor-note{color:#758277}.logout-button{background:#eeeadd66;color:#80613a;border-color:#d3c4a9}
.patients-topline small{color:#5d6e63}.compact-button{color:#466653;background:#edf0e5;border-color:#bec8b4}.empty-table td{border-top-color:#ded6c5;border-bottom-color:#ded6c5}.empty-emblem{color:#587c68}.empty-title{color:#50685e}.empty-description{color:#758277}.empty-table-note{color:#8a795a}.formula-number{color:#8b6738;background:#f1eee2;border-color:#cdbd9f}.formula-placeholder h2{color:#253f3a}.formula-placeholder p{color:#5d6e63}.formula-status{color:#8a795a;border-bottom-color:#d5c9b1}.portal-toast{color:#fffdf8;background:#365246f5;border-color:#8b6738}.no-script{color:#253f3a}
.role-option-inner{background:#fffdf8;border-color:#ded6c5}.role-option strong{color:#50685e}.role-option small{color:#758277}.role-option input:checked+.role-option-inner{background:#edf0e5;border-color:#587c68;box-shadow:inset 0 0 0 1px #587c6818}.role-option input:checked+.role-option-inner strong{color:#397657}
/* 小字对比度复核：保留宣纸层次，正文与提示统一深灰绿。 */
.portal-field input::placeholder,.portal-field textarea::placeholder,.login-footnote,.brand-credit small,.home-bottom-note,.editor-note,.empty-description,.scope-preview-note,.formula-status,.empty-table-note,.portal-bottom-nav a{color:#5d6e63}.brand-credit strong,.subheading{color:#397657}.announcement-label{color:#805d31}

.section-intro small{color:#5d6e63}

/* 桌面悬停仍保持白字与青绿背景的对比度。 */
.primary-button:hover{background:linear-gradient(135deg,#4e705b,#3f5f4e)}

/* 书封式登录：一幅仪盘、一方题签，外层统一装帧。 */
.portal-header{border-bottom:3px double #c8b58f;background:#fcfaf2f2}
.portal-logo{background:#365748;border:1px solid #97a18b;border-radius:2px}
.portal-brand-copy strong{font-family:var(--heritage-serif,var(--song));font-weight:600;letter-spacing:.08em}
.portal-main.is-login{max-width:510px;padding-top:25px;padding-bottom:30px}
.login-book{position:relative;padding-left:17px;border:1px solid #b79b6d;background:#fffcf5;box-shadow:3px 3px 0 #e8dfcc,4px 4px 0 #c7b591,7px 7px 0 #eee7d7,0 12px 38px #5d57380c;border-radius:1px;isolation:isolate}
.login-book:before{content:"";position:absolute;inset:6px;border:1px solid #d4c19e;z-index:-1;pointer-events:none}
.login-book:after{content:"";position:absolute;right:9px;top:9px;width:31px;height:31px;background:var(--heritage-corner) center/contain no-repeat;transform:rotate(90deg);opacity:.7;pointer-events:none}
.book-binding{position:absolute;left:0;top:0;bottom:0;width:22px;background:linear-gradient(90deg,#e5ddc9,#f0eadb 13px,#d8c7a6 14px,#f8f3e7 15px);border-right:1px solid #c2ac85;display:flex;flex-direction:column;justify-content:space-around;align-items:center;padding:36px 0 38px;z-index:3}
.book-binding i{position:relative;display:block;width:15px;height:31px;border-top:1px solid #947850;border-bottom:1px solid #947850;border-right:1px solid #947850;transform:skewY(-12deg);opacity:.8}
.book-binding i:before,.book-binding i:after{content:"";position:absolute;right:-3px;width:4px;height:4px;background:#887457;border-radius:50%}
.book-binding i:before{top:-2px}.book-binding i:after{bottom:-2px}
.login-frontispiece{height:237px;position:relative;margin:8px 9px 0 11px;border-bottom:3px double #d3c19f;overflow:hidden}
.login-cover-landscape{position:absolute;inset:0;background:url('/portal-art/banner-heritage-v1.jpg') 62% 74%/cover no-repeat;opacity:.18;mask-image:linear-gradient(0deg,#000 0%,#0009 42%,transparent 90%);pointer-events:none}
.login-frontispiece .login-intro{position:absolute;left:26px;top:18px;margin:0;text-align:left;z-index:2}
.login-intro>small{font:10px/1.8 var(--heritage-serif,var(--song));letter-spacing:.17em;white-space:nowrap;color:#805d31}
.login-title-slip{display:flex;align-items:flex-start;gap:9px;width:max-content;margin-top:12px;padding:12px 10px 10px 12px;border:1px solid #ac956e;background:#fffcf3e8;box-shadow:inset 0 0 0 3px #fffcf3,inset 0 0 0 4px #d7c4a0,2px 2px 0 #e3d6bc80}
.login-title-slip h1{writing-mode:vertical-rl;font:500 34px/1.18 var(--heritage-display,"Kaiti SC","STKaiti",var(--song));letter-spacing:.08em;margin:0;color:#253f3a}
.login-title-slip p{writing-mode:vertical-rl;font:11px/1.45 var(--heritage-serif,var(--song));letter-spacing:.18em;margin:0;padding-top:2px;color:#5d6e63}
.login-instrument{position:absolute;width:188px;right:13px;top:27px;color:#947442;filter:drop-shadow(0 2px 0 #fffdf7);z-index:1}
.login-instrument svg{display:block;width:100%;height:auto}
.login-cover-seal{position:absolute;bottom:19px;right:29px;width:29px;height:33px;display:grid;place-items:center;border:1px solid #9b4737;outline:1px solid #9b47374a;outline-offset:2px;transform:rotate(-5deg);font:21px/1 var(--heritage-display,"Kaiti SC",var(--song));color:#9b4737;background:#fff9ef9c;z-index:2}
.login-book .login-card{margin:0 10px 9px 11px;padding:21px 27px 18px;border:0;border-radius:0;background:transparent;box-shadow:none}
.login-book .login-card:before,.login-book .login-card:after{display:none}
.login-book .panel-kicker{font:17px/1.5 var(--heritage-display,"Kaiti SC",var(--song));letter-spacing:.15em;color:#755631;margin-bottom:17px}
.login-book .panel-kicker:before{content:"";display:block;flex:0 0 5px;height:5px;background:#9b4737;transform:rotate(45deg)}
.login-book .panel-kicker:after{height:3px;border-top:1px solid #cdb991;border-bottom:1px solid #e7dbc3;background:none}
.login-book .portal-field{margin-top:14px}.login-book .portal-field>span{font-family:var(--heritage-serif,var(--song));font-size:13px;letter-spacing:.12em;margin-bottom:6px;color:#405e4f}
.login-book .portal-field input{border-radius:1px;background:#fffef9;border-color:#c8bda6;box-shadow:inset 2px 2px 0 #ebe4d43b;min-height:46px;font-size:14px}
.login-book .primary-button{margin-top:22px;min-height:48px;border-radius:1px;background:linear-gradient(120deg,#466951,#365745);border:1px solid #365745;box-shadow:inset 0 0 0 3px #7f967b55,0 3px 0 #e3dac6;font-family:var(--heritage-serif,var(--song))}
.login-book .primary-button:hover{background:#35543f}.login-book .login-footnote{margin-top:15px;font-family:var(--heritage-serif,var(--song));letter-spacing:.18em;color:#5d6e63}
.brand-credit strong{font-family:var(--heritage-display,"Kaiti SC",var(--song));font-weight:500;letter-spacing:.13em;color:#365b47}.brand-credit small{font-family:var(--heritage-serif,var(--song));letter-spacing:.06em}
.is-login .brand-credit{padding-top:27px}.is-login .brand-credit strong{font-size:25px}
@media(max-width:600px){.portal-main.is-login{padding:21px 21px 28px}.login-frontispiece{height:221px}.login-frontispiece .login-intro{left:18px;top:17px}.login-title-slip{gap:8px;margin-top:10px;padding:11px 9px 9px 11px}.login-title-slip h1{font-size:31px}.login-title-slip p{font-size:10px}.login-instrument{width:166px;right:3px;top:29px}.login-cover-seal{right:21px;bottom:16px}.login-book .login-card{padding:21px 20px 16px}.login-book .panel-kicker{margin-bottom:16px}}
@media(max-width:360px){.portal-main.is-login{padding-inline:17px}.login-book{padding-left:15px}.book-binding{width:20px}.login-frontispiece{margin-left:10px;margin-right:8px;height:204px}.login-frontispiece .login-intro{left:12px;top:15px}.login-intro>small{font-size:9px;letter-spacing:.08em}.login-title-slip{gap:7px;padding:10px 8px}.login-title-slip h1{font-size:29px}.login-title-slip p{font-size:9px}.login-instrument{width:134px;right:0;top:35px}.login-cover-seal{width:25px;height:28px;font-size:18px;right:16px;bottom:17px}.login-book .login-card{margin-inline:10px 8px;padding:20px 15px 16px}.login-book .panel-kicker{font-size:16px}.is-login .brand-credit strong{font-size:24px}}

/* 首页为册页：画幅、题头、三种不同的服务封面。 */
.home-main{padding-top:22px}
.hero-carousel{border:1px solid #b79b6d;border-radius:1px;box-shadow:4px 4px 0 #e9e0cd,0 9px 30px #6357330a}
.hero-carousel:before,.hero-carousel:after{content:"";position:absolute;z-index:4;pointer-events:none;width:31px;height:31px;background:var(--heritage-corner) center/contain no-repeat;opacity:.8}
.hero-carousel:before{left:7px;top:7px}.hero-carousel:after{bottom:7px;right:7px;transform:rotate(180deg)}
.hero-copy h2{font-family:var(--heritage-display,"Kaiti SC",var(--song));font-weight:500;letter-spacing:.06em}
.hero-kicker{font-family:var(--heritage-serif,var(--song));color:#78562e}
.hero-copy p{font-family:var(--heritage-serif,var(--song));color:#465f51}
.hero-art-scrim{background:linear-gradient(90deg,#f6f2e9f0,#f6f2e973 43%,transparent 68%)}
.carousel-dot:after{height:3px;background:#c4b595}.carousel-dot[aria-current="true"]:after{background:#9b4737}
.carousel-arrow{border-radius:0;background:#fffaf0cc;color:#755631;border-color:#bea67d}
.announcement{background:#eee8d9;border-block:3px double #cab68e;margin-top:20px;margin-bottom:27px;padding-block:10px}
.announcement-label{font-family:var(--heritage-display,"Kaiti SC",var(--song));font-size:15px;color:#745128}
.announcement-label svg{width:16px;height:16px}
.section-intro{align-items:center;margin-bottom:17px}
.section-intro h2{position:relative;font:500 24px/1.5 var(--heritage-display,"Kaiti SC",var(--song));letter-spacing:.13em;color:#253f3a;padding-left:15px}
.section-intro h2:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:4px;background:#9b4737}
.section-intro small{font-family:var(--heritage-serif,var(--song));color:#5d6e63;letter-spacing:.09em}
.service-list{gap:17px}
.service-card{display:grid;grid-template-columns:76px minmax(0,1fr) 25px;gap:21px;min-height:134px;padding:21px 24px 21px 51px;border:1px solid #bca27a;border-radius:1px;background-color:#fffcf5;background-image:linear-gradient(90deg,#e7ddc73d 0 33px,transparent 33px),var(--heritage-grain);box-shadow:3px 3px 0 #e9dfcb,0 7px 22px #65533106;transition:box-shadow .18s,transform .18s}
.service-card:before{width:auto;height:auto;inset:5px;border:1px solid #d6c5a557;pointer-events:none;z-index:0}
.service-card:after{content:"";position:absolute;right:10px;bottom:10px;width:21px;height:21px;background:var(--heritage-corner) center/contain no-repeat;transform:rotate(180deg);opacity:.6;pointer-events:none}
.service-card>*{position:relative;z-index:1}
.service-card:hover{background-color:#fffcf5;background-image:linear-gradient(90deg,#ded1b93b 0 33px,transparent 33px),var(--heritage-grain);border-color:#94784e;box-shadow:4px 5px 0 #e9dfcb,0 10px 26px #6553310b;transform:translateY(-1px)}
.service-index{position:absolute;left:11px;top:21px;display:grid;place-items:center;width:22px;height:30px;border:1px solid #a8715c;outline:1px solid #9b47371f;outline-offset:2px;color:#9b4737;font:17px/1 var(--heritage-display,"Kaiti SC",var(--song));background:#fffaf0}
.service-art-wrap{width:76px;height:85px;display:grid;place-items:center;position:relative}
.service-art{width:76px;height:76px;flex:none}
.service-copy h3{font:500 27px/1.4 var(--heritage-display,"Kaiti SC",var(--song));letter-spacing:.08em;color:#253f3a}
.service-copy p{font-family:var(--heritage-serif,var(--song));font-size:12px;line-height:1.8;letter-spacing:.03em;margin-top:8px;color:#5d6e63}
.service-arrow{width:23px;height:23px;color:#826035}
.service-card--yunqi .service-art-wrap{border-radius:50%;background:radial-gradient(ellipse at center,#e2e7d589,transparent 68%)}
.service-card--formulas{border-left:4px solid #8b6738;padding-left:48px;background-image:linear-gradient(90deg,#efe5d2 0 30px,#fff8eb 30px 32px,transparent 32px),var(--heritage-grain)}
.service-card--formulas .service-index{left:8px}
.service-card--formulas .service-art-wrap{height:84px;border:1px solid #bda783;background:#f5f0e2;box-shadow:inset 3px 0 #ded0b3,3px 2px 0 #fffaf1,4px 3px 0 #d5c3a0}
.service-card--formulas .service-art{width:69px;height:69px}
.service-card--patients{border-block:3px double #bca27a;background-image:linear-gradient(90deg,#dfe6d52b 0 33px,transparent 33px),var(--heritage-grain)}
.service-card--patients .service-art-wrap{height:75px;border-block:1px solid #b59b70;background:#f3efe2}
.service-card--patients .service-art-wrap:before,.service-card--patients .service-art-wrap:after{content:"";position:absolute;left:-4px;right:-4px;height:6px;border:1px solid #baa47c;background:linear-gradient(0deg,#dfd0b4,#fffaf0,#e0d1b5);box-shadow:0 1px 0 #e7ddc6}
.service-card--patients .service-art-wrap:before{top:-4px}.service-card--patients .service-art-wrap:after{bottom:-4px}
.service-card--patients .service-art{height:68px;width:68px}
.portal-bottom-nav{border-top:3px double #c2ab80;background:#fbf8eff7;box-shadow:0 -5px 18px #665d4408}
.portal-bottom-nav a{font-family:var(--heritage-serif,var(--song))}
.portal-bottom-nav a[aria-current="page"]:before{height:4px;width:4px;left:calc(50% - 2px);top:-8px;background:#9b4737;transform:rotate(45deg)}
.portal-bottom-nav a[aria-current="page"]{color:#365e46}
.home-bottom-note{font-family:var(--heritage-serif,var(--song));color:#5d6e63}

/* 其他入口沿用题笺、册页与卷册，不增加资料内容。 */
.portal-main:not(.is-login):not(.home-main){padding-top:28px}
.page-heading{position:relative;padding:1px 0 20px 23px;border-bottom:3px double #c9b58f;margin-bottom:25px}
.page-heading:before{content:"";position:absolute;left:0;top:5px;bottom:23px;width:7px;border:1px solid #a98a58;background:linear-gradient(90deg,#d8c5a1,#eee2c9)}
.page-heading:after{content:"";position:absolute;right:2px;bottom:12px;width:26px;height:26px;border:1px solid #9b473787;box-shadow:inset 0 0 0 3px #f6f2e9;transform:rotate(-5deg);background:repeating-linear-gradient(90deg,transparent 0 5px,#9b47373d 5px 6px,transparent 6px 10px);opacity:.75}
.page-heading small{font-family:var(--heritage-serif,var(--song));color:#78582f;font-size:11px;letter-spacing:.18em}
.page-heading h1{font:500 35px/1.5 var(--heritage-display,"Kaiti SC",var(--song));color:#253f3a;letter-spacing:.12em;margin:7px 0}
.page-heading p{font-family:var(--heritage-serif,var(--song));font-size:12px;line-height:1.9;color:#5d6e63;padding-right:28px}
.mine-profile,.scope-panel,.announcement-editor,.empty-table-frame,.formula-placeholder{border:1px solid #bca27a;border-radius:1px;background-color:#fffcf5;background-image:linear-gradient(90deg,#e9dfcc45 0 7px,transparent 7px),var(--heritage-grain);box-shadow:3px 3px 0 #e8dfcc,0 7px 22px #65533105}
.mine-profile:before,.scope-panel:before,.announcement-editor:before,.empty-table-frame:before,.formula-placeholder:before{width:24px;height:24px;left:6px;top:6px;border:0;background:var(--heritage-corner) center/contain no-repeat;opacity:.7}
.mine-profile:after,.scope-panel:after,.announcement-editor:after,.empty-table-frame:after,.formula-placeholder:after{width:24px;height:24px;right:6px;bottom:6px;border:0;background:var(--heritage-corner) center/contain no-repeat;transform:rotate(180deg);opacity:.7}
.mine-profile{padding:26px 25px;gap:21px}
.profile-medallion{width:72px;height:78px;border-radius:2px;border:1px solid #b48c62;outline:1px solid #dac6a1;outline-offset:3px;color:#9b4737;background:#fbf5e7;box-shadow:inset 0 0 0 4px #fffcf5,inset 0 0 0 5px #d6bea0;font:34px/1 var(--heritage-display,"Kaiti SC",var(--song));transform:rotate(-2deg)}
.profile-name{font:26px/1.5 var(--heritage-display,"Kaiti SC",var(--song));color:#253f3a}.profile-account{font-family:var(--heritage-serif,var(--song));color:#5d6e63}
.profile-role{font-family:var(--heritage-serif,var(--song))}.profile-role .preview-badge{font-size:9px}
.scope-panel,.announcement-editor{padding:25px;margin-top:21px}
.subheading{font:22px/1.5 var(--heritage-display,"Kaiti SC",var(--song));letter-spacing:.14em;color:#3e5f49;border-bottom:3px double #ddcdad;padding-bottom:10px;margin-bottom:15px}
.scope-title{font-family:var(--heritage-serif,var(--song));font-size:16px;line-height:1.9}.scope-detail,.scope-preview-note,.editor-note{font-family:var(--heritage-serif,var(--song));color:#5d6e63;line-height:1.9}
.announcement-editor .portal-field>span{font-family:var(--heritage-serif,var(--song));font-size:13px;color:#405e4f}
.announcement-editor textarea{background:#fffef9;border-color:#c8bda6;border-radius:1px}
.announcement-editor .primary-button,.compact-button{border-radius:1px;background:#466951;color:#fffdf8;border-color:#365745;box-shadow:inset 0 0 0 3px #8aa08338;font-family:var(--heritage-serif,var(--song))}
.announcement-editor .primary-button:hover,.compact-button:hover{background:#35543f}
.logout-button{border-radius:1px;font-family:var(--heritage-serif,var(--song));background:#eee6d9;border-color:#cbb593;color:#7a513b;min-height:47px}
.patients-topline{gap:20px;margin-bottom:21px}.patients-topline small{font-family:var(--heritage-serif,var(--song));color:#5d6e63;line-height:1.9}
.empty-table-frame{padding:28px 23px 22px}
.empty-table td{padding:46px 10px;border-block:3px double #dfcfad;background:repeating-linear-gradient(0deg,transparent 0 36px,#d9c9a51f 36px 37px)}
.empty-emblem{width:65px;height:65px;opacity:.85;color:#6b7d5d;margin-bottom:19px}
.empty-title{font:24px/1.5 var(--heritage-display,"Kaiti SC",var(--song));color:#3e5f49}.empty-description,.empty-table-note{font-family:var(--heritage-serif,var(--song));color:#5d6e63}.empty-table-note{margin-top:18px}
.formula-list{gap:19px}.formulas-main .formula-placeholder{position:relative;min-height:132px;padding:23px 23px 23px 33px;gap:23px;border-left:4px solid #8f754d;background-image:linear-gradient(90deg,#daccb03b 0 12px,transparent 12px),var(--heritage-grain);box-shadow:3px 3px 0 #fff9ec,4px 4px 0 #d5c3a0,7px 6px 0 #ede4d3}
.formulas-main .formula-placeholder:before{left:15px;top:8px;width:20px;height:20px}
.formulas-main .formula-card-art{width:74px;height:74px;flex-basis:74px;background:#f4eedf;border:1px solid #cfbd9b;border-radius:1px}
.formulas-main .formula-placeholder h2{font:500 26px/1.5 var(--heritage-display,"Kaiti SC",var(--song));letter-spacing:.1em;color:#253f3a}
.formulas-main .formula-placeholder p{font-family:var(--heritage-serif,var(--song));font-size:12px;color:#5d6e63;line-height:1.9}
.formulas-main .formula-status{writing-mode:vertical-rl;margin-left:auto;padding:8px 5px;border:1px solid #baa27d;background:#f7f0e0;font:11px/1.4 var(--heritage-serif,var(--song));letter-spacing:.15em;color:#6b654c}
@media(min-width:800px){.home-main{padding-top:26px}.hero-carousel{height:300px}.hero-copy h2{font-size:41px}.service-card{min-height:140px}.service-copy h3{font-size:29px}.service-copy p{font-size:13px}}
@media(max-width:600px){.home-main{padding-top:19px}.hero-carousel{height:207px}.hero-slide{padding:24px 21px 43px}.hero-copy h2{font-size:26px}.hero-kicker{font-size:9px;letter-spacing:.04em}.hero-copy p{font-size:11px;line-height:1.9}.hero-copy{max-width:56%}.hero-carousel:before,.hero-carousel:after{width:25px;height:25px}.announcement{margin-top:18px;margin-bottom:24px;min-height:49px}.section-intro h2{font-size:23px}.section-intro small{font-size:10px;letter-spacing:0}.service-card{grid-template-columns:65px minmax(0,1fr) 20px;gap:15px;padding:19px 17px 19px 44px;min-height:124px}.service-index{left:10px;top:19px;width:20px;height:27px;font-size:16px}.service-art-wrap{width:65px;height:77px}.service-art{width:65px;height:65px}.service-copy h3{font-size:25px}.service-copy p{font-size:11px;letter-spacing:0;margin-top:7px}.service-card--formulas{padding-left:41px}.service-card--formulas .service-index{left:7px}.service-card--formulas .service-art-wrap{height:76px}.service-card--formulas .service-art{width:59px;height:59px}.service-card--patients .service-art-wrap{height:67px}.service-card--patients .service-art{height:59px;width:59px}.service-arrow{width:20px;height:20px}.page-heading h1{font-size:32px}.mine-profile{padding:24px 21px;gap:20px}.profile-medallion{width:64px;height:70px;font-size:31px}.profile-name{font-size:25px}.scope-panel,.announcement-editor{padding:24px 22px}.subheading{font-size:21px}.scope-title{font-size:15px}.empty-table-frame{padding:26px 20px 21px}.empty-title{font-size:23px}.formulas-main .formula-placeholder{min-height:121px;padding:20px 16px 20px 29px;gap:17px}.formulas-main .formula-card-art{width:61px;height:61px;flex-basis:61px}.formulas-main .formula-placeholder h2{font-size:24px}.formulas-main .formula-placeholder p{font-size:11px}.formulas-main .formula-status{font-size:10px;padding:7px 4px}}
@media(max-width:360px){.home-main{padding-inline:15px}.hero-carousel{height:195px}.hero-slide{padding:22px 17px 42px}.hero-copy h2{font-size:23px}.hero-kicker{font-size:8px}.hero-copy p{font-size:10px}.carousel-controls{left:18px;right:18px}.section-intro h2{font-size:21px}.section-intro small{font-size:9px}.service-card{grid-template-columns:53px minmax(0,1fr) 16px;gap:10px;padding:17px 12px 17px 36px;min-height:114px;background-size:auto}.service-index{left:8px;top:17px;width:18px;height:25px;font-size:14px}.service-art-wrap{width:53px;height:68px}.service-art{width:53px;height:53px}.service-copy h3{font-size:23px}.service-copy p{font-size:10px;line-height:1.9;margin-top:6px}.service-arrow{width:16px;height:16px}.service-card--formulas{padding-left:33px}.service-card--formulas .service-index{left:5px}.service-card--formulas .service-art-wrap{height:64px}.service-card--formulas .service-art{width:49px;height:49px}.service-card--patients .service-art-wrap{height:57px}.service-card--patients .service-art{width:49px;height:49px}.page-heading{padding-left:20px}.page-heading h1{font-size:30px}.page-heading p{font-size:11px}.mine-profile{padding:23px 18px;gap:17px}.profile-medallion{width:56px;height:64px;font-size:28px}.profile-name{font-size:23px}.profile-role{gap:6px}.scope-panel,.announcement-editor{padding:23px 19px}.scope-title{font-size:14px}.subheading{font-size:20px}.editor-actions{flex-direction:column;gap:6px;align-items:stretch}.editor-actions .primary-button{width:100%;flex:auto}.empty-table-frame{padding:24px 17px 19px}.empty-title{font-size:21px}.empty-description,.empty-table-note{font-size:10px}.patients-topline{gap:12px}.compact-button{padding:8px 10px;font-size:12px;gap:5px}.formulas-main .formula-placeholder{padding-left:25px;padding-right:14px;gap:13px}.formulas-main .formula-card-art{width:54px;height:54px;flex-basis:54px}.formulas-main .formula-placeholder h2{font-size:23px}.formulas-main .formula-placeholder p{font-size:10px}.formulas-main .formula-status{display:none}}

/* 写实药馆登录：背景承担真实材质，品牌与表单均为可访问HTML。 */
body[data-portal-view="login"]{min-height:100svh;background:#70654c;color:#24351f}
body[data-portal-view="login"] .realistic-login-stage{position:relative;isolation:isolate;min-height:100svh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#70654c}
body[data-portal-view="login"] .realistic-login-stage:before{content:"";position:absolute;inset:-26px;background:linear-gradient(#2e342d45,#4d422750),url('/realistic-login-v1.jpg') center/cover no-repeat;filter:blur(22px) brightness(.78);z-index:-1}
body[data-portal-view="login"] .realistic-login-scene{position:relative;isolation:isolate;width:min(100%,calc(100svh * .473),460px);height:100svh;min-height:710px;flex-shrink:0;color:#23391f;box-shadow:0 0 65px #1e261924}
body[data-portal-view="login"] .realistic-login-background{position:absolute;inset:0;background:#ede3c9 url('/realistic-login-v1.jpg') center/cover no-repeat;z-index:-1}
body[data-portal-view="login"] .realistic-login-brand{position:absolute;top:25.2%;left:12%;right:9%;text-align:center;font:600 clamp(20px,5.8vw,25px)/1.45 var(--heritage-serif,var(--song));letter-spacing:.1em;color:#243d22;text-shadow:0 1px 0 #fff9e17a}
body[data-portal-view="login"] .realistic-login-divider{position:absolute;top:29.6%;left:32%;right:28%;display:flex;align-items:center;justify-content:center;gap:10px;color:#617747}
body[data-portal-view="login"] .realistic-login-divider span{height:1px;flex:1;background:#68754c9c}
body[data-portal-view="login"] .realistic-login-divider svg{width:25px;height:16px;flex:none}
body[data-portal-view="login"] .realistic-login-title{position:absolute;top:34.6%;left:10%;right:6%;margin:0;text-align:center;font:600 clamp(44px,14vw,62px)/1.25 var(--heritage-display,"Kaiti SC","STKaiti",var(--song));letter-spacing:.08em;color:#20371d;text-shadow:0 1px 0 #fff8dd73;white-space:nowrap}
body[data-portal-view="login"] .realistic-login-subtitle{position:absolute;top:43.4%;left:12%;right:8%;text-align:center;font:500 clamp(16px,4.75vw,21px)/1.6 var(--heritage-serif,var(--song));letter-spacing:.12em;color:#49523a;text-shadow:0 1px 0 #fff6de82}
body[data-portal-view="login"] .realistic-login-form{position:absolute;top:49.4%;left:13.8%;right:10%;margin:0;padding:0;border:0;background:none;box-shadow:none}
body[data-portal-view="login"] .realistic-login-field{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;margin:0 0 23px}
body[data-portal-view="login"] .realistic-login-field>span{white-space:nowrap;font:600 19px/1.4 var(--heritage-serif,var(--song));letter-spacing:.06em;color:#243b22;text-shadow:0 1px 0 #fff8df7a}
body[data-portal-view="login"] .realistic-login-field input{display:block;min-width:0;width:100%;height:42px;padding:8px 13px;border:1px solid #7e8064;border-radius:8px;background:#fffdf2d9;color:#263b28;font:16px/1.5 var(--heritage-serif,var(--song));letter-spacing:.04em;box-shadow:inset 0 1px 4px #8e7b3f0b;outline-offset:3px}
body[data-portal-view="login"] .realistic-login-field input::placeholder{color:#5a6550;opacity:1}
body[data-portal-view="login"] .realistic-login-field input:focus{background:#fffdf5;outline:2px solid #446344;border-color:#365735}
body[data-portal-view="login"] .realistic-login-submit{display:flex;align-items:center;justify-content:center;width:100%;height:51px;padding:6px 8px;margin-top:35px;border:1px solid #293f25;border-radius:10px;background:#30492b;color:#fffdf1;font:500 clamp(24px,6.7vw,29px)/1.5 var(--heritage-serif,var(--song));letter-spacing:.08em;box-shadow:inset 0 1px 0 #ffffff13,0 3px 8px #4e522216;cursor:pointer}
body[data-portal-view="login"] .realistic-login-submit:hover{background:#233c23}
body[data-portal-view="login"] .realistic-login-submit:focus-visible{outline:2px solid #29482b;outline-offset:4px}
body[data-portal-view="login"] .realistic-login-form .login-error{position:absolute;top:110px;left:0;right:0;margin:0;padding:3px 8px;min-height:21px;border:0;border-radius:2px;background:#fffaf0f0;color:#963d2c;font:11px/1.6 var(--sans);text-align:center}
body[data-portal-view="login"] .realistic-login-form .login-error[hidden]{display:none}
body[data-portal-view="login"] .realistic-login-motto{position:absolute;top:75.8%;left:22%;right:18%;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;font:600 clamp(14px,4.4vw,19px)/1.6 var(--heritage-serif,var(--song));letter-spacing:.08em;color:#334a29;white-space:nowrap;text-shadow:0 1px 0 #fff8dd7a}
body[data-portal-view="login"] .realistic-login-motto span{height:1px;background:#6b76519c;flex:1;min-width:20px}
@media(max-width:360px){body[data-portal-view="login"] .realistic-login-brand{font-size:20px;letter-spacing:.06em}body[data-portal-view="login"] .realistic-login-title{font-size:45px;letter-spacing:.04em}body[data-portal-view="login"] .realistic-login-subtitle{font-size:16px;letter-spacing:.08em}body[data-portal-view="login"] .realistic-login-form{left:12%;right:9%}body[data-portal-view="login"] .realistic-login-field{grid-template-columns:36px minmax(0,1fr);gap:8px}body[data-portal-view="login"] .realistic-login-field>span{font-size:17px}body[data-portal-view="login"] .realistic-login-field input{height:42px;padding-inline:11px;font-size:16px}body[data-portal-view="login"] .realistic-login-submit{font-size:24px}body[data-portal-view="login"] .realistic-login-motto{left:20%;right:15%;gap:8px;font-size:15px}}
@media(min-width:700px){body[data-portal-view="login"] .realistic-login-brand{font-size:25px}body[data-portal-view="login"] .realistic-login-title{font-size:59px}body[data-portal-view="login"] .realistic-login-subtitle{font-size:20px}body[data-portal-view="login"] .realistic-login-form{top:49.8%}body[data-portal-view="login"] .realistic-login-field{margin-bottom:26px}body[data-portal-view="login"] .realistic-login-field input{height:45px;font-size:16px}body[data-portal-view="login"] .realistic-login-field>span{font-size:20px}body[data-portal-view="login"] .realistic-login-submit{margin-top:40px;height:54px;font-size:29px}body[data-portal-view="login"] .realistic-login-form .login-error{top:121px}}

/* 公告纸笺的正文略加深，保持手机小字的对比度。 */
.announcement-window,.announcement-track span{color:#536658}

/* 登录题字与控件精修：墨褐、古铜与深绿各有主次，场景图保持原样。 */
body[data-portal-view="login"] .realistic-login-brand{color:#53412e;font-weight:500;font-size:22px;letter-spacing:.17em;text-shadow:0 1px 0 #fff9e139}
body[data-portal-view="login"] .realistic-login-divider{color:#8c7957}
body[data-portal-view="login"] .realistic-login-divider span{background:#89734f73}
body[data-portal-view="login"] .realistic-login-title{color:#493622;text-shadow:none;font-weight:500}
body[data-portal-view="login"] .realistic-login-subtitle{color:#75552f;font-weight:400;font-size:18px;letter-spacing:.14em;text-shadow:0 1px 0 #fff8e134}
body[data-portal-view="login"] .realistic-login-field{grid-template-columns:52px minmax(0,1fr);gap:10px}
body[data-portal-view="login"] .realistic-login-field>.realistic-login-label{display:flex;align-items:center;justify-content:flex-start;gap:5px;font:400 15px/1.5 var(--sans);letter-spacing:.02em;color:#615345;text-shadow:none}
body[data-portal-view="login"] .realistic-login-label svg{width:14px;height:16px;flex:none;color:#85714e;opacity:.88}
body[data-portal-view="login"] .realistic-login-label>span{display:block;white-space:nowrap}
body[data-portal-view="login"] .realistic-login-field input{border:1px solid #9e8763;border-radius:6px;background:#fffdf5df;color:#423d35;font:400 16px/1.5 var(--sans);letter-spacing:.025em;padding-inline:13px;box-shadow:inset 0 1px 4px #6c52270b,0 1px 0 #fffdf633}
body[data-portal-view="login"] .realistic-login-field input::placeholder{color:#776f60;opacity:1}
body[data-portal-view="login"] .realistic-login-field input:focus{background:#fffdf6;border-color:#927a54;outline:2px solid #8b765242;outline-offset:2px}
body[data-portal-view="login"] .realistic-login-submit{position:relative;background:#344a31;border-color:#34452d;border-radius:7px;font:400 21px/1.4 var(--sans);letter-spacing:.14em;color:#fffdf3;box-shadow:inset 0 1px 0 #ffffff0d,0 3px 8px #4e522212}
body[data-portal-view="login"] .realistic-login-submit svg{position:absolute;right:20px;top:calc(50% - 9px);height:18px;width:20px;stroke-width:1.1;opacity:.85}
body[data-portal-view="login"] .realistic-login-submit:hover{background:#293e29}
body[data-portal-view="login"] .realistic-login-motto{color:#6d5840;font:400 16px/1.6 var(--heritage-serif,var(--song));letter-spacing:.11em;text-shadow:none}
body[data-portal-view="login"] .realistic-login-motto span{background:#927c587a}
@media(max-width:360px){body[data-portal-view="login"] .realistic-login-brand{font-size:19px;letter-spacing:.13em}body[data-portal-view="login"] .realistic-login-subtitle{font-size:15px;letter-spacing:.1em}body[data-portal-view="login"] .realistic-login-field{grid-template-columns:49px minmax(0,1fr);gap:8px}body[data-portal-view="login"] .realistic-login-field>.realistic-login-label{font-size:14px;gap:4px}body[data-portal-view="login"] .realistic-login-label svg{width:13px;height:15px}body[data-portal-view="login"] .realistic-login-field input{font-size:16px;padding-inline:11px}body[data-portal-view="login"] .realistic-login-submit{font-size:20px}body[data-portal-view="login"] .realistic-login-submit svg{right:16px;width:18px}body[data-portal-view="login"] .realistic-login-motto{font-size:14px;letter-spacing:.08em}}
@media(min-width:700px){body[data-portal-view="login"] .realistic-login-brand{font-size:23px}body[data-portal-view="login"] .realistic-login-subtitle{font-size:19px}body[data-portal-view="login"] .realistic-login-submit{font-size:22px}body[data-portal-view="login"] .realistic-login-motto{font-size:17px}}

/* 茶馆参考稿：实景与白色操作区，限登录和首页。 */
body[data-portal-view="login"],body[data-portal-view="home"]{background:#edeeea;color:#252925;font-family:var(--sans)}
body[data-portal-view="login"] .tea-app-page,body[data-portal-view="home"] .tea-app-page{width:100%;max-width:520px;min-height:100svh;margin:auto;background:#fff;box-shadow:0 0 50px #14231c08}
body[data-portal-view="login"] .tea-photo-hero,body[data-portal-view="home"] .tea-photo-hero{position:relative;isolation:isolate;height:55svh;min-height:320px;max-height:620px;overflow:hidden;background:#6d6b5c}
body[data-portal-view="home"] .tea-photo-hero{height:58svh}
body[data-portal-view="login"] .tea-photo-background,body[data-portal-view="home"] .tea-photo-background{position:absolute;inset:0;z-index:-2;background:#6d6b5c url('/apothecary-hero-v1.jpg') center/cover no-repeat}
body[data-portal-view="login"] .tea-hero-shade,body[data-portal-view="home"] .tea-hero-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#101b1321,#17231826 65%,#111d172e)}
body[data-portal-view="login"] .tea-hero-brand,body[data-portal-view="home"] .tea-hero-brand{position:absolute;left:5%;right:5%;top:49%;transform:translateY(-50%);text-align:center;color:#fffdf7}
body[data-portal-view="login"] .tea-brand,body[data-portal-view="home"] .tea-brand{position:relative;width:286px;max-width:90%;height:92px;margin:0 auto 15px;font:500 52px/92px "Kaiti SC","STKaiti",var(--song);letter-spacing:.08em;white-space:nowrap}
body[data-portal-view="login"] .tea-brand-fallback,body[data-portal-view="home"] .tea-brand-fallback{display:block;text-shadow:0 2px 13px #18211732;transition:opacity .15s}
body[data-portal-view="login"] .tea-brand-image,body[data-portal-view="home"] .tea-brand-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;opacity:0}
body[data-portal-view="login"] .tea-brand.is-brand-ready .tea-brand-image,body[data-portal-view="home"] .tea-brand.is-brand-ready .tea-brand-image{opacity:1}
body[data-portal-view="login"] .tea-brand.is-brand-ready .tea-brand-fallback,body[data-portal-view="home"] .tea-brand.is-brand-ready .tea-brand-fallback{opacity:0}
body[data-portal-view="login"] .tea-project-name,body[data-portal-view="home"] .tea-project-name{font:400 14px/1.6 var(--sans);letter-spacing:.24em;color:#fffdf7;text-shadow:0 1px 7px #13201652}
body[data-portal-view="login"] .tea-platform-name,body[data-portal-view="home"] .tea-platform-name{margin-top:9px;font:400 10px/1.6 var(--sans);letter-spacing:.1em;color:#fffdf2e8;text-shadow:0 1px 7px #13201652}
body[data-portal-view="login"] .tea-white-panel,body[data-portal-view="home"] .tea-white-panel{position:relative;z-index:2;margin-top:-22px;border:0;border-radius:23px 23px 0 0;background:#fff;padding:26px}
body[data-portal-view="login"] .tea-login-panel{padding:25px 30px 48px}
body[data-portal-view="login"] .tea-login-form{margin:0;padding:0;border:0;background:none;box-shadow:none}
body[data-portal-view="login"] .tea-input-row{display:flex;align-items:center;gap:15px;height:58px;border-bottom:1px solid #e4e6df;margin:0 0 9px;position:relative}
body[data-portal-view="login"] .tea-input-row>svg{width:20px;height:22px;flex:none;color:#626b60;margin-left:3px}
body[data-portal-view="login"] .tea-input-row input{width:100%;min-width:0;height:52px;padding:10px 0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:#252925;font:400 16px/1.5 var(--sans);letter-spacing:.02em}
body[data-portal-view="login"] .tea-input-row input::placeholder{color:#7a8177;opacity:1}
body[data-portal-view="login"] .tea-input-row:focus-within{border-bottom-color:#53634e}
body[data-portal-view="login"] .tea-input-row:focus-within>svg{color:#252f25}
body[data-portal-view="login"] .tea-login-submit{position:relative;display:flex;align-items:center;justify-content:center;min-height:50px;width:100%;margin-top:26px;padding:12px 45px;border:1px solid #252d26;border-radius:7px;background:#252d26;box-shadow:none;color:#fff;font:400 16px/1.5 var(--sans);letter-spacing:.14em}
body[data-portal-view="login"] .tea-login-submit svg{position:absolute;right:20px;top:calc(50% - 9px);width:19px;height:18px;stroke-width:1.2;opacity:.85}
body[data-portal-view="login"] .tea-login-submit:hover{background:#18231c}
body[data-portal-view="login"] .tea-login-submit:focus-visible{outline:2px solid #535e4e;outline-offset:4px}
body[data-portal-view="login"] .tea-login-form .login-error{position:static;margin:10px 0 0;padding:6px 9px;border:0;border-radius:3px;background:#faf3ee;color:#943e30;font:12px/1.6 var(--sans);text-align:left}
body[data-portal-view="login"] .tea-login-form .login-error[hidden]{display:none}
body[data-portal-view="home"] .tea-home-main{padding-bottom:100px}
body[data-portal-view="home"] .tea-home-panel{padding:29px 23px 30px}
body[data-portal-view="home"] .tea-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
body[data-portal-view="home"] .tea-service-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;min-height:114px;padding:16px 5px;background:#fff;border-radius:10px;box-shadow:0 4px 25px #27332908;color:#242e26;text-align:center;transition:background .15s}
body[data-portal-view="home"] .tea-service-tile:hover{background:#f5f7f2}
body[data-portal-view="home"] .tea-service-tile>svg{width:35px;height:35px;flex:none;color:#252d26}
body[data-portal-view="home"] .tea-service-tile>span{font:400 13px/1.5 var(--sans);letter-spacing:.025em;white-space:nowrap}
body[data-portal-view="home"] .tea-announcement{min-height:42px;margin:25px 1px 0;padding:9px 0;border:0;background:transparent;gap:11px}
body[data-portal-view="home"] .tea-announcement .announcement-label{display:flex;gap:5px;font:400 11px/1.5 var(--sans);letter-spacing:0;color:#525e51}
body[data-portal-view="home"] .tea-announcement .announcement-label svg{width:14px;height:14px}
body[data-portal-view="home"] .tea-announcement .announcement-window,body[data-portal-view="home"] .tea-announcement .announcement-track span{font:400 11px/1.6 var(--sans);color:#6d7769}
body[data-portal-view="home"] .portal-bottom-nav{max-width:520px;min-height:70px;border:0;border-top:1px solid #f1f2ed;background:#fffffff5;box-shadow:0 -4px 18px #27332904}
body[data-portal-view="home"] .portal-bottom-nav a{font:400 13px/1.5 var(--sans);letter-spacing:.025em;color:#81897b;background:none}
body[data-portal-view="home"] .portal-bottom-nav a[aria-current="page"]{color:#202b22;background:none}
body[data-portal-view="home"] .portal-bottom-nav a:before{display:none}
body[data-portal-view="home"] .portal-bottom-nav svg{width:21px;height:21px;stroke-width:1.3}
@media(max-width:360px){body[data-portal-view="login"] .tea-brand,body[data-portal-view="home"] .tea-brand{height:83px;line-height:83px;font-size:46px;max-width:92%;margin-bottom:13px}body[data-portal-view="login"] .tea-project-name,body[data-portal-view="home"] .tea-project-name{font-size:13px}body[data-portal-view="login"] .tea-platform-name,body[data-portal-view="home"] .tea-platform-name{font-size:9px}body[data-portal-view="login"] .tea-login-panel{padding-inline:25px}body[data-portal-view="home"] .tea-home-panel{padding-inline:17px}body[data-portal-view="home"] .tea-services{gap:8px}body[data-portal-view="home"] .tea-service-tile{gap:14px;min-height:108px}body[data-portal-view="home"] .tea-service-tile>svg{width:33px;height:33px}body[data-portal-view="home"] .tea-service-tile>span{font-size:12px}body[data-portal-view="home"] .tea-announcement{gap:8px}}

/* 白色品牌题字按实际3:1画幅显示，不再放大成大段标题。 */
body[data-portal-view="login"] .tea-brand,body[data-portal-view="home"] .tea-brand{width:205px;height:68px;max-width:85%;margin-bottom:18px;font-size:44px;line-height:68px;letter-spacing:.04em}
body[data-portal-view="login"] .tea-input-row input::placeholder{color:#6c7268}
body[data-portal-view="home"] .portal-bottom-nav a{color:#6c7468}
@media(max-width:360px){body[data-portal-view="login"] .tea-brand,body[data-portal-view="home"] .tea-brand{width:190px;height:63px;margin-bottom:17px;font-size:41px;line-height:63px}}

/* 两幅实景主题：保留药馆与茶饮照片，下部为轻简操作区。 */
body[data-portal-view="login"] .tea-photo-hero{height:66.7svh;min-height:320px;max-height:none}
body[data-portal-view="login"] .tea-theme-carousel,body[data-portal-view="home"] .tea-theme-carousel{touch-action:pan-y}
body[data-portal-view="login"] .tea-theme-track,body[data-portal-view="home"] .tea-theme-track{display:flex;position:absolute;inset:0;transition:transform .35s ease}
body[data-portal-view="login"] .tea-theme-slide,body[data-portal-view="home"] .tea-theme-slide{position:relative;isolation:isolate;flex:0 0 100%;min-width:0;overflow:hidden}
body[data-portal-view="login"] .tea-theme-slide .tea-photo-background,body[data-portal-view="home"] .tea-theme-slide .tea-photo-background{z-index:-2}
/* 从照片底部取景，短屏也保留茶杯与桌面。 */
body[data-portal-view="login"] .tea-theme-slide--yunqi .tea-photo-background,body[data-portal-view="home"] .tea-theme-slide--yunqi .tea-photo-background{background-position:center bottom}
body[data-portal-view="login"] .tea-theme-slide .tea-hero-shade,body[data-portal-view="home"] .tea-theme-slide .tea-hero-shade{z-index:-1;background:linear-gradient(180deg,#0b18131a,#14211824 70%,#1421184a)}
body[data-portal-view="login"] .tea-theme-slide--materia .tea-hero-shade,body[data-portal-view="home"] .tea-theme-slide--materia .tea-hero-shade{background:linear-gradient(180deg,#19231b4d 0%,#17231b70 35%,#14211812 58%,#14211816 83%,#14211845 100%)}
body[data-portal-view="login"] .tea-hero-brand,body[data-portal-view="home"] .tea-hero-brand{top:12%;transform:none;pointer-events:none}
body[data-portal-view="login"] .tea-brand,body[data-portal-view="home"] .tea-brand{margin-bottom:11px}
body[data-portal-view="login"] .tea-platform-name,body[data-portal-view="home"] .tea-platform-name{margin-top:6px}
body[data-portal-view="login"] .tea-theme-title,body[data-portal-view="home"] .tea-theme-title{position:absolute;left:25px;right:auto;bottom:38px;font:400 16px/1.6 var(--sans);letter-spacing:.18em;text-align:left;color:#fffdf7;text-shadow:0 1px 9px #12201858}
body[data-portal-view="login"] .tea-theme-dots,body[data-portal-view="home"] .tea-theme-dots{position:absolute;left:auto;right:17px;bottom:24px;display:flex;align-items:center;justify-content:center;gap:0;z-index:3}
body[data-portal-view="login"] .tea-theme-dot,body[data-portal-view="home"] .tea-theme-dot{position:relative;display:block;width:44px;height:44px;border:0;background:transparent;padding:0;color:#fff;cursor:pointer}
body[data-portal-view="login"] .tea-theme-dot:after,body[data-portal-view="home"] .tea-theme-dot:after{content:"";position:absolute;left:19px;top:19px;width:6px;height:6px;border:1px solid #fffdf7b3;border-radius:50%;background:transparent}
body[data-portal-view="login"] .tea-theme-dot[aria-current="true"]:after,body[data-portal-view="home"] .tea-theme-dot[aria-current="true"]:after{background:#fffdf7;border-color:#fffdf7}
body[data-portal-view="login"] .tea-theme-dot:focus-visible,body[data-portal-view="home"] .tea-theme-dot:focus-visible{outline:1px solid #fff9e9;outline-offset:-7px;border-radius:50%}
body[data-portal-view="login"] .tea-login-panel{min-height:calc(33.3svh + 22px);padding:19px 30px 27px}
body[data-portal-view="login"] .tea-login-panel .tea-input-row{height:46px;margin-bottom:4px}
body[data-portal-view="login"] .tea-login-panel .tea-input-row input{height:44px;font-size:16px}
body[data-portal-view="login"] .tea-login-panel .tea-login-submit{min-height:46px;margin-top:18px;padding-block:10px}
body[data-portal-view="login"] .tea-login-panel .login-error{margin-top:7px;padding-block:4px}
@media(max-width:360px){body[data-portal-view="login"] .tea-login-panel{padding-inline:25px}body[data-portal-view="login"] .tea-theme-title,body[data-portal-view="home"] .tea-theme-title{font-size:15px}}
@media(max-height:700px){body[data-portal-view="login"] .tea-hero-brand,body[data-portal-view="home"] .tea-hero-brand{top:8%}body[data-portal-view="login"] .tea-brand,body[data-portal-view="home"] .tea-brand{width:174px;height:58px;margin-bottom:7px}body[data-portal-view="login"] .tea-project-name,body[data-portal-view="home"] .tea-project-name{font-size:12px}body[data-portal-view="login"] .tea-platform-name,body[data-portal-view="home"] .tea-platform-name{font-size:9px;margin-top:4px}body[data-portal-view="login"] .tea-theme-title,body[data-portal-view="home"] .tea-theme-title{font-size:14px}}
@media(prefers-reduced-motion:reduce){body[data-portal-view="login"] .tea-theme-track,body[data-portal-view="home"] .tea-theme-track{transition:none}}

/* 首页独立三主题，与登录的双主题场景分开；不影响登录样式。 */
body[data-portal-view="home"] .home-photo-carousel{position:relative;isolation:isolate;height:67svh;min-height:360px;max-height:760px;overflow:hidden;background:#6d705f;touch-action:pan-y}
body[data-portal-view="home"] .home-photo-carousel:focus-visible{outline:2px solid #fffdf4;outline-offset:-4px}
body[data-portal-view="home"] .home-photo-track{display:flex;position:absolute;inset:0;transition:transform .35s ease}
body[data-portal-view="home"] .home-photo-slide{position:relative;isolation:isolate;flex:0 0 100%;min-width:0;overflow:hidden}
body[data-portal-view="home"] .home-slide-photo{position:absolute;inset:0;background-color:#6d705f;background-position:right bottom;background-size:cover;z-index:-2}
body[data-portal-view="home"] .home-slide-shade{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 96% 0%,#1e291b86 0%,#1e291b22 32%,transparent 56%)}
body[data-portal-view="home"] .home-brandbar{position:absolute;top:18px;right:19px;width:124px;display:flex;align-items:center;flex-direction:column;gap:0;pointer-events:none;color:#fffdf6}
body[data-portal-view="home"] .home-brand{position:relative;flex:none;width:124px;height:41px;margin:0;text-align:center;font:400 28px/41px "Kaiti SC","STKaiti",var(--song);letter-spacing:.02em;white-space:nowrap}
body[data-portal-view="home"] .home-brand-fallback{display:block;text-shadow:0 1px 7px #101b1345}
body[data-portal-view="home"] .home-brand-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;filter:brightness(0) invert(1);opacity:0}
body[data-portal-view="home"] .home-brand.is-brand-ready .home-brand-image{opacity:1}
body[data-portal-view="home"] .home-brand.is-brand-ready .home-brand-fallback{opacity:0}
body[data-portal-view="home"] .home-project-name{font:400 10px/1.6 var(--sans);letter-spacing:.06em;color:#fffdf4;text-shadow:0 1px 7px #101b1352}
body[data-portal-view="home"] .home-slide-copy{position:absolute;left:26px;right:145px;top:24px;color:#293c2c}
body[data-portal-view="home"] .home-slide-copy h2{font:400 28px/1.4 "Kaiti SC","STKaiti",var(--song);letter-spacing:.1em;color:#293c2c;text-shadow:0 1px 0 #fff9e938}
body[data-portal-view="home"] .home-slide-copy p{font:400 11px/1.7 var(--sans);letter-spacing:0;margin-top:5px;color:#46523d;text-shadow:0 1px 0 #fff9e91f;white-space:nowrap}
body[data-portal-view="home"] .home-photo-dots{position:absolute;right:12px;bottom:56px;display:flex;align-items:center;gap:0;z-index:3}
body[data-portal-view="home"] .home-photo-dot{position:relative;display:block;width:44px;height:44px;padding:0;border:0;background:transparent;cursor:pointer}
body[data-portal-view="home"] .home-photo-dot:after{content:"";position:absolute;left:19px;top:19px;width:6px;height:6px;border:1px solid #fffdf5b3;border-radius:50%;background:transparent}
body[data-portal-view="home"] .home-photo-dot[aria-current="true"]:after{background:#fffdf5;border-color:#fffdf5}
body[data-portal-view="home"] .home-photo-dot:focus-visible{outline:1px solid #fffdf5;outline-offset:-7px;border-radius:50%}
body[data-portal-view="home"] .home-content-panel{position:relative;z-index:2;margin-top:-46px;padding:0 18px 26px;border:0;border-radius:0;background:transparent}
body[data-portal-view="home"] .home-announcement{display:flex;align-items:center;min-height:38px;margin:18px 3px 0;padding:7px 0;border:0;background:transparent;gap:10px}
body[data-portal-view="home"] .home-announcement .announcement-label{display:flex;gap:5px;font:400 11px/1.5 var(--sans);letter-spacing:0;color:#525e51}
body[data-portal-view="home"] .home-announcement .announcement-label svg{width:14px;height:14px}
body[data-portal-view="home"] .home-announcement .announcement-window,body[data-portal-view="home"] .home-announcement .announcement-track span{font:400 11px/1.6 var(--sans);color:#687263}
body[data-portal-view="home"] .home-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
body[data-portal-view="home"] .home-category{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:132px;padding:16px 5px;border:0;border-radius:12px;background:#fff;box-shadow:0 4px 20px #2733290a;color:#29372e;text-align:center;transition:background .18s ease,transform .18s ease}
body[data-portal-view="home"] .home-category:hover{background:#fafbf8;transform:translateY(-2px)}
body[data-portal-view="home"] .home-category:active{transform:scale(.97)}
body[data-portal-view="home"] .home-category:focus-visible{outline:1px solid #71856a;outline-offset:2px;border-radius:6px}
body[data-portal-view="home"] .home-category>svg{width:48px;height:48px;flex:none;color:#29372e}
body[data-portal-view="home"] .home-category-label{display:flex;align-items:center;justify-content:center;min-height:25px;width:100%;font:400 14px/20px var(--sans);letter-spacing:0;color:#252d26;white-space:nowrap}
@media(max-width:360px){body[data-portal-view="home"] .home-brandbar{top:17px;right:17px;width:112px}body[data-portal-view="home"] .home-brand{width:112px;height:37px;font-size:25px;line-height:37px}body[data-portal-view="home"] .home-project-name{font-size:9px}body[data-portal-view="home"] .home-slide-copy{left:22px;right:125px;top:22px}body[data-portal-view="home"] .home-slide-copy h2{font-size:26px}body[data-portal-view="home"] .home-slide-copy p{font-size:10px;letter-spacing:0}body[data-portal-view="home"] .home-content-panel{padding-inline:15px}body[data-portal-view="home"] .home-categories{gap:8px}body[data-portal-view="home"] .home-category-label{font-size:13px}body[data-portal-view="home"] .home-announcement{gap:8px}}
body[data-portal-view="home"] .tea-home-main{background:#f6f7f3}
body[data-portal-view="home"] .home-photo-slide:nth-child(n+2) .home-slide-photo{background-position:right bottom}
body[data-portal-view="home"] .home-photo-slide:nth-child(2) .home-slide-photo{background-position:80% bottom}
@media(max-height:650px){body[data-portal-view="home"] .home-photo-carousel{height:64svh;min-height:340px}body[data-portal-view="home"] .home-content-panel{margin-top:-30px}body[data-portal-view="home"] .home-photo-dots{bottom:40px}body[data-portal-view="home"] .home-category{min-height:112px;padding-top:14px;padding-bottom:14px;gap:10px}body[data-portal-view="home"] .home-category>svg{width:44px;height:44px}body[data-portal-view="home"] .home-announcement{min-height:34px;margin-top:4px;padding-block:6px}}
@media(prefers-reduced-motion:reduce){body[data-portal-view="home"] .home-photo-track{transition:none}}


/* 入口下方：本地节令与当前六气，仅作一行静态展示。 */
body[data-portal-view="login"] .tea-brand-image{filter:brightness(0) invert(1)}
body[data-portal-view="home"] .home-today-card{display:flex;align-items:center;justify-content:center;min-height:34px;margin-top:8px;padding:6px 9px;border:1px solid #e6e1d4;border-radius:7px;background:#f0eee5;color:#5a6555;font:400 12px/1.4 var(--sans);white-space:nowrap;cursor:default}
body[data-portal-view="home"] .home-today-card:before{content:"";flex:none;width:3px;height:12px;margin-right:6px;border-radius:2px;background:#9ba88d}
body[data-portal-view="home"] .home-today-title{flex:none;color:#5a6555}
body[data-portal-view="home"] .home-today-term{flex:none;padding:2px 4px;border-radius:3px;background:#e2e9da;color:#4f6248}
body[data-portal-view="home"] .home-today-qi{display:inline-flex;align-items:center;flex:none}
body[data-portal-view="home"] .home-today-qi[hidden]{display:none}
body[data-portal-view="home"] .home-today-separator{margin:0 5px;color:#b0ab9b;font-size:11px}
body[data-portal-view="home"] .home-today-step{color:#656d5e}
body[data-portal-view="home"] .home-today-dot{margin:0 2px;color:#a7a38f}
body[data-portal-view="home"] .home-today-qi-name{padding:2px 4px;border-radius:3px;font-size:11px;line-height:1.4}
body[data-portal-view="home"] .home-today-qi-name[data-element="木"]{background:#e3eada;color:#506949}
body[data-portal-view="home"] .home-today-qi-name[data-element="火"]{background:#f2e1d5;color:#966043}
body[data-portal-view="home"] .home-today-qi-name[data-element="土"]{background:#eee3cf;color:#8a724b}
body[data-portal-view="home"] .home-today-qi-name[data-element="金"]{background:#e8e4d9;color:#716a56}
body[data-portal-view="home"] .home-today-qi-name[data-element="水"]{background:#e0e9e9;color:#536f73}
body[data-portal-view="home"] .home-today-slash{margin:0 2px;color:#b0ab9b;font-size:11px}
body[data-portal-view="home"] .home-today-card:not([data-state="ready"]) .home-today-term{padding:0;background:none;color:#7c8273}
body[data-portal-view="home"] .home-content-panel{padding-bottom:16px}
body[data-portal-view="home"] .home-announcement{min-height:32px;margin-top:4px;padding-block:5px}
@media(max-width:360px){body[data-portal-view="home"] .home-today-card{min-height:32px;padding:5px 7px;font-size:11px}body[data-portal-view="home"] .home-today-qi-name{font-size:10.5px;padding-inline:3px}body[data-portal-view="home"] .home-today-separator{margin-inline:4px}}
@media(max-height:650px){body[data-portal-view="home"] .home-today-card{margin-top:6px}}

/* 信息登记列表：与首页的实景、暖白与青绿色保持一致。 */
body[data-portal-view="patients"]{background:#f2f3ee;color:#29372e}
body[data-portal-view="patients"] .registration-page{width:100%;max-width:520px;min-height:100svh;margin:auto;padding-bottom:calc(88px + env(safe-area-inset-bottom));background:#f6f7f3;box-shadow:0 0 50px #14231c08}
body[data-portal-view="patients"] .registration-hero{position:relative;min-height:226px;padding:17px 22px 34px;background:linear-gradient(90deg,#1e2a22a8,#26332945 66%,#1e2a2233),url('/portal-art/home-heritage-v2.jpg') right 58%/cover;color:#fffdf5}
body[data-portal-view="patients"] .registration-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
body[data-portal-view="patients"] .registration-back{display:inline-flex;align-items:center;gap:3px;min-height:38px;margin-left:-7px;color:#fffdf4;font:400 12px/1.5 var(--sans)}
body[data-portal-view="patients"] .registration-back svg{width:20px;height:20px}
body[data-portal-view="patients"] .registration-brand{display:flex;align-items:center;flex-direction:column;gap:2px;flex:none;width:116px}
body[data-portal-view="patients"] .registration-brand img{display:block;width:116px;height:38px;object-fit:contain;filter:brightness(0) invert(1)}
body[data-portal-view="patients"] .registration-brand>span{font:400 9px/1.5 var(--sans);letter-spacing:.08em;color:#fffdf1}
body[data-portal-view="patients"] .registration-intro{margin-top:26px}
body[data-portal-view="patients"] .registration-intro>span{font:400 10px/1.5 var(--sans);letter-spacing:.16em;color:#e4e7d9}
body[data-portal-view="patients"] .registration-intro h1{margin:5px 0 5px;font:400 29px/1.4 "Kaiti SC","STKaiti",var(--song);letter-spacing:.08em;color:#fffdf5}
body[data-portal-view="patients"] .registration-intro p{font:400 11px/1.7 var(--sans);color:#f0f1e8}
body[data-portal-view="patients"] .registration-content{position:relative;margin-top:-17px;padding:0 18px}
body[data-portal-view="patients"] .registration-entry{display:flex;align-items:center;gap:13px;min-height:97px;padding:19px 17px;border:1px solid #f0f1ea;border-radius:12px;background:#fff;box-shadow:0 5px 22px #27332906}
body[data-portal-view="patients"] .registration-entry-icon{display:grid;place-items:center;flex:none;width:46px;height:52px;border-radius:7px;background:#edf1e7;color:#677c5c}
body[data-portal-view="patients"] .registration-entry-icon svg{width:33px;height:38px}
body[data-portal-view="patients"] .registration-entry-copy{display:block;min-width:0;flex:1}
body[data-portal-view="patients"] .registration-entry-copy strong{display:block;font:500 16px/1.5 var(--sans);color:#31442f}
body[data-portal-view="patients"] .registration-entry-copy small{display:block;margin-top:5px;font:400 11px/1.75 var(--sans);color:#73806d}
body[data-portal-view="patients"] .registration-entry-arrow{flex:none;color:#85917c}
body[data-portal-view="patients"] .registration-entry-arrow svg{width:18px;height:18px}
body[data-portal-view="patients"] .registration-records{margin-top:16px;padding:19px 17px 6px;border:1px solid #edf0e7;border-radius:12px;background:#fff}
body[data-portal-view="patients"] .registration-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:15px;border-bottom:1px solid #f0f1ea}
body[data-portal-view="patients"] .registration-section-heading h2{font:500 15px/1.5 var(--sans);color:#34452f}
body[data-portal-view="patients"] .registration-section-heading>span{padding:2px 7px;border-radius:3px;background:#f1eee5;font:400 10px/1.5 var(--sans);color:#8c8067}
body[data-portal-view="patients"] .registration-empty-table{width:100%;table-layout:fixed;border-collapse:collapse}
body[data-portal-view="patients"] .registration-empty-table td{padding:34px 0 31px;text-align:center}
body[data-portal-view="patients"] .registration-empty-icon{width:43px;height:43px;margin:0 auto 13px;color:#a9b5a0}
body[data-portal-view="patients"] .registration-empty-icon svg{display:block;width:100%;height:100%}
body[data-portal-view="patients"] .registration-empty-table p{font:400 13px/1.7 var(--sans);color:#728068}
body[data-portal-view="patients"] .registration-empty-table small{display:block;margin-top:8px;font:400 10px/1.8 var(--sans);color:#8a9383}
body[data-portal-view="patients"] .registration-credit{padding:25px 0 8px;text-align:center}
body[data-portal-view="patients"] .registration-credit>span{display:block;font:400 16px/1.5 "Kaiti SC","STKaiti",var(--song);letter-spacing:.1em;color:#7e8b74}
body[data-portal-view="patients"] .registration-credit small{display:block;margin-top:3px;font:400 9px/1.6 var(--sans);letter-spacing:.05em;color:#969e8d}
body[data-portal-view="patients"] .portal-bottom-nav{max-width:520px;min-height:70px;border:0;border-top:1px solid #f1f2ed;background:#fffffff5;box-shadow:0 -4px 18px #27332904}
body[data-portal-view="patients"] .portal-bottom-nav a{font:400 13px/1.5 var(--sans);letter-spacing:.025em;color:#6c7468;background:none}
body[data-portal-view="patients"] .portal-bottom-nav a[aria-current="page"]{color:#202b22;background:none}
body[data-portal-view="patients"] .portal-bottom-nav a:before{display:none}
body[data-portal-view="patients"] .portal-bottom-nav svg{width:21px;height:21px;stroke-width:1.3}
@media(max-width:360px){body[data-portal-view="patients"] .registration-hero{padding-inline:18px}body[data-portal-view="patients"] .registration-content{padding-inline:15px}body[data-portal-view="patients"] .registration-entry{padding-inline:14px;gap:10px}body[data-portal-view="patients"] .registration-entry-copy small{font-size:10px}body[data-portal-view="patients"] .registration-records{padding-inline:15px}}

/* 茶方简介：真实盒图与按用户配料整理的简短说明。 */
body[data-portal-view="formulas"]{background:#f2f3ee;color:#29372e}
body[data-portal-view="formulas"] .tea-catalogue-page{width:100%;max-width:520px;min-height:100svh;margin:auto;padding-bottom:calc(88px + env(safe-area-inset-bottom));background:#f6f7f3;box-shadow:0 0 50px #14231c08}
body[data-portal-view="formulas"] .tea-catalogue-hero{position:relative;min-height:222px;padding:17px 22px 34px;background:linear-gradient(90deg,#1d2a21a6,#2633294d 68%,#1e2a2238),url('/portal-art/home-tea-boiling-v3.jpg') 75% 55%/cover;color:#fffdf5}
body[data-portal-view="formulas"] .tea-catalogue-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
body[data-portal-view="formulas"] .tea-catalogue-back{display:inline-flex;align-items:center;gap:3px;min-height:38px;margin-left:-7px;color:#fffdf4;font:400 12px/1.5 var(--sans)}
body[data-portal-view="formulas"] .tea-catalogue-back svg{width:20px;height:20px}
body[data-portal-view="formulas"] .tea-catalogue-brand{display:flex;align-items:center;flex-direction:column;gap:2px;flex:none;width:116px}
body[data-portal-view="formulas"] .tea-catalogue-brand img{display:block;width:116px;height:38px;object-fit:contain;filter:brightness(0) invert(1)}
body[data-portal-view="formulas"] .tea-catalogue-brand>span{font:400 9px/1.5 var(--sans);letter-spacing:.08em;color:#fffdf1}
body[data-portal-view="formulas"] .tea-catalogue-intro{margin-top:33px}
body[data-portal-view="formulas"] .tea-catalogue-intro h1{margin:0 0 6px;font:400 29px/1.4 "Kaiti SC","STKaiti",var(--song);letter-spacing:.08em;color:#fffdf5}
body[data-portal-view="formulas"] .tea-catalogue-intro p{font:400 11px/1.7 var(--sans);letter-spacing:.1em;color:#f0f1e8}
body[data-portal-view="formulas"] .tea-catalogue-content{position:relative;margin-top:-17px;padding:0 18px}
body[data-portal-view="formulas"] .tea-product-list{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
body[data-portal-view="formulas"] .tea-product-card{min-width:0;overflow:hidden;border:1px solid #eeefe7;border-radius:12px;background:#fff;box-shadow:0 5px 22px #27332904}
body[data-portal-view="formulas"] .tea-product-image{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:4/3;background:#fff}
body[data-portal-view="formulas"] .tea-product-image img{display:block;width:100%;height:100%;min-width:0;object-fit:contain;object-position:center}
body[data-portal-view="formulas"] .tea-product-image img[hidden]{display:none}
body[data-portal-view="formulas"] .tea-product-image-missing{font:400 12px/1.7 var(--sans);color:#87917e}
body[data-portal-view="formulas"] .tea-product-image-missing[hidden]{display:none}
body[data-portal-view="formulas"] .tea-product-copy{padding:14px 18px 17px;border-top:1px solid #f3f3ed}
body[data-portal-view="formulas"] .tea-product-copy h2{font:500 17px/1.6 var(--sans);letter-spacing:.02em;color:#34452f;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-product-heading{display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:7px 10px}
body[data-portal-view="formulas"] .tea-product-heading h2{flex:1 1 auto;min-width:0}
body[data-portal-view="formulas"] .tea-product-direction{flex:0 1 auto;min-width:0;max-width:100%;padding:3px 8px;border-radius:4px;background:#edf1e7;color:#637558;font:400 10px/1.6 var(--sans);white-space:normal;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-product-intro{margin:9px 0 0;font:400 12px/1.9 var(--sans);color:#6e7a66;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-product-ingredients{min-width:0;max-width:100%;margin-top:12px;padding-top:10px;border-top:1px solid #f0f1ea;color:#7c8773}
body[data-portal-view="formulas"] .tea-product-ingredients summary{width:max-content;max-width:100%;font:400 11px/1.8 var(--sans);cursor:pointer}
body[data-portal-view="formulas"] .tea-product-ingredients p{margin:8px 0 0;font:400 11px/1.9 var(--sans);color:#808978;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-product-packaging-note{display:block;margin-top:9px;font:400 10px/1.7 var(--sans);color:#9a896a;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-catalogue-status{padding:36px 18px;border:1px solid #eeefe7;border-radius:12px;background:#fff;text-align:center;font:400 12px/1.8 var(--sans);color:#7d8974}
body[data-portal-view="formulas"] .tea-catalogue-pending{margin-top:17px;padding:12px 0;border-top:1px solid #e7e9df;text-align:center;font:400 11px/1.7 var(--sans);color:#8a927e}
body[data-portal-view="formulas"] .tea-catalogue-credit{padding:10px 0 8px;text-align:center}
body[data-portal-view="formulas"] .tea-catalogue-credit>span{display:block;font:400 16px/1.5 "Kaiti SC","STKaiti",var(--song);letter-spacing:.1em;color:#7e8b74}
body[data-portal-view="formulas"] .tea-catalogue-credit small{display:block;margin-top:3px;font:400 9px/1.6 var(--sans);letter-spacing:.05em;color:#969e8d}
body[data-portal-view="formulas"] .portal-bottom-nav{max-width:520px;min-height:70px;border:0;border-top:1px solid #f1f2ed;background:#fffffff5;box-shadow:0 -4px 18px #27332904}
body[data-portal-view="formulas"] .portal-bottom-nav a{font:400 13px/1.5 var(--sans);letter-spacing:.025em;color:#6c7468;background:none}
body[data-portal-view="formulas"] .portal-bottom-nav a[aria-current="page"]{color:#202b22;background:none}
body[data-portal-view="formulas"] .portal-bottom-nav a:before{display:none}
body[data-portal-view="formulas"] .portal-bottom-nav svg{width:21px;height:21px;stroke-width:1.3}
@media(max-width:360px){body[data-portal-view="formulas"] .tea-catalogue-hero{padding-inline:18px}body[data-portal-view="formulas"] .tea-catalogue-content{padding-inline:15px}body[data-portal-view="formulas"] .tea-product-copy{padding:12px 15px 14px}body[data-portal-view="formulas"] .tea-product-copy h2{font-size:16px}}

/* 茶方两层：列表只留方向与短简介，详情分块展开配伍和化裁。 */
body[data-portal-view="formulas"] .tea-product-card{scroll-margin-top:18px}
body[data-portal-view="formulas"] .tea-product-image-link{display:block;color:inherit;text-decoration:none}
body[data-portal-view="formulas"] .tea-product-open{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;margin-top:12px;padding:9px 12px;border:1px solid #e4e9db;border-radius:7px;background:#f5f8ef;color:#6c805b;font:400 12px/1.5 var(--sans);text-decoration:none}
body[data-portal-view="formulas"] .tea-product-open>svg{width:18px;height:18px;flex:none;opacity:.7}
body[data-portal-view="formulas"] .tea-product-open:hover{background:#eef4e5;border-color:#cbd8bb}
body[data-portal-view="formulas"] .tea-product-image-link:focus-visible,body[data-portal-view="formulas"] .tea-product-open:focus-visible,body[data-portal-view="formulas"] .tea-detail-return:focus-visible{outline:2px solid #8ca17d;outline-offset:3px}
body[data-portal-view="formulas"] .tea-detail-page .tea-catalogue-hero{min-height:194px;padding-bottom:35px}
body[data-portal-view="formulas"] .tea-detail-page .tea-catalogue-intro{margin-top:23px}
body[data-portal-view="formulas"] .is-tea-detail{gap:13px}
body[data-portal-view="formulas"] .tea-detail-overview{min-width:0;overflow:hidden;border:1px solid #eceee3;border-radius:12px;background:#fff;box-shadow:0 5px 22px #27332904}
body[data-portal-view="formulas"] .tea-detail-title{padding:20px 18px 21px;border-top:1px solid #f1f2eb}
body[data-portal-view="formulas"] .tea-detail-title>h1{margin:10px 0 11px;font:500 23px/1.6 "Songti SC","STSong",serif;letter-spacing:.03em;color:#3b5134;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-detail-title>p{margin:0;font:400 13px/2 var(--sans);color:#728066;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-detail-card{min-width:0;padding:20px 18px;border:1px solid #eaecdf;border-radius:11px;background:#fff;box-shadow:0 3px 12px #27362903}
body[data-portal-view="formulas"] .tea-detail-card>h2{display:flex;align-items:center;gap:8px;margin:0 0 14px;font:500 16px/1.6 var(--sans);letter-spacing:.02em;color:#506c42}
body[data-portal-view="formulas"] .tea-detail-card>h2:before{content:"";width:3px;height:13px;flex:none;border-radius:2px;background:#a3b68f}
body[data-portal-view="formulas"] .tea-detail-card p{margin:0;font:400 13px/2 var(--sans);color:#748069;overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-detail-reference+.tea-detail-reference{margin-top:17px;padding-top:15px;border-top:1px solid #edf0e5}
body[data-portal-view="formulas"] .tea-detail-reference>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 10px;margin-bottom:8px}
body[data-portal-view="formulas"] .tea-detail-reference h3{margin:0;font:500 17px/1.6 "Songti SC","STSong",serif;letter-spacing:.03em;color:#7b805f}
body[data-portal-view="formulas"] .tea-detail-reference>div>span{padding:2px 7px;border-radius:4px;background:#f3f2e8;color:#989173;font:400 10px/1.6 var(--sans)}
body[data-portal-view="formulas"] .tea-detail-entry+.tea-detail-entry{margin-top:15px;padding-top:14px;border-top:1px solid #edf0e5}
body[data-portal-view="formulas"] .tea-detail-entry h3{margin:0 0 7px;font:500 13px/1.7 var(--sans);color:#7a8e65}
body[data-portal-view="formulas"] .tea-detail-card--adaptation .tea-detail-entry{padding-left:11px;border-left:2px solid #dae4ce}
body[data-portal-view="formulas"] .tea-detail-card--adaptation .tea-detail-entry+.tea-detail-entry{padding-top:0;border-top:0;margin-top:16px}
body[data-portal-view="formulas"] .tea-detail-ingredients{display:flex;flex-wrap:wrap;gap:7px}
body[data-portal-view="formulas"] .tea-detail-ingredients>span{padding:5px 9px;border:1px solid #e7ebdf;border-radius:5px;background:#f7f9f2;color:#849377;font:400 11px/1.7 var(--sans);overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-detail-sources{padding:14px 3px;color:#8d9981;font:400 11px/1.9 var(--sans)}
body[data-portal-view="formulas"] .tea-detail-sources>summary{cursor:pointer;color:#7f8d72}
body[data-portal-view="formulas"] .tea-detail-sources ul{padding:0;margin:14px 0 0;list-style:none}
body[data-portal-view="formulas"] .tea-detail-sources li{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;padding:8px 0;border-bottom:1px solid #e7ebdf}
body[data-portal-view="formulas"] .tea-detail-sources li>span{overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-detail-sources li>small{font-size:10px;color:#9a9985}
body[data-portal-view="formulas"] .tea-detail-teacher{margin-top:14px;padding:12px 13px;border-radius:7px;background:#edf2e5}
body[data-portal-view="formulas"] .tea-detail-teacher h3{margin:0 0 6px;font:500 12px/1.7 var(--sans);color:#7b8e67}
body[data-portal-view="formulas"] .tea-detail-teacher p,body[data-portal-view="formulas"] .tea-detail-version p{margin:0;color:#929982;font:400 11px/1.95 var(--sans);overflow-wrap:anywhere}
body[data-portal-view="formulas"] .tea-detail-version{margin-top:13px}
body[data-portal-view="formulas"] .tea-detail-return{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 14px;border:1px solid #e1e7d6;border-radius:8px;background:#eef4e5;color:#758a62;font:400 12px/1.7 var(--sans);text-decoration:none}
body[data-portal-view="formulas"] .tea-detail-return svg{width:17px;height:17px}
body[data-portal-view="formulas"] .tea-catalogue-status h2{margin:0 0 8px;color:#6d805b;font:500 18px/1.6 "Songti SC",serif}
body[data-portal-view="formulas"] .tea-catalogue-status p{margin:0}
@media(max-width:360px){body[data-portal-view="formulas"] .tea-detail-title,body[data-portal-view="formulas"] .tea-detail-card{padding:18px 15px}body[data-portal-view="formulas"] .tea-detail-title>h1{font-size:21px}body[data-portal-view="formulas"] .tea-detail-card>h2{font-size:15px}}


/* 茶方手机比例沿用已确认版：仅隔离图片内在尺寸与长文本溢出。 */
body[data-portal-view="formulas"] .tea-catalogue-content,
body[data-portal-view="formulas"] .tea-product-list,
body[data-portal-view="formulas"] .tea-product-list>*,
body[data-portal-view="formulas"] .tea-product-image-link,
body[data-portal-view="formulas"] .tea-product-image,
body[data-portal-view="formulas"] .tea-product-copy,
body[data-portal-view="formulas"] .tea-detail-reference,
body[data-portal-view="formulas"] .tea-detail-reference>div,
body[data-portal-view="formulas"] .tea-detail-sources{min-width:0;max-width:100%}
body[data-portal-view="formulas"] .tea-product-image{min-height:0}
body[data-portal-view="formulas"] .tea-product-image img{position:absolute;inset:0;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
body[data-portal-view="formulas"] .tea-detail-reference>div>*,
body[data-portal-view="formulas"] .tea-detail-ingredients>span,
body[data-portal-view="formulas"] .tea-detail-sources li>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* 我的：与首页、信息登记共用实景页头与明亮白卡，仅作用于本页。 */
body[data-portal-view="mine"]{background:#f2f3ee;color:#344539}
body[data-portal-view="mine"] .mine-page{width:100%;max-width:520px;min-height:100svh;margin:0 auto;padding-bottom:calc(88px + env(safe-area-inset-bottom));background:#f6f7f3;box-shadow:0 0 50px #14231c08}
body[data-portal-view="mine"] .mine-hero{position:relative;min-height:222px;padding:17px 22px 34px;background:linear-gradient(90deg,#1d2a21bd,#26332977 65%,#1e2a2240),url('/portal-art/home-heritage-v2.jpg') 75% 60%/cover;color:#fffdf5}
body[data-portal-view="mine"] .mine-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
body[data-portal-view="mine"] .mine-back{display:inline-flex;align-items:center;gap:3px;min-height:38px;margin-left:-7px;color:#fffdf4;font:400 12px/1.5 var(--sans)}
body[data-portal-view="mine"] .mine-back svg{width:20px;height:20px;flex:none}
body[data-portal-view="mine"] .mine-brand{display:flex;align-items:center;flex-direction:column;gap:2px;flex:none;width:116px}
body[data-portal-view="mine"] .mine-brand img{display:block;width:116px;height:38px;object-fit:contain;filter:brightness(0) invert(1)}
body[data-portal-view="mine"] .mine-brand>span{font:400 9px/1.5 var(--sans);letter-spacing:.08em;color:#fffdf1}
body[data-portal-view="mine"] .mine-intro{margin-top:24px}
body[data-portal-view="mine"] .mine-intro>span{font:400 10px/1.5 var(--sans);letter-spacing:.12em;color:#e3e9d9}
body[data-portal-view="mine"] .mine-intro h1{margin:6px 0;font:400 29px/1.4 "Kaiti SC","STKaiti",var(--song);letter-spacing:.08em;color:#fffdf5}
body[data-portal-view="mine"] .mine-intro p{font:400 11px/1.7 var(--sans);color:#f0f1e8}
body[data-portal-view="mine"] .mine-content{position:relative;min-width:0;margin-top:-17px;padding:0 18px}
body[data-portal-view="mine"] .mine-card{min-width:0;margin:0 0 13px;padding:20px 18px;border:1px solid #eaecdf;border-radius:11px;background:#fff;box-shadow:0 3px 12px #27362903}
body[data-portal-view="mine"] .mine-profile{display:flex;align-items:center;gap:16px;padding-block:23px}
body[data-portal-view="mine"] .mine-avatar{flex:none;width:62px;height:62px;display:grid;place-items:center;border-radius:50%;color:#8ba179;background:#f2f6ec}
body[data-portal-view="mine"] .mine-avatar svg{display:block;width:58px;height:58px}
body[data-portal-view="mine"] .mine-profile-copy{min-width:0;flex:1}
body[data-portal-view="mine"] .profile-name{margin:0;font:500 20px/1.6 var(--sans);letter-spacing:.02em;color:#3e5635;overflow-wrap:anywhere}
body[data-portal-view="mine"] .profile-account{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin-top:4px;font:400 11px/1.7 var(--sans);color:#8c9980}
body[data-portal-view="mine"] .profile-account strong{min-width:0;max-width:100%;font:400 12px/1.7 var(--sans);color:#7d8e70;overflow-wrap:anywhere}
body[data-portal-view="mine"] .profile-role{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:9px;font:400 11px/1.7 var(--sans);color:#88977b}
body[data-portal-view="mine"] .mine-role-label{padding:2px 8px;border-radius:4px;background:#edf2e5;color:#72895e}
body[data-portal-view="mine"] .profile-role small{font:400 10px/1.7 var(--sans);color:#a0a68f}
body[data-portal-view="mine"] .mine-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;margin-bottom:15px}
body[data-portal-view="mine"] .mine-section-heading h2{display:flex;align-items:center;gap:8px;margin:0;font:500 15px/1.6 var(--sans);letter-spacing:.02em;color:#506c42}
body[data-portal-view="mine"] .mine-section-heading h2:before{content:"";width:3px;height:12px;flex:none;border-radius:2px;background:#a3b68f}
body[data-portal-view="mine"] .mine-section-heading>span{font:400 10px/1.7 var(--sans);color:#a0a68f}
body[data-portal-view="mine"] .scope-title{font:500 14px/1.9 var(--sans);color:#718660;overflow-wrap:anywhere}
body[data-portal-view="mine"] .scope-detail{margin-top:6px;font:400 12px/1.9 var(--sans);color:#8a967d;overflow-wrap:anywhere}
body[data-portal-view="mine"] .scope-preview-note{margin-top:14px;padding:11px 12px;border:0;border-radius:6px;background:#f5f6ef;font:400 11px/1.9 var(--sans);color:#9b9c84;overflow-wrap:anywhere}
body[data-portal-view="mine"] .announcement-editor{margin-top:0}
body[data-portal-view="mine"] .announcement-editor .portal-field{margin-top:0}
body[data-portal-view="mine"] .portal-field>span{margin-bottom:8px;font:400 11px/1.7 var(--sans);color:#879679}
body[data-portal-view="mine"] .portal-field textarea{min-width:0;max-width:100%;min-height:108px;padding:11px 12px;border:1px solid #e2e7d9;border-radius:7px;background:#f8f9f5;color:#6a7e59;font:400 13px/1.9 var(--sans);resize:vertical}
body[data-portal-view="mine"] .portal-field textarea:focus{outline:0;border-color:#a9ba94;box-shadow:0 0 0 2px #7d997012}
body[data-portal-view="mine"] .editor-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:13px;margin-top:14px}
body[data-portal-view="mine"] .editor-actions .primary-button{width:100%;min-height:43px;margin:0;padding:9px 12px;border:1px solid #799066;border-radius:7px;background:#799066;box-shadow:none;color:#fffdf5;font:400 13px/1.6 var(--sans);letter-spacing:.04em}
body[data-portal-view="mine"] .editor-actions .primary-button:hover{background:#6a8357;border-color:#6a8357}
body[data-portal-view="mine"] .editor-actions .text-button{min-height:43px;padding:8px 0;border:0;background:transparent;color:#8a9a7a;font:400 11px/1.7 var(--sans);white-space:normal;text-align:center}
body[data-portal-view="mine"] .editor-note{margin-top:12px;font:400 10px/1.9 var(--sans);color:#a1a48e;overflow-wrap:anywhere}
body[data-portal-view="mine"] .logout-button{width:100%;min-height:46px;margin-top:18px;padding:11px 14px;border:1px solid #e3e7d9;border-radius:8px;background:#fdfef9;color:#8b917c;font:400 12px/1.7 var(--sans);letter-spacing:.04em}
body[data-portal-view="mine"] .logout-button:hover{background:#f0f4e9}
body[data-portal-view="mine"] button:focus-visible,body[data-portal-view="mine"] a:focus-visible{outline:2px solid #93a67f;outline-offset:3px}
body[data-portal-view="mine"] .mine-credit{padding:25px 0 6px;text-align:center}
body[data-portal-view="mine"] .mine-credit strong{display:block;font:400 11px/1.7 var(--sans);letter-spacing:.1em;color:#939e86}
body[data-portal-view="mine"] .mine-credit small{display:block;margin-top:4px;font:400 9px/1.7 var(--sans);color:#a3a992}
body[data-portal-view="mine"] .portal-bottom-nav{max-width:520px;min-height:70px;border:0;border-top:1px solid #eef1e6;background:#fffffff5;box-shadow:0 -4px 18px #27332904}
body[data-portal-view="mine"] .portal-bottom-nav a{font:400 13px/1.5 var(--sans);letter-spacing:.025em;color:#8c9881;background:none}
body[data-portal-view="mine"] .portal-bottom-nav a[aria-current="page"]{color:#526c43;background:none}
body[data-portal-view="mine"] .portal-bottom-nav a:before{display:none}
body[data-portal-view="mine"] .portal-bottom-nav svg{width:21px;height:21px;stroke-width:1.3}
@media(max-width:360px){body[data-portal-view="mine"] .mine-hero{padding-inline:18px}body[data-portal-view="mine"] .mine-content{padding-inline:15px}body[data-portal-view="mine"] .mine-card{padding-inline:15px}body[data-portal-view="mine"] .mine-profile{gap:12px}body[data-portal-view="mine"] .profile-name{font-size:18px}body[data-portal-view="mine"] .mine-avatar{width:56px;height:56px}body[data-portal-view="mine"] .mine-avatar svg{width:53px;height:53px}body[data-portal-view="mine"] .editor-actions{gap:10px}}

/* 我的：总权限的账号管理入口，不改变原卡片比例。 */
body[data-portal-view="mine"] .mine-account-entry{display:flex;align-items:center;gap:12px;color:#506c42;text-decoration:none}
body[data-portal-view="mine"] .mine-account-entry-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f0f4e8;color:#8ba179}
body[data-portal-view="mine"] .mine-account-entry-icon svg{width:22px;height:22px;stroke-width:1.2}
body[data-portal-view="mine"] .mine-account-entry>span:nth-child(2){min-width:0;flex:1}
body[data-portal-view="mine"] .mine-account-entry strong{display:block;font:500 15px/1.7 var(--sans)}
body[data-portal-view="mine"] .mine-account-entry small{display:block;margin-top:3px;font:400 11px/1.7 var(--sans);color:#8a967d;overflow-wrap:anywhere}
body[data-portal-view="mine"] .mine-account-entry>svg{flex:none;width:19px;height:19px;color:#9baa8c}
/* 登录页注册入口沿用手机页面比例。 */
.tea-login-panel .portal-registration-link{display:block;margin-top:16px;text-align:center;color:#627857;font:400 12px/1.8 var(--sans,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif);text-decoration:none}
.portal-registration-link:focus-visible{outline:2px solid #97aa83;outline-offset:3px}
