/* ==========================================================================
   screens-user.css — 顾客端补充样式：门店头 / 项目卡 / 技师行 / 作品九宫格 /
   排期选择器（日期条 + 时段格四态）/ 预约卡 / 到店码键盘 / 次卡面 / 储值 /
   评价 / 我的。
   只用 tokens.css 的变量；不写死颜色、字号、圆角、阴影。
   承载数字的类一律三写：font-family: var(--font-num) + tabular-nums + font-style: normal。
   ========================================================================== */

/* ==========================================================================
   一、首页
   ========================================================================== */
/* 四宫格快捷入口：约时段 / 我的次卡 / 储值余额 / 到店签到。
   父级必须显式 grid，否则四个 <button> 会按 inline 挤成一行、文字互相压住。 */
.qgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-8); }
.qbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-8); min-width: 0; padding: var(--sp-10) var(--sp-2);
  border-radius: var(--r-12); background: var(--c-card); text-align: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.qbtn:active { transform: scale(.96); background: var(--c-fill); }
.qbtn__ic {
  width: 40px; height: 40px; border-radius: var(--r-12); flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--c-brand-soft); color: var(--c-brand-ink);
}
.qbtn__n {
  display: block; font-size: var(--fs-12); color: var(--c-text-1);
  white-space: nowrap; font-style: normal;
}
/* 浅色品牌头：不做大面积紫底，紫色只落在数字与描边上 */
.shero {
  position: relative; overflow: hidden;
  padding: calc(var(--h-status) + var(--sp-16)) var(--sp-16) var(--sp-20);
  background: linear-gradient(168deg, var(--c-card) 0%, var(--c-brand-soft) 100%);
  border-bottom: 1px solid var(--c-line);
}
.shero::after {
  content: ""; position: absolute; right: -46px; top: -52px;
  width: 168px; height: 168px; border-radius: var(--r-99);
  background: radial-gradient(circle at 35% 35%, var(--c-brand-ring), transparent 68%);
  pointer-events: none;
}
.shero > * { position: relative; z-index: 1; }
.shero__brand { display: flex; align-items: center; gap: var(--sp-10); }
.shero__logo {
  width: 36px; height: 36px; border-radius: var(--r-10); flex: 0 0 auto;
  display: grid; place-items: center; color: var(--c-on-brand);
  background: linear-gradient(140deg, var(--c-brand) 0%, var(--c-brand-strong) 100%);
  box-shadow: var(--sh-brand-dot);
}
.shero__name { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.015em; line-height: var(--lh-tight); }
.shero__slogan { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 1px; }
.shero__meta { margin-top: var(--sp-10); font-size: var(--fs-12); color: var(--c-text-2); line-height: 1.6; }
.shero__meta span + span::before { content: " · "; color: var(--c-text-4); }

/* 今日剩余可约格数：本屏的主数字 */
.todaycard {
  display: flex; align-items: center; gap: var(--sp-12);
  margin-top: var(--sp-12); padding: var(--sp-12) var(--sp-14);
  background: var(--c-glass); border: 1px solid var(--c-line);
  border-radius: var(--r-16); box-shadow: var(--sh-2);
  width: 100%; text-align: left;
}
.todaycard__ic {
  width: 40px; height: 40px; border-radius: var(--r-12); flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--c-brand-soft); color: var(--c-brand-ink);
}
.todaycard__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todaycard__k { font-size: var(--fs-11); color: var(--c-text-2); }
.todaycard__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-24); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: 1;
  color: var(--c-brand-ink);
}
.todaycard__v small { font-size: var(--fs-12); font-weight: var(--fw-r); color: var(--c-text-3); margin-left: 2px; }
.todaycard__act {
  flex: 0 0 auto; height: 32px; padding: 0 var(--sp-12);
  border-radius: var(--r-99); background: var(--c-brand-strong); color: var(--c-on-brand);
  font-size: var(--fs-12); font-weight: var(--fw-m); display: inline-flex; align-items: center; gap: 3px;
}

