/* ============================================================
   顾客端专属视觉系统 · 「暖奶油 × 活力橙」编辑风
   仅在 index.html 引入(与 app.css 叠加:先 app.css 后 mini.css)。
   通过重声明 :root 令牌覆盖全局,使弹层/Toast(挂在 body 上)同样生效,
   因此不会影响商家管理端与平台运营端。
   ============================================================ */

:root {
  /* 品牌主色沿用橙色；深橙用于白底小字，保证清晰易读 */
  --brand: #FF8811;
  --brand-dark: #A94300;
  --brand-soft: #FFF0E0;
  --brand-bright: #FF9D3D;
  /* —— 文字:暖调近黑,避免冷灰的廉价感 —— */
  --ink: #2C2422;
  --ink-2: #5C5450;
  /* 次要文字:取「在 #F8F4F1 与 #FFF 上都 ≥4.5:1」的最浅暖灰,保证 11px 小字也达 WCAG AA */
  --muted: #736F6B;
  /* —— 会员金 —— */
  --gold: #8F6220;
  --gold-soft: #FBF0DF;
  --danger: #CF3B3B;
  --danger-soft: #FBECEC;
  /* —— 底色:奶油白,带一丝粉 —— */
  --bg: #FAF8F5;
  --card: #FFFFFF;
  --line: #F0E9E4;

  --radius-sm: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow: 0 1px 2px rgba(60, 40, 35, .04), 0 10px 26px rgba(60, 40, 35, .06);
  --shadow-lift: 0 2px 6px rgba(60, 40, 35, .05), 0 16px 34px rgba(60, 40, 35, .09);

  /* 快捷入口马卡龙色 */
  --p-pink-bg: #FFF0E0;   --p-pink-fg: #A94300;
  --p-amber-bg: #FFEDD8;  --p-amber-fg: #A94300;
  --p-blue-bg: #E3EDFF;   --p-blue-fg: #3F6FC4;
  --p-purple-bg: #EDE6FF; --p-purple-fg: #7048C4;
  --p-green-bg: #DFF3E7;  --p-green-fg: #2C8C5B;
}

