/* ============================================
   渡仓 · 前台全局设计系统
   风格：iOS 液态玻璃（Liquid Glass）
   - 多层渲染：边缘折射 + 磨砂模糊 + 高光反射 + 柔和阴影
   - 手机优先
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* 中性灰阶
     v=gy：--ink-2 / --ink-3 各压深一档。原来的浅灰在「白玻璃 + 浅蓝底」上
     实测对比不足（11–12px 的辅助说明发虚），压深后仍是同一色相，只是更清楚。 */
  --ink: #1a1d22;
  --ink-2: #525a66;
  --ink-3: #7d8592;
  --line: rgba(22, 26, 32, 0.08);

  /* 液态玻璃材质（按 改进/样式示例.html 标准）
     关键：填充极低不透明度 + 不均匀边框（上/左高光、右/下暗边）+ 边缘色散
     页面底色接近纯白，纯白边框会隐形，所以右/下用冷调暗边勾勒轮廓 */
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-bg-strong: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-border-dim: rgba(148, 166, 194, 0.24);
  --glass-blur: 6px;

  /* 选中态玻璃滑块（浅蓝玻璃，v=bx）
     之前全是接近纯白的半透明，页面底色也偏白 → 截图/阳光下几乎看不出选中了哪个。
     统一改成「浅蓝玻璃」：底色带一点蓝、右下用冷蓝暗边勾轮廓、投影也带蓝，选中项一眼可辨。 */
  --sel-bg-1: rgba(122, 174, 246, 0.44);
  --sel-bg-2: rgba(163, 203, 255, 0.26);
  --sel-border: rgba(255, 255, 255, 0.90);
  --sel-border-dim: rgba(84, 126, 190, 0.34);
  --sel-glow: 0 6px 16px -6px rgba(70, 120, 200, 0.42);
  --sel-ink: #2b4a75;     /* 选中项文字（比普通文字更深更蓝一点） */

  /* 状态色（低饱和度） */
  --accent: #5b7fb8;      /* 低饱和蓝灰 */
  --success: #6a9b7e;     /* 低饱和绿 */
  --warn: #c2a25a;        /* 低饱和黄 */
  --danger: #c07a6e;      /* 低饱和红 */

  --radius-lg: 22px;
  --radius-md: 16px;

  /* ===== 全站设计规范（v=gm）=====
     ① 字号只走这几档，不写 11.5 / 12.5 / 13.5 这种半档；
     ② 圆角按「同级同值」：同级卡片/面板一律 --radius-md，弹层 -lg，按钮/输入 -sm，小标签 -xs；
     ③ 间距只用 4 的倍数：组内 --sp-2/--sp-3，组与组之间 --sp-4/--sp-5（组间比组内松）；
     ④ 可点区域最小 --tap-min（44px），图标按钮同样适用。 */
  --fs-2xs: 11px;   /* 角标、极小说明 */
  --fs-xs: 12px;    /* 辅助说明、日期 */
  --fs-sm: 13px;    /* 次要信息、小按钮 */
  --fs-md: 15px;    /* 正文、常规按钮 */
  --fs-lg: 17px;    /* 区块标题、弹窗标题 */
  --fs-xl: 20px;    /* 页面标题 */
  --fs-2xl: 22px;   /* 金额等重点数字 */

  --radius-xs: 8px;     /* 标签、chips */
  --radius-sm: 12px;    /* 按钮、输入框 */
  --radius-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  --tap-min: 44px;

  /* 统一缓动：无过冲的平滑曲线。
     原为带过冲的弹性曲线（贝塞尔第二控制点 1.56 > 1，会先冲过头再回弹），
     按需求移除弹性/回弹动效，改为稳定的标准加速曲线。
     v=gy：换成更「快进慢出」的五次曲线 —— 同样的位移，起手更利落、收尾更稳，
     玻璃滑块和卡片入场看起来更贵。 */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== v=gy 视觉精修新增 token ===== */
  /* 中文字体栈：优先系统中文字体（PingFang / HarmonyOS / MiSans），
     西文与数字回落到系统 UI 字体；不引入外部字体，首屏零额外请求 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Source Han Sans SC", "Noto Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  /* 两级阴影：都带一点冷蓝，和整体色调同源；-soft 用于卡片，-lift 用于悬浮/底栏 */
  --shadow-soft: 0 1px 1px rgba(23, 37, 56, 0.03), 0 12px 28px -20px rgba(23, 37, 56, 0.42);
  --shadow-lift: 0 2px 4px rgba(23, 37, 56, 0.05), 0 22px 48px -24px rgba(23, 37, 56, 0.4);
  /* 细描边：比 --line 略深一点点，用来给白玻璃卡勾一条清晰的边 */
  --hairline: rgba(23, 37, 56, 0.06);
}

html, body {
  height: 100%;
  /* 始终为滚动条预留空间，避免内容长短变化导致页面横向跳动 */
  scrollbar-gutter: stable;
}

html {
  /* 桌面端常驻滚动条，保证视图切换时宽度恒定不跳动 */
  overflow-y: scroll;
  /* v=fp：整份文档的兜底底色。背景色**不能只画在 body 上** ——
     body 的高度只有一屏（内容靠 .app 撑开），渐变按 body 盒子铺会在「一屏处」断掉，
     滚动时就出现「上面蓝、下面突然变白」的截断。html 的底色素描整份文档，永远不断。 */
  background: var(--page-base, #fdfdfe);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  /* v=gy：数字等宽。价格、单号、时间、统计数字在列表里上下对齐，
     滚动时不会因为 1 比 0 窄而「跳一下」；中文不受影响。 */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  /* v=fp：页面颜色全部交给下面的 .ambient-bg（fixed，铺满视口），body 自己不上色，
     避免出现「body 盒子高度不够 → 颜色在中间截断」 */
  background: none;
}

/* v=gy：选中文字用品牌蓝的低饱和版，默认的深蓝选中块在浅色页面上太扎眼 */
::selection {
  background: rgba(91, 127, 184, 0.22);
  color: var(--ink);
}

/* ===== v=gs：颗粒纹理 + 粒子场（只做氛围，不接收点击） ===== */
.grain-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.fx-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  transition: transform 120ms linear;
}

/* 光晕层：整页底色 + 几团大范围柔光。
   ----------（v=fp 重做）----------
   两个硬要求：
   ① **必须是 fixed**：视口多大它多大，滚到页面任何位置都盖满，绝不会在某一屏被截断；
   ② **要「模糊扩散」而不是一条竖直渐变**：底色打底，上面叠四团巨大的径向渐变，
      边缘用 transparent 慢慢收掉（60%~72% 处才开始透明），看起来像颜色晕开的雾。
   正常营业时四团光的颜色由 home.js 按店主选的色写进 --pg-glow-1~4；
   繁忙 / 暂停服务由下面 body.status-* 整条覆盖（同样带上自己的底色）。 */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* 顶部左侧：最大一团，也是最浓的一团 */
    radial-gradient(62% 48% at 18% 2%, var(--pg-glow-1, rgba(210, 220, 235, 0.5)), transparent 70%),
    /* 中上偏右：提亮，让上半部分不死板 */
    radial-gradient(54% 44% at 84% 20%, var(--pg-glow-2, rgba(255, 250, 242, 0.55)), transparent 72%),
    /* 中下部：补一层，避免中间出现一条「干净带」 */
    radial-gradient(68% 54% at 46% 74%, var(--pg-glow-3, rgba(222, 228, 238, 0.45)), transparent 72%),
    /* 左下：收尾，保证底部不空洞 */
    radial-gradient(52% 44% at 6% 98%, var(--pg-glow-4, rgba(224, 230, 240, 0.4)), transparent 70%),
    /* 最后一层是纯底色（background 简写里颜色永远画在最底下） */
    var(--page-base, #fafbfd);
  will-change: transform;
}

/* 手动状态驱动背景色：繁忙 → 低饱和橙，暂停服务 → 低饱和红 */
body.status-busy .ambient-bg {
  background:
    radial-gradient(60% 45% at 18% 0%, rgba(235, 200, 150, 0.75), transparent 70%),
    radial-gradient(52% 42% at 84% 16%, rgba(242, 214, 172, 0.8), transparent 72%),
    radial-gradient(66% 52% at 50% 76%, rgba(232, 198, 152, 0.7), transparent 72%),
    radial-gradient(50% 42% at 6% 96%, rgba(236, 206, 164, 0.65), transparent 70%),
    #fbf1e2;
}

body.status-paused .ambient-bg {
  background:
    radial-gradient(60% 45% at 18% 0%, rgba(228, 180, 174, 0.75), transparent 70%),
    radial-gradient(52% 42% at 84% 16%, rgba(238, 198, 194, 0.8), transparent 72%),
    radial-gradient(66% 52% at 50% 76%, rgba(226, 182, 178, 0.7), transparent 72%),
    radial-gradient(50% 42% at 6% 96%, rgba(230, 188, 184, 0.65), transparent 70%),
    #fbeae8;
}

