/* booking.css — ¥199 预约咨询页（v0.9.10 色板：CTA #C9F16F+深字 #26221B / 奶油黄 #F6D3A1 / 墨绿 #4C6B1D / 姨妈红 #C20F08） */
:root {
  --lime: #C9F16F;
  --ink: #26221B;
  --cream: #F6D3A1;
  --deep: #4C6B1D;
  --red: #C20F08;
  --ok-bg: #EFF8DA;
  --line: #E8E2D4;
  --muted: #8A8474;
  --paper: #FFFDF7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #FAF7EE; color: var(--ink); min-height: 100vh;
  display: flex; flex-direction: column;
}

/* 头部 */
.hd { background: var(--ink); color: #FFF; }
.hd-in { max-width: 720px; margin: 0 auto; padding: 18px 20px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.logo-mark { background: var(--cream); color: var(--ink); border-radius: 6px; padding: 1px 7px; margin-right: 2px; }
.logo .x { color: var(--cream); font-weight: 400; margin: 0 4px; }
.hd-sub { font-size: 13px; color: #CFC9B8; margin-top: 4px; }

/* 主体 */
.wrap { max-width: 720px; width: 100%; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }

/* 步骤条 */
.steps { display: flex; list-style: none; gap: 6px; margin-bottom: 18px; }
.steps li {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  background: #FFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 13px; color: var(--muted);
}
.steps li .n {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--line); color: #FFF; font-weight: 700; font-size: 12px;
}
.steps li.on { border-color: var(--deep); color: var(--deep); background: var(--ok-bg); }
.steps li.on .n { background: var(--deep); }

/* 卡片 */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px; box-shadow: 0 2px 10px rgba(38,34,27,.04);
}
.card-tt { font-size: 20px; font-weight: 800; margin-bottom: 6px; text-wrap: balance; }
.card-tip { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; text-wrap: pretty; }
.hide { display: none !important; }

/* 表单 */
.fld { display: block; margin-bottom: 14px; }
.lb { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.lb .opt { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
select, textarea, input[type="text"], input[type="email"] {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #FFF; color: var(--ink); font-size: 15px; padding: 11px 12px;
  font-family: inherit; outline: none;
}
select:focus, textarea:focus, input:focus { border-color: var(--deep); }
textarea { resize: vertical; line-height: 1.6; }

/* 按钮 */
.cta {
  display: inline-block; width: 100%; border: none; cursor: pointer;
  background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 800;
  padding: 13px 18px; border-radius: 12px; margin-top: 4px;
}
.cta:disabled { opacity: .45; cursor: not-allowed; }
.cta:not(:disabled):active { transform: translateY(1px); }
.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; padding: 11px 16px; border-radius: 12px; cursor: pointer; width: 100%;
}
.ghost.full { margin-top: 10px; }
.row2 { display: flex; gap: 10px; margin-top: 12px; }
.row2 .cta, .row2 .ghost { flex: 1; min-width: 0; width: auto; }

/* 时段格 */
.slots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.slot {
  border: 1px solid var(--line); border-radius: 10px; background: #FFF;
  padding: 9px 8px; font-size: 12px; line-height: 1.5; cursor: pointer;
  text-align: center; min-width: 0;
}
.slot .d { display: block; font-weight: 800; font-size: 12px; }
.slot .t { display: block; color: var(--muted); }
.slot.sel { border-color: var(--deep); background: var(--ok-bg); }
.slot.sel .t { color: var(--deep); }
.slot.dis { opacity: .4; cursor: not-allowed; }
.slot-count { font-size: 13px; color: var(--muted); text-align: right; }
.slot-count.ok { color: var(--deep); font-weight: 700; }

/* 支付 */
.paybox { display: flex; gap: 18px; align-items: flex-start; margin: 8px 0 18px; }
.paybox img {
  width: 200px; height: 200px; border-radius: 14px; object-fit: contain; flex: none;
}
.paymeta { min-width: 0; }
.amount { font-size: 15px; color: var(--muted); }
.amount span { font-size: 34px; font-weight: 800; color: var(--red); margin-left: 2px; }
.paytip { font-size: 13px; color: var(--ink); line-height: 1.8; background: var(--ok-bg); border-left: 3px solid var(--deep); padding: 10px 12px; border-radius: 0 8px 8px 0; text-wrap: pretty; }
.paytip b { color: var(--deep); }

/* 进度查询 */
.status-chk { border-top: 1px dashed var(--line); padding-top: 14px; }
.st-tt { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.chk-row { display: flex; gap: 8px; }
.chk-row input { flex: 1; min-width: 0; }
.chk-row .ghost { width: auto; flex: none; }
.chk-out { font-size: 13px; margin-top: 8px; line-height: 1.7; text-wrap: pretty; }
.chk-out.ok { color: var(--deep); }
.chk-out.bad { color: var(--red); }

/* 错误提示 */
.err { margin-top: 14px; background: #FDECEB; color: var(--red); border: 1px solid #F3C7C4; border-radius: 10px; padding: 10px 14px; font-size: 13px; text-wrap: pretty; }

/* 底部 */
.ft { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 12px 26px; }

/* ---- 手机适配（375px）---- */
@media (max-width: 560px) {
  .steps { flex-wrap: wrap; }
  .steps li { flex: 1 1 46%; }
  .slots { grid-template-columns: 1fr 1fr; }
  .paybox { flex-direction: column; align-items: center; }
  .paymeta { width: 100%; }
}

/* ---- booking-admin 追加样式 ---- */
.adm-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; }
.tab {
  border: 1px solid var(--line); background: #FFF; color: var(--ink);
  font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer; flex: none;
}
.tab.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.order {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
}
.order-hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.order-oid { font-weight: 800; font-size: 15px; }
.badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.b-pending_pay { background: var(--cream); color: var(--ink); }
.b-paid { background: #FFF3CD; color: #7A5A00; }
.b-scheduled { background: var(--ok-bg); color: var(--deep); }
.b-completed { background: #E4E9E0; color: #5A6B54; }
.b-pending_email { background: #EEE; color: #888; }
.order-meta { font-size: 13px; line-height: 1.9; color: var(--ink); min-width: 0; }
.order-meta .slots-line { color: var(--deep); }
.order-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.order-actions button { width: auto; flex: none; font-size: 13px; padding: 9px 16px; }
.btn-red { background: var(--red); color: #FFF; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-deep { background: var(--deep); color: #FFF; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.mask { position: fixed; inset: 0; background: rgba(38,34,27,.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 9; }
.modal { background: var(--paper); border-radius: 16px; padding: 22px 20px; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0 8px; }
.m-out { font-size: 13px; margin-top: 10px; line-height: 1.7; color: var(--deep); text-wrap: pretty; }
.m-out.bad { color: var(--red); }
.nlog { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---- v2 追加 ---- */
.amount .dur { font-style: normal; font-size: 13px; color: var(--muted); }
.wait-note { margin-top: 10px; font-size: 13px; color: var(--deep); font-weight: 700; text-wrap: pretty; }
.err a { color: var(--red); font-weight: 700; }
.b-form_submitted { background: #FFF3CD; color: #7A5A00; }
.b-preserved { background: var(--ok-bg); color: var(--deep); }
