/* ============================================
   渡仓 · 下单页样式（液态玻璃，与首页一致）
   ============================================ */

/* 页面容器：底部留出发票栏空间（含锯齿 + 安全区） */
.app {
  padding-bottom: calc(200px + env(safe-area-inset-bottom));
}

/* ===== 公告栏（液态玻璃，新闻纸质感） ===== */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  /* 液态玻璃：极低不透明度 + 不均匀边框（上/左高光，右/下阴影）营造折射 */
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16),
    0 18px 36px -10px rgba(22, 26, 32, 0.12);
}

.notice-ico {
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}

.notice-ico svg {
  width: 18px;
  height: 18px;
}

.notice-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice-text {
  color: var(--ink-2);
  font-weight: 500;
  /* v=hc：后台公告允许手动换行（各下单页共用这一条） */
  white-space: pre-line;
}

.notice-sub {
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 4px;
  border-top: 1px dashed rgba(22, 26, 32, 0.12);
}

/* 时间段选择（横向滚动 chips —— 数量不定，用独立胶囊，不走移动指示器） */
.slot-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.slot-row::-webkit-scrollbar { display: none; }

/* 时段行同时带有 .option-row 类，这里去掉指示器容器外观，回到横向滚动的独立胶囊 */
.option-row.slot-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.option-row.slot-row::before {
  display: none;
}

.slot-row .option-chip {
  flex: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.55);
  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);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 9px 14px;
  border-radius: 999px;
}

.slot-row .option-chip.selected {
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  color: var(--sel-ink);
  border-color: var(--sel-border);
  border-right-color: var(--sel-border-dim);
  border-bottom-color: var(--sel-border-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--sel-glow);
}

/* 时段行也用同一枚玻璃滑块（v=db2）
   它本身是横向滚动的独立胶囊，滑块跟着内容一起滚；
   选中感完全交给滑块，所以 chip 自己的蓝底/边框/毛玻璃都要让位，
   否则不透明的选中底色会把下层滑块整块盖住（看起来还是「瞬移」） */
.option-row.slot-row .option-slider {
  top: 0;
  height: 100%;
}

.option-row.slot-row.has-slider .option-chip {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.45);
  border-right-color: rgba(148, 166, 194, 0.18);
  border-bottom-color: rgba(148, 166, 194, 0.18);
  color: var(--ink-2);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.option-row.slot-row.has-slider .option-chip.selected {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--sel-ink);
}

/* ===== 顶部导航 ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px 8px;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(22, 26, 32, 0.08);
  transition: transform 0.3s var(--ease-spring);
}

.back-btn:active {
  transform: scale(0.92);
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-spacer {
  width: 40px;
}

/* 「不会操作」按钮（液态玻璃胶囊，右上角） */
.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px 7px 9px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px -8px rgba(22, 26, 32, 0.16);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.help-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.help-btn:active {
  transform: scale(0.94);
}

/* ===== 顶部胶囊 Tab（移动指示器，smooth-option-switcher 写法） ===== */
.subtab-wrap {
  margin: 6px 0 16px;
}

.subtab {
  position: relative;
  display: flex;
  width: 100%;
  padding: 4px;
  --tab-count: 4;
  --tab-index: 0;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  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);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 36px -12px rgba(22, 26, 32, 0.14);
  white-space: nowrap;
}

/* 移动指示器：玻璃滑块。用 transform 位移（不走 left/width，避免布局重排） */
.subtab-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc((100% - 8px) / var(--tab-count));
  border-radius: 999px;
  /* 创新为液态玻璃：可透出背景，靠不均匀边框 + 内高光撑出体积（v=bx：白 → 浅蓝，选中更明显） */
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  backdrop-filter: blur(6px) saturate(200%);
  -webkit-backdrop-filter: blur(6px) saturate(200%);
  border: 1px solid var(--sel-border);
  border-right-color: var(--sel-border-dim);
  border-bottom-color: var(--sel-border-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    var(--sel-glow);
  transform: translateX(calc(var(--tab-index) * 100%));
  transition: transform 0.5s cubic-bezier(0.34, 0.96, 0.6, 0.99);
  will-change: transform;
  pointer-events: none;
}

