html, body { max-width: 100%; overflow-x: hidden; }
/* 小狗爱你宠物寄养 · 暖色圆角风 */
:root {
  --bg: #fdf6ee;
  --bg-2: #fbefe2;
  --card: #fffdfa;
  --ink: #46342b;
  --ink-2: #6b5446;
  --muted: #9b8474;
  --accent: #e07a4f;
  --accent-dark: #c55f36;
  --accent-soft: #fde3d2;
  --peach: #fff2e6;
  --line: #f1e2d4;
  --green: #6e9e76;
  --green-soft: #eaf4e8;
  --shadow: 0 14px 34px rgba(163, 106, 66, 0.1);
  --shadow-sm: 0 6px 18px rgba(163, 106, 66, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, #ffe9d6 0%, rgba(255, 233, 214, 0) 62%),
    radial-gradient(800px 460px at 96% 4%, #fde7dd 0%, rgba(253, 231, 221, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffd9bd, #f7b98f);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 6px 14px rgba(224, 122, 79, 0.22);
}

.brand b {
  display: block;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 2px;
  margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav a:hover { background: #fff6ec; border-color: var(--line); }

.nav a.active {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 容器 */
.wrap { max-width: 1240px; margin: 0 auto; padding: 10px 28px 60px; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
  padding: 38px 42px;
  border-radius: 30px;
  background: linear-gradient(120deg, #fff1e1 0%, #ffe6d2 46%, #ffdcc8 100%);
  border: 1px solid #f8dcc6;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #f6d5bd;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: 1px;
  line-height: 1.25;
}

.hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 560px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hero-tags span {
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #f7dcc8;
  padding: 5px 12px;
  border-radius: 999px;
}

.hero-art { position: relative; display: grid; place-items: center; min-height: 180px; }

.hero-art .big-pet {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fffaf5, #ffe2cd);
  border: 2px dashed #f2c6a7;
  display: grid;
  place-items: center;
  font-size: 74px;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.8), 0 16px 30px rgba(196, 121, 76, 0.16);
  z-index: 1;
}

.hero-art .bubble {
  position: absolute;
  right: 6px;
  top: 6px;
  background: #fffaf5;
  border: 1px solid #f6d8c1;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.hero-art .bubble2 {
  position: absolute;
  left: 0;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #f6d8c1;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-2);
  z-index: 2;
}

/* ---------------------------------------------------------------- 布局 */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 22px;
  align-items: start;
}

.main-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 18px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.panel-head .num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.panel-head h2 { margin: 0; font-size: 17.5px; letter-spacing: 0.5px; }
.panel-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- 表单 */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.field { margin-bottom: 14px; min-width: 0; }
.grid-2 > .field, .grid-3 > .field { margin-bottom: 0; }
.grid-2, .grid-3 { margin-bottom: 14px; }
.grid-2:last-child, .grid-3:last-child { margin-bottom: 0; }

.field > label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 600;
}

.field > label i { color: var(--accent); font-style: normal; }

.field .hint { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 4px; }

input[type="text"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fffbf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea { resize: vertical; min-height: 62px; line-height: 1.55; }

input:focus, select:focus, textarea:focus {
  border-color: #eaae8c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(224, 122, 79, 0.1);
}

input::placeholder, textarea::placeholder { color: #c5b3a5; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #b79c8b 50%), linear-gradient(135deg, #b79c8b 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

/* 体型选择 */
.size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.size-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 6px 11px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fffbf7;
  cursor: pointer;
  transition: all 0.16s ease;
}

.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt .size-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.size-opt .size-price { font-size: 11.5px; color: var(--muted); }
.size-opt:hover { border-color: #eec6ab; background: #fff7ef; }
.size-opt.checked {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff4ea, #ffe4d1);
  box-shadow: 0 6px 14px rgba(224, 122, 79, 0.14);
}
.size-opt.checked .size-name { color: var(--accent-dark); }
.size-opt.checked .size-price { color: var(--accent-dark); }

/* 洗护档位 */
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.tier-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fffbf7;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.tier-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tier-opt b { font-size: 15px; color: var(--ink); }
.tier-opt small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.tier-opt em { font-style: normal; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.tier-opt:hover { border-color: #eec6ab; background: #fff7ef; }

.tier-opt.checked {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff4ea, #ffe4d1);
  box-shadow: 0 6px 14px rgba(224, 122, 79, 0.14);
}

.tier-opt .check-mark { top: 12px; right: 12px; }
.tier-opt.checked .check-mark { border-color: var(--accent); background: var(--accent); }
.tier-opt.checked .check-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 照片 */
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7ede4;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb .rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(70, 52, 43, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.thumb.uploading::after {
  content: "上传中";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 245, 0.78);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--accent-dark);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px dashed #e7bfa4;
  border-radius: 12px;
  color: var(--accent-dark);
  background: #fff8f1;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.upload-btn:hover { background: #fff1e6; border-color: var(--accent); }

.upload-tip { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.upload-tip.error { color: #c14f4f; }

.cert-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cert-box img {
  width: 96px; height: 72px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); display: block;
}
.cert-box img[hidden] { display: none; }

/* 疫苗 / 驱虫到期提醒 */
.vax-panel { margin-top: 18px; }
.vax-panel .panel-head { margin-bottom: 12px; }
.vax-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vax-col { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fffdfb; }
.vax-col h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.vax-count { font-size: 12px; font-weight: 600; color: #a34d28; background: #fdece1; border-radius: 999px; padding: 1px 8px; }
.vax-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.vax-item { border-radius: 10px; padding: 8px 10px; background: #fdf6ef; border-left: 3px solid #e7b06a; }
.vax-item.late { background: #fdeeee; border-left-color: #d2574f; }
.vax-item b { display: block; font-size: 14px; color: var(--ink); }
.vax-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.vax-item em { display: block; font-style: normal; font-size: 12px; color: #a34d28; margin-top: 3px; }
.vax-item.late em { color: #c14f4f; font-weight: 600; }
.vax-ok { font-size: 13px; color: #4f8a52; }

/* 钱包：本金 / 赠送 分开记 */
.wallet-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 6px; }
.wallet-split-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fffdfb; }
.wallet-split-item span { font-size: 13px; color: var(--muted); }
.wallet-split-item span i { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f3e9df; color: #8a6a4f; }
.wallet-split-item b { display: block; margin-top: 6px; font-size: 24px; color: var(--ink); }
.wallet-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wallet-row label { font-size: 13px; color: var(--muted); min-width: 40px; }
.wallet-row input {
  width: 120px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 14px; color: var(--ink);
}
.wallet-row .btn { width: auto; }
.wallet-tip { font-size: 12px; color: #a34d28; }
.wallet-note.error { color: #c14f4f; }
.wallet-history { display: flex; flex-direction: column; gap: 10px; }
.wallet-live { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fffdfb; }
.wallet-live.refund { background: #fdf3f2; border-color: #f0d3d0; }
.wallet-live-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.wallet-live-head b { color: var(--ink); }
.wallet-live-head span { font-weight: 700; color: #a34d28; }
.wallet-live.refund .wallet-live-head span { color: #c14f4f; }
.wallet-live-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.wallet-live-note em { font-style: normal; margin-left: 8px; color: #8a6a4f; }
.wallet-live-time { font-size: 12px; color: #b0a396; margin-top: 4px; }

/* 老带新 */
.ref-panel { margin-top: 18px; }
.ref-codes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ref-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px;
  border-radius: 999px; background: #fdf3ea; border: 1px solid #f0ddcb; font-size: 13px;
}
.ref-chip b { color: var(--ink); font-weight: 600; }
.ref-chip code { font-family: ui-monospace, Menlo, Consolas, monospace; color: #a34d28; letter-spacing: .5px; }
.ref-list { display: flex; flex-direction: column; gap: 10px; }
.ref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fffdfb;
}
.ref-main { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ref-main span { font-size: 12px; color: var(--muted); }
.ref-main code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #a34d28; background: #fdf3ea; padding: 1px 6px; border-radius: 6px; }
.ref-rewards { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-reward {
  border: 1px solid #e6c9ab; background: #fff6ec; color: #8a4a20; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.ref-reward.used { background: #eef6ee; border-color: #cfe3cf; color: #4f8a52; }
.ref-time { font-size: 12px; color: #b0a396; }
.ref-empty { font-size: 13px; color: var(--muted); }

/* 物品勾选 */
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }

.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fffbf7;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.chip:hover span { border-color: #eec6ab; }

/* ---------------------------------------------------------------- 报价卡 */
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #f3a77b, #e07a4f, #d9693f);
}

.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 2px;
}

.quote-head strong { font-size: 16px; letter-spacing: 0.5px; }

.quote-head .tag {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.q-empty {
  text-align: center;
  padding: 20px 8px;
  color: var(--muted);
  font-size: 13px;
  background: #fff9f3;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.q-empty .big { font-size: 30px; display: block; margin-bottom: 6px; }

.q-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.q-meta b { color: var(--ink); }

.q-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
}

.q-line b { color: var(--ink-2); font-weight: 600; }
.q-line.discount b { color: var(--green); }

.q-divider { border-top: 1px dashed var(--line); margin: 10px 0; }

.q-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 0 2px;
}

.q-total > span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.q-total b { font-size: 32px; line-height: 1; color: var(--accent-dark); letter-spacing: -0.5px; }
.q-total b small { font-size: 15px; font-weight: 600; margin-right: 2px; }

.q-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  width: 100%;
  margin-top: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ed9165, #dd7046);
  box-shadow: 0 10px 20px rgba(224, 122, 79, 0.28);
}

.btn-primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  width: 100%;
  margin-top: 8px;
  background: #fff8f1;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 500;
}

.btn-ghost:hover { background: #fff1e6; border-color: #eccbb4; }

.tip-card {
  background: #fff9f2;
  border: 1px dashed #ecd3c0;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.tip-card h3 { margin: 0 0 8px; font-size: 13px; color: var(--accent-dark); letter-spacing: 0.5px; }
.tip-card ul { margin: 0; padding-left: 16px; }
.tip-card li { margin: 4px 0; color: var(--muted); }
.tip-card li b { color: var(--ink-2); font-weight: 600; }

/* 提交成功 */
.success-card {
  max-width: 620px;
  margin: 30px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 44px;
  text-align: center;
}

.success-card .ok-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffe9d6, #ffd6bb);
  display: grid;
  place-items: center;
  font-size: 38px;
}

.success-card h1 { margin: 0 0 6px; font-size: 24px; }
.success-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }

.summary-box {
  background: #fff9f2;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 13.5px;
}

.summary-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.summary-row b { color: var(--ink); font-weight: 600; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 7px; padding-top: 10px; }
.summary-row.total b { color: var(--accent-dark); font-size: 20px; }

.success-actions { display: flex; gap: 10px; margin-top: 22px; }
.success-actions .btn { flex: 1; margin-top: 0; }

/* ---------------------------------------------------------------- 门店端 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 10px 0 20px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: 1px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.page-head .actions { display: flex; gap: 10px; }
.page-head .btn { width: auto; margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 3px; letter-spacing: 0.5px; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat.highlight { background: linear-gradient(150deg, #fff4ea, #ffe6d3); border-color: #f6d3ba; }
.stat.highlight .value { color: var(--accent-dark); }

.table-card { padding: 8px 8px 4px; overflow: hidden; }

.table-scroll { overflow-x: auto; border-radius: 16px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 13px 14px;
  background: #fff9f2;
  white-space: nowrap;
}
.data-table th:first-child { border-radius: 12px 0 0 12px; }
.data-table th:last-child { border-radius: 0 12px 12px 0; }

.data-table td { padding: 15px 14px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: #fffaf4; }

.pet-cell { display: flex; align-items: center; gap: 10px; }
.pet-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fde3d2;
  display: grid;
  place-items: center;
  font-size: 19px;
  overflow: hidden;
  flex: 0 0 auto;
}
.pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-cell .n { font-weight: 600; }
.pet-cell .b { font-size: 11.5px; color: var(--muted); }

.tag-pill {
  display: inline-block;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-pill.live { background: var(--green-soft); color: #4f7f57; }
.tag-pill.archived { background: #f3ece5; color: #8c7666; }
.tag-pill.size { background: #fff1e5; color: var(--accent-dark); }
.tag-pill.kind { background: #eef3f7; color: #5b7285; font-size: 10.5px; padding: 2px 7px; margin-right: 3px; }

.price-cell b { font-size: 15px; color: var(--accent-dark); }
.price-cell span { display: block; font-size: 11px; color: var(--muted); }

.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }

.archive-path {
  font-size: 11px;
  color: var(--muted);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .big { font-size: 46px; display: block; margin-bottom: 10px; }
.empty-state a { color: var(--accent-dark); font-weight: 600; }

/* 门店端：待补犬种（只店员看） */
.breed-gap { margin-top: 14px; padding: 14px 16px 16px; }
.breed-gap-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.breed-gap-head b { font-size: 14px; }
.breed-gap-sum { font-size: 11.5px; color: var(--muted); }
.breed-gap-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.breed-gap-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #eec3a8;
  border-radius: 999px;
  background: #fdece1;
  font-size: 12px;
  color: #a34d28;
}
.breed-gap-chip b { font-size: 12.5px; }
.breed-gap-chip em { font-style: normal; opacity: 0.75; }
.breed-gap-chip i { font-style: normal; font-size: 10.5px; opacity: 0.6; }
.breed-gap-ok { font-size: 12.5px; color: #3f6b46; }
.breed-gap-tip { margin: 10px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.breed-gap-tip code {
  background: #fff3e8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: "Cascadia Mono", Consolas, monospace;
}

/* ---------- 洗护记录 ---------- */
.groom-panel { margin-top: 18px; padding: 18px 20px 20px; }
.groom-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.groom-head h2 { margin: 2px 0 4px; font-size: 18px; }
.groom-head p { margin: 0; max-width: 620px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.groom-head .num { font-size: 11px; letter-spacing: .12em; color: var(--accent); font-weight: 700; }

.groom-form { margin-top: 16px; padding: 14px 14px 12px; border: 1px dashed var(--line); border-radius: 16px; background: #fffdfa; }
.groom-form.hidden, .groom-edit.hidden { display: none; }
.groom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.groom-field { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.groom-field select, .groom-field input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: inherit; font-size: 13px;
}
.groom-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.groom-upload { padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.groom-upload-title { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.groom-upload-title small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.groom-pick { display: inline-flex; margin-top: 8px; padding: 6px 12px; border: 1px dashed var(--accent); border-radius: 999px; color: var(--accent); font-size: 12px; cursor: pointer; }
.groom-pick input { display: none; }
.groom-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.groom-thumb { position: relative; display: block; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; background: #f6efe7; flex: none; }
.groom-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.groom-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px;
  border: none; border-radius: 50%; background: rgba(47, 37, 31, .62); color: #fff;
  font-size: 13px; padding: 0; cursor: pointer;
}
.groom-del:hover { background: #c0503f; }
.groom-empty-img { font-size: 11px; color: var(--muted); padding: 22px 8px; }

.groom-form textarea, .groom-edit textarea {
  width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-family: inherit; font-size: 13px; line-height: 1.6; resize: vertical;
}
.groom-form-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.groom-hint { font-size: 11px; color: var(--muted); }

.groom-list { margin-top: 16px; display: grid; gap: 12px; }
.groom-list-empty { padding: 22px 12px; text-align: center; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.groom-card { padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.groom-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.groom-card-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.groom-card-title b { font-size: 14.5px; }
.groom-type { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fdece1; color: #a34d28; }
.groom-date { font-size: 11.5px; color: var(--muted); }
.groom-card-op { font-size: 11.5px; color: var(--muted); }
.groom-compare { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.groom-compare-col { min-width: 0; }
.groom-compare-title { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.groom-compare-title small { margin-left: 6px; font-size: 10.5px; opacity: .8; }
.groom-arrow { color: var(--accent); font-size: 16px; margin-top: 14px; }
.groom-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ink); }
.groom-note em { color: var(--muted); font-style: normal; }
.groom-card-foot { display: flex; gap: 8px; margin-top: 10px; }
.groom-danger { color: #b4493a; border-color: #f0cec7; }
.groom-edit { margin-top: 10px; }
.groom-edit-foot { display: flex; gap: 8px; margin-top: 8px; }

.groom-lightbox {
  position: fixed; inset: 0; z-index: 600; display: grid; place-items: center;
  background: rgba(28, 20, 16, .82); padding: 24px;
}
.groom-lightbox[hidden] { display: none; }
.groom-head .btn, .groom-form-foot .btn, .groom-card-foot .btn, .groom-edit-foot .btn { width: auto; }
.groom-lightbox img { max-width: min(92vw, 980px); max-height: 86vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.groom-lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .88); color: #3b2d25; font-size: 20px; cursor: pointer;
}

@media (max-width: 720px) {
  .groom-uploads { grid-template-columns: 1fr; }
  .groom-compare { gap: 8px; }
  .groom-thumb { width: 56px; height: 56px; }
}

.shop-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 6px;
}
.shop-note code {
  background: #fff3e8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: "Cascadia Mono", Consolas, monospace;
  color: var(--ink-2);
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  background: #4a372e;
  color: #fff8f0;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(74, 55, 46, 0.3);
  font-size: 13.5px;
  max-width: min(720px, 92vw);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .t-title { font-weight: 700; margin-bottom: 3px; }
.toast .t-path {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: #ffd9bd;
  word-break: break-all;
}

.hidden { display: none !important; }

.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff4e5;
  border: 1px dashed #edc9a9;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: #a06a45;
  margin-bottom: 16px;
}

.demo-banner b { color: #8a4c26; }

/* 页脚 */
.foot { text-align: center; color: #b49c8b; font-size: 12px; padding: 30px 0 10px; letter-spacing: 0.5px; }

/* ---------------------------------------------------------------- 两步流程 */
.step-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0 6px;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fffaf4;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.step i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3e7dc;
  font-size: 12px;
  font-weight: 700;
}

.step.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #f3c7ab;
  font-weight: 600;
}

.step.active i { background: var(--accent); color: #fff; }

.step.done {
  color: #5d8a63;
  background: var(--green-soft);
  border-color: #d8e8d5;
}

.step.done i { background: #7aa781; color: #fff; }

.step-sep {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #e8d3c2 0 6px, transparent 6px 12px);
}

.process-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.process-card h3 { margin: 0 0 14px; font-size: 16px; letter-spacing: 0.5px; }

.process-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 32px;
}

.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #f3e7dc;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.process-list li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 27px;
  bottom: 5px;
  width: 1px;
  background: var(--line);
}

.process-list li:last-child { padding-bottom: 4px; }
.process-list li:last-child::after { display: none; }

.process-list li.current::before { background: var(--accent); color: #fff; }
.process-list b { display: block; font-size: 13.5px; color: var(--ink); }
.process-list span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  background: #fff9f2;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.form-note a { color: var(--accent-dark); font-weight: 600; }

/* 选择毛孩子 */
.pet-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.pet-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fffbf7;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pet-option input { position: absolute; opacity: 0; pointer-events: none; }
.pet-option:hover { border-color: #eec6ab; background: #fff7ef; }

.pet-option.checked {
  border-color: var(--accent);
  background: linear-gradient(150deg, #fff8f1, #ffe9da);
  box-shadow: 0 6px 14px rgba(224, 122, 79, 0.12);
}

.pet-photo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #fde3d2;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
}

.pet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pet-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pet-info b { font-size: 15px; letter-spacing: 0.3px; }
.pet-info small { font-size: 12px; color: var(--ink-2); }
.pet-info em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.pick-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #e2cdbc;
  flex: 0 0 auto;
  position: relative;
}

.pet-option.checked .pick-dot { border-color: var(--accent); }
.pet-option.checked .pick-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.empty-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.empty-actions .btn { width: auto; margin-top: 0; }

.stats.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.tag-pill.wait { background: #fff3d9; color: #9a6a12; }
.tag-pill.done { background: #eaf0f5; color: #5b7285; }

/* ---------------------------------------------------------------- 五步寄养单 */
.flow-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 2px 4px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fffaf4;
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: 0;
  transition: all 0.16s ease;
}

.flow-step i {
  font-style: normal;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3e7dc;
  font-size: 11.5px;
  font-weight: 700;
  flex: 0 0 auto;
}

.flow-step span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.flow-step b { font-size: 12.5px; white-space: nowrap; }
.flow-step small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.flow-step.active {
  border-color: #f3c7ab;
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: 0 5px 12px rgba(224, 122, 79, 0.1);
}
.flow-step.active i { background: var(--accent); color: #fff; }
.flow-step.active b { color: var(--accent-dark); }

.flow-step.done { border-color: #d8e8d5; background: var(--green-soft); color: #5d8a63; }
.flow-step.done i { background: #7aa781; color: #fff; }
.flow-step.done b { color: #4f7a55; }

.flow-step.placeholder { opacity: 0.66; border-style: dashed; }

.flow-sep {
  flex: 1;
  min-width: 10px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #e8d3c2 0 6px, transparent 6px 12px);
}

.service-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #fffbf7;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.service-line label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.service-fixed { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.service-fixed small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.service-side-note { max-width: 330px; font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.5; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.service-opt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: #fffbf7;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.service-opt input { position: absolute; opacity: 0; pointer-events: none; }
.service-opt .ico { grid-row: span 2; font-size: 21px; line-height: 1; }
.service-opt b { font-size: 13.5px; color: var(--ink); }
.service-opt small { font-size: 11.5px; color: var(--muted); }

.service-opt:hover { border-color: #eec6ab; background: #fff7ef; }

.service-opt.checked {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff6ec, #ffe6d4);
  box-shadow: 0 5px 12px rgba(224, 122, 79, 0.1);
}
.service-opt.checked b { color: var(--accent-dark); }

.check-mark {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #e2cdbc;
  border-radius: 50%;
  background: #fff;
}
.service-opt.checked .check-mark { border-color: var(--accent); background: var(--accent); }
.service-opt.checked .check-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.groom-addon {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fffaf5;
  border: 1.5px dashed #ecd5c2;
  border-radius: 14px;
}

.groom-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.groom-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.groom-check em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }

.groom-config {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-left: 25px;
}

.groom-config select {
  max-width: 300px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.groom-config select:disabled { opacity: 0.55; }
#groomPrice { font-size: 13.5px; color: var(--accent-dark); }

/* 房态 */
.room-groups { display: flex; flex-direction: column; gap: 13px; }
.room-group {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdfa;
}
.room-group.recommended { border-color: #efc8ad; background: #fffaf4; }
.room-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.room-group-head b { font-size: 13.5px; color: var(--ink); letter-spacing: 0.4px; }
.room-group-head small { margin-left: 7px; font-size: 11px; color: var(--muted); }
.room-recommend {
  padding: 2px 8px;
  font-size: 10.5px;
  color: var(--accent-dark);
  background: #fde9da;
  border-radius: 99px;
  white-space: nowrap;
}
.room-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }

.room-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  font: inherit;
  text-align: left;
  background: #fffbf7;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.room-top { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.room-opt b { font-size: 13.5px; letter-spacing: 0.3px; color: var(--ink); }
.room-opt .cam {
  padding: 1px 4px;
  font-style: normal;
  font-size: 9px;
  line-height: 1.5;
  color: #4f7a58;
  background: #eaf4ec;
  border-radius: 99px;
  white-space: nowrap;
}
.room-opt .cam.no { color: #a2603c; background: #f7ece4; }
.room-meta { font-size: 9.5px; color: var(--muted); }
.room-state { font-size: 10.5px; color: var(--muted); }
.room-opt:hover:not(:disabled) { border-color: #eec6ab; background: #fff7ef; }

.room-opt.checked {
  border-color: var(--accent);
  background: linear-gradient(160deg, #fff4ea, #ffe4d1);
  box-shadow: 0 6px 14px rgba(224, 122, 79, 0.14);
}
.room-opt.checked b { color: var(--accent-dark); }
.room-opt.checked span { color: var(--accent-dark); }

.room-opt:disabled { cursor: not-allowed; opacity: 0.72; }
.room-opt.booked { background: #fff8e8; border-color: #f0ddb2; }
.room-opt.booked span { color: #a37a19; }
.room-opt.occupied { background: #fdece2; border-color: #f0cbb8; }
.room-opt.occupied span { color: #b25a37; }
.room-opt.cleaning { background: #f3efe9; border-color: #e5d8ca; }
.room-opt.cleaning span { color: #8c715d; }

.room-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.rl::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #cbb7a6;
  vertical-align: 1px;
}
.rl.free::before { background: #8bb38f; }
.rl.booked::before { background: #e0b552; }
.rl.occupied::before { background: #e07a4f; }
.rl.cleaning::before { background: #b09a86; }
.rl.camera::before { background: #8bb38f; }
.rl.no-camera::before { background: #a2603c; }

.room-empty {
  grid-column: 1 / -1;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  background: #fff9f3;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* 办理入住确认 */
.confirm-box {
  min-height: 46px;
  padding: 6px 14px;
  margin-bottom: 4px;
  background: #fff9f3;
  border: 1px dashed #ecd3c0;
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.confirm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #f3e3d5;
  font-size: 12.5px;
}
.confirm-row:last-child { border-bottom: 0; }
.confirm-row b { color: var(--ink); font-weight: 600; text-align: right; }

.submit-hint { margin-top: 8px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* 4/5 步占位 */
.placeholder-panel { background: #fffcf8; }
.placeholder-list { display: flex; flex-direction: column; gap: 8px; }
.placeholder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #fffbf7;
  border: 1px dashed var(--line);
  border-radius: 11px;
  font-size: 13px;
}
.placeholder-text {
  margin: 0;
  padding: 12px 14px;
  background: #fff9f3;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

@media (max-width: 1020px) {
  .flow-bar { flex-wrap: wrap; }
  .flow-sep { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-line { align-items: flex-start; flex-direction: column; }
  .service-side-note { text-align: left; }
}

@media (max-width: 720px) {
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .groom-config { padding-left: 0; }
  .groom-config select { max-width: 100%; width: 100%; }
}

@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .hero { grid-template-columns: 1fr; padding: 30px; }
  .hero-art { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { padding: 8px 16px 40px; }
  .topbar { padding: 16px 16px 6px; flex-wrap: wrap; }
  .hero { padding: 24px 22px; border-radius: 22px; }
  .hero h1 { font-size: 29px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px 18px; }
  .success-card { padding: 30px 22px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .data-table { min-width: 760px; }
  .stats { gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat .value { font-size: 23px; }
}

@media (max-width: 1020px) {
  .stats.stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .step-bar { flex-wrap: wrap; padding: 0; }
  .step { font-size: 12px; padding: 7px 11px; }
  .step-sep { display: none; }
  .pet-option { padding: 11px 12px; }
  .empty-actions { flex-direction: column; align-items: stretch; }
  .empty-actions .btn { width: 100%; }
}
/* ---------------------------------------------------------------- 首页四入口 */
.nav-util {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-util a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all 0.18s ease;
}

.nav-util a:hover { background: #fff6ec; color: var(--accent-dark); }
.nav-util a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.home-hero {
  grid-template-columns: 1.25fr 0.75fr;
  padding: 44px 48px;
  background: linear-gradient(120deg, #fff4e5 0%, #ffe9d5 48%, #ffdfca 100%);
}

.home-hero h1 { font-size: 47px; line-height: 1.22; margin: 12px 0 14px; letter-spacing: 0; }
.home-hero p { max-width: 560px; font-size: 15px; }
.home-hero .big-pet { width: 176px; height: 176px; font-size: 88px; }

.section-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 4px 14px;
}

.section-label h2 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.section-label p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-note { color: var(--muted); font-size: 12px; white-space: nowrap; }

.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 252px;
  padding: 24px 26px 22px;
  border-radius: 26px;
  border: 1px solid #f1d7c2;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card::after {
  content: "🐾";
  position: absolute;
  right: 18px;
  bottom: 4px;
  font-size: 88px;
  opacity: 0.07;
  transform: rotate(-12deg);
  pointer-events: none;
}

.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.entry-card.boarding { background: linear-gradient(150deg, #fff5e7, #ffe8d3); }
.entry-card.daycare { background: linear-gradient(150deg, #fdf7ea, #f9edda); }
.entry-card.park { background: linear-gradient(150deg, #fbf5e7, #f4ead6); }
.entry-card.grooming { background: linear-gradient(150deg, #fff1ea, #ffe2d7); }

.entry-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.entry-badge.open { color: #5d7d55; background: #edf5e7; border: 1px solid #dce8d2; }
.entry-badge.soon { color: #9c7550; background: #fff9ef; border: 1px dashed #e3c6a8; }

.entry-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 28px;
  box-shadow: 0 6px 14px rgba(163, 106, 66, 0.08);
}

.entry-main h3 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: 2px; }
.entry-main small { display: block; margin-top: 2px; font-size: 9.5px; letter-spacing: 3px; color: var(--muted); }
.entry-main p { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.65; max-width: 94%; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.entry-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid rgba(240, 214, 192, 0.8);
  color: #956e52;
  font-size: 10.5px;
}

.entry-go { margin-top: auto; color: var(--accent-dark); font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; }
.entry-go i { font-style: normal; display: inline-block; transition: transform 0.18s ease; }
.entry-card:hover .entry-go i { transform: translateX(4px); }

.utility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }

.utility-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: all 0.18s ease;
}

.utility-card:hover { background: #fffdfa; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.utility-card .u-icon { font-size: 22px; }
.utility-card div { min-width: 0; }
.utility-card b { display: block; font-size: 13.5px; }
.utility-card small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-card i { margin-left: auto; color: var(--accent); font-style: normal; }

.home-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px dashed #ecd3c0;
  border-radius: 16px;
  background: rgba(255, 249, 242, 0.6);
  font-size: 12.5px;
  color: var(--muted);
}

.home-note span { font-size: 20px; }
.home-note p { margin: 0; flex: 1; }
.home-note b { color: var(--ink-2); }
.home-note a { color: var(--accent-dark); font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- 会员页 */
.member-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: center;
  padding: 40px 42px;
  border-radius: 30px;
  background: linear-gradient(120deg, #fff2e3 0%, #ffe6d2 55%, #f8d8c2 100%);
  border: 1px solid #f5d9c3;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.member-copy h1 { margin: 10px 0 12px; font-size: 44px; line-height: 1.25; letter-spacing: 1px; }
.member-copy p { max-width: 560px; margin: 0; color: var(--ink-2); font-size: 14px; }
.member-actions { display: flex; gap: 10px; margin-top: 22px; }
.member-actions .btn { width: auto; margin-top: 0; }

.member-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 20px;
  border-radius: 26px;
  background: linear-gradient(145deg, #5a3a2a 0%, #7b5139 58%, #96603f 100%);
  color: #fff7ec;
  box-shadow: 0 18px 38px rgba(90, 58, 42, 0.24);
}

.member-card::after {
  content: "🐾";
  position: absolute;
  right: -8px;
  bottom: -18px;
  font-size: 110px;
  opacity: 0.12;
  transform: rotate(-12deg);
}

.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; letter-spacing: 2px; color: #f3d8c2; text-transform: uppercase; }
.mc-status { padding: 3px 9px; border-radius: 999px; background: rgba(255, 247, 236, 0.14); border: 1px solid rgba(255, 241, 226, 0.28); letter-spacing: 1px; }
.mc-paw { margin-top: 18px; font-size: 30px; opacity: 0.8; }
.member-card h2 { position: relative; z-index: 1; margin: 2px 0 6px; color: #fff8ef; font-size: 25px; letter-spacing: 1px; }
.member-card p { position: relative; z-index: 1; margin: 0 0 14px; font-size: 11.5px; color: #f0d5c1; line-height: 1.6; }
.mc-lines { position: relative; z-index: 1; border-top: 1px solid rgba(255, 244, 231, 0.18); }
.mc-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 244, 231, 0.16); font-size: 12px; color: #f4ddcb; }
.mc-line b { color: #fff5e9; font-weight: 600; }
.mc-line b.pending { color: #f2c69f; font-weight: 500; }
.mc-foot { position: relative; z-index: 1; margin-top: 12px; font-size: 10.5px; color: #e5c5ae; letter-spacing: 0.3px; }

.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

.perk-list { display: flex; flex-direction: column; gap: 9px; }
.perk-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdfa;
}
.perk-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff5ea; font-size: 18px; }
.perk-row b { display: block; font-size: 13px; }
.perk-row p { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.perk-tag { padding: 3px 9px; border-radius: 999px; background: #fff6ea; border: 1px solid #efdcc8; color: #a17a5d; font-size: 10.5px; white-space: nowrap; }
.perk-tag.done { background: var(--green-soft); border-color: #d7e6d0; color: #5d7d55; }
.member-note { margin-top: 14px; padding: 11px 14px; border: 1px dashed #ecd3c0; border-radius: 13px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.member-side { position: sticky; top: 20px; }
.member-side p { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.member-side .btn { width: 100%; }
.member-notice { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; border: 1px dashed #edc9a9; color: #9b6a46; font-size: 11.5px; line-height: 1.6; }

/* ---------------------------------------------------------------- 充值页 */
.recharge-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 32px 38px;
  border-radius: 28px;
  background: linear-gradient(120deg, #fff3e5 0%, #ffe8d6 60%, #ffddc9 100%);
  border: 1px solid #f5d8c1;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.recharge-hero h1 { margin: 6px 0 8px; font-size: 40px; letter-spacing: 2px; }
.recharge-hero p { max-width: 660px; margin: 0; color: var(--ink-2); font-size: 13.5px; }
.recharge-balance { min-width: 190px; padding: 18px 22px; border-radius: 20px; background: rgba(255, 253, 248, 0.8); border: 1px solid #f0d6c1; text-align: center; }
.recharge-balance span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.recharge-balance b { display: block; margin: 2px 0; color: var(--accent-dark); font-size: 34px; line-height: 1.2; }
.recharge-balance small { color: var(--muted); font-size: 10px; }

.recharge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.recharge-tiers { gap: 12px; }
.recharge-tier {
  align-items: flex-start;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  padding: 17px 18px;
  min-height: 128px;
  border-radius: 17px;
  background: #fffbf7;
}
.recharge-tier b { font-size: 28px; line-height: 1.2; color: var(--accent-dark); letter-spacing: 0.5px; }
.rt-top { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.rt-arrive { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.rt-bonus { display: inline-block; margin-top: auto; padding: 2px 8px; border-radius: 999px; background: #fff7ec; border: 1px dashed #e6cbb3; color: #9f775b; font-size: 10.5px; }
.recharge-tier.active { border-color: var(--accent); background: linear-gradient(160deg, #fff4ea, #ffe5d2); box-shadow: 0 8px 18px rgba(224, 122, 79, 0.15); }
.recharge-tier.active::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.recharge-note { margin-top: 14px; padding: 10px 14px; border: 1px dashed #ecd3c0; border-radius: 13px; color: var(--muted); font-size: 11.5px; }
.recharge-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rs-item { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; background: #fffbf7; border: 1px solid var(--line); border-radius: 13px; }
.rs-item > span { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.rs-item b { display: block; font-size: 11.5px; }
.rs-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.recharge-side { position: sticky; top: 20px; }
.recharge-summary { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.rs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rs-head h3 { margin: 0; font-size: 16px; }
.demo-pill { padding: 3px 8px; border-radius: 999px; background: #fff4e5; border: 1px solid #efd6bf; color: #a06a45; font-size: 10px; }
.recharge-summary .summary-row { padding: 7px 0; font-size: 12.5px; border-bottom: 1px dashed #f5e6d8; }
.recharge-summary .summary-row b.pending { color: #b4865f; font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.summary-total span { color: var(--muted); font-size: 12px; }
.summary-total b { color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.recharge-summary .btn { width: 100%; margin-top: 16px; }
.pay-result { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; border: 1px dashed #edc9a9; color: #9b6a46; font-size: 11.5px; line-height: 1.6; }
.pay-tip { margin: 10px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.recharge-side .tip-card { margin-top: 16px; }

/* ---------------------------------------------------------------- 日托 / 乐园占位 */
.soon-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
  padding: 42px 44px;
  border-radius: 30px;
  background: linear-gradient(120deg, #fff4e6 0%, #ffe9d6 55%, #fbe0cc 100%);
  border: 1px solid #f5d9c3;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.soon-hero.park { background: linear-gradient(120deg, #fbf6e8 0%, #f7edd9 55%, #f1e2c9 100%); border-color: #ebdcc3; }
.soon-copy h1 { margin: 10px 0 12px; font-size: 46px; line-height: 1.22; letter-spacing: 1px; }
.soon-copy p { max-width: 580px; margin: 0; color: var(--ink-2); font-size: 14px; }
.soon-actions { display: flex; gap: 10px; margin-top: 22px; }
.soon-actions .btn { width: auto; margin-top: 0; }

.soon-art {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px;
  text-align: center;
  border-radius: 26px;
  border: 1px dashed #e6cbb3;
  background: rgba(255, 252, 246, 0.58);
}
.soon-stamp { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; background: #fff8ee; border: 1px dashed #e0c2a7; color: #9c7550; font-size: 10.5px; }
.soon-icon { font-size: 84px; line-height: 1.2; filter: saturate(0.9); }
.soon-label { color: var(--muted); font-size: 9.5px; letter-spacing: 4px; }
.soon-art p { max-width: 220px; margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }

.soon-panel { padding: 24px 28px; }
.soon-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.soon-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed #f3e3d5; font-size: 12.5px; color: var(--muted); }
.soon-row b { color: #b4865f; font-weight: 500; }
.soon-note { margin-top: 14px; padding: 10px 14px; border: 1px dashed #ecd3c0; border-radius: 13px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }

@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; }
  .nav-util { border-left: 0; padding-left: 0; }
}

@media (max-width: 1020px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-hero, .soon-hero { grid-template-columns: 1fr; padding: 30px; }
  .member-grid, .recharge-grid { grid-template-columns: minmax(0, 1fr); }
  .member-side, .recharge-side { position: static; }
  .recharge-hero { align-items: flex-start; }
}

@media (max-width: 760px) {
  .entry-grid, .utility-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: 220px; }
  .section-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-note { display: none; }
  .home-hero h1 { font-size: 34px; }
  .home-hero .big-pet { width: 136px; height: 136px; font-size: 68px; }
  .home-note { align-items: flex-start; }
  .member-card { padding: 22px 20px; }
  .member-copy h1, .soon-copy h1 { font-size: 32px; }
  .recharge-hero { display: block; padding: 26px 22px; }
  .recharge-balance { margin-top: 18px; }
  .recharge-tiers { grid-template-columns: 1fr; }
  .recharge-steps { grid-template-columns: 1fr; }
  .soon-rows { grid-template-columns: 1fr; }
  .soon-art { min-height: 230px; }
}

/* ================================================================
   2026-11-11 底部四 tab / 商城 / 状态 / 我的
   ================================================================ */
body.has-tabbar { padding-bottom: 104px; }

.topbar-admin {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.topbar-admin:hover { color: var(--accent-dark); border-color: #eccbb4; background: #fff6ec; }

.tabbar {
  box-sizing: border-box;
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(241, 226, 212, 0.95);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(130, 82, 48, 0.18), 0 2px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(18px);
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 7px;
  border-radius: 17px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  transition: all 0.18s ease;
}
.tab-item svg { width: 20px; height: 20px; }
.tab-item:hover { color: var(--accent-dark); background: #fff7ee; }
.tab-item.active { color: var(--accent-dark); background: var(--peach); font-weight: 700; }
.tab-item.active svg { stroke-width: 2; }

/* ---------------------------------------------------------------- 商城 */
.mall-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
  padding: 32px 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7ee 0%, #ffead9 55%, #fde3d2 100%);
  border: 1px solid #f4d8c2;
  margin-bottom: 20px;
}
.mall-hero h1 { margin: 8px 0 10px; font-size: 36px; line-height: 1.22; letter-spacing: 0.5px; }
.mall-hero p { margin: 0; color: var(--ink-2); font-size: 14px; }
.mall-current {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.mall-current .label { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.mall-current .pet { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; font-size: 19px; font-weight: 700; }
.mall-current .pet span { font-size: 25px; }
.mall-current .pet img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.mall-current .meta { font-size: 12px; color: var(--muted); }
.mall-current .empty { color: var(--muted); font-size: 13px; padding: 10px 0 4px; }

.mall-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 14px; }
.mall-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.mall-filter button {
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(255, 253, 250, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.mall-filter button.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(224, 122, 79, 0.22); }
.mall-tip { font-size: 12px; color: var(--muted); }

.mall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mall-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mall-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mall-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mall-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; background: var(--peach); }
.mall-icon.sand { background: #fff3dc; }
.mall-icon.rose { background: #fde8e6; }
.mall-icon.mint { background: var(--green-soft); }
.mall-cat { font-size: 10.5px; color: var(--muted); background: #f8f2eb; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.mall-card h3 { margin: 2px 0 0; font-size: 17px; letter-spacing: 0.3px; }
.mall-card .desc { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); min-height: 40px; }
.mall-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.mall-price { color: var(--accent-dark); font-weight: 800; font-size: 22px; letter-spacing: 0.3px; }
.mall-price small { color: var(--muted); font-size: 11px; font-weight: 500; margin-left: 2px; }
.mall-buy {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 9px 18px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(224, 122, 79, 0.2);
  transition: all 0.18s ease;
}
.mall-buy:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* 二选一弹层 */
.choice-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(70, 52, 43, 0.38);
  backdrop-filter: blur(6px);
}
.choice-mask.show { display: flex; }
.choice-panel {
  width: min(650px, 100%);
  background: var(--card);
  border-radius: 26px;
  border: 1px solid #f2dccb;
  box-shadow: 0 34px 80px rgba(92, 56, 32, 0.26);
  padding: 24px;
  animation: choiceIn 0.2s ease-out;
}
@keyframes choiceIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.choice-head { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.choice-head .mall-icon { width: 58px; height: 58px; flex: none; }
.choice-head h2 { margin: 0; font-size: 21px; }
.choice-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.choice-close { margin-left: auto; border: 0; background: #f8f0e7; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 17px; }
.choice-ask { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; font-weight: 600; }
.choice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.choice-option {
  font: inherit;
  text-align: left;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffaf4;
  padding: 20px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.choice-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #e9c5aa; }
.choice-option .ico { font-size: 27px; display: block; margin-bottom: 7px; }
.choice-option b { display: block; font-size: 17px; margin-bottom: 4px; }
.choice-option span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.choice-option.now { background: linear-gradient(150deg, #fff4ea, #ffe4d1); border-color: #f2cdb2; }
.choice-option.home { background: linear-gradient(150deg, #fbf7ee, #f4ecdc); }
.choice-foot { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* 送到家下单页 */
.delivery-hero { padding: 30px 36px; border-radius: 28px; background: linear-gradient(135deg, #fff8ef, #fde9da); border: 1px solid #f4d8c2; margin-bottom: 20px; }
.delivery-hero h1 { margin: 6px 0 8px; font-size: 34px; }
.delivery-hero p { margin: 0; color: var(--ink-2); font-size: 14px; }
.delivery-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
.delivery-summary { position: sticky; top: 18px; }
.delivery-product { display: flex; gap: 13px; align-items: center; padding: 13px; background: #fffaf4; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; }
.delivery-product .mall-icon { width: 50px; height: 50px; flex: none; }
.delivery-product h3 { margin: 0; font-size: 16px; }
.delivery-product p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row b { color: var(--ink); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 14px; }
.sum-total span { color: var(--muted); font-size: 12.5px; }
.sum-total b { color: var(--accent-dark); font-size: 29px; }
.delivery-success { display: none; text-align: center; padding: 44px 24px; }
.delivery-success.show { display: block; }
.delivery-success .big { font-size: 46px; display: block; margin-bottom: 8px; }
.delivery-success h2 { margin: 0 0 6px; }
.delivery-success p { color: var(--muted); font-size: 13px; }
.success-meta { margin: 18px auto 20px; max-width: 360px; text-align: left; background: #fffaf4; border: 1px dashed #ecd6c3; border-radius: 14px; padding: 13px 15px; font-size: 12.5px; }
.success-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }

/* ---------------------------------------------------------------- 状态 */
.status-hero { padding: 30px 36px; border-radius: 28px; background: linear-gradient(135deg, #fff8ef 0%, #ffeadb 100%); border: 1px solid #f4d8c2; margin-bottom: 20px; }
.status-hero h1 { margin: 6px 0 8px; font-size: 34px; }
.status-hero p { margin: 0; color: var(--ink-2); font-size: 14px; }
.status-list { display: grid; gap: 12px; }
.status-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 16px; background: #fffaf4; border: 1px solid var(--line); border-radius: 17px; }
.status-card .avatar { width: 48px; height: 48px; border-radius: 15px; background: var(--peach); display: grid; place-items: center; font-size: 25px; overflow: hidden; }
.status-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.status-card h3 { margin: 0; font-size: 15.5px; }
.status-card p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.status-card .right { text-align: right; font-size: 12px; color: var(--muted); }
.task-row { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px dashed var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.task-row.done .task-dot { background: var(--green); }
.task-main { flex: 1; min-width: 0; }
.task-main b { display: block; font-size: 13.5px; }
.task-main span { font-size: 11.5px; color: var(--muted); }
.task-row.done .task-main b { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.task-btn { font: inherit; font-size: 11.5px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 9px; padding: 5px 10px; cursor: pointer; }
.task-btn:hover { border-color: #e5bda2; color: var(--accent-dark); }
.done-tag { font-size: 11px; color: var(--green); }

/* ---------------------------------------------------------------- 我的 */
.mine-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border-radius: 28px; background: linear-gradient(135deg, #fff8ef, #ffeadb); border: 1px solid #f4d8c2; margin-bottom: 18px; }
.mine-profile { display: flex; align-items: center; gap: 15px; }
.mine-avatar { width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(145deg, #ffd9bd, #f7b98f); display: grid; place-items: center; font-size: 30px; box-shadow: 0 8px 18px rgba(224, 122, 79, 0.2); }
.mine-profile h1 { margin: 0; font-size: 24px; }
.mine-profile p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.mine-stats { display: flex; gap: 22px; }
.mine-stat { text-align: center; }
.mine-stat b { display: block; font-size: 23px; }
.mine-stat span { font-size: 11.5px; color: var(--muted); }

.mine-grid { display: grid; grid-template-columns: 1fr 0.75fr; gap: 20px; align-items: start; }
.mine-menu { display: grid; gap: 8px; }
.mine-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; background: #fffaf4; border: 1px solid transparent; transition: all 0.18s ease; }
.mine-item:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.mine-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--peach); font-size: 19px; flex: none; }
.mine-item b { font-size: 14px; display: block; }
.mine-item small { color: var(--muted); font-size: 11.5px; }
.mine-item .arrow { margin-left: auto; color: #c7ad9b; font-size: 18px; }
.mine-side { background: #fffaf4; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.mine-side h3 { margin: 0 0 8px; font-size: 15px; }
.mine-side p { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.75; }
.mine-side .btn { width: 100%; margin-top: 0; }
.wallet-balance { text-align: center; padding: 18px 10px 8px; }
.wallet-balance span { font-size: 12px; color: var(--muted); }
.wallet-balance b { display: block; font-size: 44px; color: var(--accent-dark); letter-spacing: 0.5px; }
.wallet-note { text-align: center; color: var(--muted); font-size: 11.5px; margin: 0 0 16px; }

/* 我的订单 */
.mo-list { display: grid; gap: 10px; }
.mo-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fffaf4; border: 1px solid var(--line); border-radius: 16px; }
.mo-card .mo-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--peach); font-size: 22px; flex: none; }
.mo-main { flex: 1; min-width: 0; }
.mo-main b { display: block; font-size: 14px; }
.mo-main span { font-size: 11.5px; color: var(--muted); }
.mo-price { text-align: right; font-weight: 700; color: var(--accent-dark); font-size: 16px; }
.mo-price small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }

@media (max-width: 1100px) {
  .mall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mall-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-grid, .mine-grid { grid-template-columns: 1fr; }
  .delivery-summary { position: static; }
  .status-card { grid-template-columns: auto 1fr; }
  .status-card .right { grid-column: 2; text-align: left; }
}
@media (max-width: 720px) {
  body.has-tabbar { padding-bottom: 92px; }
  .tabbar { bottom: 10px; width: calc(100vw - 18px); padding: 6px; }
  .tab-item { font-size: 10.5px; padding: 7px 2px 6px; }
  .tab-item svg { width: 18px; height: 18px; }
  .mall-hero, .status-hero, .delivery-hero { padding: 24px 22px; }
  .mall-hero h1, .status-hero h1, .delivery-hero h1 { font-size: 29px; }
  .mall-toolbar { align-items: flex-start; flex-direction: column; }
  .choice-options { grid-template-columns: 1fr; }
  .choice-panel { padding: 18px; }
  .mine-hero { grid-template-columns: 1fr; padding: 22px; }
  .mine-stats { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .mall-grid { grid-template-columns: 1fr; }
  .mall-hero h1, .status-hero h1, .delivery-hero h1 { font-size: 26px; }
}

/* ---------------------------------------------------------------- 家长端状态页 */
.customer-strip { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.customer-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); font-size: 21px; flex: none; }
.customer-main { min-width: 0; flex: 1; }
.customer-main b { display: block; font-size: 15px; }
.customer-main span { font-size: 11.5px; color: var(--muted); }
.pet-switch { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.pet-tab { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); font-family: inherit; text-align: left; cursor: pointer; transition: .2s; }
.pet-tab:hover { border-color: var(--accent); }
.pet-tab.active { border-color: var(--accent); background: var(--peach); box-shadow: 0 4px 14px rgba(224, 122, 79, .12); }
.pet-tab-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; overflow: hidden; font-size: 20px; flex: none; }
.pet-tab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-tab b { display: block; font-size: 13.5px; }
.pet-tab small { font-size: 10.5px; color: var(--muted); }
.focus-panel { padding: 26px 28px; }
.focus-head { display: flex; align-items: center; gap: 16px; }
.focus-avatar { width: 82px; height: 82px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--peach); border: 4px solid #fff; box-shadow: 0 6px 18px rgba(120, 80, 60, .12); font-size: 38px; flex: none; }
.focus-avatar img { width: 100%; height: 100%; object-fit: cover; }
.focus-name { min-width: 0; flex: 1; }
.focus-name h2 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.focus-name p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.focus-room { text-align: right; flex: none; }
.focus-room small { display: block; font-size: 10.5px; color: var(--muted); }
.focus-room b { font-size: 22px; color: var(--accent-dark); }
.focus-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px 18px; margin-top: 20px; background: #fffaf4; border: 1px solid var(--line); border-radius: 16px; }
.focus-meta span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.focus-meta b { font-size: 14px; font-weight: 600; }
.progress { display: flex; align-items: flex-start; margin-top: 26px; }
.progress-step { flex: 0 0 118px; text-align: center; }
.progress-step .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: block; margin: 0 auto 8px; }
.progress-step.done .dot { background: #9bc9a8; border-color: #9bc9a8; }
.progress-step.current .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(224, 122, 79, .14); }
.progress-step b { display: block; font-size: 12.5px; font-weight: 600; }
.progress-step small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.progress-step.current b { color: var(--accent-dark); }
.progress-line { flex: 1; height: 2px; background: var(--line); margin-top: 6px; }
.progress-line.done { background: #9bc9a8; }
.task-row.readonly { cursor: default; }
.task-state { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; flex: none; }
.task-state.planned { color: #a06b2a; background: #fdf1db; }
.task-state.done { color: #4d8a5d; background: #e7f5ea; }
.parent-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.parent-links .btn { width: auto; margin-top: 0; }
@media (max-width: 720px) {
  .focus-panel { padding: 20px 18px; }
  .focus-head { align-items: flex-start; flex-wrap: wrap; }
  .focus-room { margin-left: 0; text-align: left; }
  .focus-meta { grid-template-columns: 1fr 1fr; }
  .progress-step { flex: 1; }
  .progress-step small { font-size: 9.5px; }
}

/* 交接方式 / 两类联系人 */
.handover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.handover-opt { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffdfa; cursor: pointer; transition: .15s ease; }
.handover-opt:hover { border-color: #e9c4b0; transform: translateY(-1px); }
.handover-opt.checked { border-color: var(--accent); background: #fff4ec; box-shadow: 0 0 0 3px rgba(224,122,79,.08); }
.handover-opt input { position: absolute; opacity: 0; pointer-events: none; }
.handover-ico { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.handover-opt b { font-size: 15px; }
.handover-opt small { color: var(--muted); font-size: 12px; }
.handover-opt .check-mark { position: absolute; right: 14px; top: 14px; }
.handover-fields { margin-top: 14px; padding: 14px 16px 2px; border: 1px dashed var(--line); border-radius: 14px; background: #fffaf4; }
.contact-box { margin-top: 4px; }
.contact-box-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; align-items: stretch; }
.contact-box-col { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.contact-box-col > small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 5px; }
.contact-box-col > small i { font-style: normal; color: var(--accent-dark); }
.contact-box-col > b { display: block; font-size: 14px; line-height: 1.5; }
.contact-box-col > em { display: block; margin-top: 6px; color: #b09a88; font-size: 11px; font-style: normal; }
.contact-box-col .grid-2 { margin-bottom: 0; }
.contact-box-col .field { margin-bottom: 8px; }
.contact-title { margin: 18px 0 10px; font-size: 15px; color: var(--ink); }
.contact-title:first-of-type { margin-top: 0; }
.contact-title span { margin-left: 8px; font-size: 11.5px; font-weight: 400; color: var(--muted); }

/* 宠物详情 */
.detail-page { padding-top: 26px; }
.detail-loading { padding: 80px 0; text-align: center; color: var(--muted); }
.detail-hero { padding: 26px 28px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #fff7ef, #fdf1e8); }
.detail-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-kicker a { color: var(--muted); font-size: 12.5px; }
.detail-kicker a:hover { color: var(--accent-dark); }
.detail-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 16px 0 18px; }
.detail-title-row h1 { margin: 0; font-size: 34px; letter-spacing: .02em; }
.detail-title-row h1 em { font-style: normal; font-size: 16px; color: var(--muted); font-weight: 500; }
.detail-title-row p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.detail-total { text-align: right; flex: none; }
.detail-total small { display: block; color: var(--muted); font-size: 12px; }
.detail-total b { font-size: 34px; color: var(--accent-dark); font-family: Georgia, serif; }
.detail-total b span { font-size: 34px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions .btn { width: auto; margin: 0; }
.detail-actions .btn:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.3); }
.end-hint { margin-top: 10px; font-size: 12px; color: #9a7658; min-height: 18px; }
.archive-result { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #edf7ef; color: #4d7d57; font-size: 12px; word-break: break-all; }

.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-top: 18px; }
.detail-panel { padding: 22px 24px; }
.detail-panel .panel-head { margin-bottom: 12px; }
.detail-rows { display: flex; flex-direction: column; }
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row > span { color: var(--muted); flex: none; }
.detail-row > b { text-align: right; font-weight: 500; line-height: 1.55; word-break: break-word; }
.detail-row > span em { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: #fde9df; color: var(--accent-dark); font-style: normal; font-size: 10px; }
.priority-note { color: #b05e3b; font-size: 10px; margin-left: 4px; }
.quote-mini { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fdf8f2; }
.quote-mini .q-line { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 12.5px; }
.quote-mini .q-line span { color: var(--muted); }
.quote-mini .q-line b { font-weight: 500; }
.quote-mini .q-line.discount b { color: #4d8a5d; }
.quote-mini .total-line { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); align-items: baseline; }
.quote-mini .total-line b { font-size: 26px; color: var(--accent-dark); font-family: Georgia, serif; }

.handover-panel { margin-top: 18px; }
.handover-now { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.handover-now > div { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.handover-now small { color: var(--muted); font-size: 11.5px; }
.handover-now b { font-size: 15px; }
.handover-now .btn { width: auto; margin: 0 0 0 auto; }

.edit-panel { margin-top: 18px; }
.edit-section-title { margin: 16px 0 10px; font-size: 14px; font-weight: 600; }
.edit-section-title:first-of-type { margin-top: 0; }
.edit-section-title span { margin-left: 8px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.edit-actions { display: flex; gap: 10px; margin-top: 18px; }
.edit-actions .btn { width: auto; margin: 0; }

.modal-mask { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(58, 42, 32, .32); backdrop-filter: blur(3px); }
.modal-mask[hidden] { display: none; }
.handover-fields[hidden] { display: none; }
.end-modal { width: min(460px, 100%); max-height: 90vh; overflow: auto; padding: 26px 26px 22px; border-radius: 24px; background: var(--card); box-shadow: 0 24px 80px rgba(70, 45, 28, .22); }
.end-modal-head { text-align: center; }
.end-modal-head .ok-icon { width: 56px; height: 56px; margin: 0 auto 10px; font-size: 24px; }
.end-modal-head h2 { margin: 0; font-size: 24px; }
.end-modal-head p { margin: 6px 0 16px; color: var(--muted); font-size: 12.5px; }
.end-summary { padding: 8px 14px; border-radius: 14px; background: #fdf8f2; }
.end-summary .summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.end-summary .summary-row:last-child { border-bottom: 0; }
.end-summary .summary-row span { color: var(--muted); }
.end-summary .summary-row.total b { color: var(--accent-dark); font-size: 26px; font-family: Georgia, serif; }
.end-note { margin: 14px 2px 18px; color: #9a7658; font-size: 11.5px; line-height: 1.7; }
.end-actions { display: flex; gap: 10px; }
.end-actions .btn { width: auto; margin: 0; flex: 1; }

@media (max-width: 1020px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .detail-hero { padding: 20px 18px 16px; }
  .detail-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail-title-row h1 { font-size: 27px; }
  .detail-total { text-align: left; }
  .handover-grid { grid-template-columns: 1fr; }
  .handover-now { gap: 14px; }
  .handover-now .btn { margin-left: 0; width: 100%; }
  .end-actions { flex-direction: column-reverse; }
}

/* ================================================================
   房态平面图 /rooms
   ================================================================ */
.rooms-page { padding-bottom: 40px; }
.plan-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 12px;
}
.plan-hero-text { max-width: 760px; }
.plan-hero h1 { margin: 4px 0 6px; font-size: 34px; letter-spacing: -0.6px; }
.plan-hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.plan-hero-actions { display: flex; gap: 10px; flex-shrink: 0; padding-bottom: 4px; }
.plan-hero-actions .btn { width: auto; white-space: nowrap; }

.plan-pickbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 13px 18px;
  border: 1px solid #f0d2b6;
  border-radius: 16px;
  background: #fff5e9;
  color: #7c4a26;
}
.plan-pickbar-icon { font-size: 24px; line-height: 1; }
.plan-pickbar-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.plan-pickbar-text b { font-size: 14px; }
.plan-pickbar-text span { font-size: 12.5px; color: #9a6a45; }
.plan-pickbar-cancel { font-size: 12.5px; color: #9a6a45; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.plan-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}
.plan-pill.free { border-color: #cfe4c8; background: #f3faf1; color: #3f6b46; }
.plan-pill.occupied { border-color: #eec3a8; background: #fdece1; color: #a34d28; }
.plan-pill.unused { border-color: #ded8d0; background: #f1efec; color: #77706a; }
.plan-updated { margin-left: auto; padding-right: 2px; }

/* 房态页单独放宽容器：1440 宽时两厅能并排，且格子不打折 */
.rooms-page .wrap { max-width: 1400px; }

.plan-layout {
  display: grid;
  /* 大间最小 494（110*4+4*3+2+32+8）、小间最小 724（110*6+4*5+2+32+8），1440 宽并排不横向溢出 */
  grid-template-columns: minmax(494px, 0.9fr) minmax(724px, 1.1fr);
  gap: 20px;
  align-items: start;
}
.hall-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 16px 12px;
  box-shadow: 0 10px 28px rgba(90, 60, 40, 0.05);
}
.hall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}
.hall-head h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.3px; }
.hall-head p { margin: 0; font-size: 12px; color: var(--muted); }
.hall-count { flex-shrink: 0; font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.5; }

.plan-scroll { min-width: 0; overflow-x: auto; padding: 4px; }
.plan-grid { display: grid; gap: 4px; min-width: 0; margin: 0 auto; }
/* 桌面：大间每列 110px、行高 78px（角房负外扩后 118×84） */
.plan-big {
  --plan-row: 78px;
  grid-template-columns: 110px minmax(110px, 1fr) minmax(110px, 1fr) 110px;
  max-width: 800px;
}
.plan-small {
  --plan-row: 78px;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  max-width: 1000px;
}
.plan-big .plan-court { grid-column: 2 / span 2; grid-row: 2 / span 7; }
.plan-small .plan-court { grid-column: 2 / span 4; grid-row: 2 / span 5; }

.plan-court {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e4d2bf;
  border-radius: 16px;
  background: #fbf6ef;
  color: #b09a86;
  font-size: 12px;
  letter-spacing: 1px;
}
.plan-court::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(224, 200, 173, 0.55);
  pointer-events: none;
}
.plan-court span { position: relative; z-index: 1; }

.plan-room {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3px 3px 2px;
  border: 1.5px solid #cfe4c8;
  border-radius: 11px;
  background: #f3faf1;
  color: #3f6b46;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.plan-room:hover {
  transform: translateY(-1px);
  border-color: #a9c99f;
  box-shadow: 0 5px 12px rgba(90, 60, 40, 0.13);
  z-index: 3;
}
.plan-room:focus-visible { outline: 3px solid rgba(224, 122, 79, 0.45); outline-offset: 1px; }
.plan-room .no {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.4px;
}
.plan-room .st {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.15;
  opacity: 0.85;
}
/* 店员视图的已住格子里，「已住 · 昵称」只留给读屏，不占视觉行 */
.plan-room .st--a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.plan-room .pet-icon {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 0;
  font-size: 0;
}
.plan-room .pet-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.plan-room .pet-breed,
.plan-room .pet-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.05;
}
.plan-room .pet-breed { font-size: 13px; opacity: 0.9; }
.plan-room .pet-name { font-size: 13px; font-weight: 800; max-width: 100%; }
/* 已住：房号(小) / 图标(大) / 品种 / 昵称 四行，78px 内放得下 */
.plan-room.occupied { padding: 1px 2px; }
.plan-room.occupied .no { font-size: 11.5px; font-weight: 700; letter-spacing: 0; line-height: 1.05; opacity: 0.8; }
.plan-room.free .st { font-size: 13px; opacity: 0.7; margin-top: 2px; }
.plan-room.unused .st { font-size: 12px; }
.plan-room.occupied { border-color: #eec3a8; background: #fdece1; color: #a34d28; }
.plan-room.occupied:hover { border-color: #e0a884; }
.plan-room.unused { border-color: #ded8d0; background: #f1efec; color: #8d857c; }
.plan-room.unused:hover { border-color: #c9c0b6; }
.plan-room.tiny .no { color: #d23b2f; }
/* 角房：负外扩吃掉 4px 间隙、纵向 3px，110×78 → 118×84，字号略提 */
.plan-room.corner-room {
  margin: -3px -4px;
  border-width: 2px;
  border-radius: 12px;
  z-index: 1;
}
.plan-room.corner-room .no { font-size: 21px; }
.plan-room.corner-room.occupied .no { font-size: 12.5px; }
.plan-room.corner-room .pet-icon { width: 36px; height: 36px; }
.plan-room.divider-left { border-left: 5px solid #5c4638; }

.corner-badge {
  position: absolute;
  top: 3px;
  left: 4px;
  padding: 0 4px;
  border-radius: 5px;
  background: #f3d9ae;
  color: #8a5a18;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
}
.cam-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7fd0;
  box-shadow: 0 0 0 1.5px #fffdfa;
}

.plan-door,
.plan-store {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-align: center;
  line-height: 1.2;
}
.plan-door {
  border: 2px dashed #c08f63;
  background: #f8ebdc;
  color: #8a5a33;
  font-size: 13px;
  font-weight: 700;
}
.plan-door span::before { content: '🚪'; display: block; font-size: 15px; line-height: 1.1; }
.plan-store {
  border: 1.5px solid #cfc3b4;
  background: #eae2d6;
  color: #6f5c49;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.plan-store span { writing-mode: vertical-rl; letter-spacing: 2px; }

.hall-foot {
  margin: 8px 2px 0;
  font-size: 10.5px;
  line-height: 1.65;
  color: #a08d7c;
}

.plan-legend-card {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.plan-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.plg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); }
.plg-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid transparent; }
.plg-swatch.free { background: #f3faf1; border-color: #cfe4c8; }
.plg-swatch.occupied { background: #fdece1; border-color: #eec3a8; }
.plg-swatch.unused { background: #f1efec; border-color: #ded8d0; }
.plg-dot { width: 9px; height: 9px; border-radius: 50%; background: #2f7fd0; box-shadow: 0 0 0 1.5px #fffdfa; }
.plg-corner { padding: 0 4px; border-radius: 4px; background: #f3d9ae; color: #8a5a18; font-size: 10px; line-height: 15px; }
.plg-tiny { color: #d23b2f; font-size: 13px; }
.plan-legend-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

/* 房间详情 */
.room-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.room-modal-mask { position: absolute; inset: 0; background: rgba(62, 44, 33, 0.42); backdrop-filter: blur(2px); }
.room-modal-card {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 24px 24px 20px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 30px 70px rgba(50, 30, 20, 0.3);
  animation: roomPop 0.16s ease-out;
}
@keyframes roomPop { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.room-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f6ece2;
  color: #7a6455;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.room-modal-close:hover { background: #f0e0d2; }
.rm-top { display: flex; align-items: center; gap: 10px; padding-right: 34px; }
.rm-no { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }
.rm-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.rm-status.free { background: #eaf6e6; color: #3f6b46; }
.rm-status.occupied { background: #fdece1; color: #a34d28; }
.rm-status.unused { background: #f0eeeb; color: #77706a; }
.rm-status.booked, .rm-status.cleaning { background: #fff2d9; color: #8a641c; }
.rm-sub { margin: 7px 0 18px; font-size: 12.5px; color: var(--muted); }
.rm-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; margin: 0 0 18px; }
.rm-list > div { display: contents; }
.rm-list dt { color: var(--muted); font-size: 12.5px; }
.rm-list dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.rm-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.rm-actions .btn { width: 100%; }
.rm-status-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rm-status-edit > span { margin-right: 2px; font-size: 12px; color: var(--muted); }
.rm-status-edit button {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf4;
  color: #6d5849;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.rm-status-edit button:hover:not(:disabled) { border-color: #e3bfa4; background: #fff2e6; }
.rm-status-edit button.active { border-color: #e07a4f; background: #fdece1; color: #a34d28; font-weight: 700; }
.rm-status-edit button:disabled { opacity: 0.55; cursor: default; }
.rm-tip { margin: 12px 0 0; font-size: 11px; line-height: 1.65; color: #a08d7c; }
.rooms-page .toast { z-index: 300; }
/* 家长视图：点房间只弹浅提示条，1.5 秒后自动消失 */
.plan-customer-tip {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 400;
  max-width: min(420px, calc(100vw - 28px));
  padding: 9px 16px;
  border: 1px solid #ecd6c3;
  border-radius: 999px;
  background: #fff8ef;
  color: #7a5b42;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 10px 24px rgba(90, 60, 40, 0.14);
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.plan-customer-tip.show { opacity: 1; transform: translate(-50%, 0); }
body.modal-open { overflow: hidden; }

/* 1296 以下两厅放不下（494+724+20 > 内容宽），改上下排 */
@media (max-width: 1296px) {
  .plan-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-hero { align-items: flex-start; flex-direction: column; }
  .plan-hero h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .rooms-page .wrap { padding-left: 14px; padding-right: 14px; }
  .plan-hero-actions { width: 100%; }
  .plan-hero-actions .btn { flex: 1; text-align: center; justify-content: center; }
  .hall-card { padding: 12px 10px 10px; }
  .plan-pickbar { align-items: flex-start; flex-wrap: wrap; }
  .plan-pickbar-text { flex-basis: calc(100% - 40px); }
  .plan-pickbar-cancel { margin-left: 38px; }
  .plan-updated { margin-left: 0; width: 100%; }
  /* 手机：普通房 76×64、角房 84×70；大间不溢出，小间 6 列放不下时卡内横向滚动 */
  .plan-grid { gap: 4px; }
  .plan-big {
    --plan-row: 64px;
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr) 76px;
  }
  .plan-small {
    --plan-row: 64px;
    grid-template-columns: repeat(6, 76px);
  }
  .plan-room { padding: 1px 2px; border-width: 1px; border-radius: 9px; }
  .plan-room.corner-room { margin: -3px -4px; border-width: 1.5px; border-radius: 10px; }
  .plan-room .no { font-size: 16px; }
  .plan-room.occupied { padding: 0 2px; }
  .plan-room.occupied .no { font-size: 10px; line-height: 1.05; }
  .plan-room.corner-room .no { font-size: 17px; }
  .plan-room.corner-room.occupied .no { font-size: 11px; }
  .plan-room .pet-icon { width: 26px; height: 26px; }
  .plan-room.corner-room .pet-icon { width: 28px; height: 28px; }
  .plan-room .pet-breed { font-size: 13px; line-height: 1; }
  .plan-room .pet-name { font-size: 12px; line-height: 1; }
  .plan-room .st { font-size: 10px; line-height: 1.1; }
  .plan-room.free .st { font-size: 11px; margin-top: 1px; }
  .plan-room.unused .st { font-size: 10px; }
  .corner-badge { top: 1px; left: 2px; padding: 0 3px; font-size: 8px; line-height: 11px; }
  .cam-dot { top: 4px; right: 4px; width: 7px; height: 7px; }
  .plan-layout.staff .plan-big,
  .plan-layout.staff .plan-small { --plan-row: 78px; }
  .plan-room.with-marks { padding-bottom: 11px; }
  .clean-marks { font-size: 7.5px; left: 2px; right: 2px; }
  .clean-mark { padding: 0 2px; }
}

/* 家长视图：不显示任何店员操作 */
.view-customer .rm-actions,
.view-customer .rm-status-edit,
.view-customer .rm-mark { display: none; }

/* 清洁 / 消毒标记：只在店员视图出现，今天=绿，超过 2 天=橙，超过 4 天=红 */
.plan-layout.staff .plan-big,
.plan-layout.staff .plan-small { --plan-row: 92px; }
.plan-room.with-marks { padding-bottom: 13px; }
.clean-marks {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: .2px;
  pointer-events: none;
}
.clean-mark {
  padding: 1px 3px;
  border-radius: 4px;
  color: #b7a696;
  background: rgba(120, 96, 74, .06);
  white-space: nowrap;
}
.clean-mark.fresh { color: #2f8f5b; background: #e7f6ee; }
.clean-mark.warn { color: #a9640f; background: #fdf0dc; }
.clean-mark.late { color: #c0392b; background: #fdeae7; font-weight: 700; }
.view-customer .clean-marks { display: none; }

/* 长按 / 右键的小菜单 */
.mark-menu {
  position: fixed;
  z-index: 480;
  min-width: 176px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #f0e2d2;
  background: #fffdfa;
  box-shadow: 0 14px 34px rgba(60, 40, 20, .2);
  display: grid;
  gap: 6px;
}
.mark-menu[hidden] { display: none; }
.mark-menu p {
  margin: 2px 4px 4px;
  font-size: 12px;
  color: #8a7563;
}
.mark-menu button {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #e8dccd;
  background: #fff8ef;
  color: #7a5a3f;
  font-size: 13px;
  cursor: pointer;
}
.mark-menu button:hover { background: #fdece1; }

.rm-mark {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #8a7563;
}
.rm-mark button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e8dccd;
  background: #fff8ef;
  color: #7a5a3f;
  font-size: 12.5px;
  cursor: pointer;
}
.rm-mark button:hover { background: #fdece1; }

/* 宠物备注提醒：进门先看这一条 */
.notes-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #f5e2a8;
  background: #fff7dc;
  color: #8a6a15;
  font-size: 14px;
}
.notes-banner b { font-size: 13px; letter-spacing: .4px; }
.note-pill {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #ecd9a0;
  background: #fffdf3;
  font-weight: 600;
}
.note-editor { display: grid; gap: 8px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  border: 1px solid #f0dda6;
  background: #fff6da;
  font-size: 13px;
}
.note-chip button {
  border: 0;
  background: none;
  color: #a9640f;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.note-empty { font-size: 13px; color: #a89c8c; }
.note-add { display: flex; gap: 8px; align-items: center; }
.note-add input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #e8dccd;
  background: #fffdfa;
  font-size: 14px;
  color: #4a3a2c;
}
.note-add .btn { width: auto; }

/* 遛放 / 喂养 */
.care-form { display: grid; gap: 10px; }
.care-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.care-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #4a3a2c; }
.care-fields { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.care-fields[hidden] { display: none; }
.care-fields input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #e8dccd;
  background: #fffdfa;
  font-size: 14px;
  color: #4a3a2c;
}
.care-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.care-save { width: auto; justify-self: start; }
.care-list { margin-top: 16px; display: grid; gap: 12px; }
.care-empty { margin: 0; font-size: 13.5px; color: #a2947f; }
.care-day {
  border: 1px solid #f0e6d9;
  border-radius: 12px;
  padding: 8px 12px 10px;
  background: #fffdfa;
}
.care-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #a2947f;
  padding: 2px 0 6px;
}
.care-day-head b { font-size: 14px; color: #5c4638; }
.care-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 7px 0;
  border-top: 1px dashed #f1e8dc;
  color: #4a3a2c;
}
.care-time { color: #8a7563; width: 46px; }
.care-tag { padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.care-tag.walk { background: #e8f6ee; color: #2f8f5b; }
.care-tag.feed { background: #fdf0dc; color: #a9640f; }
.care-text { flex: 1; }
.care-del {
  border: 0;
  background: none;
  color: #c0392b;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

/* 入园 / 出园照 */
.photo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-col {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f0e6d9;
  background: #fffdfa;
}
.photo-col-head { display: flex; justify-content: space-between; font-size: 13px; color: #8a7563; }
.photo-col-head b { color: #5c4638; font-size: 14px; }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5efe6;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(40, 28, 18, .55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 720px) {
  .photo-cols { grid-template-columns: 1fr; }
}

/* 家长端：入园 / 出园照对照 */
.stay-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: start;
}
.stay-col { display: grid; gap: 8px; }
.stay-col-head { display: flex; justify-content: space-between; font-size: 13px; color: #8a7563; }
.stay-col-head b { color: #5c4638; font-size: 14px; }
.stay-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.stay-thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5efe6;
  cursor: zoom-in;
  display: block;
}
.stay-arrow { align-self: center; color: #c8b6a2; font-size: 18px; padding-top: 24px; }
.stay-empty { font-size: 13px; color: #a2947f; }
@media (max-width: 720px) {
  .stay-compare { grid-template-columns: 1fr; }
  .stay-arrow { display: none; }
}

/* 开单页：按平面图选房 */
.room-pick-wrap { display: flex; align-items: stretch; gap: 12px; }
.room-pick {
  position: relative;
  flex: 1;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf4;
}
.room-pick-empty { font-size: 13px; color: var(--muted); line-height: 1.6; }
.room-picked-main { display: flex; align-items: center; gap: 9px; padding-right: 64px; }
.room-picked-main b { font-size: 22px; letter-spacing: -0.4px; }
.room-picked-status { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.room-picked-status.free { background: #eaf6e6; color: #3f6b46; }
.room-picked-status.occupied { background: #fdece1; color: #a34d28; }
.room-picked-status.unused { background: #f0eeeb; color: #77706a; }
.room-picked-meta { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.room-picked-link {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
}
.room-picked-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.room-pick-btn { width: auto; flex-shrink: 0; align-self: center; white-space: nowrap; }

@media (max-width: 640px) {
  .room-pick-wrap { flex-direction: column; }
  .room-pick-btn { width: 100%; justify-content: center; }
}



.logo-img{width:34px;height:34px;border-radius:9px;object-fit:contain;background:#fff;padding:2px;box-shadow:0 1px 3px rgba(0,0,0,.08)}



/* 移动端兜底：首页大图与容器收紧，防右边被切 */
@media (max-width: 760px) {
  .wrap { padding: 10px 16px 96px; }
  .hero { grid-template-columns: 1fr; padding: 26px 22px; gap: 16px; border-radius: 24px; }
  .hero h1 { font-size: 32px; line-height: 1.24; }
  .hero p { font-size: 14.5px; }
  .hero-points { flex-wrap: wrap; }
  .service-card { padding: 20px 18px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .section-note { white-space: normal; }
}
