/* AI 中转站 - 用户中心样式 */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #f5f6f8;
  color: #323233;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; }

/* 页面容器 */
.page { min-height: 100vh; padding-bottom: 20px; }

/* 顶部导航 */
.navbar { display: flex; align-items: center; height: 46px; background: #fff; padding: 0 16px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #ebedf0; }
.navbar .back { width: 32px; cursor: pointer; }
.navbar .title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.navbar .right { width: 60px; text-align: right; font-size: 13px; color: #1989fa; }

/* 登录/注册页 */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 0;
  background: linear-gradient(180deg, #1989fa 0%, #fff 42%);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo-icon {
  width: 72px; height: 72px; margin: 0 auto 12px;
  border-radius: 20px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #1989fa; box-shadow: 0 6px 20px rgba(25,137,250,.25);
  overflow: hidden;
}
.auth-logo .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.auth-logo h1 { font-size: 22px; color: #fff; margin: 0 0 4px; }
.auth-logo p { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; }
.auth-card {
  background: #fff; border-radius: 16px; padding: 24px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.auth-tabs { margin-bottom: 8px; }

/* 首页 */
.home-header {
  background: linear-gradient(135deg, #1989fa 0%, #07c160 100%);
  padding: 28px 20px 40px; color: #fff;
}
.home-user { display: flex; align-items: center; }
.home-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.3); overflow: hidden; margin-right: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-name { font-size: 18px; font-weight: 600; }
.home-email { font-size: 12px; opacity: .85; }
.home-balance-box { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.home-balance-label { font-size: 13px; opacity: .9; }
.home-balance-value { font-size: 30px; font-weight: 700; }
.home-balance-value .unit { font-size: 14px; font-weight: 400; }

/* 数据概览卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -24px 16px 0; position: relative; z-index: 10; }
.stat-item { background: #fff; border-radius: 12px; padding: 14px 8px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.stat-item .num { font-size: 20px; font-weight: 700; color: #1989fa; }
.stat-item .label { font-size: 12px; color: #969799; margin-top: 4px; }

/* 功能宫格 */
.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 16px 0; }
.func-item {
  background: #fff; border-radius: 12px; padding: 16px 4px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.func-item .icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin-bottom: 8px; }
.func-item .name { font-size: 12px; color: #323233; }

/* 通用卡片列表 */
.section-title { font-size: 14px; font-weight: 600; margin: 20px 16px 10px; color: #323233; }
.card-list { margin: 0 16px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.04); }

/* 空状态 */
.empty { text-align: center; padding: 40px 0; color: #969799; font-size: 13px; }

/* 金额颜色 */
.money-in { color: #07c160; }
.money-out { color: #ee0a24; }

/* 详情页描述 */
.detail-desc { background: #fff; border-radius: 12px; margin: 16px; padding: 16px; font-size: 14px; line-height: 1.7; color: #323233; box-shadow: 0 2px 10px rgba(0,0,0,.04); }

/* 底部 tabbar 占位 */
.tabbar-holder { height: 50px; }