.subtab-item {
  position: relative;
  z-index: 1;
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

.subtab-item.active {
  color: var(--ink);
}

/* ===== 表单 ===== */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 子类型内容区 */
.subpanel {
  display: none;
}

.subpanel.active {
  display: block;
  animation: viewIn 0.24s var(--ease-spring) both;
}

/* 表单卡片 */
.form-card {
  padding: 14px 20px;
}

/* 页数注意事项栏（文档打印顶部） */
.pages-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(194, 162, 90, 0.10);
  border: 1px solid rgba(194, 162, 90, 0.22);
}

.pages-notice-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0b453, #c2922e);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pages-notice-text {
  font-size: 12px;
  line-height: 1.55;
  color: #8a6a20;
  word-break: break-word;
}

.form-card .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
}

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

/* ===== 份数控件归位（文档/图片打印时移入上传栏右下角） ===== */
.copies-slot-inline {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* 字段下方的小提示（v=el：证件照「不用上传图片」） */
.field-hint {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

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

.copies-widget .field-label {
  margin-bottom: 0;
  flex: none;
}

.copies-widget .num-row {
  width: 150px;
  padding: 0;
  gap: 8px;
}

.copies-widget .num-row input {
  font-size: 17px;
  font-weight: 600;
  padding: 8px;
}

.copies-widget .stepper-btn {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.form-card input,
.form-card select,
.form-card textarea {
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}

.form-card textarea {
  resize: none;
  line-height: 1.6;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: var(--ink-3);
}

.form-divider {
  height: 1px;
  background: rgba(22, 26, 32, 0.06);
}

/* 选择行 = 移动指示器容器（smooth-option-switcher 写法，创新为液态玻璃） */
.option-row {
  position: relative;
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  padding: 4px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  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);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  --opt-count: 2;
  --opt-index: 0;
  overflow: hidden;
}

/* 玻璃滑块：唯一指示选中项的元素（v=bx 改浅蓝玻璃，白色底太浅看不出选了哪个）
   v=cz2：改为真实 DOM 元素 .option-slider，由 ui.js 显式定位 + Web Animations 补间。
   原来用 ::before + CSS 变量驱动 transform，遇到「每次点击重建 chip」的页面
   会和样式重算合并成一次，滑块直接瞬移（看起来不会动），横滑时还会被隐藏。 */
.option-row::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc((100% - 8px) / var(--opt-count));
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  backdrop-filter: blur(6px) saturate(200%);
  -webkit-backdrop-filter: blur(6px) saturate(200%);
  border: 1px solid var(--sel-border);
  border-right-color: var(--sel-border-dim);
  border-bottom-color: var(--sel-border-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    var(--sel-glow);
  transform: translateX(calc(var(--opt-index) * 100%));
  transition: transform 0.5s cubic-bezier(0.34, 0.96, 0.6, 0.99);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

/* 真实滑块接管后，伪元素不再绘制（保留上面的规则只是为了老页面兜底） */
.option-row.has-slider::before {
  display: none;
}

/* 真实滑块：尺寸/位置全由 JS 写 inline style */
.option-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  backdrop-filter: blur(6px) saturate(200%);
  -webkit-backdrop-filter: blur(6px) saturate(200%);
  border: 1px solid var(--sel-border);
  border-right-color: var(--sel-border-dim);
  border-bottom-color: var(--sel-border-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    var(--sel-glow);
  transform: translateX(0);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* 选项按钮：透明，选中感由滑块承担 */
.option-chip {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 9px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.25s var(--ease-spring);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
}

/* chip 里的小字单价 */
.option-price {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.3s ease;
}

/* 带副标题的选项：主标签 + 具体日期 + 价格（手写「产出时间」用）
   日期必须写出来 —— 只写「今天/明天/后天」用户不知道到底是几号 */
.option-chip.has-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 4px;
  line-height: 1.22;
}

.option-chip.has-sub .opt-main {
  font-size: 13px;
  font-weight: 600;
}

.option-chip.has-sub .opt-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.option-chip.has-sub.selected .opt-sub {
  color: var(--ink-2);
}

.option-chip.has-sub .option-price {
  margin-top: 1px;
}

.option-chip.selected {
  color: var(--sel-ink);
}

.option-chip.selected .option-price {
  color: var(--ink-2);
}

.option-chip:active {
  transform: scale(0.95);
}

/* v=gx：后台标了「缺货 / 缺墨 / 不可用」的选项。
   置灰、点不动，价格位置在原处显示这三个字（不是把整块变红，避免喧宾夺主）。 */
.option-chip.is-outage,
.option-chip.is-outage:active {
  color: var(--ink-3);
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.option-chip.is-outage .option-price {
  color: #b4443f;
  font-weight: 600;
}

/* ============================================================
   选项条太长：改成可横向滑动的独立胶囊（v=cx）
   ------------------------------------------------------------
   选项少（2~4 个）时保持上面的玻璃滑块动画；一旦内容超出容器宽度，
   JS 会给它加 .is-scroll，滑块退场、每个 chip 自带选中底色，
   手指可以左右滑看后面的选项（时间段、纸张规格多的时侯）
   ============================================================ */
.option-row.is-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;                        /* 胶囊之间要有间距，否则粘成一条 */
  scrollbar-width: none;
  scroll-behavior: auto;          /* 项目禁止平滑滚动 */
  -webkit-overflow-scrolling: auto; /* 项目禁止惯性滚动 */
}

.option-row.is-scroll::-webkit-scrollbar {
  display: none;
}

/* 量宽度专用（只存在一帧，不会画出来）：
   默认 chip 是 flex:1 会被压缩，scrollWidth 永远不溢出，
   必须先按「内容实际宽度」排一次才能判断要不要横滑 */
.option-row.is-measuring .option-chip {
  flex: 0 0 auto;
  min-width: 0;
}

.option-row.is-measuring::before {
  display: none;
}

/* 滑块退场（不等宽时无法按百分比定位） */
.option-row.is-scroll::before {
  display: none;
}

.option-row.is-scroll .option-chip {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  /* 横滑时也有真实滑块跟随，chip 保持透明底，避免和滑块叠成两层蓝 */
  background: transparent;
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.2s var(--ease-spring);
}

/* 多选行（增值服务 / 附加服务）：可同时选多项，不适合单个滑块 → 回到独立胶囊 */
.option-row--multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.option-row--multi::before {
  display: none;
}

.option-row--multi .option-chip {
  flex: 0 0 auto;
  min-width: 0;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s var(--ease-spring);
}

.option-row--multi .option-chip.selected {
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  color: var(--sel-ink);
  border-color: var(--sel-border);
  border-right-color: var(--sel-border-dim);
  border-bottom-color: var(--sel-border-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--sel-glow);
}

/* 数量/页数输入行 */
.num-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.num-row input {
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  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);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

.stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px -6px rgba(22, 26, 32, 0.16);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring), filter 0.15s ease;
}

.stepper-btn:active {
  transform: scale(0.88);
  filter: brightness(1.05);
}

/* ===== 底部固定栏：预估金额 + 提交按钮（液态玻璃胶囊） ===== */
/* ===== 底部发票拟态栏（液态玻璃 + 小票撕口） ===== */
.bottom-bar.invoice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 496px;
  max-height: 52vh;
  padding: 11px 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(190%);
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 -10px 40px rgba(22, 26, 32, 0.13);
}