/* 常点项目横滑卡 */
.svccard {
  width: 148px; background: var(--c-card); border-radius: var(--r-18);
  padding: var(--sp-12); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: var(--sp-6);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.svccard:active { transform: scale(.98); box-shadow: var(--sh-2); }
.svccard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.svccard__cat {
  height: 20px; padding: 0 var(--sp-6); border-radius: var(--r-6);
  background: var(--c-brand-soft); color: var(--c-brand-ink);
  font-size: var(--fs-11); display: inline-flex; align-items: center;
}
.svccard__min {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-11); color: var(--c-text-3);
}
.svccard__name { font-size: var(--fs-15); font-weight: var(--fw-s); }
.svccard__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.svccard__price {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-17); font-weight: var(--fw-s); color: var(--c-accent);
}
.svccard__price small { font-size: var(--fs-11); font-weight: var(--fw-r); color: var(--c-text-3); }
.svccard__go { color: var(--c-text-4); }

/* 上次到店技师 */
.laststy {
  display: flex; align-items: center; gap: var(--sp-12);
  width: 100%; text-align: left;
  padding: var(--sp-12) var(--sp-14); border-radius: var(--r-16);
  background: var(--c-card); box-shadow: var(--sh-1);
  transition: transform var(--t-fast), background var(--t-fast);
}
.laststy:active { transform: scale(.99); background: var(--c-fill); }
.laststy__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.laststy__k { font-size: var(--fs-11); color: var(--c-text-3); }
.laststy__v { font-size: var(--fs-15); font-weight: var(--fw-m); }
.laststy__sub { font-size: var(--fs-12); color: var(--c-text-3); }

/* ==========================================================================
   二、服务项目
   ========================================================================== */
.catbar { display: flex; gap: var(--sp-8); overflow-x: auto; padding: var(--sp-2) var(--sp-16) var(--sp-4); scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar__b {
  flex: 0 0 auto; height: 30px; padding: 0 var(--sp-12); border-radius: var(--r-99);
  background: var(--c-fill); color: var(--c-text-2); font-size: var(--fs-13);
  transition: all var(--t-fast) var(--ease-out);
}
.catbar__b--on { background: var(--c-brand-strong); color: var(--c-on-brand); font-weight: var(--fw-m); }

.svcrow {
  display: block; width: 100%; text-align: left;
  background: var(--c-card); border-radius: var(--r-18); box-shadow: var(--sh-1);
  padding: var(--sp-14) var(--sp-16);
  transition: background var(--t-fast), transform var(--t-fast);
}
.svcrow + .svcrow { margin-top: var(--sp-12); }
.svcrow:active { background: var(--c-fill); }
.svcrow__head { display: flex; align-items: flex-start; gap: var(--sp-12); }
.svcrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.svcrow__name { font-size: var(--fs-16); font-weight: var(--fw-s); }
.svcrow__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-4);
  font-size: var(--fs-12); color: var(--c-text-3);
}
.svcrow__min {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
}
.svcrow__price {
  flex: 0 0 auto; text-align: right;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-17); font-weight: var(--fw-s); color: var(--c-accent);
}
.svcrow__price small { display: block; font-size: var(--fs-11); font-weight: var(--fw-r); color: var(--c-text-3); }
.svcrow__arrow { color: var(--c-text-4); flex: 0 0 auto; transition: transform var(--t-base) var(--ease-out); }
.svcrow--open .svcrow__arrow { transform: rotate(90deg); }
/* 卡内展开：步骤 + 可选技师 */
.svcrow__drop { margin-top: var(--sp-12); }
.svcrow__steps { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.svcrow__step {
  height: 24px; padding: 0 var(--sp-8); border-radius: var(--r-6);
  background: var(--c-brand-soft); color: var(--c-brand-ink);
  font-size: var(--fs-12); display: inline-flex; align-items: center;
}
.svcrow__steps .svcrow__step + .svcrow__step::before { content: "→"; color: var(--c-text-4); margin-right: var(--sp-4); }
.svcrow__sub { font-size: var(--fs-12); color: var(--c-text-3); margin-top: var(--sp-10); }
.svcrow__stys { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-6); }
.svcrow__sty {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  height: 28px; padding: 0 var(--sp-8) 0 var(--sp-4); border-radius: var(--r-99);
  background: var(--c-fill); font-size: var(--fs-12); color: var(--c-text-2);
}

