﻿:root {
  --violet: #7367f0;
  --violet-deep: #5b4bd6;
  --pink: #ec4899;
  --ink: #2c2438;
  --ink-2: #6b6478;
  --ink-3: #9d96ad;
  --line: #eae4f4;
  --bg: #f7f3fd;
  --white: #fff;
  --ok: #17b26a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(108, 74, 190, .10);
  --shadow-sm: 0 4px 14px rgba(108, 74, 190, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, #f4edff 0%, #fdf1f8 42%, #f3f6ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ---------- 布局 ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(234, 228, 244, .9);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(115, 103, 240, .35);
}
.brand-text { min-width: 0; }
.brand-title { font-size: 16px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #8b7cf6, #f472b6);
}
.who-name { font-size: 13.5px; font-weight: 600; }
.who-role { font-size: 11px; color: var(--ink-3); }

.main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px 18px 60px; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px;
}
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 14px; }
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel-title .sub { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--violet), #a78bfa);
  color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(115, 103, 240, .28);
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost { background: #f4f1fb; color: var(--violet-deep); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-pink { background: linear-gradient(135deg, #f472b6, #ec4899); box-shadow: 0 8px 20px rgba(236, 72, 153, .26); }
.btn-danger { background: #fdecec; color: var(--danger); box-shadow: none; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfaff;
  border-radius: 12px; padding: 11px 13px; font-size: 15px; outline: none;
  transition: border-color .15s, background .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: #b7a8f5; background: #fff; }
.textarea { min-height: 90px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%239d96ad' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* 择偶要求里的范围：两个下拉 + 中间破折号 */
.range2 { display: flex; align-items: center; gap: 8px; }
.range2 select { flex: 1 1 0; min-width: 0; }
.range2 .range-sep { font-size: 12px; color: var(--ink-3); }
@media (max-width: 360px) { .range2 { flex-wrap: wrap; } .range2 select { flex: 1 1 44%; } }

/* 到店匹配：输编号/姓名选来访会员 */
.ms-tip, .ms-more { font-size: 11.5px; color: var(--ink-3); margin: 8px 0; }
.ms-list { display: flex; flex-direction: column; gap: 6px; }
.ms-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px;
  border-radius: 12px; border: 1px solid #eee7f7; background: #fbf9ff;
  text-align: left; cursor: pointer; font-size: 13px;
}
.ms-item.on { border-color: #b79cf0; background: #f3ebff; box-shadow: 0 2px 10px rgba(124,75,212,.12); }
.ms-no { font-size: 12px; color: #7c4bd4; font-weight: 700; min-width: 58px; }
.ms-name { font-weight: 700; color: #3a3042; }
.ms-meta { font-size: 11.5px; color: var(--ink-3); flex: 1 1 auto; }
.ms-check { font-size: 11px; color: #fff; background: #7c4bd4; border-radius: 999px; padding: 2px 8px; }
.ms-empty { font-size: 12.5px; color: var(--ink-3); padding: 8px 0; }
.match-cur {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #f6f0ff, #fff5fa); border: 1px solid #ede1ff;
}
.match-cur .mc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: #3a3042; }
.match-cur .mc-no { font-size: 12px; color: #7c4bd4; font-weight: 700; }
.match-cur .mc-line { font-size: 12px; color: var(--ink-2); margin-top: 5px; line-height: 1.55; }
.match-cur-none { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 420px; background: rgba(255,255,255,.9);
  border-radius: 26px; padding: 32px 28px; box-shadow: 0 24px 60px rgba(96, 62, 170, .18);
}
.login-logo {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 14px 30px rgba(115,103,240,.34);
}
.login-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.login-sub { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 6px 0 26px; }
.demo-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.demo-chip {
  flex: 1; min-width: 130px; padding: 9px 12px; border-radius: 12px; background: #f6f2ff;
  font-size: 12.5px; color: var(--ink-2); text-align: left; border: 1px solid #ece4ff;
}
.demo-chip b { display: block; color: var(--violet-deep); font-size: 13px; }

/* ---------- 首页 ---------- */
.hero {
  border-radius: 24px; padding: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, #7c6cf3 0%, #a274e8 45%, #ef7fb2 100%);
  color: #fff; box-shadow: 0 18px 40px rgba(124, 108, 243, .28);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.30), transparent 65%); border-radius: 50%;
}
.hero-hello { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.hero-stats { display: flex; gap: 10px; margin-top: 18px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-stat {
  flex: 1; min-width: 92px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24); border-radius: 14px; padding: 10px 12px;
  backdrop-filter: blur(6px);
}
.hero-stat .num { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.hero-stat .lb { font-size: 11.5px; opacity: .88; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.entry {
  background: #fff; border-radius: 22px; padding: 0; overflow: hidden;
  box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
  border: 1px solid rgba(255,255,255,.6);
}
.entry:active { transform: scale(.985); }
@media (hover: hover) { .entry:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(108,74,190,.16); } }
.entry-icon {
  height: 104px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; position: relative;
}
.entry-icon::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.5), transparent 60%);
}
.g-pink { background: linear-gradient(135deg, #ffd9e8, #ffc2d6); }
.g-purple { background: linear-gradient(135deg, #ded6ff, #c9bdff); }
.g-yellow { background: linear-gradient(135deg, #fff0c9, #ffe08a); }
.g-violet { background: linear-gradient(135deg, #e6dcff, #d5c6ff); }
.g-orange { background: linear-gradient(135deg, #ffe3cf, #ffcaa8); }
.g-rose { background: linear-gradient(135deg, #ffe1e6, #ffc9d3); }
.g-blue { background: linear-gradient(135deg, #d9e8ff, #bcd6ff); }
.g-mint { background: linear-gradient(135deg, #d6f5e6, #b6ecd4); }
.entry-body { padding: 13px 14px 15px; background: #fff; }
.entry-title { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.entry-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 首页六模块（新版卡片） ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 680px) { .mod-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.mod {
  position: relative; background: #fff; border: 0; padding: 0; border-radius: 20px;
  overflow: hidden; text-align: left; cursor: pointer;
  box-shadow: 0 10px 26px rgba(108, 74, 190, .10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mod:active { transform: scale(.975); }
@media (hover: hover) and (pointer: fine) {
  .mod:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(108, 74, 190, .20); }
}

.mod-face { position: relative; height: 86px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mod-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120px 70px at 78% 8%, rgba(255, 255, 255, .55), transparent 70%);
}
.mod-ico { position: relative; z-index: 1; width: 36px; height: 36px; color: #fff; filter: drop-shadow(0 4px 10px rgba(60, 30, 90, .22)); }
.mod-ico svg { width: 100%; height: 100%; display: block; }
.mod-badge {
  position: absolute; z-index: 2; top: 9px; right: 9px;
  font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .2px;
  background: rgba(255, 255, 255, .24); border: 1px solid rgba(255, 255, 255, .55);
  padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px);
  max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mod-body { padding: 11px 13px 13px; background: #fff; }
.mod-t { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.mod-d { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.35; }

.m-pink { background: linear-gradient(140deg, #ff9dbb, #f2638f); }
.m-violet { background: linear-gradient(140deg, #a996ff, #8264f0); }
.m-purple { background: linear-gradient(140deg, #c6a9ff, #9770f2); }
.m-gold { background: linear-gradient(140deg, #ffc46b, #f59a1b); }
.m-orange { background: linear-gradient(140deg, #ffab78, #f6803c); }
.m-rose { background: linear-gradient(140deg, #ff9db3, #f0678a); }
.m-blue { background: linear-gradient(140deg, #8fd0ff, #4f9ae8); }
.m-sky { background: linear-gradient(140deg, #93b9ff, #5f7fe8); }
.m-mint { background: linear-gradient(140deg, #86e0bb, #3fbf90); }

/* ---------- 手机竖屏收紧，避免压缩挤在一起 ---------- */
@media (max-width: 480px) {
  .topbar-inner { padding: 10px 12px; gap: 8px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
  .brand-title { font-size: 14px; }
  .brand-sub { display: none; }
  .main { padding: 12px 12px 78px; }
  .hero { padding: 18px 16px; border-radius: 20px; }
  .hero-hello { font-size: 18px; }
  .hero-sub { font-size: 11.5px; }
  .hero-stats { gap: 8px; margin-top: 14px; }
  .hero-stat { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 9px 10px; }
  .hero-stat .num { font-size: 18px; }
  .hero-stat .lb { font-size: 10.5px; }
  .mod-grid { gap: 10px; }
  .mod { border-radius: 16px; }
  .mod-face { height: 70px; }
  .mod-ico { width: 29px; height: 29px; }
  .mod-body { padding: 9px 10px 11px; }
  .mod-t { font-size: 13.5px; }
  .mod-d { font-size: 10px; }
  .mod-badge { top: 6px; right: 6px; font-size: 9.5px; padding: 1px 6px; max-width: 80px; }
  .follow-banner { padding: 12px; }
}
@media (min-width: 481px) and (max-width: 719px) { .mod-face { height: 80px; } }

.quick-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 700px) { .quick-row { grid-template-columns: repeat(4, 1fr); } }
.quick {
  background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.quick-ico { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #f4f1fb; }
.quick-t { font-size: 13.5px; font-weight: 600; }
.quick-d { font-size: 11px; color: var(--ink-3); }

.section-head { display: flex; align-items: center; gap: 10px; margin: 20px 2px 10px; }
.section-head h3 { font-size: 15px; font-weight: 700; }
.section-head .more { margin-left: auto; font-size: 12.5px; color: var(--violet-deep); }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.mrow {
  background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-sm);
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid rgba(255,255,255,.7);
}
.mrow:active { background: #faf8ff; }
.mavatar {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff;
}
.mavatar.male { background: linear-gradient(135deg, #6fa8ff, #4f7dff); }
.mavatar.female { background: linear-gradient(135deg, #ff9ec4, #f472b6); }
.mavatar { overflow: hidden; }
.mavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 4px; }
.photo-item {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid #ece7f6; background: #faf8ff; aspect-ratio: 1 / 1;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo-item figcaption {
  position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 8px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px;
}
.photo-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 22px;
  padding: 0; cursor: pointer;
}
.photo-avatar { padding: 0; overflow: hidden; background: none; }
.photo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.mmain { min-width: 0; flex: 1; }
.mname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px; font-weight: 700; }
.mmeta { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.mmeta span { white-space: nowrap; }
.mfoot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.mright { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 600; background: #f1edff; color: var(--violet-deep); }
.tag-gold { background: #fff4d8; color: #b7791f; }
.tag-green { background: #e6f7ef; color: #0f9d58; }
.tag-red { background: #fdeaea; color: #d93a3a; }
.tag-gray { background: #f3f1f7; color: #8a8299; }
.tag-pkg { background: #e8f2ff; color: #1a6fd4; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.chip {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 11px; background: #fff;
  font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(108,74,190,.05);
}
.chip.on { background: linear-gradient(135deg, var(--violet), #a78bfa); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(115,103,240,.28); }

.searchbar { display: flex; gap: 8px; margin-bottom: 12px; }
.searchbar .input { flex: 1; }

.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); font-size: 13.5px; }
.empty .ico { font-size: 40px; margin-bottom: 10px; opacity: .6; }

/* ---------- 详情 ---------- */
.detail-head { display: flex; gap: 14px; align-items: center; }
.detail-avatar { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; margin-top: 14px; }
@media (min-width: 700px) { .kv { grid-template-columns: repeat(4, 1fr); } }
.kv-item { background: #faf8ff; border-radius: 12px; padding: 10px 12px; }
.kv-item .k { font-size: 11.5px; color: var(--ink-3); }
.kv-item .v { font-size: 14px; font-weight: 600; margin-top: 2px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.block-text { font-size: 14px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }

.phone-box { display: flex; align-items: center; gap: 10px; background: #faf8ff; border-radius: 12px; padding: 10px 12px; }
.phone-num { font-size: 15px; font-weight: 700; letter-spacing: .5px; }

.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { position: relative; padding-left: 18px; }
.tl-item::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.tl-time { font-size: 11.5px; color: var(--ink-3); }
.tl-text { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- 匹配 ---------- */
.match-step { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-t { font-size: 14px; font-weight: 700; }

.pick-card { background: #fff; border-radius: 16px; padding: 13px 14px; box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.pick-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #d9d0ec; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 2px; color: transparent; font-size: 13px; }
.pick-check.on { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- 套餐 ---------- */
.pkg-card { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid #fff; margin-bottom: 12px; position: relative; overflow: hidden; }
.pkg-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--violet), var(--pink)); }
.pkg-name { font-size: 16px; font-weight: 700; }
.pkg-price { font-size: 24px; font-weight: 800; color: var(--pink); letter-spacing: .5px; }
.pkg-price small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.pkg-body { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.65; }
.pkg-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pkg-off { opacity: .55; }

/* ---------- 收银 ---------- */
.sum-card { display: flex; gap: 10px; }
.sum-item { flex: 1; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.sum-item .n { font-size: 20px; font-weight: 800; color: var(--violet-deep); }
.sum-item .l { font-size: 11.5px; color: var(--ink-3); }

.order-row { background: #fff; border-radius: 16px; padding: 13px 15px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.order-top { display: flex; align-items: center; gap: 10px; }
.order-no { font-size: 12px; color: var(--ink-3); font-family: ui-monospace, monospace; }
.order-amt { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--ink); }
.order-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 合同 ---------- */
.contract-paper {
  background: #fff; border-radius: 14px; padding: 26px 22px; box-shadow: 0 12px 34px rgba(80,60,140,.12);
  border: 1px solid #eee7f8;
}
.contract-title { text-align: center; font-size: 19px; font-weight: 800; letter-spacing: 2px; margin-bottom: 18px; }
.contract-text { font-size: 13.5px; line-height: 2; color: #33293f; white-space: pre-wrap; word-break: break-word; }
.sign-area { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sign-img { max-height: 56px; border-bottom: 1px solid #ddd; }
.canvas-wrap { border: 1.5px dashed #cfc4e6; border-radius: 14px; background: #fbf9ff; padding: 6px; }
#signCanvas { width: 100%; height: 150px; border-radius: 10px; background: #fff; display: block; touch-action: none; }

/* ---------- 数据看板 ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 42px; font-size: 12px; color: var(--ink-3); flex: 0 0 auto; }
.bar-track { flex: 1; height: 10px; background: #f2effa; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8b7cf6, #e879a8); }
.bar-val { width: 64px; text-align: right; font-size: 12px; color: var(--ink-2); flex: 0 0 auto; }

/* ---------- 弹层 ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(44, 36, 56, .93); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; max-width: 80vw; box-shadow: 0 10px 26px rgba(0,0,0,.22);
  animation: toastIn .2s ease;
}
.toast.ok { background: rgba(16, 130, 90, .95); }
.toast.err { background: rgba(200, 50, 60, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(38, 26, 60, .45); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { background: #fff; border-radius: 22px; padding: 20px; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; box-shadow: 0 26px 60px rgba(40,20,80,.3); }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

.fab-back {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px;
  border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; color: var(--ink-2); margin-bottom: 12px;
}

/* ---------- 底部导航（手机） ---------- */
.tabbar { display: none; }
@media (max-width: 700px) {
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 8px 8px;
  }
  .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--ink-3); }
  .tabbar button .ico { font-size: 19px; }
  .tabbar button.on { color: var(--violet-deep); font-weight: 700; }
  .main { padding-bottom: 78px; }
}

.hide { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; }
.tc { text-align: center; }
.small { font-size: 12px; color: var(--ink-3); }
.strong { font-weight: 700; }

/* ---------------- 相册全屏查看器 ---------------- */
.gallery-view {
  position: fixed; inset: 0; z-index: 300; height: 100vh; background: rgba(20, 12, 30, .93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gv-top { position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.gv-count { font-size: 14px; opacity: .85; }
.gv-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.gv-stage { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 52px 12px 8px; }
.gv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.gv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.gv-nav.left { left: 10px; }
.gv-nav.right { right: 10px; }
.gv-thumbs { position: relative; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 16px; max-width: 100%; }
.gv-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; opacity: .55; cursor: pointer; border: 2px solid transparent; flex: 0 0 auto; }
.gv-thumb.on { opacity: 1; border-color: #ffd166; }

/* ---------------- 删除确认 / 分享弹层 ---------------- */
.confirm-box { background: #fdf7f8; border: 1px solid #f6dfe4; border-radius: 14px; padding: 14px; margin: 12px 0 4px; }
.confirm-name { font-size: 17px; font-weight: 700; }
.qr-wrap { display: flex; justify-content: center; padding: 14px 0 6px; }
.qr-img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 6px; box-shadow: var(--shadow-sm); }
.share-link {
  font-size: 12px; word-break: break-all; color: var(--violet-deep); background: #f6f3ff;
  border: 1px solid #e7e0fb; border-radius: 10px; padding: 9px 10px; margin: 6px 0 8px; line-height: 1.5;
}

/* ---------------- 分享页（手机端） ---------------- */
.share-page { max-width: 620px; margin: 0 auto; min-height: 100%; padding-bottom: 22px; background: #fff; }
.share-loading { padding: 60px 20px; text-align: center; color: var(--ink-3); }
.share-head {
  padding: 22px 20px 40px;
  background: linear-gradient(135deg, #7b62f3 0%, #a86ae8 55%, #f077c0 100%);
  color: #fff;
}
.share-brand { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.share-store { font-size: 12px; opacity: .88; margin-top: 3px; }
.share-hero { margin: -28px 16px 0; padding: 20px 16px 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.share-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 22px rgba(140, 100, 220, .24); cursor: zoom-in; }
.share-initial {
  display: inline-flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #b78cf5, #f286c4);
}
.share-name { font-size: 22px; font-weight: 700; margin-top: 10px; }
.share-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 9px; }
.share-tag { font-size: 12px; color: #6b5bd2; background: #f2edff; border-radius: 20px; padding: 3px 10px; }
.share-tag-main { color: #fff; background: linear-gradient(135deg, #7b62f3, #e878c0); }
.share-quality { margin-top: 10px; font-size: 12px; color: #b07b15; background: #fff6dd; border-radius: 20px; display: inline-block; padding: 3px 12px; }
.share-section { margin: 14px 16px 0; background: #fff; border-radius: 16px; padding: 14px 16px 16px; box-shadow: var(--shadow-sm); }
.share-h { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--ink); position: relative; padding-left: 10px; }
.share-h::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: linear-gradient(#7b62f3, #ee7ec2); }
.share-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
.share-kv { background: #faf7ff; border-radius: 10px; padding: 8px 10px; font-size: 12px; }
.share-kv span { color: var(--ink-3); }
.share-kv b { display: block; font-size: 14px; margin-top: 2px; color: var(--ink); font-weight: 600; }
.share-want { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.share-contact { background: linear-gradient(135deg, #faf7ff, #fff4fa); }
.share-contact-line { font-size: 13px; color: var(--ink-2); }
.share-tel { display: inline-block; margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--violet-deep); text-decoration: none; }
.share-addr { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.share-tip { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.share-footer { margin: 16px 20px 0; font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.7; }

/* 客户自助登记表单 */
.join-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 10px; }
.join-form .jf { display: flex; flex-direction: column; gap: 6px; }
.join-form .jf i { font-style: normal; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.join-form .jf input, .join-form .jf select { height: 42px; }
.qr-two { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.qr-two figure { margin: 0; text-align: center; }
.qr-two img { width: 168px; height: 168px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(124, 75, 212, .14); }
.qr-two figcaption { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 460px) { .join-form { grid-template-columns: 1fr; } }

@media (max-width: 420px) {
  .share-grid { grid-template-columns: 1fr 1fr; }
  .share-photos { grid-template-columns: repeat(3, 1fr); }
}
/* ---------- 今日跟进 ---------- */
.follow-banner {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; text-align: left;
  background: linear-gradient(135deg, #fff5f9, #f3ecff);
  border: 1px solid #efe2ff; box-shadow: 0 6px 18px rgba(124, 75, 212, .08);
  cursor: pointer;
}
.follow-banner .fb-ico { font-size: 22px; }
.follow-banner .fb-main { flex: 1; min-width: 0; }
.follow-banner .fb-title { font-size: 15px; font-weight: 700; color: #4a2b7a; }
.follow-banner .fb-desc { font-size: 12.5px; color: #8a7aa6; margin-top: 3px; }
.follow-banner .fb-arrow { font-size: 22px; color: #b39ddb; }

.fc { margin-bottom: 12px; }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-meta { margin: 6px 0 10px; color: #7a7388; }
.fc-script { -webkit-user-select: all; user-select: all;
  background: #f7f5ff; border: 1px dashed #ddd2f5; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; line-height: 1.65; color: #4a4458;
}
.fc-acts { display: flex; gap: 8px; margin-top: 10px; }
.tag-fu { background: #fff0f5; color: #c2417a; }

/* ---------- 自动同步提示条 ---------- */
.live-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 9000; max-width: 92vw;
  padding: 11px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #7c4bd4, #b45ad6);
  color: #fff; font-size: 13.5px; line-height: 1.4; text-align: center;
  box-shadow: 0 10px 28px rgba(124, 75, 212, .35);
  cursor: pointer; animation: liveBarIn .22s ease-out;
}
.live-bar b { text-decoration: underline; }
@keyframes liveBarIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 会员跟踪记录 ---------- */
.trk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 10px; }
.trk-stat {
  background: linear-gradient(135deg, #faf7ff, #fff3f8);
  border: 1px solid #efe2ff; border-radius: 14px; padding: 10px 8px; text-align: center;
}
.trk-stat b { display: block; font-size: 20px; line-height: 1.25; color: #6d3fb8; }
.trk-stat span { font-size: 12px; color: #8a7aa6; }

.trk-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.trk-row { background: #fff; border: 1px solid #eee4f7; border-radius: 16px; overflow: hidden; }
.trk-row.on { border-color: #d9c6f7; box-shadow: 0 8px 22px rgba(124, 75, 212, .1); }
.trk-main {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; background: none; border: 0; text-align: left; cursor: pointer;
}
.trk-l { flex: 1; min-width: 0; }
.trk-name { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: #3d2b57; }
.trk-no { font-size: 11px; font-weight: 500; color: #9a7ec8; background: #f5efff; border-radius: 6px; padding: 1px 6px; }
.trk-meta { margin-top: 4px; font-size: 12px; color: #8a7aa6; }
.trk-r { flex: none; text-align: right; }
.trk-count { font-size: 15px; font-weight: 700; color: #7c4bd4; }
.trk-count.zero { font-size: 12.5px; font-weight: 500; color: #b3aac2; }
.trk-last { margin-top: 3px; font-size: 11.5px; color: #9a92ab; }

.trk-tl { padding: 2px 14px 14px; border-top: 1px dashed #efe4fb; }
.trk-ev { display: flex; gap: 10px; padding-top: 10px; }
.trk-dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #7c4bd4, #b45ad6); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.trk-ev-body { flex: 1; min-width: 0; }
.trk-ev-t { font-size: 13.5px; font-weight: 600; color: #4a3a63; }
.trk-ev-d { margin-top: 3px; font-size: 12px; line-height: 1.5; color: #857c96; }
.trk-acts { display: flex; gap: 8px; margin-top: 12px; }
.trk-acts .btn { flex: 1; }
@media (max-width: 380px) { .trk-stats { grid-template-columns: 1fr; } }