* { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-size: 14px; color: #333; background: #f7f8fa; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; } /* 禁止所有元素出现文本光标和选中 */ * { -webkit-user-select: none; user-select: none; } /* 输入框和文本域允许选中 */ input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; } #app { height: 100%; } #app-root { height: 100%; overflow-y: auto; } .with-bottom-nav { padding-bottom: 50px; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .safe-area-bottom { padding-bottom: env(safe-area-inset-bottom); } /* 修复 Vant Toast 在独立 Vue app 中丢失 CSS 变量,背景变白文字不可见 */ .van-toast { color: #fff !important; background: rgba(0, 0, 0, 0.75) !important; }