/**app.wxss**/ /* 导入设计系统和组件样式 */ @import './styles/design-system.wxss'; @import './styles/components.wxss'; @import './styles/responsive.wxss'; /* 导入通用屏幕适配样式 */ @import './styles/screen-adaption.wxss'; /* 全局基础样式 */ page { /* height: 100%; */ overflow: hidden; margin: 0; padding: 0; box-sizing: border-box; background-color: #f8f9fa; min-height: 100vh; } /* 默认容器样式 - 保持向后兼容 */ .container { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 200rpx 0; box-sizing: border-box; } /* 全屏容器 - 新的推荐方式 */ .app-container { height: 100vh; min-height: 100vh; max-height: 100vh; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; position: relative; } /* 内容区域 */ .content-area { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; } /* 防止长按选择 */ text, view, image { -webkit-user-select: none; user-select: none; box-sizing: border-box; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); } /* 玻璃效果样式 */ .tab-bar-glass { /* 基础玻璃效果 */ background: rgba(30, 30, 30, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); /* 添加细微边框增强效果 */ border-top: 1px solid rgba(255, 255, 255, 0.1); /* 阴影效果增强层次感 */ box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); } /* 修复iOS上的样式问题 */ .tab-bar-glass::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: inherit; z-index: -1; }