:root{
  --pink:#ff7fa3; --pink-soft:#ffd6e3; --pink-bg:#fff5f9;
  --blue:#6fb2ff; --blue-soft:#dbeeff;
  --mint:#89d6b8; --mint-soft:#e7f8ef;
  --purple:#b3a1ee; --purple-soft:#eee9ff;
  --yellow:#ffc866; --yellow-soft:#fff5d6;
  --red:#ff6b6b; --red-soft:#ffeaea;
  --orange:#ffa566; --orange-soft:#fff0e0;
  --text:#2e2e3e; --text-sub:#6b6b7b; --text-muted:#9a9aa8;
  --radius:22px; --radius-sm:16px; --radius-xs:12px;
  --shadow:0 4px 24px rgba(180,140,160,.12);
  --shadow-hover:0 12px 40px rgba(180,140,160,.22);
  --shadow-card:0 2px 12px rgba(180,140,160,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text); background:#f7f8fa;
  min-height:100vh; font-size:15px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--pink); text-decoration:none}
a:hover{text-decoration:underline}

/* ============ 布局 ============ */
.app{display:flex; min-height:100vh}
.sidebar{
  width:230px; flex-shrink:0;
  background:#fff; border-right:1px solid #eef0f4;
  padding:22px 18px; display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.brand{
  font-size:20px; font-weight:800; color:var(--pink);
  text-align:center; padding:6px 0 18px; letter-spacing:.3px;
}
.nav{display:flex; flex-direction:column; gap:3px; flex:1}
.nav a{
  display:flex; align-items:center; gap:11px;
  padding:11px 15px; border-radius:12px;
  color:var(--text-sub); font-size:14px; font-weight:500;
  transition:all .18s; position:relative;
}
.nav a:hover{background:#f7f8fa; color:var(--text); text-decoration:none;}
.nav a.active{background:#fdf2f6; color:#d63b6c; font-weight:700;}
.nav a.active::before{
  content:''; position:absolute; left:0; top:22%; bottom:22%;
  width:3px; border-radius:0 3px 3px 0; background:var(--pink);
}
.nav-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:#ff6b6b; color:#fff;
  font-size:10px; font-weight:800; margin-left:auto;
}
.sidebar-footer{padding-top:14px; border-top:1px solid #f0f2f5; font-size:13px;}
.btn-link{color:var(--text-muted); font-size:12.5px; cursor:pointer; transition:color .2s}
.btn-link:hover{color:var(--pink)}

.main{flex:1; min-width:0; display:flex; flex-direction:column}
.topbar{
  display:none; align-items:center; gap:12px;
  background:#fff; padding:14px 18px;
  border-bottom:1px solid #eef0f4;
  position:sticky; top:0; z-index:10;
}
.hamburger{
  background:none; border:none; font-size:22px;
  color:var(--text); cursor:pointer; padding:4px 8px; border-radius:8px;
}
.topbar-title{margin:0; font-size:16px; font-weight:700}
.content{padding:28px; flex:1; max-width:1080px; width:100%; margin:0 auto}

/* ============ 侧边栏用户卡 ============ */
.sidebar-user{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; margin-bottom:14px;
  border-radius:14px;
  background:linear-gradient(135deg,#fff5f9,#f0f8ff);
  text-decoration:none; transition:all .2s;
}
.sidebar-user:hover{
  background:linear-gradient(135deg,#ffe9f0,#e8f3ff);
  text-decoration:none;
}
.su-info{flex:1; min-width:0}
.su-name{
  font-size:13.5px; font-weight:700; color:#2e2e3e;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.su-role{font-size:11px; color:#98a2b3; margin-top:1px}

/* ============================================================
   ★ 子导航栏
   ============================================================ */
.subnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav::-webkit-scrollbar { display: none; }

.subnav-item {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #f0e6ee;
  color: #6b6b7b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  line-height: 1.2;
}
.subnav-item:hover {
  background: #fff5f9;
  border-color: #ffd6e3;
  color: #c93b6b;
  text-decoration: none;
  transform: translateY(-1px);
}
.subnav-item.active {
  background: linear-gradient(135deg, #ffd6e3, #ffb0c8);
  border-color: transparent;
  color: #7a1e40;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255,127,163,.25);
}

/* ============================================================
   ★ 首页通知条
   ============================================================ */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff0f5, #ffe9f0);
  border: 1.5px solid #ffd6e3;
  border-radius: 18px;
  text-decoration: none;
  color: #2e2e3e;
  transition: all .22s;
}
.notice-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,127,163,.15);
  text-decoration: none;
  color: #2e2e3e;
}
.notice-banner .nb-icon {
  font-size: 26px;
  animation: nbBob 2.4s ease-in-out infinite;
}
@keyframes nbBob {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}
.notice-banner .nb-body { flex: 1; min-width: 0; }
.notice-banner .nb-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #c93b6b;
}
.notice-banner .nb-sub {
  font-size: 12px;
  color: #7a3d5e;
  margin-top: 2px;
}
.notice-banner .nb-arrow {
  font-size: 20px;
  color: #c93b6b;
  font-weight: 700;
}

/* ============================================================
   ★ 首页天气卡
   ============================================================ */
.weather-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
  border: 1.5px solid #a8d4ff;
  border-radius: 16px;
  transition: all .22s;
  animation: fadeIn .4s ease;
}
.weather-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 178, 255, 0.2);
}
.wc-weather-icon {
  font-size: 32px;
  line-height: 1;
}
.wc-weather-info {
  min-width: 0;
}
.wc-weather-city {
  font-size: 13px;
  font-weight: 800;
  color: #3178c6;
  margin-bottom: 2px;
}
.wc-weather-desc {
  font-size: 11.5px;
  color: #6b9cc7;
  white-space: nowrap;
}