/* ==========================================================================
   三、技师列表 / 详情
   ========================================================================== */
.styfilter { display: flex; gap: var(--sp-8); overflow-x: auto; padding: var(--sp-2) var(--sp-16) var(--sp-4); scrollbar-width: none; }
.styfilter::-webkit-scrollbar { display: none; }

.styrow {
  display: flex; align-items: center; gap: var(--sp-12);
  width: 100%; text-align: left;
  padding: var(--sp-14) var(--sp-16); position: relative;
  background: var(--c-card);
  transition: background var(--t-fast);
}
.styrow:active { background: var(--c-fill); }
.styrow + .styrow::before {
  content: ""; position: absolute; left: var(--sp-16); right: 0; top: 0;
  height: 1px; background: var(--c-line);
}
.styrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.styrow__top { display: flex; align-items: center; gap: var(--sp-6); }
.styrow__name { font-size: var(--fs-15); font-weight: var(--fw-s); }
.styrow__lv { font-size: var(--fs-11); color: var(--c-brand-ink); background: var(--c-brand-soft); border-radius: var(--r-6); padding: 1px var(--sp-6); }
.styrow__tags { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.styrow__foot { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-12); color: var(--c-text-3); }
.styrow__free {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  color: var(--c-brand-ink); font-weight: var(--fw-m);
}

/* 详情头 */
.styhead { padding: calc(var(--h-status) + var(--sp-12)) var(--sp-16) var(--sp-16); background: var(--c-card); }
.styhead__row { display: flex; align-items: center; gap: var(--sp-12); }
.styhead__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.styhead__name { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.015em; }
.styhead__tags { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.styhead__stats { display: flex; gap: var(--sp-16); margin-top: var(--sp-14); }
.styhead__stat { display: flex; flex-direction: column; gap: 2px; }
.styhead__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-18); font-weight: var(--fw-s); color: var(--c-text-1);
}
.styhead__k { font-size: var(--fs-11); color: var(--c-text-3); }

/* 作品九宫格：纯 CSS 占位色块，不放真实照片 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.works__cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-10);
  overflow: hidden; display: grid; place-items: center;
  color: var(--c-tone-ink);
}
.works__cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, var(--c-image-tint) 0%, transparent 45%, var(--c-tone-shade) 100%);
}
.works__ch {
  position: relative; z-index: 1;
  font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.02em;
  text-shadow: 0 1px 2px var(--c-tone-shade);
}
.works__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2px var(--sp-4);
  background: var(--c-scrim-soft); color: var(--c-on-image);
  font-size: var(--fs-10); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 日期筛选：今天 / 明天 / 本周 */
.dayfilter { display: flex; gap: var(--sp-8); }
.dayfilter__b {
  flex: 1; height: 34px; border-radius: var(--r-10);
  background: var(--c-fill); color: var(--c-text-2); font-size: var(--fs-13);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease-out);
}
.dayfilter__b--on { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: var(--fw-m); box-shadow: inset 0 0 0 1px var(--c-brand-weak); }

/* ==========================================================================
   四、排期选择器：14 天日期条 + 4 列时段格（四态）
   ========================================================================== */