/* 小票撕口：底部锯齿 */
.bottom-bar.invoice::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(190%);
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  -webkit-mask-image: radial-gradient(circle at 7px 0, #000 6px, transparent 6.5px);
  -webkit-mask-size: 14px 8px;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle at 7px 0, #000 6px, transparent 6.5px);
  mask-size: 14px 8px;
  mask-repeat: repeat-x;
}

/* 顶部金额 + 提交（小票虚线分隔） */
.bottom-bar.invoice .invoice-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(22, 26, 32, 0.16);
}

.bottom-bar.invoice .bottom-bar-price {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.bottom-bar.invoice .price-label {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.bottom-bar.invoice .price-value {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}

.bottom-bar.invoice .price-value.bump {
  transform: scale(1.12);
}

.bottom-bar.invoice .submit-btn {
  flex: none;
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 999px;
}

/* 费用明细（发票内，小字号可滚动） */
.invoice-detail-wrap {
  overflow-y: auto;
  max-height: 26vh;
}

.invoice-detail-wrap .price-detail-list {
  gap: 4px;
}

.invoice-detail-wrap .price-detail-row {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}

.invoice-detail-wrap .price-detail-row span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}

.invoice-detail-wrap .price-detail-empty {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  padding: 5px 0;
}

.price-label {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

/* 提交按钮：iOS 26 着色玻璃胶囊（带光晕） */
.submit-btn {
  background: linear-gradient(135deg, #6d92c4 0%, #4a6ca8 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 26px rgba(91, 127, 184, 0.38);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.submit-btn:active {
  transform: scale(0.96);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 5px 14px rgba(91, 127, 184, 0.3);
}

.submit-btn:disabled {
  background: #b9c2d0;
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== 文本输入框（液态玻璃内嵌） ===== */
.text-input {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: rgba(91, 127, 184, 0.5);
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(91, 127, 184, 0.12);
}

.text-input::placeholder {
  color: var(--ink-3);
}

.form-card textarea {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  resize: none;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-card textarea::placeholder {
  color: var(--ink-3);
}

/* ===== 文件上传区 ===== */
.upload-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 16px;
  border: 2px dashed rgba(255, 255, 255, 0.62);
  border-right-color: rgba(148, 166, 194, 0.24);
  border-bottom-color: rgba(148, 166, 194, 0.24);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px) saturate(170%);
  -webkit-backdrop-filter: blur(6px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

/* 透明文件输入：铺满上传区，点击即原生触发文件选择（兼容微信/移动端） */
.upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}

.upload-area:active {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(91, 127, 184, 0.4);
}

.upload-area svg {
  width: 32px;
  height: 32px;
  color: var(--ink-3);
}

.upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.upload-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(170%);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.file-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(96, 134, 190, 0.16), rgba(74, 108, 168, 0.16));
  color: var(--accent);
  flex-shrink: 0;
}

.file-item-icon svg {
  width: 20px;
  height: 20px;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-meta {
  font-size: 12px;
  color: var(--ink-3);
}

/* 上传进度条 */
.file-item-progress {
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: rgba(22, 26, 32, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.file-item-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5b7fb8, #7a9ac0);
  transition: width 0.2s ease;
}

.file-item.uploading {
  opacity: 0.8;
}

/* 不支持的格式：红色提示 */
.file-item.unsupported {
  border-color: rgba(192, 122, 110, 0.4);
  background: rgba(192, 122, 110, 0.06);
}

.file-item.unsupported .file-item-meta {
  color: var(--danger);
  font-weight: 600;
}

.file-item-pages {
  width: 60px;
  flex-shrink: 0;
}

.file-item-pages input {
  width: 100%;
  border: 1px solid rgba(22, 26, 32, 0.1);
  border-radius: 8px;
  padding: 6px;
  font-size: 14px;
  text-align: center;
  font-family: inherit;
}

/* 精确页数：只读，禁止修改 */
.file-item-pages.locked input {
  background: rgba(22, 26, 32, 0.04);
  color: var(--ink-2);
  border-color: rgba(22, 26, 32, 0.05);
  cursor: not-allowed;
  pointer-events: none;
}

.file-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(217, 74, 61, 0.1);
  color: var(--danger);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ===== 数量行 ===== */
.num-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.num-row input {
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(22, 26, 32, 0.08);
  font-family: inherit;
  color: var(--ink);
}

/* ===== 费用明细 ===== */
.price-detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
}

.price-detail-row span:last-child {
  font-weight: 600;
  color: var(--ink);
}

.price-detail-empty {
  font-size: 13px;
  color: var(--ink-3);
  padding: 4px 0;
}

/* ============================================
   非营业时间提示条（黄色感叹号，全站下单页共用）
   --------------------------------------------
   出现在「取件方式 / 配送方式」下面，说明只能预约。
   注意：不要用绿色对勾——这不是成功提示，是提醒。
   ============================================ */
.closed-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.16);
  border: 1px solid rgba(237, 163, 22, 0.28);
  font-size: 12.5px;
  line-height: 1.5;
  color: #9a6b00;
}

.closed-hint-ico {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffcb52, #eda316);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ============================================
   预约时段「今天 / 明天」切换（需求 X16）
   ============================================ */
/* ============================================================
   预约日期切换（今天 / 明天）
   v=cx：改成与打印下单页子 tab 同一套「玻璃滑块」动画，
   选中感由滑块承担，不再用深蓝实心块（切换时会「跳」一下）
   ============================================================ */
.day-tabs {
  position: relative;
  display: flex;
  width: 100%;
  padding: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  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);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 36px -12px rgba(22, 26, 32, 0.14);
  --day-count: 2;
  --day-index: 0;
}

/* 移动指示器：与 .subtab-slider 同族
   v=db2：位置改由 day-tabs.js 实测写入（left:0 + translateX(按钮 offsetLeft)），
   并用 WAAPI 从上一个位置补间 —— 每次切日期都会重建这里，
   纯 CSS transition 拿不到起点，看起来就是「瞬移」。
   下面这套 CSS 只作 JS 没跑时（或首帧）的兜底。 */
.day-tab-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: calc(100% / var(--day-count));
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sel-bg-1), var(--sel-bg-2));
  backdrop-filter: blur(6px) saturate(200%);
  -webkit-backdrop-filter: blur(6px) saturate(200%);
  border: 1px solid var(--sel-border);
  border-right-color: var(--sel-border-dim);
  border-bottom-color: var(--sel-border-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    var(--sel-glow);
  transform: translateX(calc(var(--day-index) * 100%));
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.day-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 9px 6px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease, transform 0.25s var(--ease-spring);
}

