* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f4f7; color: #1f2329; padding-bottom: 64px; min-height: 100vh;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #2f7dff; color: #fff; padding: 14px 16px;
}
.topbar .logo { font-size: 17px; font-weight: 600; }
.topbar .user { font-size: 13px; opacity: .9; }
.content { padding: 16px; }
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 56px;
  display: flex; background: #fff; border-top: 1px solid #e5e6eb;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #86909c; font-size: 11px; gap: 2px; }
.tab span { font-size: 20px; }
.tab.active { color: #2f7dff; }

.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.card h3 { font-size: 15px; margin-bottom: 12px; color: #1f2329; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: #f7f9fc; border-radius: 10px; padding: 14px; }
.kpi .v { font-size: 22px; font-weight: 700; color: #2f7dff; }
.kpi .l { font-size: 12px; color: #86909c; margin-top: 4px; }
.chart { width: 100%; height: 220px; }

input, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e6eb; border-radius: 8px;
  font-size: 14px; margin-bottom: 10px; background: #fff; color: #1f2329;
}
.btn { background: #2f7dff; color: #fff; border: none; border-radius: 8px; padding: 11px; width: 100%; font-size: 15px; }
.btn.secondary { background: #e8f0ff; color: #2f7dff; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 8px 6px; border-bottom: 1px solid #f0f0f0; text-align: left; }
th { color: #86909c; font-weight: 500; }
.bubble { background: #f2f4f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.bubble.me { background: #2f7dff; color: #fff; margin-left: 40px; }
.bubble.ai { margin-right: 40px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #e8f0ff; color: #2f7dff; }
.hint { font-size: 12px; color: #86909c; margin-bottom: 10px; }