.dstrip {
  display: flex; gap: var(--sp-6); overflow-x: auto;
  padding: var(--sp-8) var(--sp-16); scrollbar-width: none;
  background: var(--c-card); border-bottom: 1px solid var(--c-line);
}
.dstrip::-webkit-scrollbar { display: none; }
.dstrip__day {
  flex: 0 0 auto; width: 46px; min-height: 58px;
  border-radius: var(--r-12); background: var(--c-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.dstrip__day:active { transform: scale(.96); }
.dstrip__day--on { background: var(--c-brand-strong); color: var(--c-on-brand); box-shadow: var(--sh-brand-dot); }
.dstrip__day--off { opacity: .45; pointer-events: none; }
.dstrip__w { font-size: var(--fs-11); line-height: 1; }
.dstrip__d {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-15); font-weight: var(--fw-m); line-height: 1.1;
}
.dstrip__tag {
  height: 16px; padding: 0 var(--sp-4); border-radius: var(--r-99);
  background: var(--c-brand-soft); color: var(--c-brand-ink);
  font-size: var(--fs-10); line-height: 16px;
}
.dstrip__day--on .dstrip__tag { background: var(--c-on-brand); color: var(--c-brand-ink); }

/* 时段格网格：4 列等宽、行距 6px、左右边距 16px，390 宽下不换行不溢出 */
.sgrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6); padding: 0 var(--sp-16);
}
.slot {
  position: relative; overflow: hidden;
  min-height: 36px; border-radius: var(--r-8);
  display: grid; place-items: center;
  font-size: var(--fs-13); line-height: 1.2;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.slot:active { transform: scale(.96); }
.slot__t { position: relative; z-index: 1; }
/* 可约：白底 + 1px 品牌紫描边 */
.slot--free { background: var(--c-card); color: var(--c-brand-ink); box-shadow: inset 0 0 0 1px var(--c-brand); }
/* 占用：浅灰底 + 45° 斜线 + 灰字（斜线是形状线索，不只靠颜色） */
.slot--busy { background: var(--c-fill); color: var(--c-text-3); }
.slot--busy::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 5px, var(--c-line) 5px 6px);
}
/* 休息：无边框浅底，不可点 */
.slot--rest { background: var(--c-fill); color: var(--c-text-4); }
/* 已过：文字弱化 + 删除线（形状线索），不可点 */
.slot--past { background: transparent; color: var(--c-line-2); }
.slot--past .slot__t { text-decoration: line-through; }
/* 选中：紫底白字，底色走 strong 保证白字对比度 */
.slot--on { background: var(--c-brand-strong); color: var(--c-on-brand); box-shadow: var(--sh-brand-dot); }
.slot--on::before { display: none; }
.slot--on .slot__t { text-decoration: none; }
/* 连选中的第 2、3 格：同一单，用内描边连起来 */
.slot--chain { box-shadow: inset 0 0 0 1px var(--c-brand-weak); }

/* 图例：四态各一个小样，形状 + 文字双线索 */
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-12); padding: var(--sp-12) var(--sp-16) 0; }
.legend__i { display: inline-flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-11); color: var(--c-text-3); }
.legend__box {
  width: 22px; height: 16px; border-radius: var(--r-6); flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden; position: relative;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-10);
}
.legend__box--free { background: var(--c-card); color: var(--c-brand-ink); box-shadow: inset 0 0 0 1px var(--c-brand); }
.legend__box--busy { background: var(--c-fill); color: var(--c-text-3); }
.legend__box--busy::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 3px, var(--c-line) 3px 4px);
}
.legend__box--rest { background: var(--c-fill); color: var(--c-text-4); }
.legend__box--past { background: transparent; color: var(--c-line-2); }
.legend__box--past span { text-decoration: line-through; }

/* 底部浮条 */
.slotbar__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.slotbar__t { font-size: var(--fs-13); color: var(--c-text-1); font-weight: var(--fw-m); }
.slotbar__s { font-size: var(--fs-11); color: var(--c-text-3); }
.slotbar__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-20); font-weight: var(--fw-s); color: var(--c-accent);
}
/* 有底部浮条的屏：内容区多留一截，别让最后一行格子被压住 */
.hasbar { padding-bottom: calc(var(--h-tab) + var(--sp-16)); }

/* 抖动：连选失败 / 到店码错误，220ms，不弹 alert */
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shakeX 220ms var(--ease-in-out); }
@media (prefers-reduced-motion: reduce) {
  .shake { animation: none; }
  .slot:active, .dstrip__day:active, .svcrow:active, .laststy:active, .styrow:active { transform: none; }
}

/* ==========================================================================
   五、下单确认
   ========================================================================== */
