:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#172f41;background:#edf0f2;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #1387c0;outline-offset:4px}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;height:66px;padding:0 38px;border-bottom:1px solid #dfe5e9;background:#fafbfc}.toolbar-brand{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:650}.toolbar-brand img{width:27px;height:27px;border-radius:7px}.toolbar-brand small{font-size:13px;font-weight:400;color:#72818b}.toolbar-divider{height:15px;width:1px;background:#d5dde3;margin:0 4px}.preview-nav{display:flex;gap:4px;padding:4px;border-radius:9px;background:#edf1f4}.preview-nav button{min-width:65px;padding:5px 15px;border:0;background:transparent;color:#71808a;font-size:13px;border-radius:6px}.preview-nav button.active{background:#fff;color:#126b9d;box-shadow:0 1px 3px #172f4110}.toolbar-note{font-size:12px;color:#7b8c98;width:120px;text-align:right}
.workspace{min-height:calc(100vh - 66px);display:flex;align-items:center;justify-content:center;padding:27px 20px 20px}.device-column{width:390px;flex-shrink:0}.device{position:relative;display:flex;flex-direction:column;width:390px;height:min(844px,calc(100vh - 136px));min-height:570px;background:#fff;border:1px solid #d7dfe5;border-radius:25px;overflow:hidden;box-shadow:0 10px 36px #1b354611;transform:translateZ(0)}
.native-header{flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;height:53px;background:#fbfcfd;font-size:15px;color:#183145;font-weight:600;z-index:20}#native-back{position:absolute;left:8px;top:5px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #cfdee8;border-radius:10px;background:#fff;color:#244f6b;font-size:29px;line-height:1;min-width:76px;height:44px;padding:0 10px}#native-back span{font-size:14px;font-weight:550}#native-back[hidden]{display:none}.wechat-capsule{position:absolute;right:12px;display:flex;align-items:center;justify-content:center;gap:10px;width:68px;height:27px;border:1px solid #dfe5e9;border-radius:30px;line-height:1;background:#ffffff60}.wechat-capsule b{font-size:14px;letter-spacing:1px}.wechat-capsule i{width:1px;height:13px;background:#dfe5e9}
.page-viewport{flex:1;overflow-y:auto;scrollbar-width:none;background:#fbfcfd;overscroll-behavior:contain}.page-viewport::-webkit-scrollbar{display:none}#screen{min-height:100%}.device-caption{text-align:center;font-size:12px;color:#8b99a3;margin:13px 0 0}
#toast{position:absolute;z-index:90;left:50%;bottom:130px;transform:translateX(-50%);background:#193a4ded;color:#fff;border-radius:12px;padding:12px 18px;width:max-content;max-width:85%;font-size:14px;line-height:1.7;text-align:center;pointer-events:none;animation:toast-in 160ms ease-out}#modal{position:absolute;inset:0;background:#0d25396b;display:flex;align-items:center;justify-content:center;z-index:100;padding:24px}#modal[hidden],#toast[hidden]{display:none}.modal-card{width:100%;background:#fff;border-radius:20px;padding:25px 24px 16px;animation:modal-in 220ms ease-out}.modal-title{font-size:18px;font-weight:650;margin-bottom:12px}.modal-content{font-size:15px;line-height:1.9;color:#5a7183}.modal-actions{display:flex;gap:14px;margin-top:23px}.modal-actions>button{flex:1;min-height:46px;border:0;border-radius:12px;font-size:15px;background:#edf2f5;color:#557184}.modal-actions>button.confirm{background:#007bbc;color:#fff}
@keyframes modal-in{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}@keyframes toast-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
@media(max-width:720px){html,body{width:100%;height:100%;background:#fbfcfd}.preview-toolbar,.device-caption{display:none}.workspace{padding:0;min-height:100%;display:block}.device-column{width:100%}.device{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.native-header{height:52px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
