/* 1+X 会员管家 AI 系统 — 移动端优先样式 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-soft: #e8f0ff;
  --ink: #0f172a;
  --ink2: #475569;
  --mut: #94a3b8;
  --line: #e7edf5;
  --bg: #f3f6fb;
  --card: #ffffff;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow: 0 10px 30px rgba(15, 39, 95, .08);
}
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== 顶栏 ===== */
.bt-top {
  position: sticky; top: 0; z-index: 30;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .22);
}
.bt-top .t-name { font-size: 17px; font-weight: 750; letter-spacing: .02em; }
.bt-top .t-sub { font-size: 11.5px; opacity: .85; margin-top: 2px; letter-spacing: .04em; }
.bt-top .t-quit {
  font-size: 13px; color: #fff; background: rgba(255,255,255,.18);
  padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28);
}

/* ===== 主体 ===== */
.bt-main {
  padding: 14px 14px calc(env(safe-area-inset-bottom) + 84px);
  max-width: 560px; margin: 0 auto;
}
.view { display: none; }
.view.on { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

/* ===== 卡片 ===== */
.card {
  background: var(--card); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 14px; border: 1px solid var(--line);
}
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-h .ttl { font-size: 15px; font-weight: 700; color: var(--ink); }
.card-h .more { font-size: 12px; color: var(--blue); }

/* ===== 首页指标 ===== */
/* 突出大卡：本月到店会员（人数 + 人次） */
.feature-metric {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.feature-metric::after {
  content: "";
  position: absolute; right: -40px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.12), rgba(124,58,237,0) 70%);
  pointer-events: none;
}
.feature-metric .fm-head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.feature-metric .fm-label { font-size: 14px; color: var(--ink2); font-weight: 700; letter-spacing: .02em; }
.feature-metric .fm-dot { width: 10px; height: 10px; border-radius: 50%; background: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.18); }
.feature-metric .fm-num {
  font-size: 68px; font-weight: 800; color: #7c3aed;
  line-height: 1; margin: 10px 0 8px; letter-spacing: -.025em;
  position: relative;
}
.feature-metric .fm-sub {
  font-size: 12.5px; color: var(--mut); position: relative; line-height: 1.5;
}
.feature-metric .fm-sub b { color: #7c3aed; font-weight: 700; margin: 0 2px; }
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff; border-radius: 20px; padding: 18px 18px 16px; margin-bottom: 14px;
  box-shadow: 0 14px 34px rgba(29, 78, 216, .32);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%);
}
.hero .h-greet { font-size: 14px; opacity: .9; }
.hero .h-sys { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: .02em; }
.hero .h-date { font-size: 12px; opacity: .82; margin-top: 6px; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
  background: var(--card); border-radius: 16px; padding: 14px 14px 13px;
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
}
.metric .m-num { font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.metric .m-lab { font-size: 12.5px; color: var(--ink2); margin-top: 7px; }
.metric .m-dot { position: absolute; right: 12px; top: 12px; width: 9px; height: 9px; border-radius: 50%; }
.metric.c-blue .m-num { color: var(--blue); } .metric.c-blue .m-dot { background: var(--blue); }
.metric.c-green .m-num { color: var(--green); } .metric.c-green .m-dot { background: var(--green); }
.metric.c-orange .m-num { color: var(--orange); } .metric.c-orange .m-dot { background: var(--orange); }
.metric.c-red .m-num { color: var(--red); } .metric.c-red .m-dot { background: var(--red); }
.metric.c-purple .m-num { color: #7c3aed; } .metric.c-purple .m-dot { background: #7c3aed; }

/* 首页快捷 AI 概览 */
.ai-summary { display: flex; flex-direction: column; gap: 10px; }
.ai-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 13px; background: var(--blue-soft);
}
.ai-row .ai-ic { font-size: 18px; }
.ai-row .ai-txt { flex: 1; font-size: 13.5px; color: var(--ink); }
.ai-row .ai-txt b { color: var(--blue-d); }
.ai-row .ai-go { font-size: 12px; color: var(--blue); font-weight: 600; }

/* 首页快捷操作 — 大卡片式 */
.qa-big {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #bfdbfe;
  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 16px rgba(37,99,235,.12);
}
.qa-big:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(37,99,235,.10); }
.qa-big .qa-ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff; font-size: 26px; display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(29,78,216,.35);
  flex-shrink: 0;
}
.qa-big .qa-txt { flex: 1; min-width: 0; }
.qa-big .qa-t { font-size: 17px; font-weight: 800; color: var(--blue-d); letter-spacing: .01em; }
.qa-big .qa-s { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.qa-big .qa-arrow { color: var(--blue); font-size: 24px; font-weight: 700; }

/* ===== 会员列表 ===== */
.search-bar { display: flex; gap: 10px; margin-bottom: 12px; }
.search-bar input {
  flex: 1; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; padding: 0 14px; font-size: 15px; outline: none;
}
.search-bar input:focus { border-color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 650;
  background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28);
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--line); box-shadow: none; }
.btn.full { width: 100%; }
.btn.sm { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.btn.block { background: #fee2e2; color: var(--red); box-shadow: none; }

.member {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.member:last-child { border-bottom: none; }
.m-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--blue-d);
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.m-info { flex: 1; min-width: 0; }
.m-name { font-size: 15px; font-weight: 650; }
.m-name .lv { font-size: 11px; color: var(--blue); background: var(--blue-soft); padding: 1px 7px; border-radius: 6px; margin-left: 7px; font-weight: 600; }
.m-sub { font-size: 12px; color: var(--mut); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.m-chip { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #f1f5f9; color: var(--ink2); }
.m-chip.warn { background: #fef3c7; color: #b45309; }
.m-chip.danger { background: #fee2e2; color: #b91c1c; }
.m-arrow { color: var(--mut); font-size: 18px; }

.empty { text-align: center; color: var(--mut); padding: 40px 0; font-size: 14px; }

/* ===== 记一笔 ===== */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 7px; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; padding: 0 14px; font-size: 15px; outline: none; color: var(--ink);
}
.form-row textarea { height: 88px; padding: 12px 14px; resize: none; line-height: 1.5; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue); }
.sel-member {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px dashed var(--line); background: #fafcff; cursor: pointer; color: var(--ink2); font-size: 14px;
}
.sel-member.has { border-style: solid; border-color: var(--blue); color: var(--ink); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick {
  font-size: 13px; padding: 8px 13px; border-radius: 20px; background: #f1f5f9; color: var(--ink2);
  border: 1.5px solid transparent;
}
.chip-pick.on { background: var(--blue-soft); color: var(--blue-d); border-color: var(--blue); font-weight: 650; }

/* ===== AI 管家 ===== */
.ai-tabs { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.ai-tab { flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--ink2); }
.ai-tab.on { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.ai-sub { display: none; }
.ai-sub.on { display: block; }

/* ===== AI 大脑 问答 ===== */
.brain-card .brain-tip { font-size: 12.5px; color: var(--ink2); line-height: 1.7; background: #eff6ff; border: 1px solid #dbeafe; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.badge.on { font-size: 11px; padding: 2px 9px; border-radius: 7px; background: #dcfce7; color: #16a34a; font-weight: 700; }
.badge:not(.on) { font-size: 11px; padding: 2px 9px; border-radius: 7px; background: #f1f5f9; color: var(--mut); font-weight: 700; }
.qa-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.bubble { max-width: 100%; padding: 11px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.7; word-break: break-word; }
.bubble.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.b-answer { font-size: 13.5px; color: var(--ink); white-space: normal; }
.b-src { font-size: 11.5px; color: var(--mut); margin-top: 8px; }
.b-act { margin-top: 10px; display: flex; gap: 8px; }
.typing { color: var(--mut); font-style: italic; }
.warn-inline { color: #b45309; font-weight: 600; }
.kb-match { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; margin-top: 9px; }
.kb-mt { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.kb-cat { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--blue); padding: 1px 7px; border-radius: 6px; margin-right: 7px; vertical-align: middle; }
.kb-mc { font-size: 12.5px; color: var(--ink2); line-height: 1.65; }
.kb-tags { font-size: 11px; color: #2563eb; margin-top: 6px; }
.qa-input { border-top: 1px solid var(--line); padding-top: 12px; }
.qa-input textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; resize: none; box-sizing: border-box; background: #f8fafc; }
.qa-bar { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.qa-cat { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; background: #fff; color: var(--ink); }
.qa-bar .btn.sm { padding: 8px 18px; }
.qa-input textarea:focus { outline: none; border-color: var(--blue); background: #fff; }

.appt {
  background: var(--card); border-radius: 14px; padding: 13px 14px; margin-bottom: 11px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.appt .a-top { display: flex; align-items: center; justify-content: space-between; }
.appt .a-name { font-size: 15px; font-weight: 700; }
.appt .a-reason { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.appt .a-meta { font-size: 11.5px; color: var(--mut); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.prio { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 7px; }
.prio.p1 { background: #fee2e2; color: #b91c1c; }
.prio.p2 { background: #fef3c7; color: #b45309; }
.prio.p3 { background: #dbeafe; color: #1d4ed8; }
.appt .a-act { display: flex; gap: 8px; margin-top: 10px; }

/* ===== 明日预约 v3.0：6 原则 + 排班表 ===== */
.gen-status {
  font-size: 12.5px; color: var(--ink2); background: #f1f5f9;
  border-radius: 8px; padding: 8px 12px; margin: 10px 0; line-height: 1.5;
}
.appt-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.appt-rules .rl {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 10px;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe;
}
.appt-btn-row { display: flex; gap: 8px; margin-top: 10px; }
.appt-btn-row .btn { flex: 1; }
.appt .a-time {
  font-size: 11.5px; font-weight: 700; color: var(--blue-d);
  background: #dbeafe; padding: 1px 7px; border-radius: 6px; margin-left: 6px;
}
.appt .a-rules { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.appt .a-rules .s-rule.inline {
  font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px;
  background: #f1f5f9; color: var(--ink2);
}
.appt .tag-manual {
  font-size: 10.5px; font-weight: 700; color: #92400e;
  background: #fef3c7; padding: 1px 6px; border-radius: 5px;
}
.appt .tag-overflow {
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: #94a3b8; padding: 1px 6px; border-radius: 5px;
}
.appt-overflow { opacity: .65; background: repeating-linear-gradient(45deg, transparent 0 6px, #f1f5f9 6px 12px); border-radius:10px; }
.appt .a-result {
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #f1f5f9;
}
.appt .a-result .a-rl {
  font-size: 11.5px; color: var(--mut); font-weight: 600;
}
.r-pill {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
}
.r-pill.r-green { background: #dcfce7; color: #166534; }
.r-pill.r-red { background: #fee2e2; color: #991b1b; }
.r-pill.r-amber { background: #fef3c7; color: #92400e; }
.r-pill.r-gray { background: #f1f5f9; color: var(--ink2); }
.btn.xs {
  font-size: 11px; padding: 4px 8px; border-radius: 6px; height: 26px; min-width: 30px;
}

/* 进化统计 */
.evo-cell {
  background: #f8fafc; border-radius: 10px; padding: 10px 8px; text-align:center;
  border: 1px solid #e2e8f0;
}
.evo-cell .ec-n { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; }
.evo-cell .ec-k { font-size: 11px; color: var(--mut); margin-top: 4px; }

/* 排班表 */
.sched-grid { margin-top: 8px; }
.sched-row {
  display: flex; align-items: stretch; gap: 8px;
  padding: 4px 0; border-bottom: 1px dashed #f1f5f9;
}
.sched-row:last-child { border-bottom: none; }
.s-time {
  flex-shrink: 0; width: 52px; font-size: 12px; font-weight: 700;
  color: var(--ink2); padding-top: 8px;
}
.s-body { flex: 1; min-width: 0; }
.s-empty { color: #cbd5e1; font-size: 12px; padding: 8px 0; }
.s-card {
  border-radius: 8px; padding: 8px 10px; margin-bottom: 4px;
  background: #f8fafc; border-left: 3px solid var(--blue);
}
.s-card.p1 { border-left-color: #b91c1c; background: #fef2f2; }
.s-card.p2 { border-left-color: #d97706; background: #fffbeb; }
.s-card.p3 { border-left-color: #2563eb; background: #eff6ff; }
.s-card.manual { background: linear-gradient(90deg, #ecfeff 0%, #f0fdf4 100%); border-left-color: #0891b2; }
.s-card.overflow { opacity: .55; background: repeating-linear-gradient(45deg, transparent 0 6px, #f1f5f9 6px 12px); }
.s-row1 { display: flex; justify-content: space-between; align-items: center; }
.s-name { font-size: 13.5px; font-weight: 700; }
.s-reason { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.s-meta { font-size: 11px; color: var(--mut); margin-top: 2px; }
.s-rules { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.s-rule {
  font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: #fff; color: var(--ink2); border: 1px solid #e2e8f0;
}
.s-manual-tag {
  font-size: 10px; font-weight: 700; color: #0891b2;
  background: #cffafe; padding: 1px 6px; border-radius: 4px;
  border: 1px solid #a5f3fc;
}

/* 手动添加预约 - 时段选择 */
.slot-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; margin-bottom: 12px;
}
.slot {
  display: flex; align-items: center; justify-content: center;
  height: 36px; font-size: 12.5px; font-weight: 600; border-radius: 8px;
  background: #f8fafc; color: var(--ink2); border: 1.5px solid transparent;
  cursor: pointer; user-select: none;
}
.slot.busy { background: #fef3c7; color: #92400e; }
.slot.on {
  background: var(--blue); color: #fff; border-color: var(--blue-d);
}
.form-l {
  display: block; font-size: 12.5px; color: var(--ink2);
  font-weight: 600; margin: 10px 0 6px;
}
.form-input {
  width: 100%; height: 42px; border-radius: 10px;
  border: 1.5px solid var(--line); padding: 0 12px; font-size: 14px;
  background: #fff; outline: none;
}
.form-input:focus { border-color: var(--blue); }
.tag-done { font-size: 11.5px; color: var(--green); font-weight: 600; }

.group-h {
  display: flex; align-items: center; gap: 8px; margin: 6px 2px 10px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.group-h .cnt { font-size: 12px; color: #fff; background: var(--blue); padding: 1px 9px; border-radius: 10px; }
.group-h .cnt.o { background: var(--orange); }
.group-h .cnt.r { background: var(--red); }

/* ===== 话术生成 ===== */
.script-box {
  background: linear-gradient(160deg, #f8fbff, #eef4ff); border: 1.5px solid var(--blue-soft);
  border-radius: 14px; padding: 15px; font-size: 14.5px; line-height: 1.75; color: var(--ink);
  white-space: pre-wrap; margin-bottom: 12px;
}
.script-tip { font-size: 12.5px; color: var(--ink2); background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.script-tip b { color: var(--blue-d); }

/* ===== 底部导航 ===== */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px);
  max-width: 560px; margin: 0 auto;
}
.bnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: var(--mut); padding: 4px 0;
}
.bnav button .ic { font-size: 21px; line-height: 1; }
.bnav button.on { color: var(--blue); }
.bnav button.center {
  transform: translateY(-14px);
}
.bnav button.center .ic {
  width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff; display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 10px 22px rgba(29,78,216,.4);
}
.bnav button.center span { color: var(--blue); font-weight: 700; }

/* ===== 门店登录 ===== */
.login-mask { align-items: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.login-card {
  background: #fff; border-radius: 18px; padding: 30px 26px 26px;
  width: 100%; max-width: 360px; box-shadow: 0 24px 60px rgba(15,23,42,.4);
  animation: pop .24s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97);} to { opacity: 1; transform: none; } }
.login-card .login-logo {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
  display: grid; place-items: center; font-size: 30px;
  box-shadow: 0 10px 24px rgba(37,99,235,.4);
}
.login-card h1 { margin: 0; text-align: center; font-size: 21px; font-weight: 800; }
.login-card .login-sub { margin: 4px 0 20px; text-align: center; color: var(--ink2); font-size: 13px; }
.login-card label { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 600; margin: 0 0 6px; }
.login-card input {
  width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; padding: 0 14px; font-size: 15px; outline: none; margin-bottom: 14px;
}
.login-card input:focus { border-color: var(--blue); }
.login-card .btn { width: 100%; }
.login-card .login-tip { font-size: 12px; color: var(--mut); text-align: center; margin: 14px 0 12px; line-height: 1.6; }
.login-card .login-tip b { color: var(--blue-d); }
/* 登录：辅助链接（总部后台 / 同步云端） */
.login-card .login-helpers {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 12px; font-size: 12.5px;
}
.login-card .login-hq-link {
  color: var(--blue-d); text-decoration: none;
  font-weight: 600; transition: opacity .15s;
  display: inline-flex; align-items: center; gap: 3px;
}
.login-card .login-hq-link:active { opacity: .55; }
.login-card .login-divider { color: var(--mut); font-size: 10px; opacity: .6; }
.login-card .login-kv-tip {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.55; text-align: left;
  background: #f1f5f9; color: #475569;
}
.login-card .login-kv-tip a { color: var(--blue-d); font-weight: 600; }
/* 登录：账户历史记忆 */
.login-card .lg-remember { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); margin: -2px 0 14px; font-weight: 500; }
.login-card .lg-remember input { width: auto !important; padding: 0 !important; margin: 0 !important; }
.login-card .lg-history { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.login-card .lg-history-h { font-size: 12px; color: var(--mut); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.login-card .lg-history-clear { color: var(--mut); cursor: pointer; font-size: 11.5px; }
.login-card .lg-history-list { display: flex; flex-wrap: wrap; gap: 6px; }
.login-card .lg-h-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; cursor: pointer; font-size: 12.5px;
  color: #fff; transition: all .15s;
}
.login-card .lg-h-chip:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.35); }
.login-card .lg-h-login { font-weight: 700; }
.login-card .lg-h-role { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.18); color: #cbd5e1; }
.login-card .lg-h-x { opacity: .6; padding: 0 4px; font-size: 13px; }
.login-card .lg-h-x:hover { opacity: 1; }
/* 改密 sheet 输入 */
.lg-l { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 600; margin: 10px 0 6px; }

/* 角色徽标 */
.badge.beau { font-size: 11px; padding: 2px 9px; border-radius: 7px; background: #ede9fe; color: #6d28d9; font-weight: 700; }

/* ===== 弹窗 ===== */
.mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .42);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 560px; background: #fff; border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(env(safe-area-inset-bottom) + 22px); max-height: 90vh; overflow: auto;
  animation: up .26s ease;
}
@keyframes up { from { transform: translateY(100%);} to { transform: none; } }
.sheet .sh-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet .sh-ttl { font-size: 17px; font-weight: 750; }
.sheet .sh-close { font-size: 22px; color: var(--mut); line-height: 1; padding: 0 4px; }
.sheet .sh-foot { display: flex; gap: 10px; margin-top: 16px; }

/* 会员详情 */
.detail-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--mut); }
.detail-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.visit-item { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.visit-item:last-child { border-bottom: none; }
.visit-item .vt { font-weight: 650; }
.visit-item .vm { color: var(--mut); margin-top: 3px; font-size: 12.5px; }

.mini-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.mini-tab { padding: 8px 14px; border-radius: 10px; background: #f1f5f9; font-size: 13px; font-weight: 600; color: var(--ink2); }
.mini-tab.on { background: var(--blue); color: #fff; }

/* 我的 */
.mine-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mine-row:last-child { border-bottom: none; }
.mine-row .mk { color: var(--ink2); }
.mine-row .mv { font-weight: 650; }

/* 美容师授权 */
.beau-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.beau-row:last-child { border-bottom: none; }
.beau-row.off { opacity: .55; }
.beau-l { flex: 1; min-width: 0; }
.beau-name { font-size: 14.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.beau-sub { font-size: 12px; color: var(--mut); margin-top: 3px; }
.beau-sub b { color: var(--blue-d); font-weight: 700; }
.beau-r { display: flex; gap: 4px; flex-shrink: 0; }
.cred-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: #fff; margin-bottom: 8px;
  border: 1px solid #fcd34d;
}
.cred-row .cred-k { font-size: 12px; color: var(--mut); width: 64px; flex-shrink: 0; }
.cred-row .cred-v { flex: 1; font-size: 14px; font-weight: 700; color: var(--ink); font-family: 'SF Mono', Menlo, Consolas, monospace; word-break: break-all; }

/* 项目/产品入录 */
.proj-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.proj-row:last-child { border-bottom: none; }
.proj-row.off { opacity: .55; }
.proj-l { flex: 1; min-width: 0; }
.proj-name { font-size: 14.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-name .proj-cat { font-size: 10.5px; padding: 1px 7px; border-radius: 6px; background: #e0f2fe; color: #075985; font-weight: 600; }
.proj-sub { font-size: 12px; color: var(--mut); margin-top: 4px; line-height: 1.5; }
.proj-sub b { color: var(--blue-d); font-weight: 700; }
.proj-r { display: flex; gap: 4px; flex-shrink: 0; }

/* 通用停用徽标 */
.badge-off { font-size: 10.5px; padding: 1px 7px; background: #fee2e2; color: #b91c1c; border-radius: 6px; font-weight: 600; }

/* 统计筛选 */
.st-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.st-label { font-size: 12.5px; color: var(--ink2); font-weight: 600; margin-bottom: 6px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip {
  font-size: 12.5px; padding: 6px 12px; border-radius: 18px; background: #f1f5f9; color: var(--ink2);
  border: 1.5px solid transparent;
}
.st-chip.on { background: var(--blue-soft); color: var(--blue-d); border-color: var(--blue); font-weight: 700; }
.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.st-cell {
  background: #f8fafc; border-radius: 12px; padding: 12px 14px;
  border: 1px solid var(--line);
}
.st-cell .n { font-size: 22px; font-weight: 800; color: var(--blue-d); line-height: 1.1; }
.st-cell .k { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.st-cell.warn .n { color: var(--orange); }
.st-cell.danger .n { color: var(--red); }
.st-cell.good .n { color: var(--green); }
.st-section { margin: 14px 0; }
.st-section h4 { font-size: 13px; color: var(--ink2); margin: 0 0 8px; font-weight: 700; }
.st-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.st-bar-row .lbl { width: 86px; color: var(--ink2); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bar-row .bar { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.st-bar-row .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); border-radius: 4px; }
.st-bar-row .val { width: 56px; text-align: right; color: var(--blue-d); font-weight: 700; flex-shrink: 0; }
.st-plan {
  background: linear-gradient(160deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #166534;
  margin-top: 12px; line-height: 1.7;
}
.st-plan b { color: #14532d; }

/* 开屏广告（来自总部后台的下发，门店端展示） */
.ad-preview {
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff; padding: 18px 16px; text-align: center;
  box-shadow: 0 12px 28px rgba(29,78,216,.32);
  position: relative; overflow: hidden;
}
.ad-preview.has-image { padding: 30px 16px; min-height: 100px; }
.ad-preview .ad-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%); }
.ad-preview .ad-t { font-size: 13px; opacity: .85; }
.ad-preview .ad-c { font-size: 17px; font-weight: 800; margin-top: 6px; line-height: 1.4; }
.ad-preview .ad-btn {
  display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: 20px;
  background: rgba(255,255,255,.95); color: var(--blue-d); font-weight: 700; font-size: 13px;
}
.ad-preview .ad-s { font-size: 11px; opacity: .75; margin-top: 10px; }

/* 门店端开屏编辑器 */
.ad-editor-dialog .ad-editor-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ad-editor-dialog .ad-editor-row label { font-size: 13px; color: var(--ink2); font-weight: 600; }
.ad-editor-dialog input[type="text"],
.ad-editor-dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; }
.ad-editor-dialog textarea { min-height: 78px; resize: vertical; }

/* 全屏开屏弹窗（门店启动时） */
.splash-mask { padding: 0 !important; }
.splash-card {
  width: 100vw; max-width: 480px; height: 100vh; min-height: 600px;
  background: linear-gradient(135deg,#1e3a8a 0%, #2563eb 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: center; padding: 64px 28px 32px; position: relative; overflow: hidden;
  animation: splash-in .35s cubic-bezier(.2,.8,.2,1);
}
.splash-card.has-image { padding: 84px 28px; }
.splash-card .ad-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.6) 100%); }
.splash-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; flex: 1; }
.splash-tag { display: inline-block; padding: 5px 14px; border-radius: 100px; background: rgba(255,255,255,.18); font-size: 12px; }
.splash-title { font-size: 26px; font-weight: 900; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.splash-content { font-size: 16px; line-height: 1.7; max-width: 320px; }
.splash-btn { display: inline-block; margin-top: 14px; padding: 12px 32px; border-radius: 100px; background: #fff; color: var(--blue-d); font-weight: 800; font-size: 15px; }
.splash-sub { font-size: 12px; opacity: .7; margin-top: 18px; }
.splash-foot { display: flex; align-items: center; justify-content: center; gap: 18px; }
.splash-close { padding: 11px 28px; border-radius: 100px; background: #fff; color: var(--blue-d); font-weight: 800; font-size: 14px; border: none; }
.splash-link { background: none; border: none; color: rgba(255,255,255,.7); font-size: 12.5px; text-decoration: underline; }
.splash-close-x {
  position: absolute; top: max(18px, env(safe-area-inset-top, 18px)); right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; border: none; cursor: pointer;
  z-index: 10; backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .15s, background .15s;
  padding: 0;
}
.splash-close-x:hover { background: rgba(0,0,0,.7); transform: scale(1.05); }
.splash-close-x:active { transform: scale(.95); }
@keyframes splash-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