.day-tab.active {
  color: var(--sel-ink);
}

.day-tab:active {
  transform: scale(0.95);
}

.day-tab[disabled] {
  opacity: 0.45;
  cursor: default;
}

/* ============================================================
   v=gy · 下单页视觉精修（只改观感，不动结构与交互）
   ============================================================ */

/* 1) 表单卡：补一条外投影，卡片和浅蓝背景之间有了「厚度」；
      上沿的 1px 高光保留，玻璃感不丢。 */
.form-card {
  /* 内边距保持原值（14px 20px）—— 只补投影，不让整页高度发生变化 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    var(--shadow-soft);
}

/* 2) 字段标签：字距松一点、颜色压深，和输入框里的正文拉开层级 */
.field-label {
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--ink-2);
}

/* 3) 顶部子 Tab：原来是 0.16 的白，几乎看不出是个「控件」。
      提高到底色可见、边界清楚，滑块落进去才有「被选中」的实物感。 */
.subtab {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(23, 37, 56, 0.04);
}

.subtab-item {
  letter-spacing: 0.01em;
  transition: color 0.24s var(--ease-press);
}

/* 4) 选中滑块：内高光更细腻（上亮下暗），外投影收一点，避免糊成一团蓝 */
.option-slider,
.subtab-slider {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(70, 120, 200, 0.12),
    0 4px 12px -6px rgba(70, 120, 200, 0.38);
}

