.sidebar{width:64px;background:var(--bg2);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:16px 0;gap:4px;flex-shrink:0;z-index:10}
.sidebar .logo{width:36px;height:36px;background:linear-gradient(135deg,var(--accent),var(--accent2));border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:calc(16 * 1rem / 16);color:var(--accent-text);margin-bottom:16px;cursor:default}
[data-theme="light"] .sidebar .logo{background:linear-gradient(135deg,var(--accent),var(--accent2))}
.nav-btn{width:48px;height:48px;border-radius:12px;border:none;background:transparent;color:var(--text3);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:calc(10 * 1rem / 16);transition:all .15s;position:relative}
.nav-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-btn:hover{color:var(--text2);background:var(--bg3)}
.nav-btn.active{color:var(--accent2);background:var(--accent-bg)}
.nav-btn.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:20px;background:var(--accent);border-radius:0 3px 3px 0}
.sidebar-logout-btn{color:var(--red)!important}.sidebar-logout-btn:hover{background:rgba(239,68,68,.1)!important;color:var(--red)!important}
.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:4px;align-items:center}
.theme-toggle{width:40px;height:22px;border-radius:11px;border:none;background:var(--bg4);cursor:pointer;position:relative;transition:background .25s;padding:0;margin-bottom:8px}
.theme-toggle::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--text2);transition:transform .25s,background .25s}
[data-theme="light"] .theme-toggle{background:var(--accent)}
[data-theme="light"] .theme-toggle::after{transform:translateX(18px);background:#fff}
.theme-toggle-wrap{display:flex;flex-direction:column;align-items:center;gap:2px}
.theme-toggle-wrap span{font-size:calc(9 * 1rem / 16);color:var(--text3);user-select:none}
.sidebar-balance{display:flex;flex-direction:column;align-items:center;gap:1px;margin-bottom:4px;cursor:pointer;padding:4px 2px;border-radius:8px;transition:background .15s}
.sidebar-balance:hover{background:var(--bg3)}
.sidebar-balance .sb-amt{font-size:calc(10 * 1rem / 16);font-weight:700;color:var(--accent2);white-space:nowrap;max-width:56px;overflow:hidden;text-overflow:ellipsis}
.sidebar-balance .sb-label{font-size:calc(8 * 1rem / 16);color:var(--text3)}

/* 修复：隐藏侧边栏区域多余滚动条 */
.sidebar, .side-bar, [class*="sidebar"], [class*="side-nav"] {
  overflow: hidden !important;
  overflow-y: hidden !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.sidebar::-webkit-scrollbar, .side-bar::-webkit-scrollbar, [class*="sidebar"]::-webkit-scrollbar, [class*="side-nav"]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}
