* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #6366f1; --primary-light: #818cf8; --primary-dark: #4f46e5;
  --primary-glow: rgba(99,102,241,0.15);
  --success: #10b981; --success-light: #d1fae5;
  --warning: #f59e0b; --warning-light: #fef3c7;
  --danger: #ef4444; --danger-light: #fee2e2;
  --bg: #f1f5f9; --card-bg: #ffffff; --text: #1e293b; --text-secondary: #475569; --text-muted: #64748b;
  --border: #e2e8f0; --border-light: #f1f5f9;
  --sidebar-bg: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
  --sidebar-text: #c7d2fe; --sidebar-active: rgba(99,102,241,0.9);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
  --radius: 12px; --radius-sm: 8px; --radius-xs: 4px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  /* 排版系统 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.35); }
* { scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.2) transparent; }

/* ===== 排版层级 ===== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 20px; background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h2 { font-size: 17px; color: var(--text); }
h3 { font-size: 14px; color: var(--text); font-weight: 700; }
h4 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
small, .text-caption { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 数字专用样式 - 金融数字等宽对齐 */
.num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; font-weight: 700; }
.num-lg { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.num-xl { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; }
.num-sm { font-size: 12px; font-weight: 600; }

/* ===== 登录页 ===== */
.login-page { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 30%, #2d1b69 60%, #1a1040 80%, #0a0a1a 100%); z-index: 9999; overflow: hidden; }
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 浮动光球 */
.login-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: orbFloat 20s ease-in-out infinite; }
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, #6366f1, transparent 70%); top: -10%; left: -5%; animation-duration: 18s; }
.orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, #8b5cf6, transparent 70%); bottom: -15%; right: -5%; animation-duration: 22s; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, #06b6d4, transparent 70%); top: 50%; left: 60%; animation-duration: 25s; animation-delay: -10s; opacity: 0.25; }
.orb-4 { width: 200px; height: 200px; background: radial-gradient(circle, #f43f5e, transparent 70%); top: 20%; right: 20%; animation-duration: 20s; animation-delay: -3s; opacity: 0.2; }
.orb-5 { width: 180px; height: 180px; background: radial-gradient(circle, #10b981, transparent 70%); bottom: 20%; left: 15%; animation-duration: 23s; animation-delay: -8s; opacity: 0.2; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* 登录卡片 */
.login-card { position: relative; width: 340px; padding: 28px 22px 20px; background: rgba(255,255,255,0.07); backdrop-filter: blur(48px) saturate(1.6); -webkit-backdrop-filter: blur(48px) saturate(1.6); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.1); animation: cardAppear .8s cubic-bezier(.16,1,.3,1) forwards; opacity: 0; transform: translateY(24px) scale(.97); }
@keyframes cardAppear { to { opacity: 1; transform: translateY(0) scale(1); } }

/* 卡片发光边框 */
.login-glow { position: absolute; inset: -1px; border-radius: 21px; background: conic-gradient(from var(--glow-angle, 0deg), transparent 0%, rgba(99,102,241,0.4) 10%, transparent 20%, transparent 80%, rgba(139,92,246,0.4) 90%, transparent 100%); z-index: -1; animation: glowRotate 6s linear infinite; opacity: 0.6; }
@keyframes glowRotate { to { --glow-angle: 360deg; } }
@property --glow-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* 登录头部 */
.login-header { text-align: center; margin-bottom: 16px; }
.login-logo { display: flex; justify-content: center; margin-bottom: 10px; animation: logoFloat 3s ease-in-out infinite; }
.login-logo svg { filter: drop-shadow(0 4px 20px rgba(99,102,241,.6)); }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.login-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 2px; margin-bottom: 4px; background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: none; filter: drop-shadow(0 2px 8px rgba(129,140,248,0.3)); }
.login-subtitle { font-family: var(--font-sans); font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 3px; font-weight: 400; }

/* 问候语 */
.login-greeting { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 8px; letter-spacing: 1px; animation: greetFadeIn 1s .5s both; font-family: var(--font-sans); }
@keyframes greetFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 表单 */
.login-form { display: flex; flex-direction: column; gap: 12px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 12px; color: rgba(255,255,255,.35); display: flex; align-items: center; pointer-events: none; transition: color .3s, transform .3s; z-index: 2; }
.input-group:focus-within .input-icon { color: rgba(129,140,248,.9); transform: scale(1.1); }
.input-group input { width: 100%; padding: 10px 36px 10px 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 13px; outline: none; transition: all .3s; letter-spacing: .5px; }
.input-group input::placeholder { color: transparent; }
.input-group input:focus { background: rgba(255,255,255,0.09); border-color: rgba(129,140,248,.5); box-shadow: 0 0 0 4px rgba(129,140,248,.1), 0 0 20px rgba(99,102,241,.1); }

/* 浮动标签 */
.input-float-label { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.35); font-size: 13px; pointer-events: none; transition: all .25s cubic-bezier(.4,0,.2,1); padding: 0 4px; z-index: 2; }
.input-group input:focus ~ .input-float-label,
.input-group input:not(:placeholder-shown) ~ .input-float-label { top: 0; left: 12px; font-size: 10px; color: rgba(129,140,248,.9); background: rgba(30,27,75,0.8); border-radius: 4px; letter-spacing: 1px; }

/* 密码显隐切换 */
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.35); cursor: pointer; padding: 4px; display: flex; align-items: center; transition: color .3s; z-index: 2; }
.pwd-toggle:hover { color: rgba(255,255,255,.7); }
.pwd-toggle .eye-closed { display: none; }
.pwd-toggle.showing .eye-open { display: none; }
.pwd-toggle.showing .eye-closed { display: block; }

/* 错误提示 */
.login-error { color: #fff; font-size: 12px; text-align: center; min-height: 16px; padding: 0; margin: 3px 0 2px; transition: all .3s; font-family: var(--font-sans); border-radius: 8px; opacity: 0; transform: translateY(-4px); }
.login-error:not(:empty) { opacity: 1; transform: translateY(0); background: rgba(239,68,68,.25); border: 1px solid rgba(239,68,68,.4); padding: 6px 10px; animation: errorShake .4s ease; }
@keyframes errorShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* 登录按钮 */
.login-btn { margin-top: 2px; padding: 11px; background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa); border: none; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 3px; cursor: pointer; position: relative; overflow: hidden; transition: all .3s cubic-bezier(.4,0,.2,1); font-family: var(--font-display); box-shadow: 0 4px 16px rgba(99,102,241,0.4); }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.55), 0 0 20px rgba(139,92,246,.2); }
.login-btn:active { transform: translateY(0) scale(.98); }
.login-btn.loading .login-btn-text { opacity: 0; }
.login-btn.loading .login-btn-loader { opacity: 1; }
.login-btn-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; opacity: 0; transition: opacity .3s; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* 按钮光泽动画 */
.login-btn-shine { position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transform: skewX(-20deg); animation: btnShine 4s ease-in-out infinite; }
@keyframes btnShine { 0%, 100% { left: -100%; } 50% { left: 150%; } }

.login-btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.3); transform: scale(0); animation: rippleAnim .6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* 分隔线 */
.login-divider { display: flex; align-items: center; margin-top: 14px; gap: 10px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); }
.login-divider span { font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: 3px; white-space: nowrap; }

/* 底部 */
.login-footer { text-align: center; margin-top: 12px; }
.login-footer span { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: 2px; font-weight: 600; text-shadow: 0 0 12px rgba(100,180,255,.3); }

/* 登出动画 */
.login-page.fade-out { animation: loginFadeOut .6s forwards; }
@keyframes loginFadeOut { to { opacity: 0; transform: scale(1.02); pointer-events: none; } }

/* 登录错误抖动 */
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 50%, 90% { transform: translateX(-6px); } 30%, 70% { transform: translateX(6px); } }