/* 5) 选项文字：选中的那一项再重半档，未选中的保持可读（不要灰到看不见） */
.option-chip {
  transition: color 0.24s var(--ease-press), transform 0.2s var(--ease-spring);
}

.option-chip.selected {
  font-weight: 700;
}

.option-price {
  letter-spacing: 0.01em;
}

/* 6) 底部小票栏：抬高一点不透明度 —— 下面压着表单时，
      原来 0.18 的白会透出花花的表单文字，金额读起来费劲 */
.bottom-bar.invoice {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.72);
  border-right-color: rgba(148, 166, 194, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 -12px 40px -12px rgba(23, 37, 56, 0.28);
}

.bottom-bar.invoice .price-value {
  letter-spacing: -0.01em;
}

/* 7) 主按钮：渐变略压深（更像「墨蓝」而不是塑料蓝），
      上沿高光改窄、外发光收小，按下时不再整块发亮 */
.submit-btn {
  background: linear-gradient(160deg, #6f95c8 0%, #4b6da9 55%, #43639c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(23, 37, 56, 0.12),
    0 8px 22px -10px rgba(74, 108, 168, 0.55);
}

.submit-btn:active {
  transform: scale(0.97);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 4px 12px -6px rgba(74, 108, 168, 0.45);
}

/* 8) 步进器：圆形按钮补一圈底，点按不再「悬空」 */
.stepper-btn {
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(23, 37, 56, 0.05);
}

.stepper-btn:active {
  transform: scale(0.92);
}

/* 9) 页头：标题字距从 1px 收到 0.02em（18px 的中文 1px 太散）；
      返回按钮补一层白底 + 细边，浅色背景上不再「只有一个箭头」。 */
.page-title {
  letter-spacing: 0.02em;
}

.back-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.78);
  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.85),
    0 4px 10px -6px rgba(23, 37, 56, 0.3);
  transition: transform 0.16s var(--ease-press), background 0.2s var(--ease-press);
}

.back-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.66);
}

