/* 视觉规范 · 暖橙 H（已锁定）
   四端共用：PC 后台 / 手机后台 / 顾客端 / 小程序
   改配色只改这里，四端一起变。 */
:root {
  --brand: #F5872B;
  --brand-deep: #E9761F;
  --brand-text: #C2620F;
  --brand-soft: #FFF1E3;
  --brand-soft-2: #FFF8F0;

  --page: #FDFAF6;
  --card: #FFFFFF;

  --text: #3B2A1C;
  --text-2: #8A5A28;
  --text-3: #A99A8C;

  --line: #EADFD1;
  --line-soft: #F3ECE3;

  --danger: #C81E1E;
  --danger-soft: #FDECEC;
  --success: #1F7A5C;
  --success-soft: #E8F5EF;
  --warn: #B26A00;
  --warn-soft: #FFF3DC;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;

  --shadow-sm: 0 1px 2px rgba(59, 42, 28, 0.04);
  --shadow-md: 0 6px 24px rgba(59, 42, 28, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-text); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand-text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-danger { color: var(--danger); border-color: #F0C9C9; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.field > label .req { color: var(--danger); margin-left: 2px; }
.input, .select, textarea.input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
textarea.input { height: auto; padding: 9px 11px; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 135, 43, .12);
}
.hint { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.err { margin-top: 6px; font-size: 12px; color: var(--danger); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px 20px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.tag-grey { background: #F4F0EA; color: var(--text-3); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-success { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-2);
  background: var(--brand-soft-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr:hover { background: #FFFCF7; }
.table .num { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(59, 42, 28, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.dialog {
  width: 460px;
  max-width: 100%;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.dialog-head h3 { font-size: 15px; }
.dialog-body { padding: 18px 20px; }
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  background: #FFFDF9;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  min-width: 220px;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: #fff;
  background: rgba(59, 42, 28, .92);
  box-shadow: var(--shadow-md);
}
.toast.ok { background: #2E7D5B; }
.toast.bad { background: var(--danger); }

/* ---------- 签到 / 状态点 ---------- */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.dot.on { background: var(--success); }
.dot.off { background: var(--text-3); }