/* v=fu：店主上传的透明 PNG 背景图案。
   它是「叠在主题色之上」的独立一层：透明的地方露出下面的颜色，不透明的地方盖住。
   z-index:-1 与 .ambient-bg 同层，但 JS 把它插在 ambient 之后，所以画在它上面；
   固定定位 → 滚动到哪一屏都盖满，不会截断。 */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

/* ===== 页面容器 ===== */
.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 120px;
  min-height: 100dvh;
}

/* v=mr：滚动「果冻」形变（原 js/jelly.js）已在全站移除。
   —— 原因：它要把 .app 里非 fixed 的内容整层包进 .jelly-layer，滚动时每帧给
      这一整层写 transform。层里全是带 backdrop-filter 的玻璃卡，每帧都要重新
      算一遍模糊，中低端机滚动明显掉帧（店主原话：「用着太卡了」）。
   —— 现在不加这层包裹，页面直接静态滚动；需要回看老实现见 git 历史里的
      public/js/jelly.js（v=fu ~ v=gh 调过三轮）。 */

/* ===== 视图（SPA 切换，无刷新） ===== */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewIn 0.24s var(--ease-spring) both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 空状态卡（.liquid-glass 外壳 + 标题/说明/玻璃胶囊按钮）
   「没有找到订单？」的找回按钮用 .ui-btn，与首页按钮同一液态玻璃材质 */
.empty-state {
  padding: 30px 20px 26px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.empty-state-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}

.empty-state-sub {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* 胶囊按钮：宽度自适应、居中，避免长文案在 100% 宽度里换行变两行 */
.empty-state .empty-state-btn {
  display: block;
  width: auto;
  min-width: 148px;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 11px 26px;
  font-size: 14px;
}

/* ============================================
   液态玻璃材质（多层渲染）
   结构：.liquid-glass 作为基座，::before 做折射高光层，
        ::after 做顶部高光反射 + 底部柔和投影
   ============================================ */
.liquid-glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  /* ★ 不均匀边框：上/左为高光亮边，右/下为弱阴影边 —— 折射质感的关键 */
  border: 1px solid var(--glass-border);
  border-right-color: var(--glass-border-dim);
  border-bottom-color: var(--glass-border-dim);
  border-radius: var(--radius-lg);
  box-shadow:
    /* 上沿强高光 + 左沿次高光 */
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    /* 下沿 / 右沿的"折射暗边"，制造体积感 */
    inset 0 -1px 0 rgba(255, 255, 255, 0.16),
    inset -1px 0 0 rgba(255, 255, 255, 0.14),
    /* 外部大柔光投影（样式示例：0 25px 45px rgba(0,0,0,0.1)） */
    0 25px 45px rgba(22, 26, 32, 0.1),
    0 2px 6px rgba(22, 26, 32, 0.05);
  isolation: isolate;
  overflow: hidden;
}

/* 顶部斜向镜面反光（模拟玻璃表面反光） */
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.12) 26%,
      rgba(255, 255, 255, 0) 46%),
    radial-gradient(120% 60% at 50% 0%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 58%);
  z-index: -1;
}

/* 边缘色散（chromatic aberration）：1px 环上分布极淡的不同色相，
   让玻璃边缘出现"折射出彩边"的观感，而不是一圈死白线 */
.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
  padding: 1px;
  background: conic-gradient(from 200deg,
    rgba(255, 120, 200, 0.16),
    rgba(120, 200, 255, 0.16),
    rgba(140, 255, 210, 0.13),
    rgba(255, 235, 150, 0.12),
    rgba(255, 120, 200, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: -1;
}

/* 旧 .glass 类兼容别名 */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.6) inset,
    0 12px 34px rgba(22, 26, 32, 0.14);
}

/* ===== 顶部店铺状态卡 ===== */
.store-card {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;   /* 让背景图跟着卡片圆角裁 */
}

/* v=fk/fm：第一栏（图标 + 店名 + 诗句 + 营业状态）垫一层店主给的图。
   用 ::before + opacity，比直接给卡片背景图更好控制（不冲淡卡片本身的玻璃质感）；
   内容全部 z-index:1 压在上面，::before 不接收点击。
   —— 两个坑（v=fm 修）：
   ① 图片是「接近白色的淡彩云」，10% 铺在浅色卡片上几乎与底色同色，等于看不见 → 提到 .38；
   ② 用 cover 会按卡片比例裁中间，桌面端（卡片 488×196，比例 2.5）裁到只剩空白中心，
      蓝天空与底部波浪全被裁掉 → 改成 100% 100% 铺满（云朵类装饰图轻微拉宽看不出来）。
   注意（v=fo）：这里**只放图片，不要叠加任何状态色** —— 状态色只染页面背景，
   卡片叠了色会把云图糊掉（店主明确说过「别把我那栏的背景图弄没了」）。 */
.store-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/store-bg.jpg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
}

.store-card > * {
  position: relative;
  z-index: 1;
}

.store-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-logo {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(22, 26, 32, 0.18);
}

.store-info {
  flex: 1;
  min-width: 0;
}

.store-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.store-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ===== 每日一句（v=fd）：店名正右方，两行、右对齐 =====
   左边一条两端渐隐的细线做分隔；文字不换行，超长走省略号，绝不把店铺卡撑破 */
.daily-poem {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.daily-poem::before {
  content: "";
  flex: none;
  width: 1px;
  align-self: stretch;   /* 诗句换行变高时，分隔线跟着长，不会只剩中间一小截 */
  min-height: 22px;
  margin: 3px 0;
  background: linear-gradient(180deg,
    rgba(22, 26, 32, 0) 0%,
    rgba(22, 26, 32, 0.14) 50%,
    rgba(22, 26, 32, 0) 100%);
}

.poem-body {
  min-width: 0;
  text-align: right;
  animation: poem-in 0.5s cubic-bezier(0.2, 0, 0, 1) both;
}

.poem-text {
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: var(--ink-2);
  /* 长句直接换行（店主明确要求），不截断、不省略号 */
  white-space: normal;
  word-break: break-word;
  text-wrap: pretty;
}

.poem-from {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes poem-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .poem-body { animation: none; }
}

/* 公告栏（图标栏下方独立一小栏） */
.store-notice-bar {
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(22, 26, 32, 0.04);
  border: 1px solid rgba(22, 26, 32, 0.05);
}

.store-notice {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  word-break: break-word;
  /* v=hc：后台公告允许手动换行，这里要保留 
（否则会挤成一行） */
  white-space: pre-line;
}

/* 状态 + 时间表（图标下方横排） */
.store-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 26, 32, 0.06);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-hours {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-3);
}

/* 状态点呼吸光晕 */
.status-dot.open::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(47, 158, 99, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.open   { background: var(--success); }
.status-dot.closed { background: var(--ink-3); }
.status-dot.busy   { background: var(--warn); }
.status-dot.paused { background: var(--danger); }

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.7; }
  50%      { transform: scale(1.4); opacity: 0.2; }
}

.status-text {
  font-size: 13px;
  color: var(--ink-2);
}

/* ===== 服务区标题 ===== */
.section-head {
  margin: 30px 4px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* 区块标题：全站统一 --fs-lg（v=gm） */
.section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-sub {
  font-size: 12px;
  color: var(--ink-3);
}

/* ===== 服务网格（每排两个） ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 全部服务都被店主在后台隐藏时的占位（跨满两列） */
.service-empty {
  grid-column: 1 / -1;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(22, 26, 32, 0.1);
}

/* 我有建议（主页底部中间玻璃按钮） */
.suggest-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  padding-bottom: 8px;
}

.suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 26, 32, 0.08);
  transition: transform 0.2s var(--ease-spring), color 0.3s ease;
}

.suggest-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.suggest-btn:active {
  transform: scale(0.96);
  color: var(--ink);
}

.service-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 24px 14px 20px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
  will-change: transform;
}

/* 服务右上角状态角标 */
.service-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.service-badge.available {
  color: var(--success);
  background: rgba(47, 158, 99, 0.12);
  border: 1px solid rgba(47, 158, 99, 0.25);
}

.service-badge.unavailable {
  color: var(--ink-3);
  background: rgba(22, 26, 32, 0.06);
  border: 1px solid rgba(22, 26, 32, 0.1);
}

.service-badge.coming {
  color: var(--accent);
  background: rgba(91, 127, 184, 0.12);
  border: 1px solid rgba(91, 127, 184, 0.28);
}

/* 不可用服务：整体降透明、禁点击 */
.service-item.unavailable {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.service-item.unavailable:hover {
  transform: none;
}

.service-item.unavailable:active {
  transform: none;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.6) inset,
    0 20px 44px rgba(22, 26, 32, 0.18);
}

.service-item:active {
  transform: scale(0.95);
  transition-duration: 0.12s;
}

.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(22, 26, 32, 0.06);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
}