/* ============================================================
   v=hd · 打印页：纸张大小参考表 + 证件照排版裁切
   ============================================================ */

/* 纸张类型标题行：左边名称、右边「参考表」小按钮 */
/* v=hi：纸张大小参考表按钮移到页面顶端（页面级工具，四个子 tab 都能点） */
.paper-ref-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0 4px 4px;
}

.paper-ref-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-right-color: rgba(148, 166, 194, 0.26);
  border-bottom-color: rgba(148, 166, 194, 0.26);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease-press), background 0.2s var(--ease-press);
}

.paper-ref-btn svg {
  width: 14px;
  height: 14px;
}

.paper-ref-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.62);
}

/* 证件照：裁切说明（六寸相纸出片数量） */
.idcut-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== 参考表弹窗 ===== */
.ui-dialog.paper-ref-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  max-height: min(86vh, 760px);
  padding: 0;
  overflow: hidden;
}

.pr-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
}

.pr-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.pr-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;
}

.pr-close svg {
  width: 15px;
  height: 15px;
}

.pr-close:active {
  transform: scale(0.94);
}

.pr-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px 20px;
}

.pr-sec + .pr-sec {
  margin-top: 18px;
}

.pr-sec-title {
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.pr-diagram {
  padding: 8px 8px 2px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pr-diagram svg {
  display: block;
}

.pr-hint {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.pr-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.4);
}

.pr-tr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.pr-tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.42);
}

.pr-tr.is-head {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
}

.pr-tr > span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 各类证件要求：证件名前的寸数标签（v=hh） */
.pr-size {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
  background: rgba(91, 127, 184, 0.12);
  white-space: nowrap;
}

.pr-material {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-line;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.pr-material.is-empty {
  color: var(--ink-3);
}


/* ============================================================
   v=hw · 上传区「微信文件怎么传」引导
   ------------------------------------------------------------
   安卓能直接从聊天记录保存到手机；iPhone 要走「用其他应用打开 → 存储到文件」，
   路径长得多，很多人卡在这一步不知道怎么办。
   ============================================================ */
.upload-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(91, 127, 184, 0.06);
  border: 1px solid rgba(91, 127, 184, 0.16);
}

.upload-hint-text {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

.upload-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.upload-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(91, 127, 184, 0.3);
  background: rgba(91, 127, 184, 0.08);
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.upload-hint-btn:active {
  transform: scale(0.97);
}

.upload-hint-btn.is-primary {
  border-color: rgba(91, 127, 184, 0.42);
  background: rgba(91, 127, 184, 0.15);
}

/* ============================================================
   v=hx · 安卓 / iPhone 传图指引弹窗
   ------------------------------------------------------------
   截图来自项目「上传引导」文件夹，压缩到 720 宽放在 /img/upload-guide/。
   对话框沿用 .ui-dialog 的液态玻璃底，只改尺寸与内部排版。
   ============================================================ */
.upload-hint-link {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.upload-hint-link:active {
  opacity: 0.7;
}

.ui-dialog.guide-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
}

.gd-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
}

.gd-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.gd-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;
}

.gd-close svg {
  width: 15px;
  height: 15px;
}

.gd-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 20px;
}

.gd-sec {
  margin-top: 6px;
}

.gd-sec + .gd-sec {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(145, 168, 198, 0.3);
}

.gd-sec-title {
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

.gd-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 14px rgba(22, 26, 32, 0.06);
}

/* ============================================================
   v=hy · 上传引导放大（按钮 / 加微信 / 弹窗标题）
   ------------------------------------------------------------
   之前按钮 12.5px、加微信只是一行小字，在手机上几乎看不出来。
   这层覆盖把它做成「一眼能看到」的尺寸：按钮 44px 高、字号 14，
   弹窗里的分组标题改成整行色条，17px 白字。
   ============================================================ */
.upload-hint-text {
  font-size: 12.5px;
  color: var(--ink-2);
}

.upload-hint-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.upload-hint-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(91, 127, 184, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(226, 236, 249, 0.7));
  color: #3d5c8c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -6px rgba(79, 114, 168, 0.4);
}

.upload-hint-btn:active {
  transform: scale(0.97);
}

/* 「传不上来」从一行小字改成整行虚线按钮 */
.upload-hint-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px dashed rgba(91, 127, 184, 0.45);
  background: rgba(255, 255, 255, 0.55);
  color: #46638f;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.upload-hint-link:active {
  opacity: 0.75;
}

