/* 重置页面布局 - 移除全局overflow限制 */ html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; height: 100% !important; } /* 主内容区域 */ #paiwise-main-wrapper { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100vh !important; overflow-y: auto !important; overflow-x: hidden !important; transition: all 0.3s ease-in-out !important; } /* 侧边栏 */ #paiwise-sidebar { position: fixed !important; top: 0 !important; right: -400px !important; width: 400px !important; height: 100vh !important; background: #fff !important; border: none !important; box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08) !important; z-index: 2147483647 !important; transition: transform 0.3s ease-in-out !important; } /* 侧边栏显示状态 */ #paiwise-sidebar.show { transform: translateX(-400px) !important; box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important; } /* 主内容区域在侧边栏显示时的状态 */ body.sidebar-open #paiwise-main-wrapper { width: calc(100% - 400px) !important; /* 自动计算宽度 */ } /* 移除所有动画关键帧,使用transform实现动画 */