/* 三端通用样式：基础重置 + 通用组件（按钮/表格/表单/弹层/提示） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f5f6fa;
  color: #333;
  font-size: 14px;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border: none; border-radius: 6px;
  font-size: 14px; cursor: pointer; transition: opacity .15s;
  background: #4a7cf7; color: #fff; white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: #4a7cf7; color: #fff; }
.btn-success { background: #22a06b; color: #fff; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-ghost { background: #fff; color: #555; border: 1px solid #d5d9e0; }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 4px; }
.btn-lg { padding: 12px 30px; font-size: 16px; border-radius: 8px; }
.btn-block { width: 100%; }

/* 表单 */
.input, .select, .textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #d5d9e0;
  border-radius: 6px; font-size: 14px; outline: none; background: #fff;
}
.input:focus, .select:focus, .textarea:focus { border-color: #4a7cf7; }
.label { display: block; margin-bottom: 6px; color: #666; font-size: 13px; }
.form-row { margin-bottom: 14px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef0f3; font-size: 13px; }
.table th { background: #f8f9fb; color: #666; font-weight: 600; white-space: nowrap; }
.table tr:hover td { background: #f7faff; }
.table .num { text-align: right; }

/* 卡片 */
.card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal { background: #fff; border-radius: 12px; min-width: 420px; max-width: 90vw; max-height: 88vh; overflow: auto; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid #eef0f3; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid #eef0f3; text-align: right; }
.modal-close { cursor: pointer; color: #999; font-size: 18px; }
.modal-close:hover { color: #333; }

/* 提示 */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #333; color: #fff; padding: 10px 22px; border-radius: 8px;
  opacity: 0; transition: all .25s; z-index: 999; font-size: 14px; max-width: 80vw;
}
.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-ok { background: #22a06b; }

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

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; margin-top: 14px; justify-content: flex-end; font-size: 13px; color: #666; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #ccd2da; border-radius: 3px; }