/* 弹窗主标题 */
.gd-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* 分组标题：整行色条，占满宽度 */
.gd-sec-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 2px 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6d8fc4, #4f72a8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px -8px rgba(79, 114, 168, 0.55);
}

.gd-sec + .gd-sec {
  margin-top: 26px;
  padding-top: 22px;
}

/* 窄屏（320 这类小机）按钮文字放不下，改成上下两行，不要断字 */
.upload-hint-btn,
.upload-hint-link {
  white-space: nowrap;
}

@media (max-width: 359px) {
  .upload-hint-actions {
    flex-wrap: wrap;
  }

  .upload-hint-btn {
    flex: 1 1 100%;
  }
}

/* v=hz：按钮只剩平台名，字号放大；两个字在 320 宽并排也放得下 */
.upload-hint-btn {
  font-size: 16px;
  letter-spacing: 0.5px;
}

@media (max-width: 359px) {
  .upload-hint-actions {
    flex-wrap: nowrap;
  }

  .upload-hint-btn {
    flex: 1 1 0;
  }
}

/* v=ib：取件方式被店主全部关闭时的占位提示。
   原来这一栏会是纯空白（option-row 只剩内边距），顾客以为页面坏了。 */
.option-empty-tip {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(145, 168, 198, 0.5);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* v=id：加急/跑腿区里独占一行的说明（提示原因，不只是一个空白） */
.option-row--multi .option-empty-tip {
  flex: 0 0 100%;
  margin-top: 8px;
}

/* ============================================================
   v=ix · 上传指引移到「选择文件」上方
   ------------------------------------------------------------
   原来它在文件列表下面：顾客先点开选择器、什么也找不到，才回头看见这里。
   现在先看方法再动手。间距方向跟着反过来（上 8 / 下 12），
   文案从「说明」变成「要求」，字重提一档，别被当成小字忽略。
   ============================================================ */
.upload-hint {
  margin-top: 8px;
  margin-bottom: 12px;
}

.upload-hint-text {
  font-weight: 600;
  color: var(--ink-2);
}

/* ============================================================
   v=iw · 选项条横滑提示
   ------------------------------------------------------------
   纸张类型可以加到十几种，一屏放不下就变成横向滑动 —— 但滑动这件事
   本身没有任何视觉线索，顾客以为只有前面三四种。所以溢出时在下面
   补一行「左右滑动，还有更多纸张类型」，滑到底自动收起。
   显隐由 ui.js 的 fitOptionRow 控制（.is-on），这里只负责长相。
   ============================================================ */
.option-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: var(--ink-3);
  transition: max-height 0.24s var(--ease-spring), opacity 0.2s ease, margin-top 0.24s var(--ease-spring);
}

.option-scroll-hint.is-on {
  max-height: 28px;
  margin-top: 4px;
  opacity: 1;
}

.option-scroll-hint svg {
  flex: none;
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

/* 图标每隔一会儿左右动一下，比静止的箭头更像「可以划」 */
@media (prefers-reduced-motion: no-preference) {
  .option-scroll-hint.is-on svg {
    animation: hintSwipe 2.6s ease-in-out infinite;
  }
}

@keyframes hintSwipe {
  0%, 62%, 100% { transform: translateX(0); }
  72% { transform: translateX(-2px); }
  82% { transform: translateX(2px); }
}

/* ============================================================
   v=ju · 证件照「查看上传图片示例」
   ------------------------------------------------------------
   证件照是唯一需要顾客自己拍的服务，拍歪了要重来一轮。
   上传区上方给一个大按钮（不是小字链），点开是带标注的构图示意图。
   ============================================================ */
.idphoto-guide-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(91, 127, 184, 0.26);
  background: linear-gradient(135deg, rgba(233, 242, 253, 0.96), rgba(216, 231, 247, 0.92));
  box-shadow: 0 6px 18px -12px rgba(35, 57, 90, 0.5);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.14s var(--ease-press), box-shadow 0.18s ease;
}

.idphoto-guide-btn:active {
  transform: scale(0.985);
  box-shadow: 0 3px 10px -8px rgba(35, 57, 90, 0.5);
}

.ipg-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #7d9dc4, #41648f);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ipg-ico svg {
  width: 21px;
  height: 21px;
}