/* iOS 风格渐变图标底色（每个服务板块独立配色） */
.service-icon[class*="theme-"] {
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 6px 16px rgba(22, 26, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.service-icon[class*="theme-"] svg {
  stroke: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.service-icon.theme-blue {
  background: linear-gradient(145deg, #66c5ff 0%, #0a84ff 100%);
}

.service-icon.theme-orange {
  background: linear-gradient(145deg, #ffce54 0%, #ff9500 100%);
}

.service-icon.theme-pink {
  background: linear-gradient(145deg, #ff8fb5 0%, #ff2d78 100%);
}

.service-icon.theme-green {
  background: linear-gradient(145deg, #5fe3a8 0%, #0abf6b 100%);
}

.service-icon.theme-purple {
  background: linear-gradient(145deg, #c9a6ff 0%, #7d4dff 100%);
}

.service-icon.theme-gray {
  background: linear-gradient(145deg, #dfe4ec 0%, #a9b2c3 100%);
}

.service-icon.theme-teal {
  background: linear-gradient(145deg, #5ef0df 0%, #00a8b5 100%);
}

/* v=ms：「鞋子」电商专用 —— 比 theme-blue 更深更偏紫，和打印的亮蓝分得开，
   又不会和垃圾转运的 theme-purple 撞色。 */
.service-icon.theme-indigo {
  background: linear-gradient(145deg, #8ea9ff 0%, #3f5fd0 100%);
}

.service-icon.theme-yellow {
  background: linear-gradient(145deg, #ffe08a 0%, #f5a623 100%);
}

.service-name {
  font-size: 15px;
  font-weight: 600;
}

.service-desc {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* ============================================
   底部悬浮胶囊选项卡（含滑动动画）
   ============================================ */
.tabbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 20px 20px;
  z-index: 100;
  pointer-events: none;
}

.tabbar {
  position: relative;
  display: flex;
  padding: 6px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.6) inset,
    0 14px 44px rgba(22, 26, 32, 0.2),
    0 3px 10px rgba(22, 26, 32, 0.08);
}

/* 滑动滑块：绝对定位，随激活项平滑移动（v=bx 浅蓝玻璃，白色看不出选中） */
.tabbar-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.92) inset,
    var(--sel-glow);
  transition: left 0.42s var(--ease-spring), width 0.42s var(--ease-spring);
  will-change: left, width;
}

.tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.3s ease;
  min-width: 74px;
}

.tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.42s var(--ease-spring);
}

.tab span {
  font-size: 11px;
  font-weight: 500;
}

.tab.active {
  color: var(--ink);
}

.tab.active svg {
  transform: translateY(-1px) scale(1.08);
  stroke-width: 2.2;
}

/* ===== 入场动画 ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.store-card { animation: rise 0.55s var(--ease-spring) both; }
.section-head { animation: rise 0.55s 0.06s var(--ease-spring) both; }
.tabbar-wrap { animation: fadeScale 0.6s 0.1s var(--ease-spring) both; }

.service-item { animation: rise 0.55s var(--ease-spring) both; }
.service-item:nth-child(1) { animation-delay: 0.08s; }
.service-item:nth-child(2) { animation-delay: 0.12s; }
.service-item:nth-child(3) { animation-delay: 0.16s; }
.service-item:nth-child(4) { animation-delay: 0.20s; }
.service-item:nth-child(5) { animation-delay: 0.24s; }
.service-item:nth-child(6) { animation-delay: 0.28s; }

/* ============================================
   「我的」界面
   ============================================ */
#view-profile {
  padding-top: 18px;
}

/* 第一栏：你好 XXX（头像 + 问候） */
.profile-hero {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(22, 26, 32, 0.1);
}

.profile-avatar svg {
  width: 30px;
  height: 30px;
}

/* 问候语容器：名字长的时候允许换行，不要把头像挤变形（v=cw） */
.profile-hello {
  flex: 1;
  min-width: 0;
}

.profile-greeting {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
}

.profile-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
}

/* 已经填过姓名：副标题换成欢迎语，提到主题色，让人有被认出来的感觉（v=cw） */
.profile-sub.is-welcome {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* 通用卡片（第二/三/四栏） */
.profile-card {
  margin-top: 14px;
  padding: 6px 18px;
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.profile-link {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.profile-link:active {
  transform: scale(0.98);
}

/* 行（图标 + 标签 + 输入/箭头） */
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.profile-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  color: var(--ink);
  /* v=gt：图标都在 24×24 画布里，个别图形会贴到画布边缘（如优惠券），
     允许溢出一点，别被容器裁掉 */
  overflow: visible;
}

.profile-row-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}



.profile-row-label {
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 52px;
}

.profile-row-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  text-align: right;
  padding: 2px 0;
}

.profile-row-input::placeholder {
  color: var(--ink-3);
}

.profile-row-arrow {
  flex-shrink: 0;
  color: var(--ink-3);
  display: flex;
  align-items: center;
}

.profile-row-arrow svg {
  width: 18px;
  height: 18px;
}

/* 分隔线 */
.profile-divider {
  height: 1px;
  background: rgba(22, 26, 32, 0.06);
  margin: 0 0 0 46px;
}

/* 第三栏：收货地址（楼栋 + 门牌号） */
.profile-addr {
  padding: 4px 0 12px 46px;
}

.profile-addr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.profile-addr-tag {
  font-size: 13px;
  color: var(--ink-3);
  flex-shrink: 0;
  min-width: 44px;
}

.profile-addr-row .profile-row-input {
  text-align: left;
}

/* 保存按钮（液态玻璃小胶囊） */
.profile-save-row {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 4px;
}

.profile-save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(22, 26, 32, 0.08);
  transition: transform 0.2s var(--ease-spring);
}

.profile-save-btn:active {
  transform: scale(0.95);
}

.profile-save-btn svg {
  width: 16px;
  height: 16px;
}

/* 身份码展示 */
.profile-member-code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--ink);
  margin-left: auto;
}

/* 恢复按钮 */
.profile-restore-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease-spring);
}

.profile-restore-btn:active {
  transform: scale(0.95);
}

/* 「我的」入场动画 */
.profile-hero { animation: rise 0.55s var(--ease-spring) both; }
.profile-card { animation: rise 0.55s var(--ease-spring) both; }
.profile-card:nth-of-type(2) { animation-delay: 0.08s; }
.profile-card:nth-of-type(3) { animation-delay: 0.14s; }
.profile-card:nth-of-type(4) { animation-delay: 0.20s; }
.profile-card:nth-of-type(5) { animation-delay: 0.26s; }

/* ===== 减少动态偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 登录相关 ===== */
.profile-login-area {
  flex-shrink: 0;
}

.login-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #5b7fb8, #7a9ac0);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(91, 127, 184, 0.3);
}

.login-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 0 4px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(22, 26, 32, 0.1);
  background: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}

.login-tab.active {
  color: var(--accent);
  border-color: rgba(91, 127, 184, 0.4);
  background: rgba(91, 127, 184, 0.1);
}

.login-submit {
  width: 100%;
  margin: 12px 0;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #5b7fb8, #7a9ac0);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 2px;
}

/* 自动刷新时间指示 */
.order-update-hint {
  font-size: 12px;
  color: var(--ink-3);
  padding: 4px 6px;
  min-height: 20px;
  text-align: right;
}

/* ===== 订单列表（胶囊 tab + 滑块） ===== */
.order-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 4px 0 14px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.6) inset,
    0 2px 8px rgba(22, 26, 32, 0.06);
}

.order-tab-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.92) inset,
    var(--sel-glow);
  transition: left 0.4s var(--ease-spring), width 0.4s var(--ease-spring);
  will-change: left, width;
}

.order-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.order-tab.active {
  color: var(--ink);
}

/* tab 红点（有新内容提醒） */
.order-tab.has-dot::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 18%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 2px rgba(229, 72, 77, 0.2);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* 按下反馈：纯缩放，无回弹 */
.order-card:active {
  transform: scale(0.98);
}

.order-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* 单号把剩余空间吃掉，状态和标签自动靠右（v=cy） */
.order-card-head .order-no {
  margin-right: auto;
}

/* 服务类型小标签：一眼看出这单是打印还是洗鞋（v=cy） */
.order-service-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--accent);
  background: rgba(91, 127, 184, 0.1);
  border: 1px solid rgba(91, 127, 184, 0.2);
  padding: 0 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.order-no {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.order-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* 未付款 / 退款被拒：红色胶囊（v=co / v=cy）—— 都属于「需要用户马上处理」 */
.order-status.is-unpaid,
.order-status.is-rejected {
  color: #c33c30;
  background: rgba(217, 74, 61, 0.1);
  border: 1px solid rgba(217, 74, 61, 0.22);
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.order-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.order-service {
  font-size: 14px;
  color: var(--ink-2);
}

.order-amount {
  font-size: 17px;
  font-weight: 700;
}

.order-card-time {
  font-size: 12px;
  color: var(--ink-3);
}

/* v=of：商城单在订单卡片上逐件列出 ——
   购物车一次下单是一个订单，但要让顾客一眼看到里面都有哪几件、什么颜色尺码 */
.order-goods-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0;
  padding-top: 6px;
  border-top: 1px dashed rgba(120, 140, 170, 0.22);
}

.og-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.og-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.og-tag {
  flex: none;
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink-3);
  background: rgba(120, 140, 170, 0.1);
}

