/* 极简滚动条变量 */ :root { /* 统一圆角变量 */ --radius: 8px; /* 统一背景颜色变量 */ --bg-color: #fafafa; /* 统一文字颜色变量 */ --text-color: #333333; /* 统一按钮颜色变量 */ --btn-bg: #e0e0e0; /* 统一按钮文字颜色变量 */ --btn-text: #333333; --border: 1px solid #e0e0e0; /* 滚动条变量 */ --sb-width: 6px; --sb-thumb-color: rgba(0, 0, 0, 0.1); --sb-thumb-hover: rgba(0, 0, 0, 0.2); --sb-track-color: transparent; } /* 默认 Popup 尺寸 */ html, body, #root { margin: 0; padding: 0; width: 400px; height: 600px; overflow: hidden; /* 禁用外层滚动 */ } /* 独立窗口全屏自适应 */ @media screen and (min-width: 401px), screen and (min-height: 601px) { html, body, #root { width: 100vw; height: 100vh; min-width: 400px; min-height: 600px; } } /* 全局极简滚动条定制 */ *::-webkit-scrollbar { width: var(--sb-width); } *::-webkit-scrollbar-track { background: var(--sb-track-color); } *::-webkit-scrollbar-thumb { background: var(--sb-thumb-color); border-radius: 10px; background-clip: content-box; border: 1px solid transparent; } *::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); } .app { display: flex; flex-direction: column; width: 100%; height: 100%; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; overflow: hidden; /* 内部由 flex 子项控制滚动 */ } /* Animations */ @keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .page-transition-enter { animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; } .page-transition-dashboard { animation: fadeIn 0.3s ease-out forwards; }