/* ==========================================================================
   见山 MVP · 共享设计 token 与基础组件（三端共用）
   取自原型「青柚」方向：白底浅灰 + 青柚绿 + 大圆角 + 白色卡片
   ========================================================================== */
:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f0f2f3;
  --ink: #1a1d21;
  --ink-2: #58606a;
  --ink-3: #8d949d;
  --line: #eceef0;
  --line-strong: #dcdfe4;
  --accent: #0b8a6e;
  --accent-2: #0a6e58;
  --accent-soft: rgba(11, 138, 110, 0.1);
  --warn: #e8503a;
  --warn-soft: rgba(232, 80, 58, 0.1);
  --lemon: #ffd34e;
  --r-card: 18px;
  --r-sheet: 28px;
  --r-btn: 999px;
  --r-chip: 999px;
  --shadow-card: 0 10px 24px -18px rgba(26, 29, 33, 0.35);
  --shadow-float: 0 18px 36px -22px rgba(26, 29, 33, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: "Archivo", "SF Mono", ui-monospace, monospace;
  --pad: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }

/* 排版 */
.h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.h2 { font-size: 17px; font-weight: 800; margin: 0; }
.h3 { font-size: 14px; font-weight: 700; margin: 0; }
.sub { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.mini { font-size: 11px; color: var(--ink-3); }
.mono { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: var(--r-btn);
  background: var(--surface-2); color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.12s var(--ease), background 0.16s, opacity 0.16s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--line-strong); }
.btn--danger { background: var(--warn-soft); color: var(--warn); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* 卡片 / 徽标 / 表单 */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-2); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--lemon { background: rgba(255, 211, 78, 0.24); color: #7a5a00; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 11.5px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.02em; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 13px; outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.textarea { height: auto; min-height: 74px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 200;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  max-width: 80vw; padding: 10px 16px; border-radius: 14px;
  background: rgba(20, 22, 26, 0.9); color: #fff; font-size: 13px;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 空态 */
.empty { padding: 48px 24px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.8; }

/* 移动端容器（顾客端/门店端） */
.mobile-page { max-width: 430px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 96px; }
.hide { display: none !important; }