.og-qty {
  flex: none;
  font-size: 11.5px;
  color: var(--ink-3);
}

.og-more {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ===== Toast 样式已迁移至 css/ui.css（iOS 26 胶囊悬浮样式） ===== */

/* 注：原先的「滚动软体弹性」已按需求移除（不再有拖动扯歪 / 回弹 / 跟随动效）。
   卡片保持稳定布局，滚动时不做任何形变。 */


/* ============================================
   留证照片墙（洗鞋服务；前台订单详情 + 后台订单详情共用）
   --------------------------------------------
   每组：阶段名 + 时间戳 + 缩略图网格
   用户上传 2 张 → 每排 2 个；环节照片 6 张 → 每排 3 个两排
   ============================================ */
.photo-wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.photo-group-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

/* 同一阶段留证多次时的小序号（v=dv）：「留证照片 第 2 次」 */
.photo-group-nth {
  margin-left: 6px;
  padding: 1px 6px 2px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: rgba(22, 26, 32, 0.055);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 每次留证各占一块：块与块之间来一条极淡分隔线，别让两次留证粘成一片 */
.photo-group + .photo-group {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.photo-group-time {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.photo-thumbs {
  display: grid;
  gap: 6px;
}

/* 留证照片超过保留期已被自动清理（v=cv） */
.photo-expired {
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 26, 32, 0.04);
  border: 1px dashed rgba(148, 166, 194, 0.4);
  text-align: center;
}

.photo-thumbs.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-thumbs.cols-3 { grid-template-columns: repeat(3, 1fr); }

.photo-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  background: rgba(255, 255, 255, 0.2);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb:active {
  transform: scale(0.97);
}

/* 放大查看：液态玻璃弹窗，不占满屏，右上角可关闭 */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  background: rgba(22, 26, 32, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.photo-lightbox.show { opacity: 1; }

.photo-lightbox-inner {
  position: relative;
  max-width: min(88vw, 560px);
  max-height: 76vh;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-right-color: rgba(148, 166, 194, 0.28);
  border-bottom-color: rgba(148, 166, 194, 0.28);
  box-shadow: 0 24px 60px rgba(22, 26, 32, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: scale(0.94);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-lightbox.show .photo-lightbox-inner { transform: scale(1); }

.photo-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: calc(76vh - 16px);
  border-radius: 14px;
  object-fit: contain;
}

.photo-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(252, 253, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 17px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 26, 32, 0.24);
}

/* ============================================================
   下单页优惠券选择（v=fw：液态玻璃 + 上升动画）
   ============================================================ */
.coupon-pick-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.coupon-pick-label { flex: none; color: var(--ink-2); }
.coupon-pick-value {
  flex: 1;
  min-width: 0;
  text-align: right;
  color: var(--ink-3);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coupon-pick-value.is-on { color: #b4443f; font-weight: 600; }
.coupon-pick-row svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }

/* 收银台（零食 / 日用品）：这一行放在拟态小票里，和上面的项目用虚线分开 */
.coupon-pick-row.in-receipt {
  padding: 10px 0 2px;
  margin-top: 10px;
  border-top: 1px dashed rgba(22, 26, 32, 0.14);
}

/* ---------- 底部选择面板 ---------- */
.coupon-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.coupon-sheet.open,
.coupon-sheet.closing { display: block; }

.coupon-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
}

.coupon-sheet.open .coupon-sheet-mask {
  animation: couponMaskIn 0.28s ease both;
}

.coupon-sheet.closing .coupon-sheet-mask {
  animation: couponMaskOut 0.24s ease both;
}

/* 液态玻璃：半透明 + 背景模糊 + 上沿高光 + 内阴影，和站内其它玻璃卡片同一套感觉 */
/* v=fy：和零食购物车同一个毛玻璃配方（半透明底 + 背景模糊 + 上沿高光），
   之前是 0.9 的近实色，看起来像一块白板。 */
.coupon-sheet-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74vh;
  display: flex;
  flex-direction: column;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid rgba(148, 166, 194, 0.16);
  box-shadow:
    0 -18px 50px rgba(22, 26, 32, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  will-change: transform;
}

.coupon-sheet.open .coupon-sheet-card {
  animation: couponRise 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.coupon-sheet.closing .coupon-sheet-card {
  animation: couponFall 0.24s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes couponRise {
  from { transform: translate3d(0, 100%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes couponFall {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 100%, 0); }
}

@keyframes couponMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes couponMaskOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 顶部小横条，暗示可以往下拖 */
.coupon-sheet-grab {
  width: 38px;
  height: 4px;
  margin: 6px auto 2px;
  border-radius: 2px;
  background: rgba(22, 26, 32, 0.16);
  flex: none;
}

.coupon-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 12px;
  flex: none;
}

.coupon-sheet-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.coupon-sheet-sub {
  margin: -6px 2px 12px;
  font-size: 12px;
  color: var(--ink-3);
  flex: none;
}

.coupon-sheet-x {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-3);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.coupon-sheet-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

/* 每张券：一层薄玻璃 */
.coupon-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 13px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-right-color: rgba(148, 166, 194, 0.22);
  border-bottom-color: rgba(148, 166, 194, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.coupon-sheet-item.is-on {
  border-color: rgba(180, 68, 63, 0.42);
  background: rgba(255, 238, 236, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.coupon-sheet-item.is-disabled {
  opacity: 0.52;
}

.coupon-sheet-main {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.coupon-sheet-amount {
  flex: none;
  min-width: 58px;
  font-size: 19px;
  font-weight: 800;
  color: #41648f;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
}

.coupon-sheet-item.is-on .coupon-sheet-amount { color: #b4443f; }

.coupon-sheet-info { flex: 1; min-width: 0; }

.coupon-sheet-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-sheet-rule {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.5;
}

.coupon-sheet-btn {
  flex: none;
  padding: 7px 15px;
  border-radius: 11px;
  border: 1px solid rgba(65, 100, 143, 0.18);
  background: rgba(65, 100, 143, 0.9);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(65, 100, 143, 0.22);
}

.coupon-sheet-btn.is-on {
  background: rgba(180, 68, 63, 0.1);
  border-color: rgba(180, 68, 63, 0.22);
  color: #b4443f;
  box-shadow: none;
}

.coupon-sheet-none {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink-2);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.coupon-sheet-empty {
  padding: 24px 8px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.coupon-sheet-sub-title {
  margin: 14px 2px 8px;
  font-size: 12px;
  color: var(--ink-3);
}

/* 已使用 / 已失效的券不在下单页展示，用标题下的一行小字说明它们去哪了（v=ga） */
.coupon-sheet-sub2 {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- 抵扣行 ---------- */
.coupon-discount-line {
  margin: 2px 0 4px;
  font-size: 12px;
  color: #b4443f;
  text-align: right;
  line-height: 1.6;
}

.coupon-discount-line .cdl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.coupon-discount-line .cdl-off {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* v=gt：一单不可叠加，抵扣行下面补一行浅灰小字（不抢抵扣金额的视觉） */
.coupon-discount-line .cdl-hint {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

/* v=gx：删掉了「一单只能使用一张，不可叠加」那行小字 ——
   顾客在每个服务页的选券入口下面都看到一遍，重复且啰嗦。
   .coupon-pick-note 的样式一并移除（已无 DOM 使用）。 */

.coupon-discount-line .cdl-pay {
  color: var(--ink);
  font-size: 13px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed rgba(22, 26, 32, 0.1);
}

.coupon-discount-line .cdl-pay b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.coupon-discount-line.is-receipt {
  margin: 10px 0 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(22, 26, 32, 0.14);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .coupon-sheet.open .coupon-sheet-card,
  .coupon-sheet.open .coupon-sheet-mask,
  .coupon-sheet.closing .coupon-sheet-card,
  .coupon-sheet.closing .coupon-sheet-mask {
    animation: none;
  }
}

/* ============================================================
   券后价（v=fx）：金额后面的小标 + 小票里划线的原价
   ============================================================ */
.coupon-after-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(180, 68, 63, 0.1);
  color: #b4443f;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

/* 小票合计：原价划线 + 券后价 + 标签，一起靠右 */
.receipt-total-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.coupon-price-origin {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 冻结栏里的选券入口（v=fy）：紧跟「预估金额 + 提交订单」下面 */
.coupon-pick-row.in-bar {
  padding: 1px 0 8px;
  border-bottom: 1px dashed rgba(22, 26, 32, 0.12);
  font-size: 13px;
}

.coupon-pick-row.in-bar .coupon-pick-label {
  font-size: 13px;
  color: var(--ink-2);
}

.coupon-pick-row.in-bar .coupon-pick-value {
  font-size: 12.5px;
}

/* ============================================
   服务板块「暂未开放」整页遮罩（v=gw）
   --------------------------------------------
   后台把某个板块「隐藏」或「关闭」后，顾客直接输网址 / 点收藏进来时，
   整页盖一层，表单点不到、页面也滚不动 —— 以前只弹一句提示，
   页面照样能填，点提交才被服务端拒。
   ============================================ */
.svc-closed {
  position: fixed;
  inset: 0;
  z-index: 2000;                 /* 必须高于底部冻结栏（.bottom-bar）和所有弹层 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(238, 244, 251, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: svcClosedIn 0.24s ease both;
  overscroll-behavior: contain;
}

@keyframes svcClosedIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.svc-closed-card {
  width: 100%;
  max-width: 320px;
  padding: 30px 22px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  /* 遮罩本身已经模糊过，但 0.78 白的卡片还是像一块实心板 —— v=lv2 压到 0.62，
     模糊加到 26px，背后的页面轮廓能透出来，正文仍然清楚 */
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-right-color: var(--glass-border-dim);
  border-bottom-color: var(--glass-border-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 24px 60px -20px rgba(22, 26, 32, 0.28);
}

.svc-closed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.svc-closed-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.svc-closed-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.svc-closed-text {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-line;
  word-break: break-word;
}

/* v=hp：风控封禁（用户管理 → 风控）—— 红色锁 + 淡红半透明背景；
   服务未开放的 .svc-closed 仍用原来的中性色，不受影响 */
.svc-closed--risk {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 246, 246, 0.84), rgba(255, 232, 232, 0.72) 58%, rgba(255, 226, 226, 0.78));
}

.svc-closed--risk .svc-closed-card {
  background: rgba(255, 247, 247, 0.82);
  border-color: rgba(196, 96, 90, 0.22);
  border-right-color: rgba(196, 96, 90, 0.13);
  border-bottom-color: rgba(196, 96, 90, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 60px -20px rgba(150, 52, 48, 0.24);
}

.svc-closed--risk .svc-closed-icon {
  color: #fff;
  background: linear-gradient(135deg, #cf5b53, #a93b35);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px -10px rgba(169, 59, 53, 0.6);
}

.svc-closed--risk .svc-closed-title {
  color: #8f2f2b;
}

.svc-closed--risk .svc-closed-text {
  color: #7c4a46;
}

.svc-closed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  margin-top: 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(96, 134, 190, 0.94), rgba(74, 108, 168, 0.94));
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -8px rgba(91, 127, 184, 0.5);
}

.svc-closed-btn:active {
  filter: brightness(1.06);
  transform: scale(0.985);
}

/* ============================================================
   v=gy · 前台视觉精修层
   ------------------------------------------------------------
   原则：只改「看起来怎么样」，不改「是什么、在哪、怎么用」。
   · 不改任何 DOM 结构、类名、事件、后台可配置项（主题色 / 背景图案 / 价格…）
   · 只做四件事：字距与字重、明暗层次、材质边缘、状态反馈
   ============================================================ */

/* 1) 键盘焦点可见：手机上看不到，接键盘 / 读屏时能看清停在哪 */
:where(a, button, [role="button"], input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid rgba(91, 127, 184, 0.5);
  outline-offset: 2px;
}

/* 2) 标题字距：中文大字默认字距偏松，收 0.01em 会显得更「定」 */
.section-title,
.empty-state-title {
  letter-spacing: 0.01em;
}

/* 3) 服务卡：原来 hover 会突然浮起 4px + 一大片黑影，像整块跳了一下。
   改成「贴地微抬 + 阴影加深」，同时在卡片上沿补一条 1px 高光，
   白玻璃卡在浅蓝底上终于有一条清楚的边。 */
.service-item {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    var(--shadow-soft);
  transition:
    transform 0.36s var(--ease-spring),
    box-shadow 0.36s var(--ease-spring);
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    var(--shadow-lift);
}

/* 按下时原来缩到 0.95（整块明显缩小），改成 0.975 —— 有反馈但不夸张 */
.service-item:active {
  transform: scale(0.975);
  transition-duration: 0.14s;
}

/* 图标方块：加一圈内高光，让渐变有个「弧面」而不是纯色块 */
.service-icon[class*="theme-"] {
  box-shadow:
    0 6px 14px -6px rgba(23, 37, 56, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* 服务名与描述：名字加重、描述压深一档，扫视时先看到名字 */
.service-item .service-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.service-item .service-desc {
  color: var(--ink-3);
}

/* 4) 底部胶囊栏：玻璃更「实」一点，投影更收，不再像贴了一层灰膜 */
.tabbar {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 24px -12px rgba(23, 37, 56, 0.26),
    0 2px 6px -2px rgba(23, 37, 56, 0.08);
}

.tab span {
  letter-spacing: 0.01em;
}

/* 5) 订单卡：hover 给一点响应（桌面端有用），按下略收 */
.order-card {
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-spring);
}

.order-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    var(--shadow-lift);
}

.order-card:active {
  transform: scale(0.985);
}

/* 6) 提示条：文字压深、图标与文字基线对齐 */
.toast {
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 34px -16px rgba(23, 37, 56, 0.4);
}

/* 7) 空状态：标题和副文案之间的层级拉开一点 */
.empty-state-sub {
  line-height: 1.65;
}

/* 8) 长列表滚动条（桌面端后台/前台都有）：细、浅、悬停才明显 */
@media (pointer: fine) {
  .app::-webkit-scrollbar,
  .order-list::-webkit-scrollbar { width: 6px; height: 6px; }
  .app::-webkit-scrollbar-thumb,
  .order-list::-webkit-scrollbar-thumb {
    background: rgba(23, 37, 56, 0.14);
    border-radius: 999px;
  }
  .app::-webkit-scrollbar-thumb:hover,
  .order-list::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 37, 56, 0.24);
  }
}

/* 9) 服务卡的「面」：原来只靠 0.14 的白，浅蓝底上几乎看不出卡片。
   给内容型卡片加一层更实的白（仍然透出下面的氛围色，只是不再发虚），
   同时用极浅的顶亮底暗渐变做出「纸面」的厚度。
   —— 只作用于服务卡，不影响首页顶部大卡 / 公告 / 底栏等其它玻璃层。 */
.service-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.34) 100%);
}

/* 服务卡右上角的「可用 / 暂停」小标：底色再实一点，避免和卡片白底糊在一起 */
.service-item .service-badge,
.service-item .service-status-badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   v=hz · 移动端基础层（mobile-native）
   ------------------------------------------------------------
   只修「平台默认值」，不改任何组件的视觉语言。
   1. 点击高亮：iOS / Android 会给带 click 的元素盖一层半透明灰，
      是「这是个网页」最响的信号，也会盖掉我们自己做的按压反馈
   2. touch-action: manipulation：声明这里不做双击缩放，
      click 立刻派发，不必等约 300ms
   3. overscroll-behavior：页面自己管滚动，禁止整页下拉刷新和橡皮筋，
      避免顾客滑到底部时误触刷新、丢掉已填的表单
   4. 触屏输入框 16px：iOS 在字号 < 16px 的输入框上聚焦会放大页面且不还原。
      正解是提字号，不是禁缩放（user-scalable=no 已移除）
   ============================================================ */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

button,
a,
[role="button"],
.tab,
.chip,
.seg-tab,
.option-row,
.service-item {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* 文字是「控件」就不该被长按选中；正文、单号、金额必须能选中复制 */
button,
[role="button"],
.tab,
.chip,
.seg-tab {
  user-select: none;
  -webkit-user-select: none;
}

/* 只在触屏上把输入框提到 16px —— 桌面端保持设计字号 */
@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* 触屏没有真正的「悬停」：点一下之后浏览器会把 :hover 留在元素上，
   服务卡就一直浮着不落回。用能力查询关掉位移，按下的 :active 反馈保留。 */
@media (hover: none), (pointer: coarse) {
  .service-item:hover,
  .service-item.unavailable:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================================
   v=hz · 动效收口（review-animations）
   ------------------------------------------------------------
   1. 分段滑块原来 0.4–0.42s：滑块跟着点击立刻动，眼睛就盯着这一下，
      0.4s 读作「慢」，不再是「顺滑」。收到 0.26s。
      宽度本来就在变，改不成 transform，只能缩时长；
      will-change 只对合成属性有效，写在 left/width 上是空指令，去掉。
   2. --ease-press 原为 cubic-bezier(0.4,0,0.2,1)（Material 默认的对称曲线），
      起手延迟明显。按下要「立刻响应」，换成强 ease-out。
   ============================================================ */
:root {
  --ease-press: cubic-bezier(0.23, 1, 0.32, 1);
}

.tabbar-slider,
.order-tab-slider {
  transition: left 0.26s var(--ease-spring), width 0.26s var(--ease-spring);
  will-change: auto;
}

/* v=hz：首页入场从 0.55s 收到 0.42s。六张服务卡叠 40ms 的 stagger，
   原来最后一卡要 0.83s 才落定；缩完 0.70s，同一套顺序、更利落的节奏。
   动效的「顺序」没变，只是不再让人等。 */
.store-card,
.section-head,
.service-item,
.profile-hero,
.profile-card {
  animation-duration: 0.42s;
}

.tabbar-wrap {
  animation-duration: 0.45s;
}

/* v=hz：底部导航是点得最勤的地方，两个问题：
   1. 原来只有颜色过渡，按下去没有任何确认感 —— 补 scale(0.94)
   2. 选中图标的位移 0.42s，切一次 tab 要等半秒才落位 —— 收到 0.26s */
.tab {
  transition: color 0.2s var(--ease-press), transform 0.14s var(--ease-press);
}

.tab:active {
  transform: scale(0.94);
}

.tab svg {
  transition: transform 0.26s var(--ease-spring);
}

/* ============================================================
   v=hz · 订单卡扛极端数据（break-ui 压测结果）
   ------------------------------------------------------------
   真实数据：文档打印选满选项 ——「A4 普通纸 · 彩色 · 双面 · 胶装 ·
   文件袋封装 · 加急 · 共 2000 页 × 5 份」。这一长，金额被挤到换行，
   「¥」和「12345.60」拆成两行，看着像两个数字。
   修法：金额永不换行、不参与压缩；描述最多两行超出省略；两者顶对齐。
   ============================================================ */
.order-card-body {
  align-items: flex-start;
  gap: 10px;
}

.order-service {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.order-amount {
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

/* 320 宽下同一张卡的头部：18 位历史单号把「待处理」压成竖排三个字，
   「已完成」整个被挤出可视区。单号可以让位（点进详情能看全），
   状态和板块标签必须完整 —— 那是用户在列表里唯一判断依据。 */
.order-card-head .order-no {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-service-tag,
.order-status {
  flex: none;
  white-space: nowrap;
}

/* 320 这类窄屏：15 位正常单号也会被截，因为标签+状态挤占了 24px。
   单号字号降一档、间距收 2px，正常单号就能完整显示；
   只有 18 位的历史导入单号才省略。 */
@media (max-width: 359px) {
  .order-card-head {
    gap: 6px;
  }

  .order-card-head .order-no {
    font-size: 15px;
    letter-spacing: 0.2px;
  }
}

/* ============================================================
   v=ig · 价格公示表
   ------------------------------------------------------------
   首页「全部服务」右侧的小按钮 + 全屏价目弹窗。
   按钮沿用站内玻璃胶囊（和纸张参考表同一个味道），
   弹窗用 .ui-dialog 外壳，内容自己管滚动。
   ============================================================ */
.section-head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

/* 有按钮之后这一行改成垂直居中，左侧的标题+副标题仍按基线对齐 */
.section-head {
  align-items: center;
}

.price-list-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-right-color: rgba(148, 166, 194, 0.28);
  border-bottom-color: rgba(148, 166, 194, 0.28);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 0.14s var(--ease-press), background 0.18s ease;
}

.price-list-btn:active {
  transform: scale(0.96);
}

.ui-dialog.pl-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 860px);
  padding: 0;
  overflow: hidden;
}

.pl-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
}

.pl-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.pl-close {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-2);
  cursor: pointer;
}

.pl-close svg {
  width: 15px;
  height: 15px;
}

.pl-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 22px;
}

.pl-note {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* 表格：项目 / 价格 两列，第二列右对齐固定宽度 */
/* 顶部板块 tab：一个板块一张表，切 tab 换表。
   板块名长短不一（也允许多到五个），所以按钮按内容撑开、整条可横向滚动，
   滑块位置由 JS 按按钮实际 offsetLeft/offsetWidth 设，不做等分假设。 */
.pl-tabs {
  position: relative;
  display: flex;
  margin: 2px 0 14px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(145, 168, 198, 0.14);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pl-tabs::-webkit-scrollbar {
  display: none;
  height: 0;
}

.pl-tab-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 9px;
  /* v=lv2：原来是纯白实心块，压在浅灰轨道上像贴了张纸 */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 3px rgba(23, 37, 56, 0.14);
  transition: transform 0.24s var(--ease-spring), width 0.24s var(--ease-spring);
  pointer-events: none;
}

.pl-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--ink-3);
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}

.pl-tab.active {
  color: var(--ink);
}

/* 表格：带框线的两列表（项目 | 价格），贴合价目表的阅读习惯。
   玻璃弹窗上直接画细线会发虚，所以表格自带一层浅白底。 */
.pl-panel {
  background: rgba(255, 255, 255, 0.5);
  /* 不要加 overflow:hidden —— 它会变成 sticky 表头的滚动容器，
     表头就再也吸不住了（踩过）。圆角也一并省掉，表格本来就是方的。 */
}

.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pl-table th,
.pl-table td {
  border: 1px solid rgba(145, 168, 198, 0.55);
  padding: 9px 10px;
  vertical-align: middle;
  text-align: center;
  line-height: 1.5;
}

.pl-table th:first-child,
.pl-table td:first-child {
  text-align: left;
}

/* 表头不做吸顶：`border-collapse: collapse` 下 sticky 单元格的背景
   只会画出文字那一小段（Chrome 已知问题），改成 separate 又要重画所有边框。
   两列表本来就只有「名称 + 价格」，滚动时靠内容也分得清，不值得为它折腾。 */
.pl-table thead th {
  /* v=lv2：原来是 #f2f5f9 实色灰块，压在玻璃卡上像贴了一条灰胶带 */
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink-2);
  white-space: nowrap;
}

.pl-table thead th:last-child,
.pl-table tbody td:last-child {
  width: 84px;
  white-space: nowrap;
}

/* 分组行：浅灰底横跨两列，只做归类。
   要显式左对齐 —— 它只有 colspan=2 一个单元格，会被上面的右/中居中带跑。 */
.pl-table .pl-group-row td {
  padding: 7px 10px;
  background: rgba(145, 168, 198, 0.09);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: left;
}

.pl-item-row td:first-child {
  color: var(--ink-2);
}

.pl-item-row td:last-child {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pl-empty {
  padding: 44px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: no-preference) {
  .pl-body {
    scroll-behavior: smooth;
  }
}

/* ============================================================
   v=ix2 · 首页「运营时间」按钮 + 一周营业时间图
   ------------------------------------------------------------
   按钮：和「价格公示」同款玻璃胶囊，两个并排放在标题右侧。
   图：横轴周一到周日、纵轴是当天时刻，每段营业时间画成一个竖块。
       竖块长度 = 营业时长，中间的面积极自然是「不营业的空档」。
   ============================================================ */
.section-head-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 两个按钮并排时，字号再收一点，320 宽也不会把标题挤掉 */
.section-head-actions .price-list-btn {
  padding: 0 10px;
  font-size: 12px;
}

.ui-dialog.hb-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 860px);
  padding: 0;
  overflow: hidden;
}

.hb-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
}

.hb-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.hb-close {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-2);
  cursor: pointer;
}

.hb-close svg {
  width: 15px;
  height: 15px;
}

.hb-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 20px;
}

.hb-note {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-3);
}

.hb-empty {
  padding: 44px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

.hb-chart {
  --hb-h: 230px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* 纵轴刻度：贴着左边，文字右对齐，和网格线同一高度 */
.hb-axis {
  position: relative;
  flex: none;
  width: 34px;
  height: var(--hb-h);
}

.hb-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 9.5px;
  line-height: 1;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hb-grid {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hb-lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--hb-h);
  pointer-events: none;
}

.hb-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(145, 168, 198, 0.24);
}

.hb-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hb-col {
  min-width: 0;
}

.hb-track {
  position: relative;
  height: var(--hb-h);
  border-radius: 9px;
  background: rgba(145, 168, 198, 0.1);
  overflow: hidden;
}

.hb-track.is-today {
  background: rgba(91, 127, 184, 0.16);
}

/* 竖块：渐变 + 顶部内高光，做出一点厚度，不然像一根平板纸条 */
.hb-seg {
  position: absolute;
  left: 3px;
  right: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(180deg, #86a6c9 0%, #6383b2 55%, #4f72a8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(35, 57, 90, 0.18);
}

.hb-seg-t {
  font-size: 9.5px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(30, 50, 80, 0.35);
}

.hb-closed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: var(--ink-3);
}

.hb-day {
  display: block;
  margin-top: 7px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.2px;
  color: var(--ink-3);
  white-space: nowrap;
}

.hb-day.is-today {
  color: var(--accent);
  font-weight: 700;
}

.hb-today {
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

@media (max-height: 720px) {
  .hb-chart {
    --hb-h: 186px;
  }
}

/* v=ix2：带分钟的时段用上下两行（开始在上、结束在下）。
   一行「9:30–20」在 30px 宽的竖块里会被裁掉，两行各 4~5 个字才放得下。 */
.hb-seg.is-two {
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 1px;
}

.hb-seg.is-two .hb-seg-t {
  font-size: 9px;
}

/* v=ix2：320 这类窄屏，七列竖块只剩 18px 宽，块里的「08:30 / 12–18」会被裁成
   「8:3 / 2–1」。把内边距、轴宽、列间距都收一档，字再小半号，竖块能回到 26px 左右。 */
@media (max-width: 359px) {
  .hb-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hb-chart {
    gap: 6px;
  }

  .hb-axis {
    width: 28px;
  }

  .hb-axis span {
    font-size: 9px;
  }

  .hb-cols {
    gap: 3px;
  }

  .hb-seg {
    left: 2px;
    right: 2px;
    border-radius: 6px;
  }

  .hb-seg-t {
    font-size: 8.5px;
  }

  .hb-seg.is-two .hb-seg-t {
    font-size: 8.5px;
  }
}

/* ============================================================
   v=jc · 站内通知（首页图标气泡）
   ------------------------------------------------------------
   1. 有未读通知时，店铺图标淡出、换成铃铛 + 红点，整个图标闪烁，
      直到用户点气泡里的「收到」。
   2. 气泡从图标右侧弹出，尾巴指着图标；关闭时缩回去。
      气泡压在店铺卡上（卡片本身 overflow:hidden，所以气泡高度
      跟着卡片走，文字长了在气泡内部滚动，不会顶出卡片）。
   ============================================================ */
.store-logo-wrap {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
}

.store-logo-wrap .store-logo {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.store-logo-bell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  /* v=lv2：铃铛角标也走玻璃（原来 92% 白，盖在图标上像一块实心贴片） */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 18px rgba(22, 26, 32, 0.16);
  color: #3f6191;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.38s ease, transform 0.42s var(--ease-spring);
  pointer-events: none;
}

.store-logo-bell svg {
  width: 30px;
  height: 30px;
}

.store-logo-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e4574c;
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.42s var(--ease-spring);
}

.store-logo-wrap.has-notice .store-logo {
  opacity: 0.12;
  filter: saturate(0.3);
}

.store-logo-wrap.has-notice .store-logo-bell {
  opacity: 1;
  transform: scale(1);
}

.store-logo-wrap.has-notice .store-logo-dot {
  opacity: 1;
  transform: scale(1);
}

/* 闪烁：淡入淡出，直到点「收到」 */
.store-logo-wrap.is-blinking {
  animation: logoBlink 1.7s ease-in-out infinite;
}

@keyframes logoBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

@media (prefers-reduced-motion: reduce) {
  .store-logo-wrap.is-blinking { animation: none; }
}

/* 卡片原来靠 overflow:hidden 把背景图裁成圆角；气泡要能从图标下方
   长到卡片外面，所以改成让 ::before 自己带圆角。
   另外气泡会盖到下面的「全部服务」标题，而那个标题有入场动画（自带
   层叠上下文）会压在气泡上面 —— 有气泡时把整张卡片提到最上层。 */
.store-card {
  overflow: visible;
}

.store-card.has-bubble {
  z-index: 30;
}

.store-card::before {
  border-radius: inherit;
}

.notice-bubble {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 86px;
  max-height: min(60vh, 420px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 11px 13px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  /* v=lv2：0.97 白其实是「一张实心纸」，只是有阴影。改成玻璃：
     0.62 底 + 26px 模糊 —— 背面的卡片轮廓能透出来，正文仍然读得清。 */
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  box-shadow:
    0 14px 34px rgba(23, 37, 56, 0.2),
    0 2px 8px rgba(23, 37, 56, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-origin: 26px 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  transition: opacity 0.18s ease, transform 0.26s var(--ease-spring);
  pointer-events: none;
}

.notice-bubble.is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.notice-bubble.is-closing {
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 尾巴：旋转 45° 的小方块，压在上边缘、对准图标中心 */
.notice-bubble-tail {
  position: absolute;
  left: 26px;
  top: -6px;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  transform: rotate(45deg);
}

.notice-bubble-title {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink-2);
}

.notice-bubble-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4574c;
}

.notice-bubble-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: 7px 0 10px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-bubble-ok {
  flex: none;
  width: 100%;
  min-height: 36px;
  border: none;
  border-radius: 10px;
  /* 按钮用实心蓝，别用玻璃选中态那套浅色 —— 白底气泡上会看不出边界 */
  background: linear-gradient(135deg, #6288bb, #41648f);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.14s var(--ease-press), filter 0.16s ease;
}

.notice-bubble-ok:active {
  transform: scale(0.97);
}

.notice-bubble-ok[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* ============================================================
   v=km · 打开主页的推广弹窗（加群提醒）
   ------------------------------------------------------------
   液态玻璃卡片：标题 / 正文 / 群二维码 / 一个主按钮。
   每次进主页都弹（后台「店铺设置」里可关）。
   ============================================================ */
.promo-mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  /* v=lv：遮罩和弹窗一起做真磨砂 —— 后面垫着首页的光晕，模糊后透出颜色才像玻璃 */
  background: rgba(18, 22, 28, 0.32);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  animation: promoFadeIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.promo-open {
  overflow: hidden;
}

@keyframes promoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes promoPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.promo-dialog {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 86dvh;
  overflow-y: auto;
  padding: 26px 22px 20px;
  border-radius: 26px;
  /* v=lv：原来 background 是 rgba(255,255,255,.92) —— 几乎纯白，等于一张实心卡片，
     背后的光晕一点透不出来。现在改成真毛玻璃：
       ① 底色压到 0.42，靠 backdrop-filter 折射背后的页面（和 .ui-dialog 同一档）；
       ② 斜向镜面高光 + 顶部径向柔光**直接叠进 background**，不用 ::before ——
          弹窗自己有 overflow-y:auto，伪元素会被滚走，多层背景才是稳的。 */
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.50) 0%,
      rgba(255, 255, 255, 0.14) 28%,
      rgba(255, 255, 255, 0) 48%),
    radial-gradient(120% 60% at 50% 0%,
      rgba(255, 255, 255, 0.26) 0%,
      rgba(255, 255, 255, 0) 58%),
    rgba(252, 253, 255, 0.42);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  /* 不均匀边框：上/左高光亮边，右/下冷调暗边 —— 玻璃体积感的关键 */
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-right-color: rgba(148, 166, 194, 0.28);
  border-bottom-color: rgba(148, 166, 194, 0.28);
  box-shadow:
    0 30px 80px -20px rgba(20, 30, 50, 0.45),
    0 4px 16px rgba(22, 26, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  animation: promoPopIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  /* v=lv：玻璃圆钮（原来是 6% 的实色底，在磨砂弹窗上像块脏印） */
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink-3);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.14s var(--ease-press), background 0.16s ease;
}

.promo-close:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.78);
}

.promo-close svg {
  width: 16px;
  height: 16px;
}

.promo-title {
  padding-right: 30px;
  /* v=kw：字号/颜色可由后台配（标题比正文大 5px，跟着正文一起缩放） */
  font-size: var(--promo-title-size, 19px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--promo-color, var(--ink));
  letter-spacing: 0.01em;
}

.promo-body {
  margin-top: 10px;
  /* v=kw：正文字号/颜色由后台配；[方括号] 用强调色 */
  font-size: var(--promo-size, 14px);
  line-height: 1.75;
  color: var(--promo-color, var(--ink-2));
  white-space: pre-wrap;
  word-break: break-word;
}

.promo-body .nt-em {
  color: var(--promo-accent, var(--accent));
  font-weight: 700;
}

.promo-img-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.promo-img-wrap img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 6px 20px -8px rgba(20, 30, 50, 0.25);
}