.cfsum {
  display: flex; align-items: center; gap: var(--sp-12);
  padding: var(--sp-14) var(--sp-16);
  background: var(--c-card); border-radius: var(--r-18); box-shadow: var(--sh-1);
}
.cfsum__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cfsum__t { font-size: var(--fs-16); font-weight: var(--fw-s); }
.cfsum__s { font-size: var(--fs-12); color: var(--c-text-3); }
.cfsum__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-20); font-weight: var(--fw-s); color: var(--c-accent);
}
.cfaddr { display: flex; gap: var(--sp-8); align-items: flex-start; }
.cfaddr__txt { flex: 1; min-width: 0; font-size: var(--fs-12); color: var(--c-text-2); line-height: 1.6; }

/* ==========================================================================
   六、预约列表
   ========================================================================== */
.bkstate { display: flex; gap: var(--sp-4); overflow-x: auto; padding: var(--sp-2) var(--sp-16) var(--sp-4); scrollbar-width: none; }
.bkstate::-webkit-scrollbar { display: none; }
.bkstate__b {
  flex: 0 0 auto; height: 28px; padding: 0 var(--sp-10); border-radius: var(--r-99);
  background: var(--c-fill); color: var(--c-text-2); font-size: var(--fs-12);
  transition: all var(--t-fast) var(--ease-out);
}
.bkstate__b--on { background: var(--c-brand-strong); color: var(--c-on-brand); font-weight: var(--fw-m); }

.bkcard {
  background: var(--c-card); border-radius: var(--r-18); box-shadow: var(--sh-1);
  padding: var(--sp-14) var(--sp-16);
}
.bkcard + .bkcard { margin-top: var(--sp-12); }
.bkcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-8); }
.bkcard__t { font-size: var(--fs-16); font-weight: var(--fw-s); }
.bkcard__no { font-size: var(--fs-11); color: var(--c-text-3); margin-top: 2px; }
.bkcard__rows { margin-top: var(--sp-10); display: flex; flex-direction: column; gap: var(--sp-6); }
.bkcard__row { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-13); color: var(--c-text-2); }
.bkcard__row .bkcard__k { flex: 0 0 auto; color: var(--c-text-3); font-size: var(--fs-12); }
.bkcard__row .grow { text-align: right; }
.bkcard__amt {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-weight: var(--fw-s); color: var(--c-accent);
}
.bkcard__code {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  letter-spacing: .14em; color: var(--c-brand-ink); font-weight: var(--fw-m);
}
.bkcard__acts { display: flex; gap: var(--sp-8); margin-top: var(--sp-12); }
.bkcard__acts .btn { flex: 1; }
.bkcard--noshow { box-shadow: var(--sh-1), inset 0 0 0 1px var(--c-danger-soft); }

/* ==========================================================================
   七、到店签到
   ========================================================================== */
.ckhead { padding: calc(var(--h-status) + var(--sp-16)) var(--sp-16) var(--sp-8); text-align: center; }
.ckhead__t { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.015em; }
.ckhead__s { font-size: var(--fs-13); color: var(--c-text-2); margin-top: var(--sp-4); }

.codebox { display: flex; justify-content: center; gap: var(--sp-10); }
.codebox__d {
  width: 56px; height: 68px; border-radius: var(--r-12);
  background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line);
  display: grid; place-items: center;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-28); font-weight: var(--fw-s); color: var(--c-text-1);
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.codebox__d--on { box-shadow: inset 0 0 0 2px var(--c-brand); }
.codebox__d--err { box-shadow: inset 0 0 0 2px var(--c-danger); color: var(--c-danger-ink); }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.keypad__k {
  height: 56px; border-radius: var(--r-12);
  background: var(--c-card); box-shadow: var(--sh-1);
  display: grid; place-items: center;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-24); font-weight: var(--fw-m); color: var(--c-text-1);
  transition: transform var(--t-fast), background var(--t-fast);
}
.keypad__k:active { transform: scale(.95); background: var(--c-fill); }
.keypad__k--fn { font-size: var(--fs-13); font-weight: var(--fw-r); color: var(--c-text-2); }

