/* 自定义样式：淡蓝/白卡片，移动端自适应 */
* { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
  border: 1px solid #e0edff;
}

/* 数据数值 */
.stat-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  font-weight: 600;
  transition: all .15s ease;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: #eff6ff; color: #2563eb; }
.btn-ghost:hover { background: #dbeafe; }
.btn-success { background: #16a34a; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 输入框 */
.input {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-size: 15px;
}
.input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* 状态标签 */
.tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-pending { background: #fef3c7; color: #b45309; }
.tag-approved { background: #dcfce7; color: #166534; }
.tag-rejected { background: #fee2e2; color: #991b1b; }

/* 等级标签 */
.level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.lv-初级 { background: #e2e8f0; color: #475569; }
.lv-银牌 { background: #e0e7ff; color: #4338ca; }
.lv-金牌 { background: #fef9c3; color: #a16207; }
.lv-钻石 { background: #fce7f3; color: #be185d; }

/* 底部导航 */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e0edff;
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1;
  text-align: center;
  padding: 9px 0 8px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tabbar a.active { color: #2563eb; }
.tabbar .tab-ico { font-size: 20px; line-height: 1; }

/* 桌面端布局 */
@media (min-width: 768px) {
  .tabbar { display: none; }
  .app-shell { max-width: 1100px; margin: 0 auto; }
  .desktop-nav { display: flex !important; }
}

/* 顶部导航 */
.topbar {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

/* 加载与提示 */
.fade-enter-active, .fade-leave-active { transition: opacity .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.toast {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

/* 空状态 */
.empty { text-align: center; color: #94a3b8; padding: 40px 0; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 80; padding: 20px;
}
.modal-body {
  background: #fff; border-radius: 16px; width: 100%; max-width: 440px;
  padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