.promo-action {
  width: 100%;
  margin-top: 18px;
  min-height: 46px;
  /* v=lv：胶囊按钮 + 顶部一道细高光（iOS 玻璃按钮的画法） */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, #7aa7ff, #5b7fb8);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 12px 26px -12px rgba(70, 120, 200, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 160ms var(--ease-spring), opacity 160ms ease;
}

.promo-action:active {
  transform: scale(0.98);
  opacity: 0.92;
}

@media (max-width: 359px) {
  .promo-dialog {
    padding: 22px 16px 16px;
  }
  .promo-title {
    font-size: 17px;
  }
}

/* ============================================================
   v=kx · 首页大公告：字号/颜色由后台配，[方括号] 用强调色
   ============================================================ */
.store-notice .nt-em {
  color: var(--notice-accent, var(--accent));
  font-weight: 700;
}

/* 默认色仍是 --ink-2，只有后台配了颜色才通过变量覆盖；
   字号同理（.store-notice 自己写了 font-size，必须在这里用变量接住） */
.store-notice-bar .store-notice {
  color: var(--store-notice-color, var(--ink-2));
  font-size: var(--store-notice-size, 13px);
}

/* ============================================================
   v=ll · 首页服务入口改成 3×3 网格
   ------------------------------------------------------------
   原来是 2 列大卡，7 个服务要滚 4 排。改成 3 列后一屏基本能看全，
   卡片相应缩小：图标 50→42、名称 15→12.5、描述压成单行省略号。
   顺序由后台「店铺设置 → 首页服务排序」决定（home.js 按 config.serviceOrder 排）。
   ============================================================ */