/* 签到成功翻转 */
@keyframes flipIn { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.flip { animation: flipIn 320ms var(--ease-spring) both; }
@media (prefers-reduced-motion: reduce) { .flip { animation: none; } }

.ckok { text-align: center; padding: var(--sp-16) 0; }
.ckok__ic {
  width: 72px; height: 72px; border-radius: var(--r-99); margin: 0 auto var(--sp-12);
  display: grid; place-items: center;
  background: var(--c-success-soft); color: var(--c-success-ink);
}
.ckok__t { font-size: var(--fs-18); font-weight: var(--fw-s); }
.ckok__s { font-size: var(--fs-13); color: var(--c-text-2); margin-top: var(--sp-6); }

/* ==========================================================================
   八、次卡
   ========================================================================== */
.passcard {
  position: relative; overflow: hidden;
  border-radius: var(--r-18); padding: var(--sp-16);
  background: linear-gradient(150deg, var(--c-brand-strong) 0%, var(--c-brand-ink) 100%);
  color: var(--c-on-brand); box-shadow: var(--sh-brand);
}
.passcard::after {
  content: ""; position: absolute; right: -40px; top: -50px;
  width: 160px; height: 160px; border-radius: var(--r-99);
  background: var(--c-image-tint-3);
}
.passcard > * { position: relative; z-index: 1; }
.passcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-8); }
.passcard__name { font-size: var(--fs-18); font-weight: var(--fw-s); }
.passcard__k { font-size: var(--fs-11); color: var(--c-on-image); margin-top: 2px; }
.passcard__left {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-32); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: 1;
}
.passcard__left small { font-size: var(--fs-13); font-weight: var(--fw-r); color: var(--c-on-image); }
.passcard__bar { margin-top: var(--sp-12); height: 6px; border-radius: var(--r-99); background: var(--c-image-tint); overflow: hidden; }
.passcard__bar i { display: block; height: 100%; border-radius: var(--r-99); background: var(--c-on-brand); }
.passcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-10); font-size: var(--fs-11); color: var(--c-on-image); }
/* 余次 0：整卡置灰「已用完」 */
.passcard--empty { background: var(--c-fill); color: var(--c-text-4); box-shadow: none; }
.passcard--empty::after { display: none; }
.passcard--empty .passcard__left { color: var(--c-text-4); }
.passcard--empty .passcard__k,
.passcard--empty .passcard__foot { color: var(--c-text-4); }
.passcard--empty .passcard__bar { background: var(--c-line); }
.passcard--empty .passcard__bar i { background: var(--c-text-4); }

.passpick { display: flex; gap: var(--sp-8); }
.passpick__b {
  flex: 1; height: 32px; border-radius: var(--r-10);
  background: var(--c-fill); color: var(--c-text-2); font-size: var(--fs-12);
  transition: all var(--t-fast) var(--ease-out);
}
.passpick__b--on { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: var(--fw-m); box-shadow: inset 0 0 0 1px var(--c-brand-weak); }

.plog { display: flex; align-items: center; gap: var(--sp-10); padding: var(--sp-10) 0; }
.plog + .plog { border-top: 1px solid var(--c-line); }
.plog__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plog__t { font-size: var(--fs-13); color: var(--c-text-1); }
.plog__s { font-size: var(--fs-11); color: var(--c-text-3); }
.plog__n {
  flex: 0 0 auto;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-13); font-weight: var(--fw-m); color: var(--c-brand-ink);
}

/* ==========================================================================
   九、储值
   ========================================================================== */
.walhero {
  position: relative; overflow: hidden;
  padding: calc(var(--h-status) + var(--sp-16)) var(--sp-16) var(--sp-20);
  background: linear-gradient(150deg, var(--c-brand-strong) 0%, var(--c-brand-ink) 100%);
  color: var(--c-on-brand);
}
.walhero::after {
  content: ""; position: absolute; right: -46px; top: -52px;
  width: 168px; height: 168px; border-radius: var(--r-99);
  background: var(--c-image-tint-3); pointer-events: none;
}
.walhero > * { position: relative; z-index: 1; }
.walhero__k { font-size: var(--fs-12); color: var(--c-on-image); }
.walhero__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-32); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: 1.1; margin-top: var(--sp-4);
}
.walhero__v small { font-size: var(--fs-15); font-weight: var(--fw-r); color: var(--c-on-image); }
.walhero__meta { margin-top: var(--sp-10); font-size: var(--fs-11); color: var(--c-on-image); line-height: 1.6; }

