/* 沐彼 Moonbii 顾客端 H5 样式 — 亮柠绿 + 炭墨 品牌色 */
:root {
  --lime: #c2ee3a;        /* 主亮绿:按钮/选中 */
  --lime-deep: #a7d122;   /* 深绿:开关/描边 */
  --lime-text: #6f8f12;   /* 可读的绿色文字 */
  --lime-wash: #eaf7c2;   /* 浅绿:提示底/渐变 */
  --ink: #1e2317;         /* 炭墨:深色字/品牌 */
  --bg: #f4f6f0;
  --card: #ffffff;
  --text: #23271d;
  --muted: #99a08c;
  --line: #ebeee5;
  --gold: #e7c46a;
  --gold-ink: #7c5a13;
  --ok: #3a9d6b;
  --shadow: 0 6px 22px rgba(40, 50, 20, 0.08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
}
.phone { max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 76px; position: relative; }

/* 顶部品牌 — 亮绿渐变 + 深墨字 */
.brand {
  background: linear-gradient(135deg, #cdeb6a 0%, #e7f6b4 100%);
  color: var(--ink);
  padding: 22px 20px 18px;
  border-radius: 0 0 22px 22px;
  position: relative;
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.brand-slogan { font-size: 12px; opacity: 0.65; margin-top: 2px; }
.user-chip {
  position: absolute; top: 18px; right: 18px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(30, 35, 23, 0.10); color: var(--ink); padding: 4px 10px; border-radius: 20px; font-size: 13px;
}
.user-chip .avatar { font-size: 16px; }
.vip-tag { background: var(--gold); color: var(--gold-ink); font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px; }

.view { padding: 16px; }

/* 登录 */
.login-card { background: var(--card); border-radius: 18px; padding: 36px 24px; text-align: center; box-shadow: var(--shadow); margin-top: 40px; }
.login-logo { font-size: 56px; }
.login-card h2 { margin: 12px 0 4px; font-size: 20px; color: var(--ink); }
.btn-wechat {
  margin-top: 24px; width: 100%; border: none; border-radius: 12px;
  background: #07c160; color: #fff; font-size: 17px; font-weight: 600;
  padding: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-wechat:active { background: #06a850; }
.wx-icon { background: #fff; color: #07c160; width: 20px; height: 20px; border-radius: 50%; font-size: 13px; line-height: 20px; }
.mock-note { margin-top: 14px; font-size: 12px; color: var(--lime-text); }

/* 区块 */
.block { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.block-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.block-title.nomargin { margin-bottom: 2px; }
.page-title { padding: 4px 2px 12px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.nomargin { margin: 0; }
.intro-tip { background: var(--lime-wash); color: #51690f; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.sub-label { font-size: 13px; color: var(--muted); margin: 14px 0 8px; }
.sched-note { color: var(--lime-text); font-weight: 600; }

/* 开关 */
.row-switch { display: flex; align-items: center; justify-content: space-between; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { display: none; }
.slider { position: absolute; inset: 0; background: #d9ddcd; border-radius: 28px; transition: 0.2s; }
.slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--lime-deep); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* 输入框 */
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 15px; font-family: inherit; background: #fffefb; color: var(--text); }
.input:focus { outline: none; border-color: var(--lime-deep); }
textarea.input { resize: none; }

/* chips */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.chip { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; white-space: nowrap; text-align: center; cursor: pointer; background: #fff; min-width: 62px; transition: all 0.15s; }
.chip .c-top { font-size: 14px; font-weight: 600; color: var(--ink); }
.chip .c-sub { font-size: 11px; color: var(--muted); }
.chip.selected { border-color: var(--lime-deep); background: var(--lime); }
.chip.selected .c-top { color: var(--ink); }
.chip.selected .c-sub { color: rgba(30, 35, 23, 0.7); }

/* 提交栏 */
.submit-bar {
  position: fixed; bottom: 60px; left: 0; right: 0; max-width: 460px; margin: 0 auto;
  background: #fff; padding: 10px 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.summary { flex: 1; font-size: 12px; color: var(--muted); }
.btn-primary { border: none; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 12px; white-space: nowrap; }
.btn-primary:active { background: var(--lime-deep); }
.btn-primary:disabled { background: #dde2d2; color: #9aa08c; }
.btn-ghost { margin-top: 10px; width: 100%; background: none; border: none; color: var(--muted); padding: 10px; font-size: 14px; }

/* 成功 */
.success-card { background: var(--card); border-radius: 18px; padding: 32px 22px; text-align: center; box-shadow: var(--shadow); margin-top: 24px; }
.success-icon { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; margin: 0 auto 12px; }
.success-card h2 { color: var(--ink); }
.success-detail { text-align: left; background: var(--bg); border-radius: 12px; padding: 14px; margin: 18px 0; font-size: 14px; }
.success-detail .sd-row { display: flex; justify-content: space-between; padding: 4px 0; }
.success-detail .sd-row span:first-child { color: var(--muted); }
.success-card .btn-primary { width: 100%; }

/* 我的登记 */
.mine-card { background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.mine-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mine-top .svc { font-weight: 700; color: var(--ink); }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 8px; font-weight: 600; }
.badge.pending { background: #fff3df; color: #b97b13; }
.badge.contacted { background: #e3f1ff; color: #1f72c4; }
.badge.scheduled { background: #eef7cf; color: #5f7a12; }
.badge.completed { background: #e4f6ec; color: #2f8f5b; }
.badge.cancelled { background: #f0eeec; color: #9b8c91; }
.badge.no_show { background: #fde6e6; color: #c0392b; }
.mine-info { font-size: 13px; color: #6c6f64; line-height: 1.8; }
.mine-info .tag-removal { color: var(--lime-text); }
.btn-cancel { margin-top: 10px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 7px 14px; font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.empty .e-icon { font-size: 44px; }

/* tabbar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 460px; margin: 0 auto; background: #fff; border-top: 1px solid var(--line); display: flex; height: 58px; z-index: 5; }
.tab { flex: 1; border: none; background: none; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab span { font-size: 20px; }
.tab.active { color: var(--lime-text); }

/* toast */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(30, 35, 23, 0.92); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 100; max-width: 80%; }
.toast.show { opacity: 1; }