.service-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* v=ma：卡下那行小字（.service-desc）已删除 —— 3×3 里信息太碎。
   空出来的高度给图标和标题：图标 42→48，标题 12.5→14。 */
.service-item {
  gap: 9px;
  padding: 16px 6px 15px;
  border-radius: var(--radius-sm, 12px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.service-icon svg {
  width: 25px;
  height: 25px;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-desc {
  font-size: 10.5px;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-badge {
  top: 6px;
  right: 6px;
  font-size: 9px;
  padding: 3px 6px;
  letter-spacing: 0.2px;
}

/* 320~359 的窄屏：再收一档，否则三个字的名字会被截断 */
@media (max-width: 359px) {
  .service-grid {
    gap: 8px;
  }
  .service-item {
    padding: 13px 4px 11px;
    gap: 7px;
  }
  .service-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .service-icon svg {
    width: 20px;
    height: 20px;
  }
  .service-name {
    font-size: 11.5px;
  }
  .service-desc {
    font-size: 10px;
  }
}

/* ============================================================
   v=lm · 评价弹窗（订单列表里点「去评价」）
   ============================================================ */
.rev-mask {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  /* v=lv2：遮罩压到 0.34 + 强模糊，弹窗那块玻璃才有东西可透 */
  background: rgba(10, 16, 24, 0.34);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.rev-mask.on {
  display: flex;
}

.rev-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 36px);
  border-radius: 18px;
  overflow: hidden;
  /* v=lv2：评价弹窗原来是 #fff 实心卡，改成和 .ui-dialog 一档的玻璃 */
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0) 48%),
    rgba(252, 253, 255, 0.5);
  backdrop-filter: blur(34px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  box-shadow:
    0 24px 60px rgba(10, 20, 34, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rev-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(120, 140, 170, 0.12);
}

.rev-head b {
  font-size: 15px;
}

.rev-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 140, 170, 0.14);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.rev-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 15px;
}

.rev-product {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.rev-size {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-3);
  background: rgba(120, 140, 170, 0.12);
}

.rev-stars {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.rev-star {
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: block;
}

.rev-star svg {
  width: 100%;
  height: 100%;
  stroke: rgba(120, 140, 170, 0.42);
  fill: transparent;
  stroke-width: 1.4;
  transition: all 0.15s ease;
}

.rev-star.on svg {
  stroke: #ffb400;
  fill: #ffb400;
}

.rev-star.half svg {
  stroke: #ffb400;
  fill: url(#rev-half);
  fill: #ffd980;
}

.rev-rating-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.rev-pics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.rev-pic {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(120, 140, 170, 0.12);
}

.rev-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rev-pic button {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 16, 24, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.rev-pic-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: 1px dashed rgba(120, 140, 170, 0.32);
  background: transparent;
  color: var(--ink-3);
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
}

.rev-pic-add i {
  font-size: 10px;
  font-style: normal;
}

.rev-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 84px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 170, 0.2);
  /* v=lv2：输入框不再铺一块纯白，退成半透明白玻璃（聚焦时再提亮） */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.rev-text:focus {
  border-color: var(--accent);
}

.rev-foot {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 10px 15px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(120, 140, 170, 0.12);
}

.rev-btn {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.rev-btn.primary {
  border: 0;
  background: linear-gradient(135deg, #ff7a5c, #ff3b58);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 59, 88, 0.26);
}

.rev-btn:disabled {
  opacity: 0.6;
  box-shadow: none;
}

/* v=lr：「我的」页里的在线客服入口 */
.profile-chat-entry {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease;
}

.profile-chat-entry:active {
  transform: scale(0.985);
}

.profile-chat-arrow {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}

/* ============================================================
   v=ma · 客服回复提醒（红点 + 进站弹窗）
   ------------------------------------------------------------
   红点两级：「我的」tab → 页面里的「在线客服」那一行。
   弹窗和后台的新订单提醒同款：玻璃卡片 + 图标 + 一句摘要 + 两个胶囊按钮。
   ============================================================ */
.tab {
  position: relative;
}

.tab-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b58;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.row-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ff3b58;
  vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.chat-ping-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(58px + env(safe-area-inset-top, 0px)) 16px 16px;
  /* 别糊太狠：14px 会把首页糊成一团色块，看着像加载失败 */
  background: rgba(18, 22, 28, 0.2);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.chat-ping-mask.on {
  opacity: 1;
}

.chat-ping-card {
  width: 100%;
  max-width: 340px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 30%, rgba(255, 255, 255, 0) 50%),
    rgba(252, 253, 255, 0.52);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-right-color: rgba(148, 166, 194, 0.26);
  border-bottom-color: rgba(148, 166, 194, 0.26);
  box-shadow:
    0 28px 64px -22px rgba(20, 30, 50, 0.45),
    0 4px 14px rgba(22, 26, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-12px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.28s var(--ease-spring),
    opacity 0.24s ease;
}

.chat-ping-mask.on .chat-ping-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chat-ping-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-ping-ico {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(122, 167, 255, 0.92), rgba(91, 127, 184, 0.92));
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(70, 120, 200, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.chat-ping-ico svg {
  width: 19px;
  height: 19px;
}

.chat-ping-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.chat-ping-count {
  flex: none;
  font-size: 11px;
  color: #ff3b58;
  font-weight: 600;
}

.chat-ping-body {
  margin: 10px 0 14px;
  padding-left: 43px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.chat-ping-acts {
  display: flex;
  gap: 9px;
  padding-left: 43px;
}

.chat-ping-btn {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s var(--ease-press), background 0.16s ease;
}

.chat-ping-btn:active {
  transform: scale(0.97);
}

.chat-ping-btn.ghost {
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink-2);
}

.chat-ping-btn.primary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #7aa7ff, #5b7fb8);
  color: #fff;
  box-shadow:
    0 10px 22px -12px rgba(70, 120, 200, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* ============================================================
   v=ma · 评价星级改成滑条
   ------------------------------------------------------------
   原来五颗星在窄屏会被右边界裁掉（得往右滑才看得到第 5 颗），
   现在星星缩小居中做「视觉刻度」，下面一条可拖的滑条才是真正操作区。
   滑条用 --p 画出已选进度，滑过的地方是暖金色。
   ============================================================ */
.rev-rate-box {
  margin-top: 12px;
}

.rev-rate-box .rev-stars {
  margin-top: 0;
  gap: 4px;
  justify-content: center;
}

.rev-rate-box .rev-star {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.rev-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 6px 0 0;
  background: transparent;
  --p: 100%;
}

.rev-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #f0b34a 0%,
    #f2c063 var(--p),
    rgba(148, 166, 194, 0.22) var(--p),
    rgba(148, 166, 194, 0.22) 100%);
  box-shadow: inset 0 1px 2px rgba(23, 37, 56, 0.12);
}

.rev-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(148, 166, 194, 0.34);
  box-shadow:
    0 3px 10px -3px rgba(23, 37, 56, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: grab;
}

.rev-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.06);
}

.rev-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 166, 194, 0.22);
}