/* ============ 通用卡片 ============ */
.card{
  background:#fff; border-radius:20px;
  padding:24px 26px; margin-bottom:16px;
  border:1px solid #eef0f4;
  animation:fadeIn .3s ease both;
}
.card h2{
  margin:0 0 18px; font-size:15px; color:var(--text);
  font-weight:700; display:flex; align-items:center; gap:8px;
}
.card h3{margin:16px 0 10px; font-size:14px; color:var(--text-sub)}
@keyframes fadeIn{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}

.grid{display:grid; gap:14px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:760px){.grid-2,.grid-3{grid-template-columns:1fr}}

/* ============ 资产看板 ============ */
.wealth-board{display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; margin-bottom:16px;}
@media(max-width:760px){
  .wealth-board{grid-template-columns:1fr 1fr; gap:10px}
  .wealth-board .wb-net{grid-column:1 / -1}
}
@media(max-width:460px){.wealth-board{grid-template-columns:1fr}}
.wb-item{
  background:#fff; border:1px solid #eef0f4;
  border-radius:20px; padding:22px 24px 20px;
  display:flex; flex-direction:column;
  transition:all .22s ease; min-height:132px;
}
.wb-item:hover{
  border-color:#f0d6e0;
  box-shadow:0 8px 24px rgba(180,140,160,.1);
  transform:translateY(-2px);
}
.wb-head{display:flex; align-items:center; gap:8px; margin-bottom:14px;}
.wb-dot{width:8px; height:8px; border-radius:50%; flex-shrink:0;}
.wb-net   .wb-dot{background:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.wb-asset .wb-dot{background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.wb-liab  .wb-dot{background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.wb-label{font-size:13px; color:#475467; font-weight:700;}
.wb-value{
  font-size:24px; font-weight:800; color:#101828;
  font-variant-numeric:tabular-nums; letter-spacing:-.5px;
  line-height:1.15; margin-bottom:8px;
}
.wb-net .wb-value{font-size:28px;}
.wb-asset .wb-value{color:#065f46}
.wb-liab  .wb-value{color:#991b1b}
.wb-sub{font-size:12px; color:#98a2b3; margin-top:auto; display:flex; align-items:center; gap:6px;}

/* ============ 快捷操作 ============ */
.quick-row{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px;}
@media(max-width:520px){.quick-row{gap:8px}}
.quick-tile{
  background:#fff; border-radius:16px;
  padding:18px 8px 14px; text-align:center;
  border:1px solid #eef0f4;
  color:var(--text); text-decoration:none;
  transition:all .2s;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.quick-tile:hover{
  border-color:var(--pink-soft); background:#fffafc;
  transform:translateY(-2px); text-decoration:none; color:var(--text);
}
.quick-tile .qt-icon{
  width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.quick-tile:nth-child(1) .qt-icon{background:#fff0f5}
.quick-tile:nth-child(2) .qt-icon{background:#eef7ff}
.quick-tile:nth-child(3) .qt-icon{background:#eefbf4}
.quick-tile:nth-child(4) .qt-icon{background:#fff8ec}
.quick-tile .qt-name{font-size:12px; font-weight:600; color:var(--text-sub);}

/* ============ 本月概览 ============ */
.overview{
  background:#fff; border-radius:20px;
  padding:22px 26px; margin-bottom:16px; border:1px solid #eef0f4;
}
.overview-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;}
.overview-head h2{margin:0; font-size:15px; font-weight:700; display:flex; align-items:center; gap:8px;}
.overview-head .oh-month{font-size:12px; color:var(--text-muted); font-weight:500;}
.overview-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
@media(max-width:760px){.overview-grid{grid-template-columns:repeat(2,1fr); gap:10px}}
.ov-item{padding:14px 16px; border-radius:14px; background:#fafbfc; border:1px solid #f0f2f5;}
.ov-item .ov-label{
  font-size:11.5px; color:var(--text-muted); font-weight:500;
  margin-bottom:5px; display:flex; align-items:center; gap:5px;
}
.ov-item .ov-value{
  font-size:17px; font-weight:800;
  font-variant-numeric:tabular-nums; letter-spacing:-.3px;
}
.ov-income  .ov-value{color:#059669}
.ov-expense .ov-value{color:#dc2626}
.ov-balance .ov-value{color:#2563eb}
.ov-invest  .ov-value{color:#d97706}

/* ============ 双列小卡 ============ */
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
@media(max-width:760px){.two-col{grid-template-columns:1fr}}
.mini-card{
  background:#fff; border-radius:20px;
  padding:22px 24px; border:1px solid #eef0f4;
  display:flex; flex-direction:column;
}
.mini-card h2{
  margin:0 0 14px; font-size:15px; font-weight:700;
  display:flex; align-items:center; gap:8px;
}
.mini-card .mc-body{flex:1; display:flex; flex-direction:column; justify-content:space-between; gap:14px;}
.mini-card .mc-text{color:var(--text-sub); font-size:13.5px; line-height:1.6;}
.mini-card .mc-text strong{color:var(--text)}
.mini-card .mc-text .muted{color:var(--text-muted)}

/* ============ 最近账目 ============ */
.recent-list .rec-item{
  display:flex; align-items:center; gap:14px;
  padding:14px 0; border-bottom:1px solid #f5f6f8;
}
.recent-list .rec-item:last-child{border-bottom:none}
.recent-list .rec-icon{
  width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.rec-icon.ic-expense{background:#fff0f0}
.rec-icon.ic-income {background:#eefbf4}
.rec-icon.ic-invest {background:#fff8ec}
.rec-icon.ic-adjust {background:#f5f0ff}
.rec-icon.ic-repayment{background:#fff4ec}
.recent-list .rec-info{flex:1; min-width:0}
.recent-list .rec-title{
  font-size:14px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.recent-list .rec-sub{
  font-size:12px; color:var(--text-muted); margin-top:2px;
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
}
.recent-list .rec-amount{
  font-size:15px; font-weight:800;
  font-variant-numeric:tabular-nums; letter-spacing:-.2px; white-space:nowrap;
}
.rec-amount.amt-expense{color:#dc2626}
.rec-amount.amt-income {color:#059669}
.rec-amount.amt-repayment{color:#ea580c}
.rec-amount.amt-invest{color:#d97706}
.rec-amount.amt-adjust{color:#7c3aed}
.empty-state{text-align:center; padding:32px 0; color:var(--text-muted); font-size:13px;}
.empty-state .es-icon{font-size:34px; opacity:.5; margin-bottom:8px}

/* ============ 表单 ============ */
label{display:block; font-size:13px; color:var(--text-muted); margin:14px 0 6px; font-weight:600;}
input[type=text],input[type=email],input[type=password],input[type=number],
input[type=date],input[type=month],input[type=datetime-local],input[type=time],
select,textarea{
  width:100%; padding:12px 16px; font-size:15px;
  border:1.5px solid #e6e8ec; border-radius:12px;
  background:#fff; color:var(--text); font-family:inherit;
  transition:border-color .2s, box-shadow .2s;
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:var(--pink);
  box-shadow:0 0 0 4px rgba(255,127,163,.12);
}
textarea{min-height:80px; resize:vertical}

/* ============ 按钮 ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:11px 22px; font-size:14px; font-weight:700;
  border:none; border-radius:12px; cursor:pointer;
  background:linear-gradient(135deg,#ff9ebc,#ff7fa3); color:#fff;
  transition:all .2s; font-family:inherit; line-height:1.2;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(255,127,163,.3);
  text-decoration:none; color:#fff;
}
.btn:active{transform:translateY(0)}
.btn:disabled{opacity:.5; cursor:not-allowed; box-shadow:none; transform:none}
.btn-block{width:100%; padding:14px; font-size:15px}
.btn-sm{padding:7px 14px; font-size:12.5px; font-weight:600; border-radius:10px}
.btn-blue{background:linear-gradient(135deg,#9ecbff,#6fb2ff)}
.btn-mint{background:linear-gradient(135deg,#b8e6d4,#89d6b8); color:#0d5e3a}
.btn-ghost{background:#fff; color:var(--text-sub); border:1.5px solid #e6e8ec}
.btn-ghost:hover{color:var(--pink); border-color:var(--pink-soft); box-shadow:none}
.btn-danger{background:linear-gradient(135deg,#ff9a9a,#ff6b6b)}
.btn-warn{background:linear-gradient(135deg,#ffe2a8,#ffc866); color:#7a5a00}
.btn-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:16px}

/* ============ 提示 ============ */
.alert{border-radius:12px; padding:14px 18px; margin-bottom:14px; font-size:13.5px; display:flex; align-items:flex-start; gap:10px;}
.alert.success{background:#e7f8ef; color:#1f8a5b}
.alert.error{background:#ffeaea; color:#c93b3b}
.alert.info{background:#eff6ff; color:#2563eb}

/* ============ 表格 ============ */
.table-wrap{overflow-x:auto; border-radius:12px}
table{width:100%; border-collapse:collapse; font-size:14px; background:#fff}
th,td{padding:12px 16px; text-align:left; border-bottom:1px solid #f5f6f8}
th{background:#fafbfc; color:#667085; font-weight:700; font-size:12px; white-space:nowrap}
tbody tr:hover{background:#fafbfc}
td.actions{white-space:nowrap}
td.num{text-align:right; font-variant-numeric:tabular-nums; font-weight:600}

/* ============ 徽章 ============ */
.badge{display:inline-block; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.2px}
.badge-admin{background:#fff5d6; color:#8a6400}
.badge-user{background:#eff6ff; color:#2563eb}
.badge-on{background:#e7f8ef; color:#1f8a5b}
.badge-off{background:#f5eaea; color:#a04b4b}
.badge-private{background:#ffd6e3; color:#c93b6b}
.badge-shared{background:#eff6ff; color:#2563eb}
.badge-income{background:#e7f8ef; color:#1f8a5b}
.badge-expense{background:#ffeaea; color:#c93b3b}
.badge-investment{background:#fff5d6; color:#8a6400}
.badge-adjust{background:#eee9ff; color:#6650c9}
.badge-repayment{background:#fff0e0; color:#b55a1a}
.badge-liability{background:#ffeaea; color:#c93b3b}
.badge-asset{background:#e7f8ef; color:#1f8a5b}
.badge-purple{background:#eee9ff; color:#6650c9}

/* ============ 钱包卡片 ============ */
.wallet-card{
  border-radius:20px; padding:20px 22px; color:#fff;
  position:relative; overflow:hidden;
  transition:transform .25s, box-shadow .25s;
  box-shadow:0 8px 24px rgba(180,140,160,.12);
}
.wallet-card:hover{transform:translateY(-3px); box-shadow:0 16px 40px rgba(180,140,160,.2);}
.wallet-card .icon{font-size:24px; margin-bottom:4px}
.wallet-card .name{font-size:14px; font-weight:700; margin-bottom:8px; display:flex; align-items:center; gap:6px;}
.wallet-card .balance{font-size:22px; font-weight:800; letter-spacing:-.5px; font-variant-numeric:tabular-nums;}
.wallet-card .actions{margin-top:14px; display:flex; gap:8px}
.wallet-card .actions a{
  background:rgba(255,255,255,.22); color:#fff;
  padding:5px 14px; border-radius:999px; font-size:12px; font-weight:600;
  backdrop-filter:blur(4px);
}
.wallet-card .actions a:hover{background:rgba(255,255,255,.4); text-decoration:none}
.wallet-card .liab-badge{
  display:inline-block; background:rgba(255,255,255,.25);
  padding:2px 8px; border-radius:6px; font-size:10px; margin-left:4px; font-weight:600;
}
.wallet-card.w-wechat{background:linear-gradient(135deg,#b8e6d4,#6dcea8); color:#0d5e3a}
.wallet-card.w-alipay{background:linear-gradient(135deg,#a8d4ff,#6fb2ff)}
.wallet-card.w-bank{background:linear-gradient(135deg,#ffb0c8,#ff7fa3)}
.wallet-card.w-yuebao{background:linear-gradient(135deg,#a8d4ff,#7cc0ff)}
.wallet-card.w-fund{background:linear-gradient(135deg,#ffe2a8,#ffc866); color:#7a5a00}
.wallet-card.w-other{background:linear-gradient(135deg,#d8c8ff,#b3a1ee)}
.wallet-card.w-huabei{background:linear-gradient(135deg,#ffc8d8,#ff9ebc); color:#7a2040}
.wallet-card.w-baitiao{background:linear-gradient(135deg,#ffb0b0,#ff8080)}
.wallet-card.w-meituan{background:linear-gradient(135deg,#ffe2a8,#ffc866); color:#7a5a00}
.wallet-card.w-credit{background:linear-gradient(135deg,#c8b8ff,#9a88dd)}

/* ============ 筛选栏 ============ */
.filter-bar{
  display:flex; gap:12px; flex-wrap:wrap; align-items:end;
  background:#fff; padding:18px 20px;
  border-radius:16px; margin-bottom:16px; border:1px solid #eef0f4;
}
.filter-bar > div{flex:1; min-width:120px}
.filter-bar label{margin-top:0}

/* ============ 分类项 ============ */
.cat-item{display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f5f6f8;}
.cat-item:last-child{border-bottom:none}
.cat-item .cat-name{flex:1; font-weight:600; font-size:14px}
.cat-item .cat-type{font-size:12px; color:var(--text-muted)}

/* ============ 图表 ============ */
.chart-box{background:#fff; border-radius:20px; padding:24px; margin-bottom:16px; border:1px solid #eef0f4;}
.chart-box h2{margin:0 0 16px; font-size:15px; font-weight:700}
.chart-canvas-wrap{position:relative; height:300px}
@media(max-width:760px){.chart-canvas-wrap{height:240px}}

/* ============ 登录/注册 ============ */
.auth-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:linear-gradient(160deg,#fff5f9,#f0f8ff 60%,#f5fff8);
}
.auth-card{
  width:100%; max-width:400px;
  background:#fff; border-radius:24px; padding:40px 34px 34px;
  box-shadow:0 20px 60px rgba(180,140,160,.15);
  animation:fadeIn .45s ease;
}
.auth-card h1{margin:0 0 6px; text-align:center; font-size:24px; color:var(--pink); font-weight:800;}
.auth-card .sub{text-align:center; color:var(--text-muted); font-size:13px; margin-bottom:24px}
.auth-card .foot{text-align:center; font-size:13px; color:var(--text-muted); margin-top:18px}

/* ============ 分页 ============ */
.pager{display:flex; gap:6px; justify-content:center; margin-top:18px}
.pager a,.pager span{
  padding:7px 14px; border-radius:10px; font-size:13px; font-weight:600;
  color:var(--text-sub); background:#fff; border:1px solid #e6e8ec;
  transition:all .2s;
}
.pager a:hover{background:#fffafc; text-decoration:none; color:var(--pink); border-color:var(--pink-soft)}
.pager .cur{background:var(--pink); color:#fff; font-weight:700; border-color:transparent;}

/* ============ 进度条 ============ */
.progress-bar{height:10px; border-radius:999px; background:#f0f2f5; overflow:hidden; margin-top:8px;}
.progress-bar .fill{
  height:100%; border-radius:999px;
  background:linear-gradient(90deg,var(--pink),var(--purple));
  transition:width .6s cubic-bezier(.4,0,.2,1);
}

/* ============ 考勤日历 ============ */
.work-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px; flex-wrap:wrap; gap:12px;
}
.wh-month{
  display:flex; align-items:center; gap:8px;
  background:#fff; border-radius:14px;
  padding:8px 10px; border:1px solid #eef0f4;
}
.wm-nav{
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:10px;
  color:var(--text-sub); font-size:18px; font-weight:600;
  transition:all .2s; text-decoration:none;
}
.wm-nav:hover{background:#f7f8fa; color:var(--pink); text-decoration:none;}
.wm-title{font-size:15px; font-weight:800; letter-spacing:.3px; min-width:110px; text-align:center;}
.wh-actions{display:flex; gap:8px;}

.work-summary{
  background:linear-gradient(135deg,#ff8eb3 0%,#ff6b9d 50%,#a76fe0 100%);
  border-radius:22px; padding:24px 28px 22px; color:#fff;
  margin-bottom:16px;
  box-shadow:0 16px 40px -14px rgba(255,107,157,.35);
  position:relative; overflow:hidden;
}
.work-summary::before{
  content:''; position:absolute; right:-60px; top:-60px;
  width:200px; height:200px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.ws-main{position:relative; z-index:1; margin-bottom:18px;}
.ws-main-label{font-size:12.5px; opacity:.85; font-weight:600; letter-spacing:.5px;}
.ws-main-value{
  font-size:38px; font-weight:800; letter-spacing:-1.2px; line-height:1.1;
  font-variant-numeric:tabular-nums; margin:6px 0 2px;
  text-shadow:0 3px 12px rgba(0,0,0,.12);
}
.ws-main-sub{font-size:12px; opacity:.8;}
.ws-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
  border-top:1px solid rgba(255,255,255,.18);
  padding-top:16px;
}
@media(max-width:600px){.ws-grid{grid-template-columns:repeat(2,1fr); gap:12px;}}
.ws-item{text-align:left;}
.ws-item-label{font-size:11px; opacity:.75; margin-bottom:3px; font-weight:500;}
.ws-item-value{font-size:16px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-.3px;}

.cal-weekdays{display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:8px;}
.cal-weekdays > div{text-align:center; font-size:12px; font-weight:700; color:var(--text-muted); padding:6px 0; letter-spacing:.3px;}
.cal-weekdays .we{color:var(--pink)}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:6px;}
.cal-cell{
  aspect-ratio:1 / 1; min-height:64px;
  border-radius:12px; background:#fafbfc;
  border:1.5px solid transparent; padding:8px 8px 6px;
  position:relative; cursor:pointer; transition:all .18s;
  display:flex; flex-direction:column;
}
.cal-cell:hover{
  background:#fff; border-color:var(--pink-soft);
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(255,127,163,.15);
}
.cal-cell.empty{background:transparent; cursor:default; pointer-events:none;}
.cal-cell.weekend{background:#fff7f9}
.cal-cell.weekend .cal-day{color:var(--pink)}
.cal-cell.holiday{background:#fff4ee}
.cal-cell.holiday .cal-day{color:#ea580c}
.cal-cell.today{background:#fff; border-color:var(--pink); box-shadow:0 0 0 3px rgba(255,127,163,.1);}
.cal-cell.has-data{background:#f0f9ff; border-color:#cfe6ff;}
.cal-cell.has-data .cal-day{color:#2563eb; font-weight:800;}
.cal-day{font-size:13px; font-weight:700; color:var(--text); line-height:1;}
.cal-leave{
  position:absolute; bottom:5px; right:6px;
  font-size:9px; font-weight:700; padding:1px 5px; border-radius:5px;
  background:#fff0f0; color:#dc2626;
}
.cal-hrs{
  display:flex; align-items:center; gap:4px; flex-wrap:wrap;
  font-size:11px; font-weight:800; color:#2563eb;
  margin-top:4px; letter-spacing:-.2px;
}
.cal-ot-inline{
  font-size:10px; font-weight:800; color:#ea580c;
  background:#fff0e0; padding:1px 4px; border-radius:4px;
}
.cal-pay{
  font-size:10.5px; font-weight:800;
  color:#059669; margin-top:2px; letter-spacing:-.2px;
}
.cal-ann-icon{
  position:absolute; top:6px; right:6px;
  font-size:11px; line-height:1;
}
.cal-cell.has-ann{
  background:linear-gradient(135deg,#fff5f9,#fff0f5);
  border-color:#ffd6e3;
}
.cal-cell.has-ann .cal-day{color:#c93b6b;}

/* ============ 快捷打卡 ============ */
.quick-punch{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px;}
.punch-btn{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; padding:18px 12px;
  border-radius:18px; border:1.5px solid transparent;
  cursor:pointer; font-family:inherit; transition:all .2s; font-weight:700;
}
.punch-btn:hover{transform:translateY(-2px);}
.punch-in{background:linear-gradient(135deg,#e7f8ef,#d1fae5); color:#065f46; border-color:#a7f3d0;}
.punch-in:hover{box-shadow:0 10px 26px rgba(16,185,129,.25);}
.punch-out{background:linear-gradient(135deg,#f3f0ff,#ede9fe); color:#5b21b6; border-color:#ddd6fe;}
.punch-out:hover{box-shadow:0 10px 26px rgba(124,58,237,.25);}
.pb-icon{font-size:24px;}
.pb-label{font-size:13px;}
.pb-time{font-size:15px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-.3px;}

/* ============ 弹窗 ============ */
.modal-mask{
  position:fixed; inset:0; z-index:200;
  background:rgba(20,10,30,.35); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  animation:fadeIn .2s ease;
}
.modal-box{
  background:#fff; border-radius:22px;
  width:100%; max-width:440px;
  padding:22px 24px 20px;
  box-shadow:0 30px 80px rgba(20,10,40,.25);
  animation:modalIn .28s cubic-bezier(.34,1.56,.64,1);
  max-height:92vh; overflow-y:auto;
}
@keyframes modalIn{from{opacity:0; transform:translateY(20px) scale(.96)} to{opacity:1; transform:none}}
.modal-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid #f0f2f5;
}
.mh-date{font-size:18px; font-weight:800; letter-spacing:-.3px;}
.mh-type{font-size:12px; color:var(--text-muted); margin-top:3px;}
.modal-close{
  background:none; border:none; font-size:20px; color:var(--text-muted);
  cursor:pointer; padding:4px 8px; border-radius:8px; transition:all .2s; font-family:inherit;
}
.modal-close:hover{background:#f7f8fa; color:var(--text);}
.modal-calc{
  margin-top:16px; padding:14px 16px;
  background:linear-gradient(135deg,#f8fff5,#eefbf4);
  border-radius:12px; border:1px dashed #b8e6d4;
}
.mc-row{display:flex; justify-content:space-between; align-items:center; font-size:13px; padding:3px 0; color:var(--text-sub);}
.mc-row strong{font-weight:700; color:var(--text);}
.mc-total{border-top:1px dashed #b8e6d4; margin-top:8px; padding-top:10px; font-size:14px;}
.mc-total strong{color:#059669; font-size:18px; letter-spacing:-.3px;}
.modal-actions{display:flex; gap:8px; margin-top:18px; justify-content:flex-end; flex-wrap:wrap;}

/* ============ 情侣空间 ============ */
.couple-hero{
  background:linear-gradient(135deg,#ffd6e3 0%,#ffb0c8 45%,#c8a4f0 100%);
  border-radius:24px; padding:28px 30px;
  position:relative; overflow:hidden;
  margin-bottom:16px;
  box-shadow:0 16px 40px -12px rgba(255,127,163,.35);
}
.couple-hero::before{
  content:''; position:absolute; right:-80px; top:-80px;
  width:220px; height:220px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.3) 0%,rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.ch-content{
  position:relative; z-index:1;
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}
.ch-avatars{display:flex; align-items:center;}
.ch-avatar{
  width:64px; height:64px; border-radius:50%;
  background:rgba(255,255,255,.4);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  font-size:26px;
  border:2px solid rgba(255,255,255,.65);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  overflow:hidden; padding:0;
}
.ch-avatar > div{
  width:100% !important;
  height:100% !important;
  border:none !important;
}
.ch-avatar + .ch-avatar{margin-left:-12px}
.ch-heart{font-size:22px; color:#fff; filter:drop-shadow(0 2px 6px rgba(0,0,0,.1)); margin:0 8px;}
.ch-info{flex:1; min-width:200px;}
.ch-names{font-size:18px; font-weight:800; color:#5b1f3e; letter-spacing:-.3px;}
.ch-names .amp{font-size:14px; opacity:.6; margin:0 6px;}
.ch-since{font-size:12.5px; color:#7a3d5e; opacity:.85; margin-top:3px;}

.compare-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px;}
@media(max-width:520px){.compare-grid{grid-template-columns:1fr}}
.compare-card{
  background:#fff; border:1px solid #eef0f4;
  border-radius:18px; padding:20px 22px;
  transition:all .22s;
}
.compare-card:hover{
  border-color:#f0d6e0;
  box-shadow:0 8px 24px rgba(180,140,160,.1);
}
.cc-head{display:flex; align-items:center; gap:8px; margin-bottom:12px; font-weight:700;}
.cc-head .cc-dot{width:8px; height:8px; border-radius:50%; flex-shrink:0;}
.compare-card.me .cc-dot{background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.compare-card.ta .cc-dot{background:#ff7fa3; box-shadow:0 0 0 3px rgba(255,127,163,.15)}
.cc-name{font-size:13px; color:#475467;}
.cc-value{
  font-size:22px; font-weight:800;
  font-variant-numeric:tabular-nums; letter-spacing:-.5px;
  color:#101828; line-height:1.2; margin-bottom:6px;
}
.cc-sub{font-size:12px; color:#98a2b3;}

/* ============ 攒钱目标 ============ */
.goal-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-bottom:16px;}
@media(max-width:760px){.goal-grid{grid-template-columns:1fr}}

.goal-card{
  background:#fff; border:1px solid #eef0f4;
  border-radius:20px; padding:22px 24px;
  position:relative; overflow:hidden;
  transition:all .25s;
  cursor:pointer;
  text-decoration:none; color:var(--text);
  display:block;
}
.goal-card:hover{
  border-color:#f0d6e0;
  box-shadow:0 12px 32px rgba(180,140,160,.12);
  transform:translateY(-2px); text-decoration:none; color:var(--text);
}
.gc-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  margin-bottom:14px; gap:12px;
}
.gc-icon{
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:24px; flex-shrink:0;
  background:linear-gradient(135deg,#fff0f5,#ffe3ee);
}
.gc-badge{font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px;}
.gc-badge.active{background:#e7f8ef; color:#1f8a5b;}
.gc-badge.completed{background:#e7f8ef; color:#1f8a5b;}
.gc-badge.archived{background:#f5eaea; color:#a04b4b;}

.gc-title{font-size:15px; font-weight:800; color:var(--text); margin-bottom:4px; letter-spacing:-.2px;}
.gc-deadline{font-size:12px; color:#98a2b3; margin-bottom:14px;}

.gc-amounts{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:8px;}
.gc-current{
  font-size:22px; font-weight:800;
  color:#ff7fa3; letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
}
.gc-target{font-size:13px; color:#98a2b3; font-weight:600;}
.gc-target strong{color:var(--text-sub);}

.goal-progress{
  position:relative; height:14px;
  background:#f5e6ee; border-radius:999px;
  overflow:visible; margin-top:10px;
}
.goal-progress .gp-fill{
  height:100%; border-radius:999px;
  background:linear-gradient(90deg,#ff9ebc,#ff7fa3,#c8a4f0);
  transition:width .8s cubic-bezier(.4,0,.2,1);
  position:relative;
  box-shadow:0 2px 8px rgba(255,127,163,.35);
}
.goal-progress .gp-heart{
  position:absolute; top:-3px; right:-2px;
  font-size:18px;
  transition:left .8s cubic-bezier(.4,0,.2,1);
  filter:drop-shadow(0 2px 4px rgba(255,127,163,.4));
  pointer-events:none;
}
.gp-label{
  display:flex; justify-content:space-between;
  font-size:11.5px; color:#98a2b3; font-weight:600;
  margin-top:8px;
}
.gp-label strong{color:#ff7fa3; font-weight:800;}

.deposit-item{display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f5f6f8;}
.deposit-item:last-child{border-bottom:none}
.dep-avatar{
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg,#ffd6e3,#ffb0c8);
  color:#7a1e40; font-weight:800; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; overflow:hidden;
}
.dep-avatar img{width:100%;height:100%;object-fit:cover}
.dep-info{flex:1; min-width:0}
.dep-name{font-size:13.5px; font-weight:700; color:var(--text);}
.dep-time{font-size:11.5px; color:#98a2b3; margin-top:1px;}
.dep-amount{
  font-size:15px; font-weight:800; color:#059669;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}

/* ============================================================
   ★ 生日提醒
   ============================================================ */
.birthday-alert{
  background:linear-gradient(135deg,#fff0f5,#ffe3ee);
  border:1.5px solid #ffd6e3;
  border-radius:18px;
  padding:18px 22px;
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.birthday-alert .ba-icon{
  font-size:36px;
  animation:baBounce 2s ease-in-out infinite;
}
@keyframes baBounce{
  0%, 100% { transform:translateY(0); }
  50%      { transform:translateY(-4px); }
}
.birthday-alert .ba-body{flex:1; min-width:0;}
.birthday-alert .ba-title{
  font-size:15px; font-weight:800; color:#c93b6b; margin-bottom:3px;
}
.birthday-alert .ba-sub{
  font-size:12.5px; color:#7a3d5e;
}

/* ============================================================
   ★ 升级弹窗
   ============================================================ */
.sg-levelup-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 30, 0.5);
  backdrop-filter: blur(4px);
  animation: sgLevelFadeIn .3s ease;
  transition: opacity .2s;
}
@keyframes sgLevelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sg-levelup-box {
  background: linear-gradient(135deg, #fff5f9, #ffeef4, #f0e8ff);
  border-radius: 28px;
  padding: 40px 44px 32px;
  text-align: center;
  position: relative;
  box-shadow:
    0 30px 80px rgba(255, 127, 163, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  animation: sgLevelPop .5s cubic-bezier(.34, 1.56, .64, 1);
  min-width: 280px;
}
@keyframes sgLevelPop {
  from { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); }
  to { transform: scale(1); opacity: 1; }
}

.sg-levelup-emoji {
  font-size: 64px;
  margin-bottom: 8px;
  animation: sgLevelBounce 1.2s ease-in-out infinite;
  display: inline-block;
}
@keyframes sgLevelBounce {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

.sg-levelup-title {
  font-size: 18px;
  font-weight: 800;
  color: #c93b6b;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.sg-levelup-level {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff7fa3, #a76fe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -2px;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 0 4px 12px rgba(255, 127, 163, 0.25);
}

.sg-levelup-desc {
  font-size: 13.5px;
  color: #7a3d5e;
  margin-bottom: 22px;
}

.sg-levelup-btn {
  background: linear-gradient(135deg, #ff9ebc, #ff7fa3);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  box-shadow: 0 8px 24px rgba(255, 127, 163, 0.4);
}
.sg-levelup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 127, 163, 0.55);
}
.sg-levelup-btn:active {
  transform: translateY(0);
}

/* ============================================================
   ★ 手机端日历溢出修复
   ============================================================ */
@media(max-width:600px){
  .cal-weekdays{gap:2px; margin-bottom:6px;}
  .cal-weekdays > div{font-size:11px; padding:4px 0;}
  .cal-grid{gap:3px;}
  .cal-cell{
    aspect-ratio:1 / 1;
    min-height:0 !important;
    height:auto;
    padding:5px 4px 4px;
    border-radius:9px;
  }
  .cal-day{font-size:11.5px; line-height:1;}
  .cal-hrs{font-size:9.5px; margin-top:2px; gap:2px;}
  .cal-ot-inline{font-size:8.5px; padding:0 3px;}
  .cal-pay{font-size:9px; margin-top:1px; letter-spacing:-.3px;}
  .cal-leave{font-size:8px; padding:0 4px; bottom:2px; right:2px; border-radius:4px;}
  .cal-ann-icon{font-size:9px; top:4px; right:4px;}
}
@media(max-width:380px){
  .cal-grid{gap:2px;}
  .cal-cell{padding:4px 3px 3px; border-radius:8px;}
  .cal-day{font-size:11px;}
  .cal-hrs{font-size:9px;}
  .cal-pay{font-size:8.5px;}
}
@media(max-width:600px){
  .work-summary{padding:18px 18px 16px; border-radius:18px;}
  .ws-main-value{font-size:28px; letter-spacing:-.8px;}
  .ws-main-sub{font-size:11px;}
  .ws-grid{gap:10px; padding-top:14px;}
  .ws-item-value{font-size:14px;}
  .ws-item-label{font-size:10.5px;}
}

/* ============ 移动端通用 ============ */
@media(max-width:760px){
  .sidebar{
    position:fixed; left:0; top:0; bottom:0; z-index:100;
    transform:translateX(-100%); transition:transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow:4px 0 30px rgba(0,0,0,.08); width:260px;
    padding:20px 16px;
  }
  body.nav-open .sidebar{transform:translateX(0)}
  body.nav-open::after{
    content:''; position:fixed; inset:0;
    background:rgba(0,0,0,.2); z-index:99;
  }
  .topbar{display:flex}
  .content{padding:16px 14px}
  .card{padding:20px 18px; border-radius:16px}
  .card h2{font-size:14px}
  .wb-item{padding:18px 18px 16px; min-height:auto}
  .wb-net .wb-value{font-size:24px}
  .wb-value{font-size:20px}
  .wb-label{font-size:12px}
  .quick-tile{padding:14px 6px 12px; border-radius:14px}
  .quick-tile .qt-icon{width:36px; height:36px; font-size:17px; border-radius:10px}
  .quick-tile .qt-name{font-size:11px}
  .overview{padding:18px 18px}
  .ov-item{padding:12px 14px}
  .ov-item .ov-value{font-size:16px}
  .mini-card{padding:18px 18px}
  .btn{padding:11px 20px; font-size:13.5px; min-height:42px}
  .btn-sm{padding:7px 12px; font-size:12px; min-height:34px}
  input[type=text],input[type=email],input[type=password],input[type=number],
  input[type=date],input[type=month],input[type=datetime-local],input[type=time],
  select,textarea{padding:11px 14px; font-size:15px;}
  .filter-bar{flex-direction:column; padding:14px 16px}
  .filter-bar > div{min-width:100%}
  th,td{padding:10px 12px; font-size:13px}

  .couple-hero{padding:20px 20px; border-radius:20px}
  .ch-avatar{width:52px !important; height:52px !important; font-size:22px}
  .ch-heart{font-size:18px; margin:0 6px}
  .ch-names{font-size:16px}
  .goal-card{padding:18px 18px}
  .gc-current{font-size:20px}

  .birthday-alert{padding:14px 16px; gap:10px}
  .birthday-alert .ba-icon{font-size:28px}
  .birthday-alert .ba-title{font-size:14px}

  .subnav { padding-bottom: 12px; }
  .subnav-item {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .notice-banner { padding: 14px 16px; gap: 10px; }
  .notice-banner .nb-icon { font-size: 22px; }
  .notice-banner .nb-title { font-size: 13.5px; }

  .weather-card {
    padding: 10px 14px;
    gap: 10px;
    flex: 0 0 auto;
  }
  .wc-weather-icon { font-size: 26px; }
  .wc-weather-city { font-size: 12px; }
  .wc-weather-desc { font-size: 10.5px; }

  .sg-levelup-box { padding: 32px 28px 24px; min-width: 240px; }
  .sg-levelup-emoji { font-size: 48px; }
  .sg-levelup-level { font-size: 42px; }
  .sg-levelup-title { font-size: 16px; }
}