.ipg-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ipg-text b {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.ipg-text em {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.ipg-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  color: rgba(65, 100, 143, 0.55);
}

/* ===== 弹窗 ===== */
.ui-dialog.idphoto-dialog {
  max-width: 420px;
}

.ipg-art-wrap {
  padding: 2px 0 4px;
  text-align: center;
}

.ipg-art {
  display: inline-block;
  width: 100%;
  max-width: 250px;
  height: auto;
}

.ipg-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ipg-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink-2);
}

.ipg-list li span {
  min-width: 0;
}

.ipg-list li b {
  font-weight: 700;
  color: var(--ink);
}

.ipg-n {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ipg-n.is-light { background: #e0a94a; }
.ipg-n.is-top { background: #41648f; }
.ipg-n.is-cut { background: #c0564c; }

.ipg-tip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(91, 127, 184, 0.08);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

@media (max-width: 359px) {
  .ipg-art {
    max-width: 218px;
  }
}

/* ============================================================
   v=jy · 「必选」小标签（证件照排版裁切尺寸）
   ------------------------------------------------------------
   跟 field-label 同一行，字号比正文小一档；选好之后 JS 会把它
   换成 is-ok（蓝调），顾客一眼能看出这项已经填了。
   ============================================================ */
.field-req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(192, 86, 76, 0.1);
  color: #c0564c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.field-req.is-ok {
  background: rgba(65, 100, 143, 0.1);
  color: #41648f;
}

/* v=jy：证件照示意图重画后变高（340×470），宽度放到 290 才看得清标注；
   第 4 条「手机与面部平行」用自己的颜色区分 */
.ipg-n.is-flat {
  background: #7a6ba8;
}

.ipg-art {
  max-width: 290px;
}

@media (max-width: 359px) {
  .ipg-art {
    max-width: 244px;
  }
}

/* ============================================================
   v=ko · 文档打印「我不需要上传文件」
   ------------------------------------------------------------
   放在上传区下面，虚线次要按钮；点了变实心橙色并显示「已选」。
   ============================================================ */
.no-file-btn {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed rgba(148, 166, 194, 0.45);
  background: rgba(255, 255, 255, 0.42);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.no-file-btn:active {
  transform: scale(0.995);
}

.nf-ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(148, 166, 194, 0.16);
  color: var(--ink-3);
}

.nf-ico svg {
  width: 18px;
  height: 18px;
}

.nf-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nf-text b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.nf-text em {
  font-size: 11.5px;
  font-style: normal;
  color: var(--ink-3);
  line-height: 1.5;
}

/* 「已选」小旗标：默认不占位 */
.nf-flag {
  flex: none;
  display: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e08a3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.no-file-btn.is-on {
  border-style: solid;
  border-color: rgba(224, 138, 60, 0.55);
  background: rgba(224, 138, 60, 0.1);
}

.no-file-btn.is-on .nf-ico {
  background: rgba(224, 138, 60, 0.18);
  color: #b5651d;
}

.no-file-btn.is-on .nf-text b {
  color: #b5651d;
}

.no-file-btn.is-on .nf-flag {
  display: inline-flex;
}

/* v=kq：不上传文件的估算提示（价格明细下面一行） */
.price-nofile-note {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(224, 138, 60, 0.1);
  border: 1px solid rgba(224, 138, 60, 0.22);
  color: #a85c1a;
  font-size: 11.5px;
  line-height: 1.65;
}

/* ============================================================
   v=kv · 公告外观（字号 / 正文色 / 强调色）
   ------------------------------------------------------------
   字号和正文色由后台配置，直接写在 .notice-bar 的 style 上；
   强调色走 --notice-accent 变量，[方括号] 里的文字用它。
   ============================================================ */
.notice-bar .nt-em,
.notice-text .nt-em {
  color: var(--notice-accent, var(--accent));
  font-weight: 700;
}

/* v=kv：正文颜色由后台配在 .notice-bar 上，文字在子元素里，必须继承下来 */
.notice-bar .notice-text {
  color: inherit;
}

/* ============================================================
   v=lb · 上传图片的缩略图 + 大图预览
   ============================================================ */
.file-item-thumb {
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
}

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

.file-item-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.img-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.img-preview-mask.on {
  display: flex;
}

.img-preview-mask img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.img-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.img-preview-close:hover {
  background: rgba(255, 255, 255, 0.32);
}