.rev-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #f0b34a;
}

.rev-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(148, 166, 194, 0.34);
  box-shadow: 0 3px 10px -3px rgba(23, 37, 56, 0.4);
}

.rev-rate-box + .rev-rating-text {
  margin-top: 4px;
  text-align: center;
}

/* ============================================================
   v=ph · 首页「商品公告」轮播
   ------------------------------------------------------------
   位置：「渡仓 / 营业时间」卡片下面、「全部服务」标题上面。
   **样式逐条照抄服饰微店的 .mall-banner**（渐变卡 / 橙红标签 / 红色价格 / 右下角圆点），
   一处改两边都好看。
   ============================================================ */
.home-banner {
  position: relative;
  margin: 12px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(120, 170, 255, 0.22), rgba(180, 140, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 26px rgba(22, 40, 70, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-banner-viewport {
  overflow: hidden;
}

.home-banner-track {
  display: flex;
  transition: transform 0.45s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform;
}

.home-banner-item {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.home-banner-img {
  flex: none;
  width: 62px;
  height: auto;
  min-height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  align-self: center;
}

.home-banner-img img {
  width: 100%;
  height: auto;
  display: block;
}

.home-banner-info {
  flex: 1;
  min-width: 0;
}

.home-banner-tag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff8a5b, #ff4d6d);
}

.home-banner-tag.is-promo {
  background: linear-gradient(135deg, #ff6b6b, #e11d48);
}

.home-banner-tag.is-clear {
  background: linear-gradient(135deg, #67b7ff, #2563eb);
}

.home-banner-src {
  margin-left: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
  vertical-align: 2px;
}

.home-banner-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-banner-price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #ff3b58;
}

.home-banner-dots {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.home-banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(30, 50, 80, 0.22);
  transition: all 0.25s ease;
}

.home-banner-dot.on {
  width: 14px;
  border-radius: 3px;
  background: var(--accent);
}