.tier {
  flex: 1; padding: var(--sp-12) var(--sp-8);
  background: var(--c-card); border-radius: var(--r-14); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.tier:active { transform: scale(.97); }
.tier--on { box-shadow: inset 0 0 0 2px var(--c-brand), var(--sh-2); }
.tier__amt {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-20); font-weight: var(--fw-s); color: var(--c-text-1);
}
.tier__gift { font-size: var(--fs-11); color: var(--c-brand-ink); }
.tier__gift b {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-weight: var(--fw-m);
}

.flow { display: flex; align-items: center; gap: var(--sp-10); padding: var(--sp-10) 0; }
.flow + .flow { border-top: 1px solid var(--c-line); }
.flow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.flow__t { font-size: var(--fs-13); color: var(--c-text-1); }
.flow__s { font-size: var(--fs-11); color: var(--c-text-3); }
.flow__amt {
  flex: 0 0 auto;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-15); font-weight: var(--fw-m);
}
.flow__amt--in { color: var(--c-success-ink); }
.flow__amt--out { color: var(--c-text-1); }

/* ==========================================================================
   十、评价
   ========================================================================== */
.rstars { display: flex; justify-content: center; gap: var(--sp-8); }
.rstar {
  width: 44px; height: 44px; border-radius: var(--r-99);
  display: grid; place-items: center; color: var(--c-line-2);
  transition: transform var(--t-fast), color var(--t-fast);
}
.rstar:active { transform: scale(.9); }
.rstar--on { color: var(--c-warn); }
.rstar__no {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-13); font-weight: var(--fw-m); color: var(--c-text-3);
}

.rtags { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.rtag {
  height: 32px; padding: 0 var(--sp-12); border-radius: var(--r-99);
  background: var(--c-fill); color: var(--c-text-2); font-size: var(--fs-13);
  transition: all var(--t-fast) var(--ease-out);
}
.rtag--on { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: var(--fw-m); box-shadow: inset 0 0 0 1px var(--c-brand-weak); }

.rtext {
  width: 100%; min-height: 108px; padding: var(--sp-12);
  border-radius: var(--r-12); background: var(--c-fill); border: 1px solid transparent;
  font-size: var(--fs-14); line-height: var(--lh-body); resize: none;
  transition: all var(--t-fast);
}
.rtext::placeholder { color: var(--c-text-4); }
.rtext:focus { outline: none; background: var(--c-card); border-color: var(--c-brand); }

/* ==========================================================================
   十一、我的
   ========================================================================== */
.mhero__stats { display: flex; gap: var(--sp-16); margin-top: var(--sp-16); }
.mhero__stat { display: flex; flex-direction: column; gap: 2px; }
.mhero__v {
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-20); font-weight: var(--fw-s);
}
.mhero__k { font-size: var(--fs-11); color: var(--c-on-image); }

/* 常用技师横滑 */
.favsty { width: 96px; display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); }
.favsty__name { font-size: var(--fs-13); font-weight: var(--fw-m); }
.favsty__lv { font-size: var(--fs-11); color: var(--c-text-3); }

/* 历史订单行（我的页） */
.histrow {
  display: flex; align-items: center; gap: var(--sp-10);
  width: 100%; text-align: left; padding: var(--sp-10) 0;
  position: relative; transition: background var(--t-fast);
}
.histrow:active { background: var(--c-fill); }
.histrow + .histrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--c-line);
}
.histrow__t { font-size: var(--fs-13); color: var(--c-text-1); font-weight: var(--fw-m); }
.histrow__s { font-size: var(--fs-11); color: var(--c-text-3); margin-top: 2px; }
.histrow__amt {
  flex: 0 0 auto;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-15); font-weight: var(--fw-s); color: var(--c-accent);
}

