/* Generic module host and launcher, independent of embedded module visuals. */
.module-launchers { display: flex; align-items: center; gap: 12px; margin-left: auto; margin-right: 22px; padding-top: 13px; }
.module-launcher { appearance: none; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; padding: 13px 22px; color: #294a60; background: rgba(247,253,255,.45); box-shadow: 0 10px 28px -14px rgba(75,112,140,.35), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.module-launcher:hover { transform: translateY(-3px); background: rgba(255,255,255,.64); box-shadow: 0 15px 32px -13px rgba(75,112,140,.32), 0 0 24px rgba(224,250,255,.7), inset 0 1px rgba(255,255,255,.95); }
.module-launcher:focus-visible, .module-host__button:focus-visible { outline: 3px solid #548ec5; outline-offset: 3px; }
.module-host { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; padding: clamp(10px, 1.5vw, 22px); gap: 10px; color: #243b53; background: radial-gradient(ellipse at 5% 0%, #c5e8f5, transparent 55%), radial-gradient(ellipse at 95% 5%, #dedaf4, transparent 55%), radial-gradient(ellipse at 55% 90%, #d2f0eb, transparent 60%), #ecf6f9; }
.module-host__bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 22px; border: 1px solid rgba(255,255,255,.84); border-radius: 18px; background: rgba(249,253,255,.55); box-shadow: 0 10px 30px -16px rgba(64,102,128,.26), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.module-host__title { font: 700 clamp(15px, 1.25vw, 21px)/1.2 -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; margin: 0; }
.module-host__actions { display:flex; gap: 8px; flex-shrink: 0; }
.module-host__button { border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: rgba(255,255,255,.44); color: #294a60; cursor: pointer; font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; padding: 9px 16px; }
.module-host__button:hover { background: rgba(255,255,255,.8); }
.module-host__button--close { background: rgba(231,244,249,.78); }
.module-host__viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: 20px; background: rgba(247,252,254,.66); box-shadow: 0 16px 44px -20px rgba(72,109,139,.28), inset 0 1px rgba(255,255,255,.9); }
.module-host__frame { display:block; border:0; width:100%; height:100%; }
.module-host__status { position:absolute; top:16px; left:50%; z-index:2; transform:translateX(-50%); padding:10px 16px; border-radius:999px; color:#315467; background:rgba(248,253,255,.9); font:600 14px/1.4 'Microsoft YaHei',sans-serif; white-space:nowrap; }
.module-host__status[hidden] { display:none; }
@media (max-width:600px) { .module-host { padding: 8px; } .module-host__bar { padding: 8px 10px 8px 14px; } .module-host__button { padding:8px 10px; font-size:12px; } .module-host__title { font-size:14px; } }
@media (prefers-reduced-motion:reduce) { .module-launcher { transition:none; } }
/* 优先展示模块内容，控制按钮悬浮，标题保留给辅助技术。 */
.module-host { position: fixed; padding: 10px; gap: 0; }
.module-host__bar { position: absolute; top: 22px; right: 22px; z-index: 5; padding: 5px; border-radius: 999px; }
.module-host__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.module-host__viewport { width: 100%; height: 100%; }
@media (max-width:600px) { .module-host { padding: 6px; } .module-host__bar { top: 14px; right: 14px; padding: 4px; } }