/* ===== 平台锁定大锁界面 ===== */
.platform-lock-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10001; background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.platform-lock-content { text-align: center; animation: platformLockIn .6s cubic-bezier(.16,1,.3,1) forwards; opacity: 0; transform: translateY(20px); }
.platform-lock-icon { font-size: 80px; margin-bottom: 24px; filter: drop-shadow(0 0 30px rgba(239,68,68,0.4)); animation: lockPulse 2s ease-in-out infinite; }
.platform-lock-title { font-size: 28px; font-weight: 900; color: #f87171; letter-spacing: -0.02em; margin-bottom: 10px; text-shadow: 0 0 20px rgba(239,68,68,0.3); }
.platform-lock-desc { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.platform-lock-hint { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 1px; }
@keyframes platformLockIn { to { opacity: 1; transform: translateY(0); } }
@keyframes lockPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ===== 主应用 ===== */
.app { display: flex; min-height: 100vh; animation: appFadeIn .6s forwards; opacity: 0; }
@keyframes appFadeIn { to { opacity: 1; } }

/* ===== 侧边栏 ===== */
.sidebar { width: 220px; background: linear-gradient(180deg, #0f0d2e 0%, #1a1650 40%, #251f6e 100%); color: var(--sidebar-text); padding: 20px 0 8px; position: fixed; top: 0; left: 0; bottom: 0; display: flex; flex-direction: column; z-index: 100; overflow-y: auto; overflow-x: hidden; box-shadow: 4px 0 24px rgba(0,0,0,0.15); transition: box-shadow .3s; }
.sidebar:hover { box-shadow: 4px 0 32px rgba(0,0,0,0.2), 2px 0 12px rgba(99,102,241,0.05); }
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.logo { padding: 0 16px 20px; display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; filter: drop-shadow(0 2px 8px rgba(99,102,241,.4)); }
.logo-text { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 1.5px; background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { list-style: none; display: flex; flex-direction: column; gap: 1px; padding: 0 8px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: all .25s cubic-bezier(.4,0,.2,1); font-size: 13px; font-weight: 500; color: var(--sidebar-text); letter-spacing: 0.01em; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.nav-item.active { background: linear-gradient(90deg, rgba(99,102,241,0.25) 0%, rgba(99,102,241,0.08) 100%); color: #fff; border-left: 3px solid #818cf8; padding-left: 13px; box-shadow: inset 0 0 20px rgba(99,102,241,0.08), 0 0 12px rgba(99,102,241,0.06); }
.nav-item.active::after { content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: #818cf8; box-shadow: 0 0 6px rgba(129,140,248,0.6); }
.nav-icon { font-size: 18px; width: 24px; text-align: center; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { opacity: 0.85; transition: opacity .2s; }
.nav-item.active .nav-icon svg, .nav-item:hover .nav-icon svg { opacity: 1; }
.nav-label { flex: 1; }

/* 导航分组 */
.nav-group { margin-bottom: 1px; }
.nav-group-title { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 13px; font-weight: 500; user-select: none; color: var(--sidebar-text); }
.nav-group-title:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-group-title.active-group { color: #fff; }
.nav-arrow { margin-left: auto; font-size: 14px; transition: transform .25s; opacity: .5; }
.nav-group.open .nav-arrow { transform: rotate(90deg); opacity: .8; }
.nav-submenu { list-style: none; max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(0.4,0,0.2,1); padding-left: 8px; }
.nav-group.open .nav-submenu { max-height: 350px; }
.nav-subitem { padding: 8px 12px 8px 30px; border-radius: var(--radius-xs); cursor: pointer; font-size: 12px; color: rgba(199,210,254,.85); transition: var(--transition); }
.nav-subitem:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-subitem.active { background: rgba(99,102,241,.25); color: #fff; font-weight: 500; }

.sidebar-footer { padding: 10px 10px 0; border-top: 1px solid rgba(255,255,255,.06); margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.user-info { display: flex; align-items: center; gap: 6px; }
.user-avatar { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(99,102,241,.3); }
.user-name { font-size: 11px; color: rgba(255,255,255,.85); font-weight: 500; }
.logout-btn { width: 30px; height: 30px; border: none; background: transparent; color: var(--sidebar-text); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.logout-btn:hover { background: rgba(239,68,68,.15); color: #ef4444; }
.sidebar-dev { text-align: center; padding: 6px 0 4px; font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: 2px; font-weight: 600; border-top: 1px solid rgba(255,255,255,.08); margin-top: 4px; }

/* ===== 内容区 ===== */
.content { flex: 1; margin-left: 220px; padding: 20px 24px; min-height: 100vh; background: linear-gradient(180deg, #f1f5f9 0%, #e8ecf4 40%, #f1f5f9 100%); background-attachment: fixed; position: relative; }
.content::before { content: ''; position: fixed; top: 0; left: 220px; right: 0; bottom: 0; background: radial-gradient(ellipse at 20% 0%, rgba(99,102,241,0.04) 0%, transparent 50%), radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.03) 0%, transparent 50%); pointer-events: none; z-index: 0; }
.content > * { position: relative; z-index: 1; }
.page { display: none; }
.page.active { display: block; animation: pageIn .5s cubic-bezier(0.22,1,0.36,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.2); } 50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .18s; }
.card:nth-child(5) { animation-delay: .24s; }
.card:nth-child(6) { animation-delay: .30s; }
.page-header { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; }
.page-header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; padding-top: 4px; }
.page-header-left { flex: 1; }
.page-header h1 { font-family: var(--font-display); font-size: 24px; font-weight: 900; color: var(--text); letter-spacing: -0.03em; background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: flex; align-items: center; gap: 10px; }
.page-header h1 svg { opacity: 0.8; flex-shrink: 0; }
.page-desc { color: var(--text-secondary); margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0.01em; }

/* ===== 1. 精简头部栏 ===== */
.dash-banner { background: linear-gradient(135deg, rgba(67,56,202,0.06) 0%, rgba(59,130,246,0.04) 100%); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: visible; }
.dash-banner-deco { display: none; }
.dash-banner-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-banner-left { flex: 1; }
.dash-banner-greet { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; background: rgba(67,56,202,0.08); border-radius: 10px; margin-bottom: 2px; }
.dash-banner-greet-icon { font-size: 11px; }
.dash-banner-greet-text { font-size: 10px; font-weight: 500; color: var(--text-secondary); }
.dash-banner-title { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 0; }
.dash-banner-sub { display: none; }
.dash-banner-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; padding: 6px 10px; background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 8px; border: 1px solid rgba(255,255,255,0.5); position: relative; }

/* 时间行+齿轮 */
.dash-banner-time-row { display: flex; align-items: center; gap: 8px; }

/* 模块管理齿轮按钮 */
.module-gear-btn { width: 26px; height: 26px; border: none; background: rgba(99,102,241,0.08); border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.module-gear-btn:hover { background: rgba(99,102,241,0.18); color: var(--primary); transform: rotate(45deg); }
.module-gear-btn svg { pointer-events: none; }

/* 模块管理弹出面板 */
.module-panel { display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; width: 260px; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06); border: 1px solid var(--border-light); z-index: 9999; overflow: hidden; animation: modulePanelIn 0.2s ease; }
.module-panel.module-panel-open { display: block; }
@keyframes modulePanelIn { from { opacity: 0; transform: translateY(-8px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.module-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(59,130,246,0.04)); border-bottom: 1px solid var(--border-light); }
.module-panel-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.module-panel-close { font-size: 14px; color: var(--text-muted); cursor: pointer; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: var(--transition); }
.module-panel-close:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.module-panel-body { padding: 8px 0; max-height: 320px; overflow-y: auto; }
.module-panel-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; transition: var(--transition); }
.module-panel-item:hover { background: rgba(99,102,241,0.04); }
.module-panel-info { display: flex; align-items: center; gap: 10px; }
.module-panel-icon { font-size: 16px; width: 22px; text-align: center; }
.module-panel-name { font-size: 13px; font-weight: 600; color: var(--text); }
.dash-banner-time { display: flex; align-items: baseline; line-height: 1; }
.dash-banner-hm { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.dash-banner-colon { font-size: 14px; font-weight: 700; color: var(--text-muted); margin: 0 1px; }
.blink-colon { animation: blinkColon 1s step-end infinite; }
@keyframes blinkColon { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.dash-banner-sec { font-size: 11px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-left: 1px; }
.dash-banner-date { display: flex; align-items: center; gap: 4px; font-size: 10px; }
.dash-banner-date-text { color: var(--text-secondary); font-weight: 500; }
.dash-banner-date-sep { color: var(--border); }
.dash-banner-week { color: var(--text); font-weight: 600; background: rgba(67,56,202,0.08); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.dash-month-select { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.7); border: 1px solid rgba(99,102,241,0.15); border-radius: 6px; padding: 2px 6px; font-size: 11px; color: var(--text); font-weight: 600; cursor: pointer; transition: all .2s; }
.dash-month-select:hover { border-color: rgba(99,102,241,0.4); background: #fff; }
.dash-month-select select { border: none; background: transparent; font-size: 11px; font-weight: 600; color: var(--text); outline: none; cursor: pointer; padding: 0 2px; -webkit-appearance: none; appearance: none; }

/* ===== 通用组件 ===== */
.card { background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--border-light); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s; position: relative; animation: cardSlideIn .4s cubic-bezier(.4,0,.2,1) both; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.5) 30%, rgba(139,92,246,0.5) 70%, transparent 100%); opacity: 0; transition: opacity .3s; }
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,0.08), transparent); pointer-events: none; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.06), 0 8px 30px rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.1); }
.card:hover::before { opacity: 1; }
.card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: var(--text); letter-spacing: -0.01em; }
.card-title svg { opacity: 0.6; flex-shrink: 0; transition: opacity .2s, transform .2s; }
.card:hover .card-title svg { opacity: 0.8; transform: scale(1.05); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ===== 2. 三等宽KPI卡片（紧凑专业版） ===== */
.dash-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.dash-kpi-card { background: rgba(255,255,255,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.6); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02); }
.dash-kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(139,92,246,0.4)); opacity: 0; transition: opacity .3s; }
.dash-kpi-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.12); }
.dash-kpi-card:hover::before { opacity: 1; }
.dash-kpi-card-icon { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-kpi-card-icon svg { opacity: 0.8; }
.dash-kpi-card-icon.income { background: rgba(67,56,202,0.1); color: #4338CA; }
.dash-kpi-card-icon.hours { background: rgba(16,185,129,0.1); color: #10B981; }
.dash-kpi-card-icon.month { background: rgba(59,130,246,0.1); color: #3B82F6; }
.dash-kpi-card-icon.days { background: rgba(245,158,11,0.1); color: #f59e0b; }
.dash-kpi-card-icon.mdays { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.dash-kpi-card-top { display: flex; align-items: center; gap: 6px; }
.dash-kpi-card-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.dash-kpi-card-value { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dash-kpi-card-hint { font-size: 10px; color: var(--text-muted); font-weight: 400; }
/* Hero card (预估工资) - 深紫#4338CA玻璃 */
.dash-kpi-card.hero { background: linear-gradient(135deg, rgba(67,56,202,0.9) 0%, rgba(99,102,241,0.85) 50%, rgba(139,92,246,0.8) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-color: rgba(139,92,246,0.3); box-shadow: 0 4px 16px rgba(67,56,202,0.2), inset 0 1px 0 rgba(255,255,255,0.1); }
.dash-kpi-card.hero:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(67,56,202,0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
.dash-kpi-card.hero .dash-kpi-card-label { color: rgba(255,255,255,0.6); }
.dash-kpi-card.hero .dash-kpi-card-value { color: #fff; font-size: 17px; }
.dash-kpi-card.hero .dash-kpi-card-hint { color: rgba(255,255,255,0.4); }
.dash-kpi-card.hero .dash-kpi-card-icon { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.dash-kpi-card.hero .dash-kpi-card-icon svg { opacity: 1; }
.dash-kpi-card-action { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-settle-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; }
.dash-settle-btn:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.6); }
.dash-settled-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 500; }
.dash-withdraw-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: rgba(255,255,255,0.55); font-size: 12px; cursor: pointer; transition: all .2s; }
.dash-withdraw-btn:hover { background: rgba(255,100,100,0.2); color: rgba(255,200,200,0.9); border-color: rgba(255,100,100,0.4); }
.dash-cell-btn { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font-size: 11px; font-weight: 600; cursor: pointer; margin-top: 4px; transition: all .2s; }
.dash-cell-btn:hover { background: var(--primary); color: #fff; }
.dash-cell-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 12px; background: rgba(67,56,202,0.08); color: var(--primary); font-size: 11px; font-weight: 500; margin-top: 4px; }
.dash-cell-withdraw-btn { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.12); background: transparent; color: var(--text-muted); font-size: 11px; cursor: pointer; margin-top: 4px; margin-left: 4px; transition: all .2s; }
.dash-cell-withdraw-btn:hover { background: rgba(255,100,100,0.08); color: #e53e3e; border-color: rgba(255,100,100,0.3); }

/* ===== 工资管理模块 ===== */
.salary-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); }
.salary-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(99,102,241,0.04); }
.salary-card-paid { opacity: 0.85; }
.salary-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.salary-card-title { display: flex; align-items: center; gap: 8px; }
.salary-month-badge { font-size: 18px; font-weight: 700; color: var(--text); }
.salary-current-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(66,133,244,0.1); color: #4285f4; font-weight: 500; }
.salary-card-status { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.salary-status-paid { background: rgba(16,185,129,0.1); color: #10b981; }
.salary-status-current { background: rgba(66,133,244,0.1); color: #4285f4; }
.salary-status-pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.salary-card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }
.salary-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; }
.salary-section-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 0 2px; margin-top: 4px; border-top: 1px solid rgba(0,0,0,0.06); }
.salary-section-title small { font-weight: 400; color: var(--text-muted); font-size: 11px; margin-left: 4px; }
.salary-section-title:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.salary-section-ot { color: #ef4444; }
.salary-value-ot { color: #f59e0b; font-weight: 600; }
.salary-detail-sub { font-size: 13px; color: var(--text-secondary); }
.salary-detail-label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.salary-detail-value { font-weight: 500; color: var(--text); white-space: nowrap; }
.salary-detail-value small { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.salary-detail-deduct .salary-detail-value { color: #e53e3e; }
.salary-detail-net { padding-top: 8px; margin-top: 4px; border-top: 1px dashed rgba(0,0,0,0.08); }
.salary-detail-net .salary-detail-label { font-weight: 600; color: var(--text); }
.salary-detail-net .salary-detail-value { font-size: 16px; font-weight: 700; color: var(--text); }
.salary-detail-paid .salary-detail-value { color: #10b981; }
.salary-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.salary-amount-highlight { font-size: 16px; font-weight: 700; color: #10b981; }
.salary-amount-unpaid { color: #f59e0b; }
.salary-pay-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 20px; border-radius: 20px; border: none; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
.salary-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.salary-revoke-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.1); background: transparent; color: var(--text-muted); font-size: 12px; cursor: pointer; transition: all .2s; }
.salary-revoke-btn:hover { background: rgba(255,100,100,0.08); color: #e53e3e; border-color: rgba(255,100,100,0.3); }

/* ===== 工资账单 ===== */
.salary-bill { margin-top: 12px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid rgba(16,185,129,0.15); border-radius: 10px; overflow: hidden; }
.salary-bill-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.salary-bill-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.salary-bill-badge { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 10px; background: rgba(255,255,255,0.25); }
.salary-bill-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.salary-bill-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-secondary); }
.salary-bill-row span:last-child { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.salary-bill-deduct span:last-child { color: #e53e3e; }
.salary-bill-total { padding-top: 8px; margin-top: 4px; border-top: 1px dashed rgba(16,185,129,0.3); font-size: 14px; font-weight: 600; }
.salary-bill-total span:first-child { color: var(--text); }
.salary-bill-total span:last-child { color: #059669; font-weight: 700; }
.salary-bill-paid-row span:last-child { color: #10b981; font-weight: 600; }
.salary-bill-remaining span:last-child { color: #f59e0b; font-weight: 500; }


/* ===== 3. 月度结余警示整卡 ===== */
.dash-balance-card { border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; border: 1px solid var(--border-light); transition: all .2s; }
.dash-balance-card.negative { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); }
.dash-balance-card.positive { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.15); }
.dash-balance-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dash-balance-card-icon { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-balance-card.negative .dash-balance-card-icon { background: rgba(239,68,68,0.1); color: #EF4444; }
.dash-balance-card.positive .dash-balance-card-icon { background: rgba(16,185,129,0.1); color: #10B981; }
.dash-balance-card-icon svg { opacity: 0.85; }
.dash-balance-card-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.dash-balance-card-value { font-family: var(--font-display); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; margin-bottom: 1px; }
.dash-balance-card.negative .dash-balance-card-value { color: #EF4444; }
.dash-balance-card.positive .dash-balance-card-value { color: #10B981; }
.dash-balance-card-hint { font-size: 10px; color: var(--text-muted); }
/* 负结余呼吸闪烁 */
.dash-balance-card.negative { animation: balanceBreathe 2.5s ease-in-out infinite; }
@keyframes balanceBreathe { 0%, 100% { border-color: rgba(239,68,68,0.15); } 50% { border-color: rgba(239,68,68,0.35); } }
@media (max-width: 700px) { .dash-kpi { grid-template-columns: 1fr 1fr; } .dash-kpi-card.hero { grid-column: span 2; } }

/* ===== 4. 财务台账折叠抽屉 ===== */
.dash-finance-drawer { background: rgba(255,255,255,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 12px; border: 1px solid rgba(255,255,255,0.6); margin-bottom: 10px; overflow: hidden; transition: box-shadow .3s, transform .3s; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.dash-finance-drawer:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(99,102,241,0.04); }
.dash-finance-header { display: flex; align-items: center; gap: 6px; padding: 8px 12px; cursor: pointer; user-select: none; transition: background .15s; }
.dash-finance-header:hover { background: rgba(0,0,0,0.02); }
.dash-finance-header-icon { width: 22px; height: 22px; border-radius: 6px; background: rgba(67,56,202,0.08); color: #4338CA; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-finance-header-icon svg { opacity: 0.7; }
.dash-finance-header-title { font-size: 11px; font-weight: 700; color: var(--text); }
.dash-finance-header-summary { font-size: 10px; color: var(--text-muted); margin-left: 4px; flex: 1; }
.dash-finance-header-arrow { color: var(--text-muted); transition: transform .2s; font-size: 11px; }
.dash-finance-drawer.open .dash-finance-header-arrow { transform: rotate(180deg); }
.dash-finance-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.dash-finance-drawer.open .dash-finance-body { max-height: 400px; }
.dash-finance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-light); border-top: 1px solid var(--border-light); }
.dash-finance-cell { background: rgba(255,255,255,0.8); padding: 8px 10px; transition: background .15s; }
.dash-finance-cell:hover { background: rgba(0,0,0,0.02); }
.dash-finance-cell-icon { width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; margin-bottom: 3px; }
.dash-finance-cell-icon svg { opacity: 0.65; }
.dash-finance-cell-icon.cyan { background: rgba(8,145,178,0.1); color: #0891b2; }
.dash-finance-cell-icon.teal { background: rgba(13,148,136,0.1); color: #0d9488; }
.dash-finance-cell-icon.red { background: rgba(239,68,68,0.08); color: #EF4444; }
.dash-finance-cell-icon.purple { background: rgba(67,56,202,0.08); color: #4338CA; }
.dash-finance-cell-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.dash-finance-cell-value { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.dash-finance-cell-label { font-size: 9px; color: var(--text-muted); margin-top: 1px; font-weight: 500; }
@media (max-width: 700px) { .dash-finance-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 5. 操作按钮分组（蓝色实心+灰色描边） ===== */
.dash-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dash-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .25s cubic-bezier(.4,0,.2,1); border: none; outline: none; white-space: nowrap; position: relative; overflow: hidden; }
.dash-btn svg { width: 15px; height: 15px; }
.dash-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.dash-btn:hover::after { opacity: 1; }
.dash-btn-primary { background: linear-gradient(135deg, #3B82F6, #2563eb); color: #fff; box-shadow: 0 2px 8px rgba(59,130,246,0.25); }
.dash-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(59,130,246,0.35), 0 0 12px rgba(59,130,246,0.1); filter: brightness(1.05); }
.dash-btn-primary:active { transform: translateY(0) scale(0.97); }
.dash-btn-outline { background: transparent; color: var(--text-secondary); border: 1.5px solid #94A3B8; }
.dash-btn-outline:hover { border-color: #64748b; color: var(--text); background: rgba(0,0,0,0.02); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.dash-actions-sep { width: 1px; height: 24px; background: var(--border-light); margin: 0 4px; }

/* ===== 6. 底部并排双进度卡片 ===== */
.dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dash-progress-card { background: rgba(255,255,255,0.65); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 12px; padding: 12px; border: 1px solid rgba(255,255,255,0.6); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.dash-progress-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.06), 0 0 0 1px rgba(99,102,241,0.06); }
.dash-progress-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-progress-title { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
.dash-progress-title svg { opacity: 0.6; }
.dash-progress-pct { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-progress-pct.income { color: #4338CA; }
.dash-progress-pct.hours { color: #10B981; }
.dash-ring-row { display: flex; align-items: center; gap: 12px; }
.dash-ring { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.dash-ring svg { width: 50px; height: 50px; transform: rotate(-90deg); }
.dash-ring-bg { fill: none; stroke: var(--border-light); stroke-width: 3; }
.dash-ring-fill { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
.dash-ring-fill.income { stroke: #4338CA; }
.dash-ring-fill.hours { stroke: #10B981; }
.dash-ring-fill.green { stroke: #10B981; }
.dash-ring-fill.orange { stroke: #f59e0b; }
.dash-ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 11px; font-weight: 800; color: var(--text); }
.dash-ring-info { flex: 1; }
.dash-ring-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dash-ring-bar { height: 6px; border-radius: 3px; background: var(--border-light); overflow: hidden; }
.dash-ring-bar-fill { height: 100%; border-radius: 3px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.dash-ring-bar-fill.income { background: linear-gradient(90deg, #4338CA, #6366f1); }
.dash-ring-bar-fill.hours { background: linear-gradient(90deg, #10B981, #34d399); }
.dash-ring-bar-fill.green { background: linear-gradient(90deg, #10B981, #34d399); }
.dash-ring-bar-fill.orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dash-ring-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
/* 进度条载入动画 */
@keyframes progressLoad { from { width: 0; } }
.dash-ring-bar-fill { animation: progressLoad .8s cubic-bezier(.4,0,.2,1); }
@media (max-width: 600px) { .dash-bottom { grid-template-columns: 1fr; } }

/* ===== 敏感金额（增强hover） ===== */
.sensitive-amount { cursor: pointer; user-select: none; letter-spacing: 3px; transition: letter-spacing 0.3s, opacity 0.2s; }
.sensitive-amount:hover { opacity: 0.5; }
.sensitive-amount.revealed { letter-spacing: 0; opacity: 1; }

/* ===== 旧组件兼容（隐藏） ===== */
.dash-modules, .dash-stats, .dash-quick, .dash-quick-card { display: none; }

/* ===== 数字滚动动画 ===== */
@keyframes countUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.dash-kpi-card-value, .dash-balance-card-value { animation: countUp .5s cubic-bezier(.4,0,.2,1); }

/* ===== 通用组件 ===== */
.card { background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--border-light); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s; position: relative; animation: cardSlideIn .4s cubic-bezier(.4,0,.2,1) both; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.5) 30%, rgba(139,92,246,0.5) 70%, transparent 100%); opacity: 0; transition: opacity .3s; }
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,0.08), transparent); pointer-events: none; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.06), 0 8px 30px rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.1); }
.card:hover::before { opacity: 1; }
.card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: var(--text); letter-spacing: -0.01em; }
.card-title svg { opacity: 0.6; flex-shrink: 0; transition: opacity .2s, transform .2s; }
.card:hover .card-title svg { opacity: 0.8; transform: scale(1.05); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ===== 工资结算概览 ===== */
.salary-overview { display: flex; flex-direction: column; gap: 8px; }
.salary-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); transition: var(--transition); }
.salary-item:hover { background: #eef2ff; }
.salary-label { font-size: 12px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.salary-label svg { opacity: 0.6; flex-shrink: 0; }
.salary-value { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.salary-value.advance { color: #0891b2; }
.salary-value.paid { color: #0d9488; }
.salary-value.savings { color: var(--primary); }
.salary-value.initial { color: #7c3aed; }
.salary-value.formula { color: var(--text-muted); font-size: 10px; font-weight: 500; }
.salary-item-hint { background: transparent !important; padding: 6px 12px !important; }

/* ===== 系统日志 ===== */
.log-list { max-height: 300px; overflow-y: auto; }
.log-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--bg); border-radius: var(--radius-xs); margin-bottom: 4px; font-size: 12px; transition: all .2s; border-left: 2px solid transparent; }
.log-item:hover { background: #eef2ff; border-left-color: var(--primary); }
.log-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
.log-time { color: var(--text-muted); font-size: 11px; font-family: 'Courier New', monospace; flex-shrink: 0; min-width: 120px; }
.log-detail { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 工时记账 ===== */
.workhours-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wh-stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-light); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); overflow: hidden; }
.wh-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.06); }
.wh-stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.wh-stat-icon svg { opacity: 0.7; }
.wh-stat-icon.blue { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #4f46e5; }
.wh-stat-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.wh-stat-icon.orange { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.wh-stat-info { min-width: 0; flex: 1; }
.wh-stat-info h3 { font-size: 18px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-stat-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.wh-stat-pay { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--success); white-space: nowrap; flex-shrink: 0; }
.workhours-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.workhours-summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 600; }
.workhours-total-pay { color: var(--success); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 工时状态徽章 */
.wh-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; letter-spacing: 1px; vertical-align: middle; }
.wh-badge-overtime { color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 2px 8px rgba(239,68,68,.35); }
.wh-badge-normal { color: #fff; background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 2px 8px rgba(34,197,94,.3); }
.wh-badge-short { color: #fff; background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 2px 8px rgba(148,163,184,.3); }

/* ===== 智能日历 ===== */
.cal-countdown-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); border-radius: var(--radius); padding: 14px 18px; color: #fff; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(239,68,68,.25); }
.cal-countdown-icon { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cal-countdown-icon svg { color: #fff; }
.cal-countdown-info h3 { font-size: 12px; font-weight: 500; opacity: .9; margin-bottom: 4px; }
.cal-holiday-name { font-weight: 800; font-size: 13px; }
.cal-countdown-days { display: flex; align-items: baseline; gap: 4px; }
.cal-countdown-num { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-family: var(--font-display); }
.cal-countdown-unit { font-size: 12px; font-weight: 600; opacity: .8; }

.cal-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.cal-stat { background: var(--card-bg); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); text-align: center; border: 1px solid var(--border-light); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); }
.cal-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,0.04); }
.cal-stat-value { font-size: 18px; font-weight: 800; }
.cal-stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.cal-stat.work .cal-stat-value { color: var(--primary); }
.cal-stat.rest .cal-stat-value { color: var(--success); }
.cal-stat.leave .cal-stat-value { color: var(--warning); }
.cal-stat.holiday .cal-stat-value { color: #ef4444; }

.cal-legend { display: flex; gap: 10px; margin-bottom: 8px; padding: 0 4px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.cal-legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-weekday { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-secondary); padding: 6px 0; text-transform: uppercase; letter-spacing: 1px; }
.calendar-day { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 3px 1px; border-radius: 6px; font-size: 12px; position: relative; transition: var(--transition); cursor: default; border: 1px solid transparent; gap: 1px; }
.calendar-day:hover { background: var(--border-light); }
.calendar-day.other-month { color: #cbd5e1; min-height: 24px; justify-content: center; }
.calendar-day.today { font-weight: 700; background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--primary); border-color: rgba(99,102,241,.2); }
.calendar-day.holiday { background: rgba(239,68,68,0.04); border-color: rgba(239,68,68,.12); }
.calendar-day.today.holiday { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: rgba(239,68,68,.2); }
.cal-clickable { cursor: pointer !important; }
.cal-clickable:hover { background: #e0e7ff !important; border-color: rgba(99,102,241,.2); }
.calendar-day.holiday.cal-clickable:hover { background: rgba(239,68,68,0.08) !important; }

.cal-day-num { font-weight: 600; font-size: 12px; line-height: 1; margin-top: 2px; }
.cal-hol-badge { font-size: 8px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); padding: 1px 4px; border-radius: 3px; line-height: 14px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cal-wh-badge { font-size: 8px; font-weight: 700; color: #6366f1; background: rgba(99,102,241,0.1); padding: 1px 4px; border-radius: 3px; line-height: 14px; }
.cal-wh-badge.overtime { color: #ef4444; background: rgba(239,68,68,0.1); }
.cal-dot { font-size: 7px; font-weight: 800; border-radius: 3px; padding: 0 2px; line-height: 12px; }
.cal-dot-work { background: #e0e7ff; color: var(--primary); }
.cal-dot-rest { background: #d1fae5; color: #065f46; }
.cal-dot-leave { background: #fef3c7; color: #92400e; }
.cal-memo-dot { width: 5px; height: 5px; border-radius: 50%; background: #10b981; position: absolute; top: 4px; right: 4px; }

/* 日历详情面板 */
.cal-detail-holiday { display: inline-block; font-size: 10px; font-weight: 700; color: #ef4444; background: rgba(239,68,68,0.1); padding: 1px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.cal-detail-holiday-banner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(249,115,22,0.08)); border-radius: var(--radius-sm); border-left: 3px solid #ef4444; margin-bottom: 10px; font-weight: 600; color: #ef4444; }
.cal-detail-work-banner { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(99,102,241,0.06); border-radius: var(--radius-sm); border-left: 3px solid var(--primary); margin-bottom: 10px; font-size: 13px; }
.cal-detail-work-banner.overtime { background: rgba(239,68,68,0.06); border-left-color: #ef4444; }
.cal-detail-work-banner strong { font-size: 14px; }
.cal-ot-tag { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: #ef4444; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.cal-detail-pay { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--success); }

.cal-day-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-day-form .full { grid-column: 1 / -1; }
.cal-day-form textarea { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: var(--transition); font-family: var(--font-sans); resize: vertical; width: 100%; }
.cal-day-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

/* 备忘事项 */
.cal-memo-section { margin-top: 10px; }
.cal-memo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-memo-header h4 { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text); }
.cal-memo-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 6px; transition: var(--transition); border-left: 3px solid var(--border); }
.cal-memo-item:hover { background: #eef2ff; }
.cal-memo-item.remind { border-left-color: #f59e0b; background: rgba(245,158,11,0.04); }
.cal-memo-text { font-size: 12px; color: var(--text); flex: 1; min-width: 0; word-break: break-word; }
.cal-memo-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 12px; }
.cal-memo-remind { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--text-muted); cursor: pointer; }
.cal-memo-remind input { margin: 0; cursor: pointer; }
.cal-memo-empty { text-align: center; padding: 12px; color: var(--text-muted); font-size: 13px; }

/* ===== 存钱目标 ===== */
.savings-overview { margin-bottom: 16px; }
.savings-real-card { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%); border-radius: var(--radius); padding: 20px; color: #fff; text-align: center; box-shadow: 0 12px 32px rgba(99,102,241,.3); transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.savings-real-card::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%; background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none; }
.savings-real-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(99,102,241,.35); }
.savings-real-label { font-size: 12px; opacity: .85; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.savings-real-value { font-size: 20px; font-weight: 800; letter-spacing: -.5px; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.savings-real-hint { font-size: 10px; opacity: .65; margin-top: 8px; }
.savings-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.savings-goal-card { border-left: 4px solid var(--primary); }
.savings-goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.savings-goal-header h3 { font-size: 14px; font-weight: 700; }
.savings-goal-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.savings-progress-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin-bottom: 8px; }
.savings-progress-fill { height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(0.4,0,0.2,1); }
.savings-goal-footer { font-size: 12px; color: var(--text-muted); }
.savings-mini-item { margin-bottom: 8px; }
.savings-mini-info { display: flex; justify-content: space-between; margin-bottom: 6px; }
.savings-mini-name { font-weight: 600; font-size: 12px; }
.savings-mini-amount { font-size: 11px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.savings-tag { display: inline-block; font-size: 9px; background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; padding: 1px 6px; border-radius: 4px; font-weight: 600; vertical-align: middle; margin-left: 4px; }
.finance-hint { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-radius: var(--radius-sm); margin-top: 8px; font-size: 12px; color: #065f46; font-weight: 500; }
.fin-hint-icon { display: inline-flex; align-items: center; margin-right: 6px; opacity: 0.7; }

/* ===== 自定义分类管理 ===== */
.cat-manager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-manager-section h4 { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 24px; }
.cat-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; font-size: 11px; font-weight: 500; color: var(--text); transition: var(--transition); }
.cat-tag.default { background: #eef2ff; border-color: #c7d2fe; color: var(--primary); }
.cat-tag-del { width: 14px; height: 14px; border: none; background: rgba(239,68,68,.15); color: #ef4444; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; transition: var(--transition); }
.cat-tag-del:hover { background: #ef4444; color: #fff; }
.cat-add-row { display: flex; gap: 6px; }
.cat-add-row input { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-xs); font-size: 12px; outline: none; transition: var(--transition); font-family: var(--font-sans); }
.cat-add-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.summary-card.savings-eligible { border-left: 4px solid var(--primary); }
.summary-card.savings-eligible .summary-value { color: var(--primary); }
.restore-preview { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.restore-item { padding: 6px 0; font-size: 14px; color: var(--text-secondary); }

/* ===== 财务 ===== */
.finance-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary-card { background: var(--card-bg); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--border-light); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); }
.summary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.06); }
.summary-card.income { border-left: 4px solid var(--success); }
.summary-card.expense { border-left: 4px solid var(--danger); }
.summary-card.balance { border-left: 4px solid var(--primary); }
.summary-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.summary-value { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary-card.income .summary-value { color: var(--success); }
.summary-card.expense .summary-value { color: var(--danger); }
.summary-card.balance .summary-value { color: var(--primary); }
.finance-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group select, .form-group textarea { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: all .25s cubic-bezier(.4,0,.2,1); background: var(--card-bg); font-family: var(--font-sans); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow), 0 2px 8px rgba(99,102,241,0.08); transform: translateY(-1px); }
.finance-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 6px; transition: all .25s cubic-bezier(.4,0,.2,1); border-left: 3px solid transparent; position: relative; }
.finance-item:hover { background: #eef2ff; transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.finance-item.income-type { border-left-color: var(--success); }
.finance-item.expense-type { border-left-color: var(--danger); }
.finance-item-left { display: flex; align-items: center; gap: 10px; }
.finance-item-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.finance-item-icon.income { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.finance-item-icon.expense { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.finance-item-info h4 { font-size: 13px; font-weight: 600; color: var(--text); }
.finance-item-info p { font-size: 12px; color: var(--text-secondary); }
.finance-item-amount { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.finance-item-amount.income { color: var(--success); }
.finance-item-amount.expense { color: var(--danger); }
.finance-item-actions { display: flex; gap: 6px; }
.btn-icon { width: 28px; height: 28px; border: none; background: transparent; color: var(--text-secondary); border-radius: var(--radius-xs); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s cubic-bezier(.4,0,.2,1); }
.btn-icon svg { width: 14px; height: 14px; }
.btn-icon:hover { background: var(--border); color: var(--text); transform: scale(1.05); }
.btn-icon.delete:hover { background: var(--danger-light); color: var(--danger); transform: scale(1.05); }

/* 图表 */
.chart-container { height: 160px; display: flex; align-items: flex-end; gap: 6px; padding: 12px 0; }
.chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bar { width: 100%; max-width: 30px; border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(0.4,0,0.2,1); position: relative; }
.chart-bar.income { background: linear-gradient(180deg, var(--success), #34d399); }
.chart-bar.expense { background: linear-gradient(180deg, var(--danger), #f87171); }
.chart-bar-label { font-size: 10px; color: var(--text-secondary); font-weight: 500; }
.chart-legend { display: flex; justify-content: center; gap: 16px; margin-top: 10px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.chart-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.chart-legend-dot.income { background: var(--success); }
.chart-legend-dot.expense { background: var(--danger); }

/* 分类饼图 */
.pie-chart-wrapper { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px; }
.pie-chart { width: 150px; height: 150px; border-radius: 50%; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.pie-legend { display: flex; flex-direction: column; gap: 6px; }
.pie-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.pie-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.pie-legend-amount { color: var(--text-secondary); font-size: 11px; margin-left: auto; padding-left: 20px; }

.empty-state { text-align: center; padding: 32px 16px; color: var(--text-secondary); }
.empty-state-icon { font-size: 36px; margin-bottom: 10px; opacity: .5; display: flex; align-items: center; justify-content: center; }
.empty-state-text { font-size: 13px; font-weight: 500; }
.month-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.month-filter label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.month-filter input[type="month"] { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: var(--transition); font-family: var(--font-sans); }
.month-filter input[type="month"]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

/* ===== 智能分析 ===== */
.analysis-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.analysis-tab { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card-bg); color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: var(--font-sans); }
.analysis-tab:hover { border-color: var(--primary-light); color: var(--primary); background: rgba(99,102,241,0.04); }
.analysis-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.analysis-tab svg { width: 14px; height: 14px; }

.analysis-filter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-group select, .filter-group input[type="month"], .filter-group input[type="date"] { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: var(--transition); font-family: var(--font-sans); background: var(--card-bg); color: var(--text); }
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }

.analysis-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.analysis-stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1); }
.analysis-stat-card:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.06); transform: translateY(-3px); }
.analysis-stat-card .as-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.analysis-stat-card .as-value { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-display); color: var(--text); }
.analysis-stat-card .as-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.analysis-stat-card.blue .as-icon { background: rgba(99,102,241,0.1); color: #6366f1; }
.analysis-stat-card.green .as-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.analysis-stat-card.purple .as-icon { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.analysis-stat-card.orange .as-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.analysis-stat-card.red .as-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
.analysis-stat-card.teal .as-icon { background: rgba(6,182,212,0.1); color: #06b6d4; }

/* 薪资明细 */
.ot-pay-detail { display: flex; flex-direction: column; gap: 8px; }
.ot-pay-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm); font-size: 12px; }
.ot-pay-row.overtime { background: rgba(239,68,68,0.06); border-left: 3px solid var(--danger); }
.ot-pay-row.total { background: rgba(99,102,241,0.06); border-left: 3px solid var(--primary); font-weight: 700; }
.ot-pay-amount { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }

/* 工时柱状图 */
.ot-chart-container { height: 150px; display: flex; align-items: flex-end; gap: 4px; padding: 12px 0; position: relative; }
.ot-chart-std-line { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(239,68,68,0.4); z-index: 1; }
.ot-chart-std-line span { position: absolute; right: 0; top: -20px; font-size: 11px; color: var(--danger); font-weight: 600; }
.ot-chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ot-chart-bar { width: 100%; max-width: 28px; border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(0.4,0,0.2,1); position: relative; min-height: 4px; }
.ot-chart-bar.normal { background: linear-gradient(180deg, #6366f1, #818cf8); }
.ot-chart-bar.overtime { background: linear-gradient(180deg, #ef4444, #f87171); }
.ot-bar-val { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.ot-chart-bar-label { font-size: 9px; color: var(--text-muted); font-weight: 500; }

/* 加班明细 */
.ot-detail-list { display: flex; flex-direction: column; gap: 6px; }
.ot-detail-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(239,68,68,0.04); border-radius: var(--radius-sm); border-left: 3px solid var(--danger); }
.ot-detail-date { font-size: 12px; font-weight: 600; color: var(--text); min-width: 80px; }
.ot-detail-hours { font-size: 12px; color: var(--text-secondary); }
.ot-detail-ot { font-size: 12px; color: var(--danger); font-weight: 600; flex: 1; }
.ot-detail-pay { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--success); }

/* 重复消费 */
.exp-repeat-list { display: flex; flex-direction: column; gap: 6px; }
.exp-repeat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); transition: var(--transition); }
.exp-repeat-row:hover { background: #eef2ff; }
.exp-repeat-rank { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.exp-repeat-info { flex: 1; min-width: 0; }
.exp-repeat-info h4 { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-repeat-info p { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.exp-repeat-amount { font-size: 13px; font-weight: 800; color: var(--danger); flex-shrink: 0; }

/* 环比对比表 */
.sum-compare-table { display: flex; flex-direction: column; gap: 0; }
.sum-compare-header { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 8px; padding: 8px 12px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--border-light); }
.sum-compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 8px; padding: 10px 12px; font-size: 12px; align-items: center; border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.sum-compare-row:hover { background: var(--bg); }
.sum-compare-row.highlight { background: rgba(99,102,241,0.04); font-weight: 600; border-left: 3px solid var(--primary); }
.sum-change { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.sum-change.up { color: #10b981; background: rgba(16,185,129,0.1); }
.sum-change.down { color: #ef4444; background: rgba(239,68,68,0.1); }
.sum-change.flat { color: var(--text-muted); background: var(--bg); }

@media (max-width: 768px) {
  .analysis-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-tabs { gap: 6px; }
  .analysis-tab { padding: 8px 14px; font-size: 13px; }
  .sum-compare-header, .sum-compare-row { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
  .sum-compare-header span:nth-child(2), .sum-compare-row span:nth-child(2),
  .sum-compare-header span:nth-child(4), .sum-compare-row span:nth-child(4) { display: none; }
}

/* ===== 设置页 ===== */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-group { margin-bottom: 0; }
.settings-group-title { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; margin-bottom: 8px; padding: 5px 10px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); border-radius: var(--radius-xs); display: flex; align-items: center; gap: 6px; border-left: 3px solid var(--primary); }
.settings-section { padding: 14px; }
.settings-item { display: flex; flex-direction: column; gap: 6px; }
.settings-item-header { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 5px; }
.settings-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.settings-input-sm { flex: 1; min-width: 80px; padding: 5px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: var(--radius-xs); outline: none; transition: var(--transition); background: var(--card-bg); }
.settings-input-sm:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.settings-arrow { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.settings-unit { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.settings-hint { font-size: 11px; color: var(--text-muted); flex: 1; }
.settings-sep { height: 1px; background: var(--border-light); margin: 10px 0; }
.btn-xs { padding: 3px 10px; font-size: 11px; border-radius: var(--radius-xs); white-space: nowrap; }
.settings-desc { color: var(--text-secondary); font-size: 12px; margin-bottom: 8px; line-height: 1.5; }
.settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings-form .form-group.full { grid-column: 1 / -1; }
.settings-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.settings-divider { height: 1px; background: var(--border-light); margin: 10px 0; }

/* ===== 模块管理 ===== */
.module-list { display: flex; flex-direction: column; gap: 6px; }
.module-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg); border-radius: var(--radius-xs); transition: var(--transition); border: 1px solid var(--border-light); }
.module-item:hover { background: #eef2ff; border-color: rgba(99,102,241,.2); transform: translateX(4px); }
.module-info { display: flex; align-items: center; gap: 8px; }
.module-icon { font-size: 18px; width: 22px; text-align: center; }
.module-name { font-size: 12px; font-weight: 600; color: var(--text); }
.module-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.module-switch input { opacity: 0; width: 0; height: 0; }
.module-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 20px; transition: var(--transition); }
.module-slider::before { content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.module-switch input:checked + .module-slider { background: var(--primary); }
.module-switch input:checked + .module-slider::before { transform: translateX(16px); }

/* ===== 主题换色 ===== */


/* ===== Toast ===== */
.toast-container { position: fixed; top: 16px; right: 16px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 16px; border-radius: var(--radius-sm); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,0.1) inset; animation: slideIn .3s cubic-bezier(.4,0,.2,1), fadeOut .3s ease 2.7s; min-width: 180px; backdrop-filter: blur(12px); letter-spacing: 0.01em; position: relative; overflow: hidden; }
.toast::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); }
.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: linear-gradient(135deg, #6366f1, #4f46e5); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ===== 通用按钮/表格 ===== */
.btn { padding: 10px 24px; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s cubic-bezier(.4,0,.2,1); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); letter-spacing: 0.01em; position: relative; overflow: hidden; }
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.btn:hover::after { opacity: 1; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.25); }
.btn-primary:hover { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 8px 24px rgba(99,102,241,0.35), 0 0 20px rgba(99,102,241,0.1); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn-success:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.35), 0 0 20px rgba(16,185,129,0.1); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.btn-danger:hover { box-shadow: 0 8px 24px rgba(239,68,68,0.35), 0 0 20px rgba(239,68,68,0.1); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-glow); box-shadow: 0 4px 12px rgba(99,102,241,0.1); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-xs); }
.record-list { display: flex; flex-direction: column; gap: 8px; }
.record-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm); font-size: 13px; transition: all .25s cubic-bezier(.4,0,.2,1); border-left: 3px solid transparent; }
.record-item:hover { background: #eef2ff; border-left-color: var(--primary); transform: translateX(2px); }
.record-item .date { font-weight: 600; color: var(--text); }
.attendance-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.attendance-table th, .attendance-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.attendance-table th { font-weight: 700; color: var(--text-secondary); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; background: linear-gradient(180deg, #f8fafc, #f1f5f9); position: sticky; top: 0; z-index: 1; }
.attendance-table th::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2)); }
.attendance-table tbody tr { transition: all .2s; }
.attendance-table tbody tr:nth-child(even) { background: rgba(248,250,252,0.5); }
.attendance-table tbody tr:hover td { background: rgba(99,102,241,0.04); }
.attendance-table tbody tr:hover { box-shadow: inset 3px 0 0 var(--primary); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calendar-header h3 { font-size: 15px; font-weight: 700; }
.calendar-nav { display: flex; gap: 6px; }
.calendar-nav button { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--card-bg); border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--text-secondary); }
.calendar-nav button:hover { background: var(--primary-glow); border-color: var(--primary-light); color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .sidebar { width: 64px; padding: 12px 0; }
  .logo-text, .nav-label, .nav-arrow, .nav-submenu, .sidebar-footer, .sidebar-dev { display: none; }
  .logo { padding: 0 0 16px; justify-content: center; }
  .nav-item, .nav-group-title { justify-content: center; padding: 10px; }
  .content { margin-left: 64px; padding: 14px; }
  .dash-kpi { grid-template-columns: 1fr 1fr; }
  .dash-kpi-card.hero { grid-column: span 2; }
  .dash-finance-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom { grid-template-columns: 1fr; }
  .dash-actions { flex-wrap: wrap; }
  .workhours-stats { grid-template-columns: 1fr 1fr; }
  .finance-summary { grid-template-columns: 1fr 1fr; }
  .savings-form { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cal-day-form { grid-template-columns: 1fr; }
}

/* ===== 手机版专属设计（全新，不覆盖PC版） ===== */

/* 手机端检测：隐藏PC侧边栏，全屏布局 */
@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .content { margin-left: 0 !important; padding: 0 !important; min-height: 100vh; background: linear-gradient(180deg, #f5f7fa 0%, #eef1f8 40%, #f5f7fa 100%); }
  .content::before { left: 0; }
  .page { padding: 0 16px 100px 16px; }
  .page.active { animation: mPageIn 0.35s cubic-bezier(0.22,1,0.36,1); }
  @keyframes mPageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .page-header { margin-bottom: 16px !important; padding-top: 12px; }
  .page-header h1 { font-size: 20px !important; }
  .page-desc { font-size: 12px !important; }
  .card { border-radius: 12px !important; padding: 12px !important; margin-bottom: 10px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; }
  .card-title { font-size: 13px !important; margin-bottom: 8px !important; }
  .login-card { width: 92vw !important; max-width: 360px !important; padding: 20px 16px 16px !important; }
  .login-title { font-size: 22px !important; }
  .toast-container { top: auto !important; bottom: 80px !important; right: 12px !important; left: 12px !important; }
  .toast { min-width: 0 !important; font-size: 13px !important; padding: 12px 16px !important; border-radius: 12px !important; }
  .ip-alert-card { padding: 20px !important; max-width: 92% !important; border-radius: 20px !important; }

  /* 表单全宽 */
  .finance-form, .workhours-form, .settings-form, .savings-form, .grid-2, .cal-day-form, .settings-grid { grid-template-columns: 1fr !important; }
  .settings-row { flex-wrap: wrap; }
  .settings-input-sm { min-width: 60px; }
  .finance-summary { grid-template-columns: 1fr 1fr !important; }
  .btn { width: 100%; padding: 13px 20px !important; font-size: 15px !important; border-radius: 12px !important; }
  .btn-sm { width: auto; padding: 8px 14px !important; font-size: 12px !important; }

  /* 仪表盘 */
  .dash-banner { border-radius: 12px !important; padding: 12px !important; }
  .dash-banner-content { flex-direction: column !important; }
  .dash-banner-right { align-self: flex-end !important; }
  .module-panel { width: 240px !important; right: -10px !important; }
  .dash-kpi { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dash-kpi-card { padding: 10px !important; border-radius: 10px !important; }
  .dash-kpi-card.hero { grid-column: span 2 !important; }
  .dash-kpi-value { font-size: 18px !important; }
  .dash-finance-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dash-bottom { grid-template-columns: 1fr !important; }
  .dash-actions { flex-wrap: wrap; gap: 8px !important; }
  .dash-actions .btn { flex: 1; min-width: 0; padding: 10px 12px !important; font-size: 13px !important; width: auto !important; }
  .workhours-stats { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .wh-stat-card { padding: 12px !important; }
  .wh-stat-info h3 { font-size: 14px !important; }
  .wh-stat-pay { font-size: 12px !important; }
  .analysis-stats-grid { grid-template-columns: 1fr 1fr !important; }
  .analysis-tabs { gap: 4px !important; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .analysis-tab { padding: 8px 12px !important; font-size: 12px !important; white-space: nowrap; }
  .sum-compare-header, .sum-compare-row { grid-template-columns: 1fr 1fr !important; font-size: 12px !important; }
  .attendance-table th, .attendance-table td { padding: 10px 12px !important; font-size: 13px !important; }
}

/* ===== 手机版底部导航（全新设计） ===== */
.m-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.06);
  z-index: 200;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  align-items: flex-end;
  justify-content: space-around;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

.m-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  padding-bottom: 4px;
  transition: color 0.25s;
  position: relative;
}

.m-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.m-nav-item.active {
  color: #6366f1;
}

.m-nav-item.active svg {
  transform: scale(1.15);
}

.m-nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}

.m-nav-item span {
  line-height: 1;
  letter-spacing: 0.02em;
}

/* 中间记账按钮 */
.m-nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: -22px;
}

.m-nav-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(99,102,241,0.45), 0 0 0 4px rgba(99,102,241,0.1);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.m-nav-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%); pointer-events: none; }

.m-nav-fab svg {
  width: 26px;
  height: 26px;
}

.m-nav-fab:active {
  transform: scale(0.9);
}

.m-nav-fab.open {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 4px 16px rgba(239,68,68,0.45), 0 0 0 4px rgba(239,68,68,0.1);
}

@media (max-width: 768px) {
  .m-nav { display: flex; }
}

/* ===== 手机版底部弹窗（全新设计） ===== */
.m-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.m-sheet-overlay.show {
  display: block;
  opacity: 1;
}

.m-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 301;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12), 0 -2px 8px rgba(0,0,0,0.06);
}

.m-sheet.show {
  transform: translateY(0);
}

.m-sheet-bar {
  width: 36px;
  height: 4px;
  background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0);
  border-radius: 4px;
  margin: 0 auto 16px;
}

.m-sheet-content {
  padding-bottom: 8px;
}

/* ===== 手机版快捷记账面板内容 ===== */
.m-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.m-sheet-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.m-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  transition: background 0.2s;
}

.m-sheet-close:active {
  background: #e2e8f0;
}

/* 类型切换Tab */
.m-type-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 24px;
}

.m-type-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.m-type-tab.active-expense {
  background: #fff;
  color: #ef4444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.m-type-tab.active-income {
  background: #fff;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.m-type-tab.active-workhour {
  background: #fff;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 金额输入 */
.m-amount-area {
  text-align: center;
  margin-bottom: 20px;
  padding: 8px 0;
}

.m-amount-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
  font-weight: 500;
}

.m-amount-input {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  border: none;
  outline: none;
  background: transparent;
  color: #1e293b;
  width: 100%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  caret-color: #6366f1;
}

.m-amount-input::placeholder {
  color: #e2e8f0;
}

.m-amount-input.expense-mode { caret-color: #ef4444; }
.m-amount-input.income-mode { caret-color: #10b981; }

/* 分类网格 */
.m-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.m-cat-item {
  padding: 10px 4px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  background: #fafbfc;
  color: #64748b;
}

.m-cat-item:active {
  transform: scale(0.93);
}

.m-cat-item.selected {
  border-color: #6366f1;
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  font-weight: 600;
}

.m-cat-item.selected-expense {
  border-color: #ef4444;
  background: rgba(239,68,68,0.06);
  color: #ef4444;
}

.m-cat-item.selected-income {
  border-color: #10b981;
  background: rgba(16,185,129,0.06);
  color: #10b981;
}

/* 日期选择行 */
.m-date-row { display: flex; align-items: center; gap: 10px; padding: 0 4px; margin-bottom: 12px; }
.m-date-row label { font-size: 13px; font-weight: 600; color: #64748b; white-space: nowrap; }
.m-date-row input[type="date"] { flex: 1; padding: 8px 12px; border: 1.5px solid #f1f5f9; border-radius: 10px; font-size: 14px; outline: none; background: #fafbfc; color: #1e293b; transition: border-color 0.2s; }
.m-date-row input[type="date"]:focus { border-color: #6366f1; background: #fff; }

/* 备注输入 */
.m-note-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: #fafbfc;
  color: #1e293b;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.m-note-input:focus {
  border-color: #6366f1;
  background: #fff;
}

/* 提交按钮 */
.m-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.02em;
}

.m-submit-btn:active {
  transform: scale(0.97);
}

.m-submit-btn.expense-btn {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}

.m-submit-btn.income-btn {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.m-submit-btn.workhour-btn {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

/* 工时表单 */
.m-wh-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.m-wh-row {
  display: flex;
  gap: 10px;
}

.m-wh-row > div { flex: 1; }

.m-wh-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.m-wh-form input, .m-wh-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: #fafbfc;
  color: #1e293b;
}

.m-wh-form input:focus, .m-wh-form select:focus {
  border-color: #3b82f6;
  background: #fff;
}

/* ===== 手机版"我的"页面 ===== */
.m-profile {
  padding-top: 0 !important;
}

.m-profile-header {
  background: linear-gradient(135deg, #4338CA 0%, #6366f1 40%, #8b5cf6 70%, #a78bfa 100%);
  margin: 0 -16px 16px;
  padding: 24px 16px 18px;
  border-radius: 0 0 20px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.m-profile-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%; background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none; }

.m-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
}

.m-profile-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.m-profile-desc {
  font-size: 12px;
  opacity: 0.7;
}

.m-profile-stats {
  display: flex;
  gap: 0;
  margin: -8px 16px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(99,102,241,0.04);
  overflow: hidden;
}

.m-profile-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid #f1f5f9;
}

.m-profile-stat:last-child { border-right: none; }

.m-profile-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.m-profile-stat-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.m-menu-list {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 12px;
}

.m-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 0.5px solid #f8fafc;
}

.m-menu-item:last-child { border-bottom: none; }

.m-menu-item:active {
  background: #f8fafc;
}

.m-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-menu-icon svg {
  width: 14px;
  height: 14px;
}

.m-menu-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.m-menu-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.m-menu-icon.purple { background: rgba(99,102,241,0.1); color: #6366f1; }
.m-menu-icon.orange { background: rgba(249,115,22,0.1); color: #f97316; }
.m-menu-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }
.m-menu-icon.gray { background: rgba(100,116,139,0.1); color: #64748b; }

.m-menu-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
}

.m-menu-arrow {
  color: #cbd5e1;
  font-size: 14px;
}

.m-logout-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 8px;
}

.m-logout-btn:active {
  background: #fef2f2;
}

/* 头部退出按钮 */
.m-header-logout {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}

.m-header-logout:active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* 信息卡片 */
.m-info-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 12px;
  overflow: hidden;
}

.m-info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f8fafc;
}

.m-info-card-header svg {
  width: 16px;
  height: 16px;
}

.m-info-card-header.expense { color: #ef4444; }
.m-info-card-header.income { color: #10b981; }
.m-info-card-header.savings { color: #6366f1; }

.m-info-list {
  padding: 4px 0;
}

.m-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 0.5px solid #f8fafc;
}

.m-info-row:last-child {
  border-bottom: none;
}

.m-info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.m-info-label {
  flex: 1;
  font-size: 13px;
  color: #64748b;
}

.m-info-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.m-info-value.expense { color: #ef4444; }
.m-info-value.income { color: #10b981; }

.m-savings-value {
  font-size: 22px;
  font-weight: 800;
  color: #6366f1;
  text-align: center;
  padding: 12px;
  font-variant-numeric: tabular-nums;
}

/* ===== 手机版快捷操作卡片（首页用） ===== */
.m-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.m-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.m-quick-action:active {
  transform: scale(0.93);
}

.m-quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-quick-action-icon svg { width: 20px; height: 20px; }
.m-quick-action-icon.expense { background: rgba(239,68,68,0.1); color: #ef4444; }
.m-quick-action-icon.income { background: rgba(16,185,129,0.1); color: #10b981; }
.m-quick-action-icon.workhour { background: rgba(59,130,246,0.1); color: #3b82f6; }
.m-quick-action-icon.calendar { background: rgba(249,115,22,0.1); color: #f97316; }

.m-quick-action span {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* ===== 手机版仪表盘 ===== */
.m-dash { padding-bottom: 8px; }
.m-dash-header { margin: 0 -16px 12px; padding: 16px 16px 12px; background: linear-gradient(135deg, #4338CA 0%, #6366f1 40%, #8b5cf6 70%, #a78bfa 100%); border-radius: 0 0 20px 20px; position: relative; overflow: hidden; }
.m-dash-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%; background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%); pointer-events: none; }
.m-dash-greet { display: flex; align-items: center; gap: 14px; }
.m-dash-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2); }
.m-dash-hi { font-size: 15px; font-weight: 700; color: #fff; }
.m-dash-date { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.m-balance-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(99,102,241,0.04); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.m-balance-card:active { transform: scale(0.98); }
.m-balance-card.positive::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #10b981, #34d399); }
.m-balance-card.negative::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ef4444, #f97316); }
.m-balance-label { font-size: 13px; color: #94a3b8; font-weight: 500; }
.m-balance-value { font-size: 26px; font-weight: 800; color: #1e293b; margin: 4px 0 12px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.m-balance-card.negative .m-balance-value { color: #ef4444; }
.m-balance-row { display: flex; align-items: center; background: #f8fafc; border-radius: 12px; padding: 12px 0; }
.m-balance-item { flex: 1; text-align: center; }
.m-balance-item-label { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.m-balance-item-value { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-balance-item-value.income { color: #10b981; }
.m-balance-item-value.expense { color: #ef4444; }
.m-balance-item-value.hours { color: #3b82f6; }
.m-balance-divider { width: 1px; height: 28px; background: #e2e8f0; }

.m-section { margin-bottom: 16px; }
.m-section-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.m-section-more { font-size: 13px; font-weight: 500; color: #6366f1; cursor: pointer; }
.m-today-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-today-card { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(99,102,241,0.03); transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s; }
.m-today-card:active { transform: scale(0.96); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.m-today-value { font-size: 18px; font-weight: 800; color: #1e293b; font-variant-numeric: tabular-nums; }
.m-today-value small { font-size: 14px; font-weight: 600; color: #64748b; }
.m-today-label { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.m-record-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 12px; margin-bottom: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.03), 0 0 0 1px rgba(0,0,0,0.02); transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s; }
.m-record-item:active { transform: scale(0.97); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.m-record-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.m-record-icon.expense { background: rgba(239,68,68,0.1); color: #ef4444; }
.m-record-icon.income { background: rgba(16,185,129,0.1); color: #10b981; }
.m-record-info { flex: 1; min-width: 0; }
.m-record-cat { font-size: 14px; font-weight: 600; color: #1e293b; }
.m-record-note { font-size: 12px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-record-amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.m-record-amount.expense { color: #ef4444; }
.m-record-amount.income { color: #10b981; }
.m-empty { text-align: center; padding: 32px 16px; color: #94a3b8; font-size: 14px; }

/* ===== 手机版明细页 ===== */
.m-detail-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.m-detail-sum-item { background: #fff; border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02); transition: transform .2s; }
.m-detail-sum-item:active { transform: scale(0.96); }
.m-detail-sum-value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-detail-sum-value.income { color: #10b981; }
.m-detail-sum-value.expense { color: #ef4444; }
.m-detail-sum-label { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* ===== 手机版统计页 ===== */
.m-chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; background: #fff; border-radius: 16px; padding: 16px 12px 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 8px; }
.m-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.m-chart-bar-group { flex: 1; display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; }
.m-chart-bar { width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.5s cubic-bezier(0.22,1,0.36,1); }
.m-chart-bar.income { background: linear-gradient(180deg, #34d399, #10b981); }
.m-chart-bar.expense { background: linear-gradient(180deg, #fca5a5, #ef4444); }
.m-chart-label { font-size: 10px; color: #94a3b8; margin-top: 6px; font-weight: 500; }
.m-chart-legend { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.m-chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.m-chart-legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.m-cat-list { background: #fff; border-radius: 16px; padding: 4px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.m-cat-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.m-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.m-cat-name { font-size: 13px; font-weight: 500; color: #1e293b; width: 60px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cat-bar-wrap { flex: 1; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.m-cat-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s cubic-bezier(0.22,1,0.36,1); }
.m-cat-amount { font-size: 13px; font-weight: 600; color: #1e293b; font-variant-numeric: tabular-nums; width: 60px; text-align: right; flex-shrink: 0; }

/* ===== 弹窗通用 ===== */
.ip-alert-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); z-index: 10001; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ip-alert-card { background: var(--card-bg); border-radius: var(--radius); padding: 24px; max-width: 420px; width: 90%; box-shadow: 0 16px 32px rgba(0,0,0,.15), 0 0 0 1px rgba(99,102,241,0.06); animation: alertCardIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes alertCardIn { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ip-alert-icon { font-size: 36px; text-align: center; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; opacity: 0.5; }
.ip-alert-card h3 { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 10px; color: var(--text); }
.ip-alert-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; line-height: 1.7; }
.ip-alert-actions { text-align: center; display: flex; justify-content: center; gap: 12px; }