/* 导航站宿主：沿导航站 v03 原型底色与蓝白 token；只负责宿主状态卡与外框，模板样式单独发布。 */
:root{--pv-bg:#edf2f9;--pv-border:#dce3ed;--pv-font:system-ui,"PingFang SC","Microsoft YaHei",sans-serif;--pv-muted:#66758b;--pv-primary:#1769e0;--pv-primary-soft:#edf4ff;--pv-radius:8px;--pv-surface:#fff;--pv-text:#24334a;--pv-error:#b42318}
*{box-sizing:border-box}
html,body{margin:0;background:var(--pv-bg);color:var(--pv-text);font:14px/1.6 var(--pv-font)}
[hidden]{display:none!important}
.portal-shell{width:100%;max-width:563px;min-height:100dvh;margin:auto;background:var(--pv-surface);display:flex;flex-direction:column}
.host-state{margin:16px;padding:24px 16px;border:1px solid var(--pv-border);border-radius:var(--pv-radius);text-align:center}
.host-state:empty{display:none}
.host-state:before{content:"";display:block;width:32px;height:4px;margin:0 auto 16px;border-radius:999px;background:var(--pv-primary)}
.host-state:is([data-kind=not_ready],[data-kind=load_failed],[data-kind=revoked]):before{background:var(--pv-error)}
.host-state.is-banner{margin:12px 16px 0;padding:10px 12px;background:var(--pv-primary-soft);border-color:transparent;text-align:left}
.host-state.is-banner:before{display:none}
.host-title{margin:0;font-size:18px;line-height:1.5;font-weight:600}
.host-state.is-banner .host-title{font-size:14px;font-weight:500;color:var(--pv-primary)}
.host-text{margin:10px 0 0;color:var(--pv-muted)}
.host-actions{display:grid;gap:10px;margin-top:20px}
.host-actions button{min-height:44px;border:1px solid var(--pv-border);border-radius:var(--pv-radius);background:#fff;color:var(--pv-text);font:inherit;cursor:pointer}
.host-actions button.is-primary{background:var(--pv-primary);border-color:var(--pv-primary);color:#fff}
.template-root{flex:1}
/* 首屏和重新加载只显示居中动画，不显示状态卡或尚未挂载完成的模板。 */
.host-loader{display:none}
body[data-portal-host=loading]{background:var(--pv-surface)}
body[data-portal-host=loading] .host-state,body[data-portal-host=loading] .template-root{visibility:hidden}
body[data-portal-host=loading] .host-loader{position:fixed;inset:0;z-index:1;display:grid;place-items:center;background:var(--pv-surface)}
.host-loader span{width:32px;height:32px;border:3px solid var(--pv-border);border-top-color:var(--pv-primary);border-radius:50%;animation:host-spin .8s linear infinite}
@keyframes host-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.host-loader span{animation:none}}