/* ==========================================================================
   文字堆叠兜底（全局补丁）
   屏里的「标题 + 副标题 / 名称 + 说明」大量写成成对的 <span>。父级若是普通块或
   只负责横向撑开的 .grow，两个 span 会挤成一行、互相压字。这里统一成块级：
   父级是 flex 行时 block 与 inline 无差别（flex item 会被块化），
   父级是普通块时才会真正换行——正是我们要的效果。
   ========================================================================== */
.grow { display: flex; flex-direction: column; min-width: 0; }
[class$="__name"], [class$="__sub"], [class$="__hello"], [class$="__t"], [class$="__d"],
[class$="__title"], [class$="__desc"], [class$="__meta"], [class$="__note"], [class$="__hint"],
[class$="__label"], [class$="__value"], [class$="__k"], [class$="__v"], [class$="__text"] {
  display: block;
}

/* ---------- 次卡行 / 储值余额行：名称+说明压到同一行，说明省略号收尾 ---------- */
.cardrow__body { display: flex; flex-direction: row; align-items: baseline; gap: var(--sp-8); min-width: 0; }
.cardrow__body > .list__label { white-space: nowrap; flex: 0 0 auto; }
.cardrow__body > .t-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ==========================================================================
   十二、卡项抵扣 / 时段冲突 / 客户档案（审计补充）
   ========================================================================== */
/* 下单页卡项抵扣：持有次卡一行（图标 + 名称余次 + 状态标签） */
.cf-card { display: flex; align-items: center; gap: var(--sp-10); padding: var(--sp-8) 0; }
.cf-card + .cf-card { border-top: 1px solid var(--c-line); }
.cf-card__ic {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: var(--r-8);
  display: grid; place-items: center;
  background: var(--c-brand-soft); color: var(--c-brand-ink);
}
.cf-card__n { font-size: var(--fs-14); font-weight: var(--fw-m); color: var(--c-text-1); }
.cf-card__s { font-size: var(--fs-11); color: var(--c-text-3); }
.cf-card__bal {
  flex: 0 0 auto;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-17); font-weight: var(--fw-s); color: var(--c-accent);
}
/* 时段冲突弹层：冲突单与本单的分组小标题 */
.cf-conflict { margin-top: var(--sp-12); }
.cf-conflict__cap {
  font-size: var(--fs-12); font-weight: var(--fw-m); color: var(--c-text-2);
  letter-spacing: .02em; margin: var(--sp-10) 0 var(--sp-4);
}
/* 可点客户名（呼出客户档案抽屉）：品牌色 + 手型，不加边框避免压行高 */
.linkname { color: var(--c-brand-ink); font-weight: var(--fw-m); cursor: pointer; }
/* 客户档案抽屉：身份行（头像 + 姓名 + 电话） */
.prof-id { display: flex; align-items: center; gap: var(--sp-10); padding-bottom: var(--sp-4); }
.prof-id__n { font-size: var(--fs-16); font-weight: var(--fw-s); color: var(--c-text-1); }
.prof-id__s { font-size: var(--fs-11); color: var(--c-text-3); }
.prof-id__tags { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
/* 客户档案抽屉：分组标题（基础档案 / 卡项持有 / 历史项目） */
.prof-cap {
  font-size: var(--fs-12); font-weight: var(--fw-m); color: var(--c-text-3);
  letter-spacing: .02em; margin: var(--sp-14) 0 var(--sp-6);
}
/* 客户档案抽屉：历史项目 / 次卡持有行 */
.prof-log { display: flex; align-items: center; gap: var(--sp-8); padding: var(--sp-8) 0; }
.prof-log + .prof-log { border-top: 1px solid var(--c-line); }
.prof-log__s { font-size: var(--fs-11); color: var(--c-text-3); }
.prof-log__amt {
  flex: 0 0 auto;
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
  font-size: var(--fs-13); font-weight: var(--fw-m); color: var(--c-accent);
}
/* 预约卡右上角：状态标签与爽约次数标签并排 */
.bkcard__tags { display: flex; align-items: center; gap: var(--sp-4); flex: 0 0 auto; }