html, body { height: 100%; }
body {
  background: #EFE9E4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

/* ==================== 手机壳 ==================== */
/* 宽度用 100%/max-width 而非 100vw:桌面端出现纵向滚动条时 100vw 会超出可视区,
   导致整体右侧被裁切。
   高度用 vh 打底 + dvh 覆盖:移动端浏览器地址栏收起/展开会改变可视高度,
   100vh 在 iOS Safari 上取的是「地址栏收起后」的高度,首屏会被压出多余留白。
   左右 padding 用 safe-area:横屏刘海机型左右两侧会被遮挡。 */
.phone {
  width: 100%; max-width: 420px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(120% 40% at 50% 0%, #FDF3EC 0%, rgba(253, 243, 236, 0) 62%),
    var(--bg);
  position: relative; overflow-x: hidden;
  padding-bottom: 84px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  box-shadow: 0 0 60px rgba(60, 40, 35, .08);
}
.ph-body { padding: 0 0 8px; }

/* ==================== 顶部品牌区 ==================== */
.m-top {
  padding: 14px 18px 6px;
  background: linear-gradient(180deg, #FDF3EC 0%, rgba(253, 243, 236, 0) 100%);
}
.m-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* 门店名用 flex 收缩 + 省略号,而不是写死 max-width:210px ——
   写死的话在 320px 屏幕上可用宽度只剩 ~190px,标题会顶出容器。 */
.m-brand h1 {
  flex: 1 1 auto; min-width: 0;
  font-size: clamp(17px, 4.9vw, 19px); font-weight: 700; letter-spacing: -.2px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-brand .caret { flex: 0 0 auto; color: var(--ink-2); display: flex; }
.m-slogan { font-size: 11.5px; color: var(--muted); margin-top: 3px; letter-spacing: .3px; overflow-wrap: anywhere; }
.m-top-acts { display: flex; gap: 14px; flex: 0 0 auto; }
.m-act {
  border: 0; background: none; padding: 0; display: flex; flex-direction: column;
  align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-2); position: relative;
}
.m-act .ring {
  width: 34px; height: 34px; border-radius: 12px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(60, 40, 35, .07); color: var(--ink);
}
.m-act:active .ring { transform: scale(.94); }
.m-act .dot {
  position: absolute; top: -3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; border: 2px solid #FDF3EC; box-sizing: content-box;
}

/* ==================== Hero 主视觉卡 ==================== */
.m-hero {
  position: relative; margin: 10px 14px 0; border-radius: var(--radius-xl);
  padding: 22px 20px 24px; overflow: hidden; min-height: 172px;
  background: linear-gradient(118deg, #FBEADF 0%, #F6DCCB 46%, #F2D0BC 100%);
  box-shadow: var(--shadow);
  display: flex; align-items: center;
}
.m-hero::after {           /* 底部柔光 */
  content: ''; position: absolute; left: -30%; bottom: -60%; width: 160%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.m-hero-txt { position: relative; z-index: 2; max-width: 62%; }
.m-hero-txt .eyebrow {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600;
  color: #96522F; background: rgba(255, 255, 255, .72); padding: 3px 9px; border-radius: 999px;
  letter-spacing: .4px; margin-bottom: 10px;
}
.m-hero-txt h2 {
  font-size: clamp(20px, 6.4vw, 25px); line-height: 1.24; font-weight: 800; letter-spacing: -.6px;
  color: #3A2418; margin: 0 0 8px;
}
.m-hero-txt p { font-size: 12px; color: #7E5440; margin: 0 0 14px; letter-spacing: .2px; }
.m-hero-cta {
  display: inline-flex; align-items: center; gap: 7px; border: 0;
  background: #3A2418; color: #FFF4EC; font-size: 12.5px; font-weight: 600;
  padding: 9px 16px 9px 17px; border-radius: 999px; letter-spacing: .3px;
  box-shadow: 0 8px 18px rgba(58, 36, 24, .26);
}
.m-hero-cta:active { transform: scale(.97); }
.m-hero-art { position: absolute; right: -14px; top: 0; bottom: 0; width: 46%; z-index: 1; }
.m-hero-art svg { width: 100%; height: 100%; display: block; }

/* 真人出镜的那一屏 ----------------
   H5 的 Hero 高度是文案撑出来的(只有 min-height),人像按高度定比例 → 人像宽度会随之变化。
   所以文案区**不能写死百分比**:56% 在 375px 上够用,到 320px 就会压到人物身上。
   这里用 calc(100% - 固定值) 直接把人像占的宽度扣掉,留一条安全间距 ——
   人像宽约 168px(96% 的 Hero 高度 × 原图 0.859),再算上左右内边距,扣 150px 刚好。
   想改人像大小只动 height:width:auto 会保持原图宽高比,不会拉伸变形。
   注意 height 用的是 Hero 高度的百分比,所以这个 150px 在换 Hero 高度时要一起复核。 */
.m-hero-model {
  position: absolute; right: 0; bottom: 0; height: 96%; width: auto;
  z-index: 1; pointer-events: none;
}
.m-hero.has-model .m-hero-txt { max-width: calc(100% - 150px); }
/* 右上角那条斜体注脚正好落在人物身上,这一屏不显示 */
.m-hero.has-model .m-hero-note { display: none; }
.m-hero-note {
  position: absolute; right: 16px; top: 20px; z-index: 3; text-align: center;
  font-size: 11px; line-height: 1.35; color: #7E5440; font-weight: 600; letter-spacing: .5px;
  transform: rotate(6deg); opacity: .92;
}
.m-hero-note .heart { color: var(--brand-bright); }
/* 圆点现在是**可点的**(自动翻页已去掉,换屏靠点这里),所以命中区要够大:
   视觉上的小圆点用 ::before 画,外层 i 撑到 22px 当点击区。 */
.m-hero-dots { position: absolute; right: 10px; bottom: 6px; display: flex; z-index: 3; }
.m-hero-dots i {
  width: 22px; height: 22px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m-hero-dots i::before {
  content: ''; width: 5px; height: 5px; border-radius: 999px;
  background: rgba(58, 36, 24, .38);
  /* 未激活的圆点会压在人物深色头发上 —— 纯半透明深灰会直接隐形,
     所以描一圈白色让它无论落在浅奶油底还是深发色上都可辨。 */
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .62);
  transition: width .2s ease, background .2s ease;
}
.m-hero-dots i.on::before { width: 14px; background: #3A2418; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }

/* ==================== 快捷入口 ==================== */
.m-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px 10px 4px; }
.m-quick button {
  border: 0; background: none; padding: 4px 0; display: flex; flex-direction: column;
  align-items: center; gap: 7px; min-width: 0;
}
.m-quick .qm {
  width: 48px; height: 48px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.m-quick button:active .qm { transform: scale(.92); }
.m-quick b { font-size: 11.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.m-quick span { font-size: 9.5px; color: var(--muted); white-space: nowrap; margin-top: -4px; }

/* ==================== 区块标题 ==================== */
.m-sec { margin-top: 20px; }
.m-sec > header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 18px; margin-bottom: 11px;
}
.m-sec > header h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.m-sec > header h3 em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.m-more {
  border: 0; background: none; font-size: 11.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 1px; padding: 0;
}
.m-pad { padding: 0 14px; }

/* ==================== 横滑容器 ==================== */
.m-hscroll {
  display: flex; gap: 11px; overflow-x: auto; padding: 2px 14px 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.m-hscroll::-webkit-scrollbar { display: none; }

/* ==================== 服务卡(横滑) ==================== */
.m-svc {
  flex: 0 0 138px; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); scroll-snap-align: start;
}
.m-svc-thumb {
  height: 96px; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.m-svc-thumb svg { width: 100%; height: 100%; display: block; }
.m-svc-body { padding: 9px 11px 11px; }
.m-svc-body h4 {
  font-size: 13.5px; font-weight: 700; margin: 0 0 5px; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-svc-meta {
  display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); margin: 0 0 9px;
}
.m-svc-meta svg { flex: 0 0 auto; }
.m-svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.m-price { font-size: 15px; font-weight: 800; color: var(--brand); letter-spacing: -.4px; }
.m-price i { font-size: 10.5px; font-style: normal; font-weight: 600; margin-right: 1px; }
.m-price small { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 2px; }

/* 通用小按钮(预约)。用 min-height 保证触屏点击高度 ≥32px ——
   纯 padding 撑出来的高度在字号/行高变化时会掉到 30px 以下。 */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff;
  min-height: 32px; padding: 0 15px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 5px 12px rgba(214, 58, 85, .26); white-space: nowrap;
}
.m-btn:active { transform: scale(.95); }
.m-btn.ghost { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.m-btn.ink { background: #3A2418; box-shadow: 0 6px 14px rgba(58, 36, 24, .22); }
.m-btn.line { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.m-btn.lg { min-height: 44px; padding: 0 22px; font-size: 13.5px; width: 100%; }
.m-btn:disabled { opacity: .5; }

/* ==================== 发型师卡(横滑) ==================== */
.m-staff-card {
  flex: 0 0 92px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  scroll-snap-align: start;
}
.m-avatar {
  width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 700; color: #fff; position: relative;
  box-shadow: 0 6px 16px rgba(60, 40, 35, .14);
}
.m-avatar::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line) inset;
}
.m-avatar .crown {
  position: absolute; right: -2px; bottom: -2px; width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(140deg, #F7C967, #E0A32F); color: #6A4606;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.m-staff-card h4 { font-size: 12.5px; font-weight: 700; margin: 0; }
.m-staff-card p { font-size: 10px; color: var(--muted); margin: -3px 0 1px; }

/* ==================== 活动横幅 ==================== */
.m-promo {
  position: relative; margin: 18px 14px 0; border-radius: var(--radius-xl); overflow: hidden;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(100deg, #FDEDE6 0%, #FBE0D5 58%, #F8D5C6 100%);
  box-shadow: var(--shadow);
}
.m-promo-txt { position: relative; z-index: 2; flex: 1; min-width: 0; }
.m-promo-tag {
  display: inline-block; font-size: 10px; font-weight: 600; color: #9E4A25;
  background: rgba(255, 255, 255, .78); padding: 2px 8px; border-radius: 999px; margin-bottom: 7px;
}
.m-promo h3 { font-size: 17px; font-weight: 800; margin: 0 0 3px; color: #4A2A1A; letter-spacing: -.4px; }
.m-promo h3 b { font-size: 23px; color: #B92C45; margin: 0 2px; }
.m-promo p { font-size: 11px; color: #8A5B44; margin: 0; }
.m-promo-art { flex: 0 0 74px; height: 62px; position: relative; z-index: 2; }
.m-promo-art svg { width: 100%; height: 100%; display: block; }
.m-promo-go {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: #3A2418; color: #FFF4EC; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2; box-shadow: 0 6px 14px rgba(58, 36, 24, .24);
}

/* ==================== 通用卡片 ==================== */
.m-card {
  background: #fff; border-radius: var(--radius-lg); padding: 14px 15px;
  box-shadow: var(--shadow); margin: 0 14px 10px;
}
.m-card.lift { box-shadow: var(--shadow-lift); }
.m-card.flush { margin: 0; }
.m-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.m-rows { padding: 2px 0; }
.m-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.m-line:last-child { border-bottom: 0; }
.m-line .k { font-size: 13px; color: var(--ink-2); min-width: 0; }
.m-line .v { font-size: 13px; font-weight: 600; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.m-note { font-size: 11px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }

/* 会员卡(渐变) */
.m-member {
  position: relative; margin: 12px 14px 0; border-radius: var(--radius-xl); overflow: hidden;
  padding: 18px 18px 20px; color: #fff;
  background: linear-gradient(122deg, #4A2A22 0%, #6E2F3A 52%, #B0344F 100%);
  box-shadow: 0 14px 30px rgba(74, 42, 34, .28);
}
.m-member::before {
  content: ''; position: absolute; right: -46px; top: -56px; width: 168px; height: 168px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
}
.m-member::after {
  content: ''; position: absolute; left: -34px; bottom: -70px; width: 150px; height: 150px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 96, 122, .38), rgba(242, 96, 122, 0));
}
.m-member-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.m-member-top .lv {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600;
  background: rgba(255, 255, 255, .18); padding: 3px 9px 3px 6px; border-radius: 999px; letter-spacing: .3px;
}
.m-member-amt { position: relative; z-index: 2; margin: 14px 0 2px; }
.m-member-amt b { font-size: clamp(24px, 9.5vw, 33px); font-weight: 800; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-member-amt span { font-size: 12px; opacity: .7; margin-left: 6px; }
.m-member-sub { position: relative; z-index: 2; font-size: 11px; opacity: .72; }
.m-member-grid {
  position: relative; z-index: 2; display: flex; gap: 20px; margin-top: 16px; padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.m-member-grid > div { flex: 1; }
.m-member-grid b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-member-grid span { font-size: 10.5px; opacity: .66; }

/* ==================== 分段控件 ==================== */
.m-segs {
  display: flex; gap: 7px; overflow-x: auto; padding: 14px 14px 4px; margin-bottom: 4px;
}
.m-segs::-webkit-scrollbar { display: none; }
.m-seg {
  flex: 0 0 auto; border: 0; background: #fff; color: var(--ink-2); font-size: 12.5px;
  font-weight: 500; padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.m-seg.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(214, 58, 85, .26); }

/* ==================== 空状态 / 加载 ==================== */
.m-empty { text-align: center; padding: 46px 24px; color: var(--muted); font-size: 12.5px; }
.m-empty .ic {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(140deg, #FDF3EC, #F7E6DC);
  display: flex; align-items: center; justify-content: center; color: #CBAE9C;
}
.m-empty b { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

/* ==================== 底部导航(5 项) ==================== */
.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 420px; max-width: 100%; z-index: 40;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.m-tabbar button {
  flex: 1; border: 0; background: none; padding: 4px 0 2px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; position: relative;
}
.m-tabbar button span { font-weight: 500; }
.m-tabbar button.on { color: var(--brand); }
.m-tabbar button.on span { font-weight: 700; }
.m-tabbar .tic {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; transition: .16s;
}
.m-tabbar button.on .tic { background: var(--brand-soft); }
.m-tabbar .tdot {
  position: absolute; top: 0; right: 50%; margin-right: -20px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--brand);
  color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-sizing: content-box;
}

/* ==================== 页面级视觉：每个入口有自己的识别重点 ==================== */
#phBody[data-view="home"] .m-hero {
  background: linear-gradient(118deg, #FFF4E7 0%, #FFE1C2 58%, #FFC78D 100%);
  box-shadow: 0 14px 32px rgba(169, 67, 0, .13);
}
#phBody[data-view="home"] .m-hero::before {
  content: ''; position: absolute; right: 18%; top: -35%; width: 210px; height: 210px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.62), rgba(255,255,255,0) 70%);
  z-index: 0; pointer-events: none;
}
#phBody[data-view="home"] .m-hero-model { filter: drop-shadow(0 9px 14px rgba(99, 49, 15, .12)); }
#phBody[data-view="home"] .m-hero-cta { background: var(--brand); color: #35200E; box-shadow: 0 8px 18px rgba(169, 67, 0, .2); }
#phBody[data-view="home"] .m-quick button { transition: transform .16s ease; }
#phBody[data-view="home"] .m-quick button:active { transform: translateY(2px) scale(.97); }

#phBody[data-view="booking"] .m-pagehead-sec {
  margin: 4px 14px 12px; padding: 20px 18px 18px; border-radius: 18px;
  background: linear-gradient(120deg, #FFF3E4, #FFE5C8 72%, #FFD5A8);
  box-shadow: 0 8px 20px rgba(128, 73, 28, .07);
}
#phBody[data-view="booking"] .m-pagehead-sec h3 { color: #542D12; }
#phBody[data-view="booking"] .m-summary { border: 1px solid #F7D6B6; }
#phBody[data-view="booking"] .m-pick { border: 1px solid #F1E7DE; transition: transform .15s, border-color .15s; }
#phBody[data-view="booking"] .m-pick:active { transform: scale(.985); border-color: var(--brand); }
#phBody[data-view="booking"] .m-date.on,
#phBody[data-view="booking"] .m-slot.on,
#phBody[data-view="booking"] .m-pill.on { background: var(--brand); color: #35200E; box-shadow: 0 8px 18px rgba(169, 67, 0, .19); }

#phBody[data-view="assets"] .m-member {
  background: linear-gradient(125deg, #4C2B18 0%, #8C4718 52%, #D86A13 100%);
  box-shadow: 0 16px 32px rgba(117, 59, 19, .24);
}
#phBody[data-view="assets"] .m-member::after {
  background: radial-gradient(closest-side, rgba(255, 167, 74, .44), rgba(255, 167, 74, 0));
}
#phBody[data-view="assets"] .m-seg.on { background: var(--brand); color: #35200E; box-shadow: 0 6px 14px rgba(169, 67, 0, .18); }

#phBody[data-view="store"] > .m-card:first-child {
  border: 1px solid #F1D6BD; background: linear-gradient(145deg, #FFF 0%, #FFF8F0 100%);
  box-shadow: 0 12px 28px rgba(109, 70, 37, .09);
}
#phBody[data-view="store"] [data-switch] { border: 1px solid transparent; transition: border-color .15s, transform .15s; }
#phBody[data-view="store"] [data-switch]:has(.tag) { border-color: #F5C38F; background: linear-gradient(110deg, #FFF8EF, #FFF); }
#phBody[data-view="store"] [data-switch]:active { transform: scale(.99); }

#phBody[data-view="me"] > .m-card:first-child {
  background: linear-gradient(145deg, #FFF 0%, #FFF8F0 100%);
  border: 1px solid #F2E3D4; box-shadow: 0 12px 28px rgba(109, 70, 37, .08);
}
#phBody[data-view="me"] > .m-card:first-child .m-member-grid b { color: #7C3D12 !important; }
#phBody[data-view="local"] .m-pagehead { border-bottom: 1px solid #F1E5D9; }

/* 预约项目使用真实服务照片；同一张 2×2 摄影图按服务类型取景，保证色调与画幅统一 */
.svc-photo { display: block; width: 100%; height: 100%; min-height: inherit; background-repeat: no-repeat; background-position: center; background-size: cover; }
.m-pick .art { padding: 0; background: #F6E9DC; }
.m-pick .art .svc-photo { border-radius: inherit; }
.m-svc-thumb .svc-photo { position: absolute; inset: 0; }

/* 橙色按钮采用深色字，维持明亮品牌色同时保证小屏可读性 */
.phone .btn.primary, .m-btn:not(.line):not(.ghost):not(.ink), .m-seg.on,
.m-slot.on, .m-date.on, .m-pill.on { color: #35200E; }
.phone .btn.primary { box-shadow: 0 8px 18px rgba(169, 67, 0, .18); }

/* ==================== 登录页 ==================== */
.phone.login { padding-bottom: 0; display: flex; flex-direction: column; background: var(--bg); }
.m-login-hero {
  position: relative; flex: 0 0 auto; height: 46vh; min-height: 320px; max-height: 430px;
  overflow: hidden;
  background: linear-gradient(150deg, #FBEADF 0%, #F4D8C6 52%, #EFC7B2 100%);
  border-radius: 0 0 34px 34px; padding: 46px 26px 30px;
  display: flex; align-items: flex-start;
}
.m-login-hero .art { position: absolute; inset: 0; }
.m-login-hero .art svg { width: 100%; height: 100%; display: block; }
.m-login-hero .inner { position: relative; z-index: 2; }
.m-login-mark {
  width: 54px; height: 54px; border-radius: 18px; background: #3A2418; color: #FFF4EC;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 12px 26px rgba(58, 36, 24, .26);
}
.m-login-hero h1 { font-size: clamp(24px, 7.6vw, 30px); font-weight: 800; letter-spacing: -1px; color: #3A2418; margin: 0 0 8px; line-height: 1.2; }
.m-login-hero p { font-size: 13px; color: #8C6249; margin: 0; letter-spacing: .3px; }
.m-login-tags { display: flex; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.m-login-tags span {
  font-size: 10.5px; color: #8A5A3E; background: rgba(255, 255, 255, .66);
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.m-login-sheet {
  position: relative; z-index: 3; margin-top: -26px; background: var(--bg);
  border-radius: 26px 26px 0 0; padding: 24px 20px 24px; flex: 1 0 auto;
}
.m-login-sheet .env {
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 16px;
}
.m-login-sheet .env .dot { width: 6px; height: 6px; border-radius: 50%; background: #38A169; }
.m-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; margin: 14px 0; }
.m-or::before, .m-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.m-login-sheet .tip { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.m-login-foot { text-align: center; font-size: 10.5px; color: var(--muted); padding: 0 20px 20px; }

/* ==================== 预约:日期与时段 ==================== */
.m-dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 6px; }
.m-dates::-webkit-scrollbar { display: none; }
.m-date {
  flex: 0 0 52px; background: #fff; border-radius: 14px; padding: 9px 0 8px; text-align: center;
  box-shadow: var(--shadow); border: 0;
}
.m-date b { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-date span { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.m-date.on { background: var(--brand); box-shadow: 0 8px 18px rgba(214, 58, 85, .3); }
.m-date.on b, .m-date.on span { color: #fff; }

.m-slotgroup + .m-slotgroup { margin-top: 14px; }
.m-slotglabel {
  display: flex; align-items: baseline; gap: 7px; padding: 0 18px 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.m-slotglabel em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--muted); }
.m-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 14px; }
.m-slot {
  border: 0; background: #fff; border-radius: 12px; padding: 11px 0; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}
.m-slot.on { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(214, 58, 85, .3); }
.m-slot:disabled { background: #F4F0EC; color: #C6BDB6; box-shadow: none; }

.m-pills { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px; }
.m-pill {
  border: 0; background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 12.5px;
  color: var(--ink-2); box-shadow: var(--shadow); font-weight: 500;
}
.m-pill.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(214, 58, 85, .26); }
.m-pill .sub { font-size: 10.5px; opacity: .7; margin-left: 4px; }

.m-summary {
  position: sticky; top: 0; z-index: 12; margin: 0 14px 4px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
  border-radius: var(--radius-lg); padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px;
}
.m-summary .thumb {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
}

.m-textarea {
  margin: 0 14px; width: calc(100% - 28px); border: 0; border-radius: var(--radius-lg);
  padding: 12px 14px; background: #fff; box-shadow: var(--shadow); font-size: 13px; resize: none;
  color: var(--ink); outline: none; line-height: 1.6;
}
.m-cta-wrap { padding: 20px 14px 8px; }

/* ==================== 表单(弹层内) ==================== */
.field { display: block; margin-bottom: 12px; }
.field > label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #FCFAF9; font-size: 13.5px; color: var(--ink); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }

/* ==================== 弹层(顾客端风格覆盖) ==================== */
.mask { background: rgba(44, 36, 34, .42); backdrop-filter: blur(2px); align-items: flex-end; padding: 0; }
.modal {
  border-radius: 26px 26px 0 0; max-width: 420px; max-height: 88vh; width: 100%;
  box-shadow: 0 -12px 44px rgba(44, 36, 34, .2); background: #fff;
}
.modal-head { padding: 18px 20px 12px; border-bottom: 0; }
.modal-head h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.3px; }
.modal-body { padding: 4px 20px 20px; }
.modal-foot {
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  background: #FCFAF9; border-radius: 0 0 0 0; gap: 10px;
}
.modal-foot .btn { flex: 1; min-height: 44px; border-radius: 12px; font-weight: 600; }

/* ==================== 顾客端按钮体系 ==================== */
.phone .btn {
  min-height: 42px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.phone .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(214, 58, 85, .26); }
.phone .btn.primary:active { transform: scale(.985); }
.phone .btn.block { width: 100%; }
.phone .btn.lg { min-height: 46px; font-size: 14.5px; }
.phone .btn.link { border: 0; background: none; color: var(--brand); min-height: auto; padding: 0 2px; box-shadow: none; }

/* 徽标 */
.phone .tag, .tag { display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }

/* ==================== 卡片内的行 / 状态 ==================== */
.m-item {
  background: #fff; border-radius: var(--radius-lg); padding: 14px 15px; margin: 0 14px 10px;
  box-shadow: var(--shadow);
}
.m-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.m-item-top b { font-size: 14px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.m-item .meta { font-size: 11.5px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.m-item .acts { display: flex; gap: 8px; margin-top: 11px; }
.m-item.dim { opacity: .58; }

/* 优惠券 */
.m-coupon {
  position: relative; margin: 0 14px 10px; background: #fff; border-radius: var(--radius-lg);
  padding: 14px 15px 14px 17px; box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; gap: 13px;
}
.m-coupon::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
}
.m-coupon .amt { flex: 0 0 84px; text-align: center; }
.m-coupon .amt b { font-size: 24px; font-weight: 800; color: var(--brand); letter-spacing: -1px; }
.m-coupon .amt b i { font-size: 13px; font-style: normal; margin-right: 1px; }
.m-coupon .amt span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.m-coupon .info { flex: 1; min-width: 0; border-left: 1px dashed var(--line); padding-left: 13px; }
.m-coupon .info b { font-size: 13.5px; display: block; margin-bottom: 3px; overflow-wrap: anywhere; }
.m-coupon.dim { opacity: .55; }

/* 金额 / 表格 */
.m-amt-in { color: #2C8C5B; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-amt-out { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.phone table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.phone thead th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 10.5px;
  padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.phone tbody td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.phone tbody tr:last-child td { border-bottom: 0; }
.m-tablewrap {
  background: #fff; border-radius: var(--radius-lg); padding: 4px 12px 8px; margin: 0 14px 10px;
  box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.m-tablewrap > table { min-width: 100%; }
.m-tablewrap::-webkit-scrollbar { height: 4px; }
.m-tablewrap::-webkit-scrollbar-thumb { background: #E4DCD6; border-radius: 999px; }

/* 首页底部说明 */
.m-footnote { text-align: center; font-size: 10.5px; color: var(--muted); padding: 22px 24px 8px; line-height: 1.7; }

/* ==================== 非首页的页面标题 ==================== */
.m-pagehead {
  padding: 16px 18px 8px;
  background: linear-gradient(180deg, #FDF3EC 0%, rgba(253, 243, 236, 0) 100%);
}
.m-pagehead-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-pagehead h1 { font-size: 22px; font-weight: 800; letter-spacing: -.6px; margin: 0; }
.m-pagehead-sec { padding: 16px 18px 12px; }
.m-pagehead-sec h3 { font-size: 19px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 4px; }
.m-pagehead-sec p { font-size: 11.5px; color: var(--muted); margin: 0; }

/* 纵向列表容器(预约选项目等) */
.m-stack { display: flex; flex-direction: column; }

/* 可选项目卡(缩略插画 + 文案):预约页第一步,与首页服务卡同一套插画 */
.m-pick {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: #fff; border-radius: var(--radius-lg); padding: 12px; margin: 0 14px 10px;
  box-shadow: var(--shadow);
}
.m-pick .art { width: 78px; height: 60px; flex: 0 0 auto; border-radius: 13px; overflow: hidden; }
.m-pick .art svg { width: 100%; height: 100%; display: block; }
.m-pick .bd { flex: 1; min-width: 0; }
.m-pick .bd b { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.m-pick .meta { font-size: 11.5px; color: var(--muted); line-height: 1.65; margin-top: 3px; overflow-wrap: anywhere; }

/* ==================== 充值 / 次卡套餐格 ==================== */
.m-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.m-plan {
  position: relative; border-radius: var(--radius-lg); padding: 13px 14px; overflow: hidden;
  background: linear-gradient(140deg, #FFF4EE, #FAE1D6); border: 1px solid #F6E2D8;
  box-shadow: var(--shadow);
}
.m-plan::after {
  content: ''; position: absolute; right: -26px; top: -26px; width: 76px; height: 76px;
  border-radius: 50%; background: rgba(255, 255, 255, .55);
}
.m-plan:active { transform: scale(.985); }
.m-plan-name { position: relative; z-index: 2; font-size: 11.5px; font-weight: 600; color: #9C5433; }
.m-plan-amt {
  position: relative; z-index: 2; font-size: 21px; font-weight: 800; letter-spacing: -.6px;
  color: var(--brand); margin-top: 5px; font-variant-numeric: tabular-nums;
}
.m-plan-amt i { font-size: 12px; font-style: normal; font-weight: 600; margin-right: 1px; }
.m-plan-bonus { position: relative; z-index: 2; font-size: 10.5px; color: #8A5B44; margin-top: 3px; }
.m-plan.card-type { background: linear-gradient(140deg, #F2F8F4, #E0EFE7); border-color: #D8E9DF; }
.m-plan.card-type .m-plan-name { color: #2C6A4C; }
.m-plan.card-type .m-plan-amt { color: #266A48; }
.m-plan.card-type .m-plan-bonus { color: #3D7359; }

/* ==================== 弹层内金额 / 门店列表 ==================== */
.pay-amt {
  text-align: center; font-size: clamp(24px, 8.5vw, 32px); font-weight: 800; letter-spacing: -1.2px;
  color: var(--brand); padding: 4px 0 14px; font-variant-numeric: tabular-nums;
}
.store-list { display: flex; flex-direction: column; gap: 9px; }
.store-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px;
  cursor: pointer; background: #FCFAF9;
}
.store-item.on { border-color: var(--brand); background: var(--brand-soft); }
.store-item b { font-size: 13.5px; }
.modal .list-item { align-items: flex-start; padding: 13px 4px; }
.modal .list-item b { font-size: 13.5px; }
.modal .notice { border-radius: 12px; }

/* 弹层内小标签与空状态 */
.modal .m-empty { padding: 30px 12px; }
.modal .m-empty .ic { width: 60px; height: 60px; margin-bottom: 10px; }

/* ============================================================
   响应式适配
   顾客端是「居中手机壳」模型:壳内宽度按 100%/max-width:420px 自适应。
   基准设计宽度 390(iPhone 14/15),需要额外处理的是两端:
   —— 小屏(≤400/≤360/≤330):压缩留白与控件尺寸,避免 5 列快捷入口被挤爆
   —— 宽屏(≥431):手机壳两侧留白加大,壳内不加宽(保持手机上的一致性)
   —— 横屏/矮屏:压缩纵向留白,避免首屏只剩装饰
   ============================================================ */

/* 小手机(iPhone SE / 安卓小屏 360 ~ 400) */
@media (max-width: 400px) {
  .m-quick { padding: 14px 8px 4px; gap: 2px; }
  .m-quick .qm { width: 44px; height: 44px; border-radius: 15px; }
  .m-quick b { font-size: 11px; }
  .m-quick span { font-size: 9px; }
  .m-hero { margin: 8px 12px 0; padding: 18px 16px 20px; min-height: 156px; border-radius: 18px; }
  .m-hero-note { font-size: 10px; right: 12px; top: 16px; }
  .m-hero-dots { right: 6px; bottom: 4px; }
  .m-sec > header { padding: 0 15px; }
  .m-sec > header h3 { font-size: 15.5px; }
  .m-pad, .m-hscroll, .m-segs, .m-dates, .m-slots, .m-pills, .m-plans { padding-left: 12px; padding-right: 12px; }
  .m-hscroll { padding-left: 12px; padding-right: 12px; }
  .m-slots { gap: 6px; }
  .m-slot { padding: 10px 0; font-size: 12px; }
  .m-card, .m-item, .m-coupon, .m-pick, .m-tablewrap, .m-textarea { margin-left: 12px; }
  .m-card, .m-item, .m-coupon, .m-pick, .m-tablewrap { margin-right: 12px; }
  .m-member { margin-left: 12px; margin-right: 12px; padding: 16px; }
  .m-promo { margin-left: 12px; margin-right: 12px; padding: 14px 15px; }
  .m-login-sheet { padding: 20px 16px; }
  .m-pagehead, .m-pagehead-sec { padding-left: 15px; padding-right: 15px; }
  .m-summary { margin-left: 12px; margin-right: 12px; }
  .m-pick .art { width: 64px; height: 52px; }
  .m-btn { padding: 6px 13px; }
  /* 窄屏上 Hero 左右内边距收到 16px,人像也跟着 Hero 高度缩了一圈,
     所以文案的扣减值 (150 → 135) 要同步改,否则小屏上标题会压到人物。 */
  .m-hero-model { height: 84%; }
  .m-hero.has-model .m-hero-txt { max-width: calc(100% - 122px); }
}

/* 更窄(≤360) */
@media (max-width: 360px) {
  .m-top { padding: 12px 14px 4px; }
  .m-top-acts { gap: 10px; }
  .m-act .ring { width: 32px; height: 32px; border-radius: 11px; }
  .m-quick .qm { width: 42px; height: 42px; border-radius: 14px; }
  .m-svc { flex: 0 0 126px; }
  .m-svc-thumb { height: 88px; }
  .m-staff-card { flex: 0 0 84px; }
  .m-avatar { width: 58px; height: 58px; font-size: 20px; }
  .m-coupon .amt { flex: 0 0 72px; }
  .m-coupon .amt b { font-size: 21px; }
  .m-member-grid { gap: 12px; }
  .m-member-grid b { font-size: 15px; }
  .m-promo-art { flex: 0 0 60px; height: 52px; }
  .m-promo h3 b { font-size: 20px; }
}

/* 极窄(≤330,老机型 / 大字体无障碍模式叠加缩放) */
@media (max-width: 330px) {
  /* 5 列挤不下时改成 4 列换行,而不是把第 5 个入口藏掉 —— 隐藏入口等于丢功能 */
  .m-quick { grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
  .m-slots { grid-template-columns: repeat(3, 1fr); }
  .m-plans { grid-template-columns: 1fr; }
  .m-tabbar button { font-size: 9.5px; }
  .m-tabbar .tic { width: 24px; height: 24px; }
  /* 320px 上「专业发型师 · 定制你的专属美」这句放不下一行,会折成两行并留下「属美」
     一个孤字。这里把人像收到 66% 并让她多出画一半(多出的部分是右侧的长发,不伤脸),
     腾出约 175px 给文案 —— 到 360px 就能正常排一行,所以只在 ≤330 生效。 */
  .m-hero-model { height: 66%; right: -16px; }
  .m-hero.has-model .m-hero-txt { max-width: calc(100% - 96px); }
}

/* 竖屏平板 / 桌面:手机壳居中,两侧加一条极淡的边界线,避免大面积灰底上「壳」的边界感丢失。
   注意不要给 body 加内边距 —— .m-tabbar 是 position:fixed,参照的是视口,
   body 一旦有 padding,固定底栏就会和手机壳底边错位。 */
@media (min-width: 431px) {
  .phone { border-left: 1px solid rgba(60, 40, 35, .06); border-right: 1px solid rgba(60, 40, 35, .06); }
  .m-hero, .m-promo, .m-member { margin-left: 16px; margin-right: 16px; }
}

/* 横屏手机 / 矮屏:压缩首屏纵向装饰高度 */
@media (max-height: 520px) and (orientation: landscape) {
  .m-login-hero { height: 44vh; min-height: 200px; max-height: 260px; padding: 24px 22px 22px; }
  .m-login-mark { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
  .m-login-tags { margin-top: 12px; }
  .m-login-sheet { margin-top: -14px; border-radius: 20px 20px 0 0; padding: 18px 20px; }
  .m-hero { min-height: 140px; padding: 16px 18px 18px; }
  .m-member { padding: 14px 16px 16px; }
  .m-member-amt { margin: 8px 0 2px; }
  .m-member-grid { margin-top: 10px; padding-top: 9px; }
  .m-sec { margin-top: 14px; }
}

/* 超矮(<400px,横屏小机型):顶栏与 hero 进一步收 */
@media (max-height: 400px) and (orientation: landscape) {
  .m-login-hero { min-height: 160px; max-height: 200px; }
  .m-login-hero .art { opacity: .8; }
  .m-top { padding: 8px 14px 2px; }
  .m-hero { min-height: 120px; }
}

/* 用户开启「减少动态效果」时关掉位移动画 */
@media (prefers-reduced-motion: reduce) {
  .m-quick button:active .qm, .m-btn:active, .m-plan:active,
  .phone .btn.primary:active, .m-hero-cta:active, .m-act:active .ring { transform: none; }
  .m-tabbar .tic { transition: none; }
}

/* ============================================================
   本地 / 云端双存的提示组件
   —— 离线角标、待同步标签、本地数据页的图标底
   ============================================================ */
.m-netbar {
  display: flex; align-items: center; gap: 7px; width: 100%;
  margin-top: 9px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold);
  font-size: 11.5px; font-weight: 600; text-align: left; letter-spacing: .1px;
}
.m-netbar svg { margin-left: auto; flex: 0 0 auto; opacity: .75; }
.m-netbar .nd { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.m-netbar.off { background: var(--brand-soft); color: var(--brand); }

.m-tagwarn {
  display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; background: var(--gold-soft); color: var(--gold); white-space: nowrap;
}
.m-locic {
  width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
/* 本地数据页里的键值行允许右侧换行(设备号、时间戳都比较长) */
#localBody .m-line { align-items: flex-start; }
#localBody .m-segs { margin-top: 12px; }

/* ============================================================
   宽屏适配:安卓平板 与 电脑
   顾客端的入口设备只有这两种(同一时间只用一台),而原先只有「居中手机壳」一套布局,
   在平板上两侧是空的、在电脑上更像一个放大版的手机。两档放开:

   ① 431 ~ 899px(平板竖屏 / 小平板)
      壳放宽到 620px,靠留白与字号的等比例放大填充,不动 DOM 结构。

   ② ≥ 900px(平板横屏 / 电脑)
      改成「左侧常驻导航 + 右侧内容」的 App Shell:底部 Tab 栏退役,
      导航搬到左栏(触控与鼠标都顺手),内容列封顶 780px(1280 以上放到 980px)。
      手机端(≤430)完全不受影响,零回归。
   ============================================================ */
.m-rail { display: none; }
.ph-main { min-width: 0; }

@media (min-width: 431px) and (max-width: 899px) {
  /* 只放宽主界面外壳:登录页在平板上不做处理(它的宽屏形态是 ≥900 的左右分栏),
     顺手排除掉可以保证「未登录」这条路径在平板宽度下零变化。 */
  .phone:not(.login) { max-width: 620px; }
  .m-tabbar { width: 620px; }
  .m-hero { min-height: 200px; padding: 26px 24px 28px; }
  .m-hero-model { height: 100%; }
  /* Hero 变高 → 人像跟着变宽(它是 height:100% + width:auto)。
     文案的右边界要同步往外让,否则会压到人物身上。这是一个联动常量,改 Hero 高度时一起复核。 */
  .m-hero.has-model .m-hero-txt { max-width: calc(100% - 196px); }
  .m-quick { padding: 18px 14px 4px; gap: 8px; }
  .m-quick .qm { width: 54px; height: 54px; border-radius: 19px; }
  .m-staff-card { flex: 0 0 128px; }
  .m-slots { grid-template-columns: repeat(6, 1fr); }
  .m-member-amt b { font-size: 34px; }
}

@media (min-width: 900px) {
  .phone {
    display: flex; align-items: stretch;
    max-width: 1180px; padding-bottom: 0;
    box-shadow: 0 0 90px rgba(60, 40, 35, .1);
  }
  .ph-main { flex: 1 1 auto; padding-bottom: 26px; }
  /* 内容列封顶:1180 - 224(左栏) 之后还有 950,铺满一行会显得空,收窄更接近正常网页阅读宽度 */
  .ph-main > #phTop, .ph-main > .ph-body { width: 100%; max-width: 780px; margin: 0 auto; }
  .m-tabbar { display: none; }

  /* ---------- 左栏 ---------- */
  .m-rail {
    display: flex; flex-direction: column; gap: 14px; flex: 0 0 224px;
    padding: 20px 16px 18px;
    background: linear-gradient(180deg, #FDF3EC 0%, #F8EDE6 100%);
    border-right: 1px solid var(--line);
    position: sticky; top: 0; align-self: flex-start;
    max-height: 100vh; overflow-y: auto;
  }
  .m-rail-brand { display: flex; align-items: center; gap: 10px; }
  .m-rail-brand .mk {
    width: 38px; height: 38px; border-radius: 13px; flex: 0 0 auto;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(214, 58, 85, .26);
  }
  .m-rail-brand b { display: block; font-size: 15px; letter-spacing: -.2px; }
  .m-rail-brand small {
    display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px;
    max-width: 152px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .m-rail-nav { display: flex; flex-direction: column; gap: 3px; }
  .m-rail-nav button {
    position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
    border: 0; background: none; padding: 10px 12px; border-radius: 13px;
    font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left;
  }
  .m-rail-nav button .tic { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
  .m-rail-nav button.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: var(--shadow); }
  .m-rail-nav .tdot {
    position: absolute; right: 11px; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 999px;
    background: var(--brand); color: #fff; font-size: 9.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }

  .m-rail-card { background: #fff; border-radius: var(--radius-lg); padding: 13px; box-shadow: var(--shadow); }
  .m-rail-me { display: flex; align-items: center; gap: 10px; }
  .m-rail-me b { display: block; font-size: 13.5px; }
  .m-rail-me small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .m-rail-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center;
    margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  }
  .m-rail-grid b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
  .m-rail-grid span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }

  .m-rail-sync {
    display: flex; align-items: center; gap: 7px; width: 100%;
    border: 0; border-radius: 12px; padding: 9px 11px; text-align: left;
    background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 600;
  }
  .m-rail-sync .nd { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
  .m-rail-sync small { margin-left: auto; display: flex; opacity: .75; }
  .m-rail-sync.off { background: var(--brand-soft); color: var(--brand); }
  .m-rail-foot { font-size: 10px; color: var(--muted); margin-top: auto; padding-top: 12px; line-height: 1.6; }

  /* ---------- 内容区:把手机上的竖排改成横向铺开 ---------- */
  .m-hero { margin: 14px 18px 0; min-height: 216px; padding: 28px 28px 30px; }
  .m-hero-txt h2 { font-size: 27px; }
  .m-hero-txt p { font-size: 13px; }
  .m-hero.has-model .m-hero-txt { max-width: calc(100% - 236px); }
  /* 明星发型师在桌面上不该还是横向滚动条 —— 改成自适应网格 */
  .m-hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; overflow: visible; }
  .m-staff-card { flex: none; }
  .m-slots { grid-template-columns: repeat(8, 1fr); }
  .m-sec > header, .m-pad, .m-footnote { padding-left: 18px; padding-right: 18px; }
  .m-card, .m-item, .m-tablewrap, .m-textarea { margin-left: 18px; margin-right: 18px; }
  .m-hero, .m-member, .m-promo { margin-left: 18px; margin-right: 18px; }
  .m-hscroll, .m-segs, .m-dates, .m-slots, .m-pills, .m-plans { padding-left: 18px; padding-right: 18px; }

  /* ---------- 登录页:左右分栏,左边主视觉右边表单 ---------- */
  .phone.login { display: grid; grid-template-columns: 1.02fr .98fr; max-width: 1060px; }
  .m-login-hero {
    height: auto; min-height: 100vh; min-height: 100dvh; max-height: none;
    border-radius: 0 34px 34px 0; padding: 64px 48px 48px;
  }
  .m-login-hero h1 { font-size: 40px; }
  .m-login-sheet {
    margin-top: 0; border-radius: 0; padding: 48px 52px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .m-login-sheet > .m-or, .m-login-sheet > .btn, .m-login-sheet > .tip,
  .m-login-sheet > .env { max-width: 380px; width: 100%; margin-left: auto; margin-right: auto; }
  .m-login-foot { max-width: 380px; margin: 0 auto; padding-bottom: 32px; }
}

@media (min-width: 1280px) {
  .ph-main > #phTop, .ph-main > .ph-body { max-width: 980px; }
  .m-rail { flex-basis: 252px; }
  .m-hero { min-height: 240px; }
  .m-hero.has-model .m-hero-txt { max-width: calc(100% - 268px); }
}
