:root {
  --brand: #ff5a2c;
  --brand-2: #ff8a3d;
  --brand-soft: #fff1eb;
  --ink: #1a1a1a;
  --ink-2: #5c5c5c;
  --ink-3: #9a9a9a;
  --line: #efefef;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ok: #12b886;
  --tab-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --radius: 14px;
  --shadow: 0 2px 12px rgba(20, 20, 40, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  /* 优先使用各平台更精致的中文字体，最后才回退微软雅黑 */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Source Han Sans CN", "Noto Sans CJK SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body { overscroll-behavior-y: contain; }

img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  /* 给悬浮胶囊导航留出空间：导航高 62 + 底边距 14 + 安全区 + 呼吸余量 */
  padding-bottom: calc(62px + 14px + var(--safe-b) + 56px);
  overflow-x: hidden;
}

/* ---------------- 顶部状态栏（可选） ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;
}
.topbar h1 { font-size: 15px; margin: 0; font-weight: 700; flex: 1; }
.topbar .mode-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}

/* ---------------- 顶部图片轮播（纯展示） ---------------- */
.hero { padding: 12px 14px 4px; }
.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 31, 36, 0.12);
  touch-action: pan-y;
  /* 不可点击：明确关掉交互提示 */
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.slides { display: flex; transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1); }
.slide {
  flex: 0 0 100%;
  /* 大轮播：16:9，手机宽度下高度约 220px，既大气又不会太占屏 */
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* 可点击的轮播（后台配了跳转链接时） */
.slide.slide-link {
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.slide.slide-link:active { opacity: 0.92; }
/* 有跳转链接时，右下角显示一个小箭头提示「可以点」 */
.slide.slide-link::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>") center / 14px 14px no-repeat;
  pointer-events: none;
  z-index: 2;
}
/* 有图片时铺满（保留统一比例，避免每张高度不一导致跳动） */
.slide.has-image { background-color: #eef0f3; }
.slide.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* 无图片时用渐变 + 文字兜底 */
.slide.fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  color: #fff;
}
.slide.fallback::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.slide .stitle { font-size: 23px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.28; position: relative; z-index: 1; }
.slide .ssub { margin-top: 8px; font-size: 12.5px; opacity: 0.92; position: relative; z-index: 1; }
.theme-sunset { background: linear-gradient(135deg, #ff6a3d 0%, #ff2d68 100%); }
.theme-ocean { background: linear-gradient(135deg, #2f7bff 0%, #00c2ff 100%); }
.theme-violet { background: linear-gradient(135deg, #7a5cff 0%, #c86bfa 100%); }
.theme-mint { background: linear-gradient(135deg, #12b886 0%, #63e6be 100%); }
.theme-dark { background: linear-gradient(135deg, #23262f 0%, #4a4f60 100%); }

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.3s, background 0.3s;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);
}
.dots i.on { width: 16px; background: #fff; }

/* =========================================================
 * 开屏公告弹窗
 * ========================================================= */
.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 20, 28, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: popupFade 0.28s ease;
  overflow-y: auto;
}
.popup-mask[hidden] { display: none; }
@keyframes popupFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupIn 0.34s cubic-bezier(0.22, 1.2, 0.4, 1);
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 19px;
  line-height: 28px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.15s, background 0.2s;
}
.popup-close:active { transform: scale(0.88); background: rgba(0, 0, 0, 0.5); }
.popup-close[hidden] { display: none; }

.popup-banner {
  flex: 0 0 auto;
  background: #f5f6f8;
}
.popup-banner img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.popup-head {
  flex: 0 0 auto;
  padding: 18px 20px 0;
}
.popup-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
}

.popup-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 22px 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
}
.popup-body p { margin: 0 0 8px; }
.popup-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  display: block;
  margin: 8px auto;
}
.popup-body ul, .popup-body ol { margin: 6px 0; padding-left: 20px; }
.popup-body li { margin-bottom: 4px; }
.popup-body h1, .popup-body h2, .popup-body h3 { margin: 10px 0 6px; line-height: 1.4; }
.popup-body a { color: var(--brand); text-decoration: underline; }
.popup-body blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--brand);
  background: #fff8f4;
  border-radius: 0 6px 6px 0;
  color: var(--ink-2);
}
.popup-body hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

.popup-foot {
  flex: 0 0 auto;
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}
.popup-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.32);
  transition: transform 0.15s, opacity 0.2s;
}
.popup-btn:active { transform: scale(0.97); opacity: 0.92; }

/* 强制阅读模式下去掉关闭按钮，遮罩不可点 */

/* ---------------- 公告：横向跑马灯滚动 ---------------- */
.notice {
  margin: 10px 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbea;
  border: 1px solid #ffe8a3;
  color: #8a6100;
  border-radius: 999px;
  padding: 0 12px;
  height: 34px;
  font-size: 12px;
  overflow: hidden;
}
.notice-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: #e8a000;
}
.notice-icon svg { width: 15px; height: 15px; }
.notice-viewport {
  flex: 1;
  overflow: hidden;
  height: 34px;
  position: relative;
  /* 两端淡出，像 LED 屏 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.notice-track {
  display: inline-flex;
  align-items: center;
  height: 34px;
  white-space: nowrap;
  will-change: transform;
  /* 用固定时长声明，JS 通过 animation-duration 覆盖 */
  animation-name: noticeMarquee;
  animation-duration: 22s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.notice-track.paused { animation-play-state: paused; }
.notice-track .notice-seg {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 40px;
}
.notice-track .notice-seg::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e8a000;
  margin-left: 40px;
  opacity: .55;
}
@keyframes noticeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .notice-track { animation: none; }
}

/* ---------------- 金刚区：一行最多 5 个，自动换行 ---------------- */
.kingkong {
  margin: 12px 14px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 4px 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 0;
}
.kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  transition: transform 0.16s;
}
.kk-item:active { transform: scale(0.9); }
.kk-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 0 0 46px;
}
.kk-icon svg { width: 24px; height: 24px; }
.kk-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kk-name {
  font-size: 11.5px;
  color: var(--ink-2);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 弹窗客服里用的方块图标 */
.square-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* =========================================================
 * 客服中心：全屏页面（从右侧推入）
 * ========================================================= */
/* 屏幕中央弹窗：通用容器 */
.center-dialog {
  width: calc(100% - 48px);
  max-width: 380px;
  max-height: 82vh;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.2s ease;
}
.show > .center-dialog {
  transform: scale(1);
  opacity: 1;
}
.center-dialog-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f2f4f7;
}
.center-dialog-head h2 {
  flex: 1;
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}
.center-dialog-close {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
  background: #f4f5f7;
  transition: background 0.15s, color 0.15s;
}
.center-dialog-close:active {
  background: #e8ebf0;
  color: var(--ink);
}
.center-dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

/* 客服中心：屏幕中央弹窗 */
.kefu-page {
  position: fixed;
  inset: 0;
  z-index: 345;   /* 必须高于打手端(200)，否则打手端点「联系客服」会被盖住 */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.kefu-page.show { display: flex; }

.kefu-page .center-dialog-head.kefu-head {
  background: linear-gradient(135deg, #2b2b3d 0%, #43435c 100%);
  color: #fff;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 16px;
}
/* 俱乐部图标（后台可设置，显示在客服弹窗标题左侧） */
.kefu-club-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  margin-right: 10px;
}
.kefu-club-logo img { width: 100%; height: 100%; object-fit: cover; }
.kefu-club-logo[hidden] { display: none; }
.kefu-title { flex: 1; min-width: 0; }
.kefu-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.kefu-title p {
  margin: 3px 0 0;
  font-size: 11.5px;
  opacity: 0.68;
}
.kefu-page .center-dialog-close {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.kefu-page .center-dialog-close:active {
  background: rgba(255, 255, 255, 0.3);
}

.kefu-body {
  padding: 14px;
  max-height: 46vh;
}

.kefu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
  box-shadow: 0 1px 8px rgba(20, 20, 40, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid #eef0f3;
}
.kefu-card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 4px rgba(20, 20, 40, 0.08);
}
/* 只展示信息的客服卡（电话 / 微信号），不可点 */
.kefu-card.kefu-plain {
  cursor: default;
}
.kefu-card.kefu-plain:active {
  transform: none;
  box-shadow: 0 1px 8px rgba(20, 20, 40, 0.05);
}
.kefu-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #ff5a2c, #ff8a3d);
}
.kefu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kefu-info { flex: 1; min-width: 0; }
.kefu-info .kn {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kefu-info .kt {
  font-size: 11px;
  font-weight: 600;
  color: #12b886;
  background: #e6fcf5;
  padding: 1px 6px;
  border-radius: 999px;
}
.kefu-info .kd {
  font-size: 11.5px;
  color: #9a9a9a;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kefu-go {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #ff5a2c;
  font-weight: 700;
}
.kefu-go svg { width: 14px; height: 14px; }

.kefu-empty {
  text-align: center;
  padding: 70px 20px;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.8;
}

.kefu-foot {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid #eef0f3;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.kefu-foot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #5c5c5c;
  padding: 5px 0;
}
.kefu-foot-row svg { width: 15px; height: 15px; color: #9a9a9a; flex: 0 0 15px; }
.kefu-foot-row span { color: #9a9a9a; flex: 0 0 auto; }
.kefu-foot-row a { color: #ff5a2c; font-weight: 700; text-decoration: none; margin-left: auto; }
.kefu-foot-row em { font-style: normal; margin-left: auto; }

/* 客服面板右上角角标 */
.square-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 14px; background: #fafbfc;
  border: 1px solid var(--line);
}
.sq-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.5;
}
.square-item .sq {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.square-item .sq svg { width: 24px; height: 24px; }
.square-item span { font-size: 12.5px; color: var(--ink-2); }

/* ---------------- 区块标题 ---------------- */
.section { padding: 18px 14px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 17px; margin: 0; font-weight: 800; letter-spacing: 0.3px; }
.section-head .more { font-size: 12px; color: var(--ink-3); }

/* ---------------- 首页分类筛选（左上角下拉） ---------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cat-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.06);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.cat-picker svg { width: 15px; height: 15px; color: var(--ink-3); transition: transform 0.2s; }
.cat-picker.open svg { transform: rotate(180deg); }
.cat-picker.open { color: var(--brand); }
.filter-count { font-size: 12px; color: var(--ink-3); margin-left: auto; }

/* 分类面板：展开后多列排布，与卡片两列对齐 */
.cat-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(20, 20, 40, 0.08);
  animation: catPanelIn 0.18s ease;
}
@keyframes catPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cat-panel button {
  height: 36px;
  border-radius: 9px;
  background: #f6f7f9;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.15s;
}
.cat-panel button.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 90, 44, 0.3);
}

/* ---------------- 首页分类分块 ---------------- */
.home-block {
  margin-bottom: 22px;
}
.home-block:last-child {
  margin-bottom: 0;
}
.home-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
/* 分类标题：左侧橙色竖条 + 粗体 */
.home-block-title {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 16.5px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.3px;
}
.home-block-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.home-block-count {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-left: auto;
}

/* ---------------- 商品卡片 ---------------- */
.goods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods.one-col { grid-template-columns: 1fr; }

.card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.15s;
}
.card:active { transform: scale(0.985); }
.card .thumb {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.card .thumb svg { width: 46%; height: 46%; color: rgba(255, 255, 255, 0.95); }
.card .thumb .tag {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(4px);
  padding: 2px 7px; border-radius: 6px;
}
/* 标题左侧的黑色竖条（参照图样式） */
.card .t {
  font-size: 14px; font-weight: 800; line-height: 1.4;
  color: #111; position: relative; padding-left: 9px;
}
.card .t::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 3px; height: 14px;
  background: #111; border-radius: 2px;
}
.thumb-card   { background: linear-gradient(135deg, #ff8a3d, #ff4d6d); }
.thumb-dumbbell { background: linear-gradient(135deg, #3d7bff, #66d1ff); }
.thumb-class  { background: linear-gradient(135deg, #7a5cff, #c08bfa); }
.thumb-towel  { background: linear-gradient(135deg, #12b886, #7be6c4); }
.thumb-cup    { background: linear-gradient(135deg, #f08c00, #ffd43b); }
.thumb-star   { background: linear-gradient(135deg, #00b4d8, #2e6bff); }
.thumb-gamepad { background: linear-gradient(135deg, #6a5cff, #b06bfa); }
.thumb-sword  { background: linear-gradient(135deg, #ff6a3d, #ff2d68); }
.thumb-headset { background: linear-gradient(135deg, #2f7bff, #00c2ff); }
.thumb-gift   { background: linear-gradient(135deg, #ffb703, #fb8500); }
.thumb-room   { background: linear-gradient(135deg, #12b886, #63e6be); }
.thumb-shield { background: linear-gradient(135deg, #12b886, #63e6be); }

.card .body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .t { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.card .s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 4px; }
.price { color: var(--brand); font-weight: 800; font-size: 17px; }
.price small { font-size: 11px; font-weight: 700; }
.origin { font-size: 11px; color: var(--ink-3); text-decoration: line-through; }
.sales { font-size: 11px; color: var(--ink-3); margin-left: auto; }

/* ---------------- 分类页 ---------------- */
/* 分类页：顶部有游戏头像 + 搜索框，改成纵向 flex 布局 */
.cat-wrap { display: flex; height: calc(100vh - var(--tab-h) - var(--safe-b) - 48px); }
#page-category.on { display: flex; flex-direction: column; }
#page-category .cat-game-head,
#page-category .cat-search-wrap { flex: 0 0 auto; }
#page-category .cat-wrap { flex: 1 1 auto; height: auto; min-height: 0; }
.cat-side {
  width: 92px; flex: 0 0 92px; background: #eef0f3; overflow-y: auto; padding-bottom: 20px;
}
.cat-side button {
  width: 100%; padding: 15px 6px; font-size: 13px; color: var(--ink-2);
  position: relative; text-align: center;
}
.cat-side button.on { background: #fff; color: var(--ink); font-weight: 700; }
.cat-side button.on::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--brand); border-radius: 0 3px 3px 0;
}
.cat-main { flex: 1; overflow-y: auto; padding: 12px; }
.cat-main .goods { grid-template-columns: 1fr; }

/* =========================================================
 * 首页：游戏选择横条
 * 长方形按钮；选中蓝色、未选中白色；只有 1 个游戏时恒蓝
 * ========================================================= */
.game-bar {
  display: flex;
  gap: 10px;
  padding: 12px 14px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.game-bar::-webkit-scrollbar { display: none; }
.game-bar.single { justify-content: flex-start; }

.game-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 12px;
  border: 1.5px solid #e8ebf0;
  background: #fff;
  color: #4a4f57;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(20, 30, 60, 0.04);
}
.game-chip:active { transform: scale(0.97); }

/* 图标 */
.gb-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef1f6;
}
.gb-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-icon-ph {
  font-size: 13px;
  font-weight: 800;
  color: #9aa2ad;
  line-height: 1;
}

/* 选中：蓝色 */
.game-chip.on {
  background: #2f7bff;
  border-color: #2f7bff;
  color: #fff;
  box-shadow: 0 3px 10px rgba(47, 123, 255, 0.3);
}
.game-chip.on .gb-icon { background: rgba(255, 255, 255, 0.22); }
.game-chip.on .gb-icon-ph { color: #fff; }

/* 没建游戏时的白色占位块（保持页面结构，不空着） */
.game-chip.game-chip-ph {
  background: #fff;
  border-color: #e8ebf0;
  color: #b8c0cc;
  cursor: default;
}
.game-chip.game-chip-ph:active { transform: none; }
.gb-icon-ph-box {
  background: #f4f6f9;
  color: #c8d0dc;
}
.gb-icon-ph-box svg { width: 16px; height: 16px; }

/* =========================================================
 * 分类页：顶部游戏头像 + 名称胶囊
 * ========================================================= */
.cat-game-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 14px 12px;
}
.cgh-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef1f6;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 12px rgba(20, 30, 60, 0.12);
}
.cgh-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cgh-avatar span {
  font-size: 26px;
  font-weight: 800;
  color: #9aa2ad;
}
.cgh-name {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 14px;
  background: #2f7bff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(47, 123, 255, 0.28);
}

/* =========================================================
 * 分类页：搜索框
 * ========================================================= */
.cat-search-wrap { padding: 4px 14px 12px; }
.cat-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: #f2f4f7;
  border: 1px solid #eef0f3;
}
.cat-search > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #9aa2ad;
}
.cat-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
}
.cat-search input::placeholder { color: #a8b0ba; }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search-clear {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: #c8ced8;
  color: #fff;
  display: grid;
  place-items: center;
}
.cat-search-clear svg { width: 11px; height: 11px; }

/* =========================================================
 * 分类页：横排商品卡（左小图 + 右名称/销量/价格）
 * ========================================================= */
.cat-card {
  display: flex;
  gap: 11px;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 12px;
  text-align: left;
  border: 1px solid #f0f2f5;
  box-shadow: 0 1px 4px rgba(20, 30, 60, 0.04);
  transition: transform 0.14s, box-shadow 0.14s;
}
.cat-card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 8px rgba(20, 30, 60, 0.08);
}

/* 左边小图 */
.cc-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2f8, #e4eaf3);
}
.cc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-thumb svg {
  width: 34px;
  height: 34px;
  color: #b8c2d0;
}

/* 右边信息：名称 / 销量 / 价格 */
.cc-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  padding: 1px 0;
}
.cc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cc-sales {
  font-size: 11.5px;
  color: #9aa2ad;
  line-height: 1.3;
}
.cc-price {
  font-size: 17px;
  font-weight: 800;
  color: #ff3b30;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.cc-price small {
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 1px;
}

/* ---------------- 消息页 ---------------- */
.msg-item {
  display: flex; gap: 11px; padding: 14px;
  background: var(--card); border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.msg-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  margin-top: 6px; flex: 0 0 8px;
}
.msg-dot.read { background: transparent; }
.msg-body { flex: 1; min-width: 0; }
.msg-body .mt { font-size: 13.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.msg-body .mt span { font-size: 11px; color: var(--ink-3); font-weight: 400; flex: 0 0 auto; }
.msg-body .mc { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.5; }

/* ---------------- 我的 ---------------- */
.profile-card {
  margin: 12px 14px 0;
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #2b2b3d 0%, #4a4a6a 100%);
  position: relative; overflow: hidden;
}
.profile-card::after {
  content: ""; position: absolute; right: -30px; bottom: -50px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.07);
}
.profile-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 20px; font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.profile-top .info { flex: 1; }
.profile-top .info h3 { margin: 0 0 4px; font-size: 17px; }
.profile-top .info p { margin: 0; font-size: 11.5px; opacity: 0.7; }
.role-chip {
  display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2);
}
.role-chip.owner { background: #ffcf5c; color: #5a3c00; }
.role-chip.staff { background: #63e6be; color: #064a35; }
.role-chip.member { background: rgba(255, 255, 255, 0.22); }

.stat-row { display: flex; margin-top: 18px; position: relative; z-index: 1; }
.stat-row > div { flex: 1; text-align: center; }
.stat-row b { display: block; font-size: 18px; font-weight: 800; }
.stat-row span { font-size: 11px; opacity: 0.68; }

/* 角色切换分段控件 */
.seg {
  margin: 12px 14px 0; padding: 4px; border-radius: 12px;
  background: #e9ebef; display: flex; gap: 4px;
}
.seg button {
  flex: 1; padding: 8px 0; border-radius: 9px; font-size: 12.5px;
  color: var(--ink-2); font-weight: 600; transition: 0.2s;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

/* 列表组件 */
.cell-group { background: var(--card); border-radius: var(--radius); margin: 12px 14px 0; overflow: hidden; box-shadow: var(--shadow); }
.cell {
  display: flex; align-items: center; gap: 12px; padding: 15px 14px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.cell:last-child { border-bottom: 0; }
.cell:active { background: #fafafa; }
.cell .ci { width: 22px; height: 22px; color: var(--ink-2); flex: 0 0 22px; }
.cell .ct { flex: 1; }
.cell .cv { color: var(--ink-3); font-size: 12.5px; }
.cell .arrow { color: #c9c9c9; font-size: 16px; }

/* 入驻成功后右侧的「切换」按钮（老板端 ⇄ 打手端） */
.role-switch-btn {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 6px 15px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #4a7bf7, #6a5cf0);
  box-shadow: 0 3px 10px rgba(74, 123, 247, 0.32);
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  white-space: nowrap;
}
.role-switch-btn:active {
  opacity: 0.85;
  transform: scale(0.96);
}
.role-switch-btn[hidden] { display: none; }

/* 按钮 */
.btn {
  display: block; width: 100%; padding: 13px; border-radius: 12px;
  font-size: 15px; font-weight: 700; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.28);
}
.btn:active { opacity: 0.88; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.dark { background: #2b2b3d; box-shadow: 0 6px 16px rgba(43, 43, 61, 0.24); }
.btn[disabled] { opacity: 0.45; box-shadow: none; }

/* =========================================================
 * 底部导航：整条胶囊悬浮，选中项变圆气泡
 * ========================================================= */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 90;
  width: calc(100% - 32px);
  max-width: 448px;
  height: 62px;
  padding: 6px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-radius: 999px;
  border: 1px solid rgba(232, 235, 240, 0.9);
  box-shadow:
    0 10px 30px rgba(28, 31, 36, 0.13),
    0 2px 8px rgba(28, 31, 36, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 滑动的圆气泡背景 */
.tab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 54px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.42);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.5, 1), width 0.32s cubic-bezier(0.34, 1.4, 0.5, 1);
  pointer-events: none;
}

.tabbar button {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8e96a3;
  font-size: 10.5px;      /* 文字常驻显示，不再只在选中时出现 */
  border-radius: 999px;
  transition: color 0.28s ease, transform 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}
.tabbar button svg {
  width: 22px;
  height: 22px;
  transition: transform 0.36s cubic-bezier(0.34, 1.5, 0.5, 1);
}
.tabbar button span {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: opacity 0.24s ease;
}

/* 选中态：文字常驻，只变白 + 图标轻微上移 */
.tabbar button.on {
  color: #fff;
}
.tabbar button.on svg { transform: translateY(-1px) scale(0.92); }

/* 点击波纹反馈 */
.tabbar button::after {
  content: "";
  position: absolute;
  inset: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 90, 44, 0.16);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.tabbar button.pressed::after {
  opacity: 1;
  transform: scale(1);
  transition: 0s;
}
.tabbar button:active { transform: scale(0.9); }

.tabbar .badge {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: 6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff2d55;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 45, 85, 0.4);
}

/* ---------------- 弹层 ---------------- */
.mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.45);
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
/* 评价/财富权益弹层：会从订单列表(220)、订单详情(230)上弹出，必须高于它们，否则被盖住点不到 */
#mask {
  z-index: 250;
}
.mask.show { display: flex; }
.mask.center { align-items: center; padding: 24px; }
.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(20px + var(--safe-b));
  max-height: 86vh; overflow-y: auto;
  animation: slideUp 0.26s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.dialog {
  width: 100%; max-width: 340px; background: #fff; border-radius: 18px;
  padding: 20px; animation: pop 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------------- 屏幕中央确认框（替代浏览器原生 confirm） ---------------- */
.cfm-mask { z-index: 400; }
.cfm-box {
  max-width: 320px; padding: 26px 22px 18px; text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.cfm-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.cfm-icon svg { width: 26px; height: 26px; }
.cfm-icon.danger { background: #fff1f0; color: #e5484d; }
.cfm-title { font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.cfm-text {
  font-size: 13px; color: var(--ink-3); line-height: 1.65;
  margin-top: 9px; padding: 0 2px;
}
.cfm-actions { display: flex; gap: 10px; margin-top: 22px; }
.cfm-btn {
  flex: 1; padding: 12px 8px; border-radius: 12px; font-size: 14.5px;
  font-weight: 700; border: 0; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.cfm-btn:active { opacity: 0.82; transform: scale(0.98); }
.cfm-btn.ghost {
  background: #f4f5f7; color: var(--ink-2);
}
.cfm-btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 6px 16px rgba(255, 90, 44, 0.26);
}
.cfm-btn.primary.danger {
  background: linear-gradient(135deg, #ff5a5f, #e5484d);
  box-shadow: 0 6px 16px rgba(229, 72, 77, 0.28);
}

.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sheet-head h3 { margin: 0; font-size: 16px; flex: 1; }
.sheet-head .x { font-size: 22px; color: var(--ink-3); line-height: 1; padding: 0 4px; }
.sheet .goods-preview { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.sheet .goods-preview .pv-thumb {
  width: 78px; height: 78px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 78px;
}
.sheet .goods-preview .pv-thumb svg { width: 36px; height: 36px; color: #fff; }
.sheet .goods-preview .pv-info { flex: 1; min-width: 0; }
.sheet .goods-preview .pv-info .t { font-size: 14px; font-weight: 700; }
.sheet .goods-preview .pv-info .s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.sheet .goods-preview .pv-info .price { margin-top: 6px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fafbfc; outline: none; font-size: 14px;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.field textarea { resize: none; height: 72px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row button {
  padding: 8px 14px; border-radius: 999px; background: #f2f4f7;
  font-size: 12.5px; color: var(--ink-2); border: 1px solid transparent;
}
.chip-row button.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 700; }

.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content; }
.stepper button { width: 38px; height: 38px; font-size: 18px; color: var(--ink-2); background: #fafbfc; }
.stepper span { width: 44px; text-align: center; font-weight: 700; }

.total-row { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0; }

/* 订单卡片 */
.order-card {
  background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.order-card .oh { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-bottom: 10px; }
.order-card .oh b { color: var(--brand); }
.order-card .ob { display: flex; gap: 11px; }
.order-card .ot { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 54px; }
.order-card .ot svg { width: 26px; height: 26px; color: #fff; }
.order-card .od { flex: 1; min-width: 0; }
.order-card .od .t { font-size: 13.5px; font-weight: 700; }
.order-card .od .s { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.order-card .of { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.order-card .of button {
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-2);
}
.order-card .of button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }

/* 空态 */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty svg { width: 64px; height: 64px; opacity: 0.25; margin: 0 auto 12px; }
.empty p { margin: 0; font-size: 13px; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.78); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 13px; z-index: 999; opacity: 0; pointer-events: none; transition: 0.2s;
  max-width: 70vw; text-align: center; line-height: 1.5;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.page { display: none; }
.page.on { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================
 * 8 位用户 ID
 * ========================================================= */
.id-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  border: 0;
  vertical-align: middle;
}
.id-chip svg { width: 11px; height: 11px; opacity: 0.8; }
.id-chip b { letter-spacing: 1px; font-weight: 800; }
.id-chip:active { background: rgba(255, 255, 255, 0.3); }

/* =========================================================
 * 余额卡片
 * ========================================================= */
.wallet-card {
  margin: 12px 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8f2 0%, #ffece3 100%);
  border: 1px solid #ffd9c9;
  box-shadow: 0 3px 12px rgba(255, 90, 44, 0.08);
}
.wallet-left { flex: 1; min-width: 0; }
.wallet-label { font-size: 11.5px; color: #a1572a; font-weight: 600; }
.wallet-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 2px 0;
}
.wallet-amount::before { content: "¥"; font-size: 15px; font-weight: 700; margin-right: 2px; }
.wallet-tip { font-size: 10.5px; color: #b98a6a; }
.wallet-btn {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 90, 44, 0.32);
  transition: transform 0.15s;
}
.wallet-btn:active { transform: scale(0.94); }

/* =========================================================
 * 充值弹层
 * ========================================================= */
.recharge-sheet { max-height: 90vh; }
.recharge-current {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: #fff8f2;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #a1572a;
}
.recharge-current b { font-size: 20px; font-weight: 800; color: var(--brand); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tier-item {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 6px 11px;
  background: #fff;
  text-align: center;
  transition: all 0.18s;
  overflow: hidden;
}
.tier-item:active { transform: scale(0.96); }
.tier-item.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 3px 12px rgba(255, 90, 44, 0.16);
}
.tier-item .ti-amount { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.tier-item .ti-amount small { font-size: 12px; font-weight: 700; }
.tier-item .ti-bonus { font-size: 10.5px; color: var(--brand); font-weight: 700; margin-top: 4px; min-height: 14px; }
.tier-item .ti-name { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.tier-item .ti-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 10px 0 10px;
}

.recharge-summary { background: #fafbfc; border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.rs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 3px 0;
}
.rs-row b { color: var(--ink); font-size: 14px; }
.rs-bonus { color: var(--brand) !important; }
.rs-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.rs-total b { color: var(--brand); font-size: 18px; font-weight: 800; }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  margin: 4px 0 16px;
  line-height: 1.6;
  cursor: pointer;
}
.agree-row input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--brand); flex: 0 0 16px; }
.agree-row a { color: var(--brand); font-weight: 600; text-decoration: none; }

.btn[disabled] { opacity: 0.45; box-shadow: none; }

/* =========================================================
 * 充值协议全屏页
 * ========================================================= */
.agreement-page {
  position: fixed;
  inset: 0;
  z-index: 320;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
  visibility: hidden;
}
.agreement-page.show { transform: translateX(0); visibility: visible; }
.agreement-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.agreement-header h2 { margin: 0; font-size: 16px; font-weight: 700; }
.agreement-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  word-break: break-word;
}
.agreement-body h3 { font-size: 15px; margin: 0 0 14px; color: var(--ink); }
.agreement-body p { margin: 0 0 10px; }
.agreement-body b { color: var(--ink); }
.agreement-body img { max-width: 100%; height: auto; border-radius: 8px; }
.agreement-body ul, .agreement-body ol { padding-left: 20px; }
.agreement-foot {
  flex: 0 0 auto;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
}


/* =========================================================
 * 我的：浅色用户头部（替换原深色卡片）
 * ========================================================= */
.user-head {
  margin: 12px 14px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(28, 31, 36, 0.06);
  position: relative;
}

.user-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(255, 90, 44, 0.3);
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-info { flex: 1; min-width: 0; }
.user-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.user-name-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* 浅色版角色标签 */
.user-head .role-chip {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff1eb;
  color: var(--brand);
}
.user-head .role-chip.owner { background: #fff7d6; color: #a06a00; }
.user-head .role-chip.staff { background: #e6fcf5; color: #0b7f61; }

/* 浅色版 ID 标签 */
.user-head .id-chip {
  margin-top: 7px;
  margin-left: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.user-head .id-chip svg { width: 11px; height: 11px; color: var(--ink-3); }
.user-head .id-chip b { letter-spacing: 0.8px; color: var(--ink); font-weight: 800; }
.user-head .id-chip:active { background: #e9ecf1; }

.user-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f6f8;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.user-edit svg { width: 14px; height: 14px; }
.user-edit:active { background: var(--brand-soft); color: var(--brand); }

/* 余额卡片微调（配浅色头部） */
.wallet-card {
  margin: 10px 14px 0;
}

/* =========================================================
 * 订单状态：6 个立体图标
 * ========================================================= */
.order-status {
  margin: 12px 14px 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 16px 8px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(28, 31, 36, 0.06);
}

.os-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  min-width: 0;
  transition: transform 0.16s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.os-item:active { transform: scale(0.9); }

/* 订单图标：参照图手绘线稿风（无底色，纯黑线条） */
.os-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #1a1a1a;
  transition: transform 0.18s;
}
.os-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}
.os-item:active .os-icon { transform: scale(0.9); }

/* 六个状态：统一黑色线条（参照图就是这个风格，只有内容不同） */
.os-pending,
.os-accepting,
.os-serving,
.os-toconfirm,
.os-done,
.os-toreview {
  color: #1a1a1a;
}

/* 数量角标 */
.os-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.35);
}
.os-badge[hidden] { display: none; }

.os-name {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

/* 窄屏（小手机）稍微缩小 */
@media (max-width: 360px) {
  .os-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .os-icon svg { width: 30px; height: 30px; }
  .os-name { font-size: 11px; }
  .order-status { gap: 4px; padding: 14px 6px 12px; }
}


/* =========================================================
 * 资产区：账户余额 + 财富权益（左右两栏）
 * ========================================================= */
/* 窄屏适配 */
@media (max-width: 340px) {
  .asset-col { padding: 12px; min-height: 96px; }
  .asset-value { font-size: 21px; }
  .benefit-value { font-size: 18px; }
  .asset-label { font-size: 11px; }
}


/* =========================================================
 * 财富权益弹层
 * ========================================================= */
.benefit-hero {
  text-align: center;
  padding: 18px 16px 20px;
  background: linear-gradient(135deg, #fff8e6 0%, #ffe9b8 100%);
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid #ffe0a0;
}
.bh-level {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}
.bh-name {
  font-size: 14px;
  font-weight: 700;
  color: #8a6100;
  margin-top: 4px;
}
.bh-discount {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ffc042, #f0a000);
  padding: 2px 10px;
  border-radius: 999px;
}
.bh-progress {
  height: 7px;
  background: rgba(224, 138, 0, 0.18);
  border-radius: 999px;
  margin: 16px 0 8px;
  overflow: hidden;
}
.bh-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc042, #f0a000);
  transition: width 0.5s ease;
}
.bh-tip { font-size: 11.5px; color: #b0894a; }

.benefit-list { display: flex; flex-direction: column; gap: 8px; }
.bl-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid var(--line);
  opacity: 0.62;
}
.bl-item.owned {
  opacity: 1;
  background: #fffdf6;
  border-color: #ffe0a0;
}
.bl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
}
.bl-info { flex: 1; min-width: 0; }
.bl-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bl-need { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bl-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}
.bl-ok {
  font-size: 9.5px;
  color: #0b7f61;
  background: #e6fcf5;
  padding: 1px 6px;
  border-radius: 999px;
}

/* =========================================================
 * 评价星星
 * ========================================================= */
.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.star {
  font-size: 30px;
  line-height: 1;
  color: #e4e7ec;
  padding: 0;
  transition: transform 0.16s, color 0.16s;
}
.star.on { color: #ffb020; }
.star:active { transform: scale(1.18); }


/* =========================================================
 * 订单模块标题栏
 * ========================================================= */
.os-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid #f5f6f8;
}

.os-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 14px 5px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffd23f 0%, #ffc107 100%);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

/* 左下方小尖角：已废弃（「我的订单」标题改为黄底深棕字 + 小星星，见 #page-mine .os-title） */
.os-title::after {
  content: none;
}

.os-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  padding: 3px 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.os-more svg { width: 12px; height: 12px; }
.os-more:active { color: var(--brand); background: var(--brand-soft); }


/* =========================================================
 * 订单列表：全屏页面（从右侧推入）
 * ========================================================= */
.order-page {
  position: fixed;
  inset: 0;
  z-index: 220;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
  visibility: hidden;
}
.order-page.show { transform: translateX(0); visibility: visible; }

.order-page-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.order-page-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}
.order-page-count {
  font-size: 12px;
  color: var(--ink-3);
}

/* 状态切换标签 */
.order-page-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.order-page-tabs::-webkit-scrollbar { display: none; }
.order-page-tabs button {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: #f2f4f7;
  white-space: nowrap;
  transition: all 0.18s;
}
.order-page-tabs button.on {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 3px 10px rgba(255, 90, 44, 0.28);
}

.order-page-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}


/* =========================================================
 * 「我的」页整体背景与模块层次
 * ========================================================= */
/* 页面底色改浅灰蓝，让白色模块浮起来 */
#page-mine {
  background: #f0f2f5;
  min-height: 100vh;
  padding-bottom: 24px;
}

/* 各模块加清晰边界：白底 + 细边 + 柔和投影 */
/* 注意：user-head / asset-col 现在位于黄色区 .mine-hero 内，样式由 .mine-hero 统一控制，
   这里只给订单模块加边界，避免把黄色区里的元素改成白卡片 */
#page-mine .order-status {
  box-shadow: 0 1px 3px rgba(28, 31, 36, 0.08), 0 4px 14px rgba(28, 31, 36, 0.05);
}

#page-mine .order-status {
  border: 1px solid #e8ebf0;
}

/* 余额卡 / 会员储值卡的描边与阴影由下方「胶囊卡」样式统一控制，
   这里不再覆盖，避免把白色描边改成橙边/金边 */

/* 底部功能入口卡片（申请入驻 / 联系客服）也加边界 */
#page-mine .cell-group {
  border: 1px solid #e8ebf0;
  box-shadow: 0 1px 3px rgba(28, 31, 36, 0.08), 0 4px 14px rgba(28, 31, 36, 0.05);
}

/* 各模块之间的间距稍微拉开，层次更清楚 */
#page-mine .asset-row { margin-top: 12px; }
/* 「我的订单」卡紧贴上方资料区，不留间隙（做成一体） */
#page-mine .order-status { margin-top: 0; }
#page-mine .cell-group { margin-top: 12px; }

/* 全局底色也调成同一色系的浅灰蓝 */
:root { --bg: #f0f2f5; }


/* =========================================================
 * 最终调整：顶栏移除后的留白 + 淡黄背景 + 气泡标题内嵌
 * ========================================================= */

/* 1) 顶部没有栏了，给顶部留出安全区 */
.app {
  padding-top: env(safe-area-inset-top, 0px);
}
#page-home, #page-category, #page-message {
  padding-top: 10px;
}
/* 「我的」页：黄色区要贴顶铺满，不能留灰边 */
#page-mine {
  padding-top: 0;
}

/* 2) 背景色：
 *    - 全局与首页/分类/消息/我的：浅灰 #f5f6f8（清爽不泛黄）
 */
:root { --bg: #f5f6f8; }
body { background: #f5f6f8; }
.app { background: #f5f6f8; }
#page-mine { background: #f5f6f8; }

/* 3) 订单卡片 */
#page-mine .order-status {
  background: #fff;
  border: 1px solid #f0f2f5;
  box-shadow: 0 2px 8px rgba(20, 30, 60, 0.05), 0 6px 18px rgba(20, 30, 60, 0.04);
  padding: 16px 10px 14px;
  overflow: visible;
}

/* 标题栏：旧的白底规则已废弃，改为下方的黄色顶部区（见 #page-mine .order-status .os-header） */

/* 气泡标题：完全在卡片内部，左侧对齐卡片内边距 */
#page-mine .os-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffd93d 0%, #ffc107 100%);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.35);
}

/* 气泡小尖角：已废弃（标题现在是黄底深棕字 + 小星星，见下方 #page-mine .os-title） */

/* 4) 其他白色模块：中性灰描边与阴影（不再用暖黄色） */
#page-mine .cell-group {
  border: 1px solid #f0f2f5;
  box-shadow: 0 2px 8px rgba(20, 30, 60, 0.05), 0 6px 18px rgba(20, 30, 60, 0.04);
}

/* 5) 首页/分类/消息背景：浅灰，不泛黄 */
#page-home, #page-category, #page-message { background: #f5f6f8; }

/* 6) 分类页左侧栏配色 */
.cat-side { background: #f7f8fa; }


/* =========================================================
 * 订单页：按参照图重构（顶栏 + 胶囊标签 + 圆角搜索框）
 * ========================================================= */
.order-page {
  background: #f7f8fa;
}

/* ---- 顶栏：返回 + 居中标题 ---- */
.order-page-header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
}

.order-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: calc(env(safe-area-inset-top, 0px) / 2);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f5f6f8;
  color: #1a1a1a;
  border: 1px solid #ebedf0;
  transition: background 0.15s, transform 0.12s;
}
.order-back svg { width: 17px; height: 17px; }
.order-back:active { background: #e9ecf1; transform: translateY(-50%) scale(0.92); }

.order-page-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  flex: none;
}

/* ---- 状态标签：横排胶囊，选中黑底白字 ---- */
.order-tabs-wrap {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #fdfaea 0%, #f7f8fa 100%);
  padding: 14px 0 16px;
}

.order-page-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.order-page-tabs::-webkit-scrollbar { display: none; }

.order-page-tabs button {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #5c5c5c;
  background: #fff;
  border: 1px solid #ececec;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* 选中态：黑底白字 */
.order-page-tabs button.on {
  color: #fff;
  background: #1a1a1a;
  border-color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ---- 搜索栏：大圆角、左侧放大镜、右侧搜索 ---- */
.order-search {
  flex: 0 0 auto;
  padding: 0 14px 14px;
  background: #f7f8fa;
}

.order-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 8px 0 18px;
  background: #fff;
  border: 1px solid #f0f1f3;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.04);
}

.order-search-box > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #b8bcc4;
}

.order-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: #1a1a1a;
  font-family: inherit;
}
.order-search-box input::placeholder { color: #b8bcc4; }
.order-search-box input::-webkit-search-cancel-button { display: none; }

.order-search-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  background: transparent;
  border: 0;
  transition: background 0.15s;
}
.order-search-btn:active { background: #f2f4f7; }

/* ---- 内容区 ---- */
.order-page-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: #f7f8fa;
}

/* 空态 */
.order-page-body .empty {
  padding-top: 90px;
}

/* =========================================================
 * 商品详情：全屏页面
 * ========================================================= */
.product-page {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.product-page.show { transform: translateX(0); visibility: visible; }

.product-header {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.product-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}
.product-back {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #1a1a1a;
}
.product-back:active { background: #f2f4f7; }
.product-back svg { width: 22px; height: 22px; }

.product-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 给底部下单栏留足空间，避免最后一条评价被遮住 */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

/* ---- 图片区：可左右滑动 ---- */
.product-gallery {
  position: relative;
  background: #fff;
  width: 100%;
  height: 0;
  /* 默认 4:3（高度 = 宽度 × 75%），比正方形矮，下面内容露得更多；
     实际值由 JS 按后台「商品详情页图片比例」配置覆盖 */
  padding-bottom: 75%;
  overflow: hidden;
}
.pg-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.pg-slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}
.pg-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg-slide svg { width: 34%; height: 34%; color: rgba(255, 255, 255, 0.96); }
.pg-slide .pg-tag {
  position: absolute; left: 14px; top: 14px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.34);
  padding: 3px 9px; border-radius: 7px;
}
.pg-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
}
.pg-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
}
.pg-dots i.on { width: 16px; border-radius: 3px; background: #fff; }

/* ---- 商品信息卡（参照图样式） ---- */
.product-info {
  background: #fff;
  padding: 16px 14px 14px;
  margin-bottom: 8px;
}
.pi-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.pi-price {
  color: var(--brand);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}
.pi-price small { font-size: 15px; font-weight: 700; }
.pi-origin {
  font-size: 13px;
  color: #b0b0b0;
  text-decoration: line-through;
}
.pi-sales {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}
.pi-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: #111;
  margin: 0 0 6px;
  position: relative;
  padding-left: 10px;
}
.pi-title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 3.5px; height: 17px;
  background: #111;
  border-radius: 2px;
}
.pi-sub {
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.6;
  padding-left: 10px;
}
/* 服务保障条 */
/* ---- 平台声明提示条（替代原「官方保障」标签） ---- */
.pi-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f0f9f2;
  border: 1px solid #d6ecd9;
}
.pi-notice-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #4c9a5a;
}
.pi-notice-icon svg { width: 19px; height: 19px; }
.pi-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #3f7f4c;
}

/* ---- 页签 ---- */
.product-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 3;
}
.product-tabs button {
  flex: 1;
  height: 46px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
}
.product-tabs button.on { color: #111; font-weight: 800; }
.product-tabs button.on::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.product-tabs #reviewTabCount { font-size: 12px; color: var(--ink-3); font-weight: 500; }

.product-tab-body { background: #fff; min-height: 200px; }
.ptab-panel { display: none; padding: 14px; }
.ptab-panel.on { display: block; }

/* 详情条目 */
.pd-item {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: #5c5c5c;
  line-height: 1.95;
}
.pd-item::before {
  content: '';
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 9px;
}
.pd-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 30px 0; }

/* ---- 评价区 ---- */
.review-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f4f4f4;
  margin-bottom: 14px;
}
.rs-score {
  text-align: center;
  flex: 0 0 auto;
}
.rs-score b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.rs-score span { font-size: 11.5px; color: var(--ink-3); }
.rs-meta { flex: 1; }
.rs-stars { display: flex; gap: 2px; margin-bottom: 5px; }
.rs-stars svg { width: 16px; height: 16px; }
.rs-good { font-size: 12px; color: var(--ink-3); }

.review-item {
  padding: 14px 0;
  border-bottom: 1px solid #f7f7f7;
}
.review-item:last-child { border-bottom: 0; }
.ri-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.ri-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd93d, #ffb703);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 30px;
  overflow: hidden;
}
.ri-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ri-name { font-size: 13px; font-weight: 600; color: #333; }
.ri-anon {
  font-size: 10px;
  color: #9a9a9a;
  background: #f2f4f7;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}
.ri-stars { display: flex; gap: 1px; margin-left: auto; }
.ri-stars svg { width: 13px; height: 13px; }
.ri-text {
  font-size: 13.5px;
  color: #3d3d3d;
  line-height: 1.75;
  word-break: break-word;
}
.ri-staff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 6px;
}
.ri-time {
  font-size: 11.5px;
  color: #b8b8b8;
  margin-top: 6px;
}
.review-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* ---- 底部下单栏 ---- */
.product-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -2px 12px rgba(20, 20, 40, 0.05);
  /* 保证整个底栏完整可见，不被裁掉 */
  box-sizing: border-box;
  min-height: 64px;
  z-index: 2;
}

/* 左侧：联系客服（图标 + 文字） */
.pf-kefu {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
}
.pf-kefu svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.pf-kefu span {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.pf-kefu:active {
  color: var(--brand);
  transform: scale(0.94);
}

/* 右侧：立即点单（占满剩余宽度） */
.product-foot .btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.32);
  white-space: nowrap;
  box-sizing: border-box;
}
.product-foot .btn:active { transform: scale(0.97); }
.product-foot .btn:disabled {
  background: #d8d8d8;
  box-shadow: none;
}

/* =========================================================
 * 打手入驻：全屏页面
 * ========================================================= */
.staff-page {
  position: fixed;
  inset: 0;
  z-index: 335;   /* 必须高于打手端(200) */
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.staff-page.show {
  transform: translateX(0);
  visibility: visible;
}

.staff-header {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.staff-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}
.staff-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a1a1a;
}
.staff-back:active { background: #f2f4f7; }
.staff-back svg { width: 22px; height: 22px; }

.staff-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px));
}

.staff-tip {
  background: #fff8f2;
  border: 1px solid #ffe6d5;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #a1572a;
  line-height: 1.75;
  margin-bottom: 16px;
}

.staff-form {
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px 6px;
  box-shadow: 0 2px 12px rgba(20, 20, 40, 0.05);
}
.staff-field { margin-bottom: 16px; }
.staff-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.staff-field label i {
  color: #ff5a2c;
  font-style: normal;
}
.staff-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #eceef1;
  border-radius: 10px;
  background: #fafbfc;
  padding: 0 12px;
  font-size: 14.5px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.staff-field input:focus {
  border-color: #ff5a2c;
  background: #fff;
}
.staff-field input::placeholder { color: #b8bcc4; }

.staff-code-row { display: flex; gap: 8px; }
.staff-code-row input {
  flex: 1;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.staff-check-btn {
  flex: 0 0 auto;
  padding: 0 18px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ff5a2c;
  color: #ff5a2c;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s;
}
.staff-check-btn:active { background: #fff1eb; }
.staff-check-btn:disabled { opacity: 0.55; }

.staff-hint {
  display: block;
  font-size: 11.5px;
  margin-top: 7px;
  min-height: 15px;
  line-height: 1.5;
}

.staff-foot { margin-top: 20px; }
.staff-submit {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a2c, #ff8a3d);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 90, 44, 0.3);
  transition: transform 0.12s;
}
.staff-submit:active { transform: scale(0.98); }
.staff-submit:disabled {
  background: #d8d8d8;
  box-shadow: none;
  color: #fff;
}
.staff-agree {
  text-align: center;
  font-size: 11.5px;
  color: #9a9a9a;
  margin: 12px 0 0;
}

.staff-status {
  background: #fff;
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(20, 20, 40, 0.05);
}
.staff-status-icon {
  font-size: 44px;
  margin-bottom: 14px;
}
.staff-status h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}
.staff-status p {
  margin: 0;
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.9;
}

/* =========================================================
 * 「我的」页顶部黄色区 + 胶囊资产卡（参照图样式）
 * ========================================================= */
.mine-hero {
  position: relative;
  /* 黄色区域左右铺满屏幕；底部留足空间，避免资产卡被订单卡盖住 */
  padding: 22px 14px 30px;
  margin: 0;
  /* 整块黄色背景：用户资料 + 账户余额 + 会员权益 全在这块黄底上 */
  background: linear-gradient(180deg, #ffdd55 0%, #ffc61a 100%);
  overflow: hidden;
  /* 底部不留圆角：要和下方白色订单卡自然衔接 */
  border-radius: 0;
  border-bottom: 0;
}
/* 右上角斜切亮块：去掉（白底不需要光泽块） */
.mine-hero::before {
  content: none;
}
/* 左下角柔和光晕：去掉 */
.mine-hero::after {
  content: none;
}

/* ---- 用户资料行：头像在上，名字 / 用户ID 靠左竖排 ---- */
#page-mine .mine-hero .user-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0 0 20px;
}

#page-mine .mine-hero .user-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  background: #eef1f6;
  color: #9aa2ad;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}
#page-mine .mine-hero .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mine-hero .user-info {
  width: 100%;
  min-width: 0;
}

.mine-hero .user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mine-hero .user-name-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  /* 黄底上用深棕字，保证清晰 */
  color: #3d2200;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 身份标签：白底 + 深棕字（黄底上清爽） */
#page-mine .mine-hero .role-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  color: #7a4a00;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
}
#page-mine .mine-hero .role-chip.staff,
#page-mine .mine-hero .role-chip.member,
#page-mine .mine-hero .role-chip.owner {
  background: rgba(255, 255, 255, 0.85);
  color: #7a4a00;
}

/* 用户ID：文字 + 旁边一个复制图标按钮 */
#page-mine .mine-hero .user-id-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
#page-mine .mine-hero .user-id-text {
  font-size: 12.5px;
  /* 黄底上用深棕，比灰色清楚 */
  color: #8a5a00;
  letter-spacing: 0.2px;
}
#page-mine .mine-hero .user-id-text b {
  color: #3d2200;
  font-weight: 800;
  letter-spacing: 0.6px;
  font-variant-numeric: tabular-nums;
}
#page-mine .mine-hero .id-copy-btn {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f2f4f7;
  color: #6b7280;
  border: 0;
  padding: 0;
}
#page-mine .mine-hero .id-copy-btn svg {
  width: 13px;
  height: 13px;
}
#page-mine .mine-hero .id-copy-btn:active { background: #e4e8ee; }

/* 右上角「完善资料 ›」 */
#page-mine .mine-hero .user-edit {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
#page-mine .mine-hero .user-edit span {
  white-space: nowrap;
}
#page-mine .mine-hero .user-edit svg {
  width: 15px;
  height: 15px;
  color: #1a1a1a;
}
#page-mine .mine-hero .user-edit:active { opacity: 0.65; background: transparent; color: #1a1a1a; }

/* ---- 资产卡：左白右绿，两张卡各自带白框，中间露出黄底（马路效果） ---- */
.mine-hero .asset-row {
  position: relative;
  z-index: 1;
  /* 左右各留出 3px，给白框留空间，避免被父容器裁掉 */
  margin: 0 3px;
  display: flex;
  align-items: stretch;
  /* 两卡之间留空隙 → 露出黄底，形成「马路中间那条空白」 */
  gap: 14px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  box-shadow: none;
}
/* 余额/权益卡上方一条细横线（分隔资料区与资产区）：黄底上不需要，去掉 */
.mine-hero .asset-row::before {
  content: none;
}

.mine-hero .asset-col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 8px 14px 14px;
  min-height: 88px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.16s;
}
.mine-hero .asset-col:active { transform: scale(0.975); }

.mine-hero .asset-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* 左：账户余额（白底 + 白色外框） */
.mine-hero .asset-balance {
  /* 纯白底 */
  background: #fff;
  /* 白色外框：和右卡各有一条，中间露出黄底 → 「两条白线框住」的效果 */
  border: 3px solid #fff;
  border-radius: 25px;
  cursor: pointer;
}
.mine-hero .asset-balance .asset-value {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.05;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.mine-hero .asset-balance .asset-label {
  font-size: 11.5px;
  color: #9aa2ad;
  font-weight: 400;
  margin-top: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* 右：会员权益（亮绿 + 白色外框） */
.mine-hero .asset-benefit {
  /* 参照图：亮绿渐变 */
  background: linear-gradient(135deg, #c4f95c 0%, #a8ee2e 52%, #8fdc14 100%);
  /* 白色外框：与左卡对称，中间露出黄底 */
  border: 3px solid #fff;
  border-radius: 25px;
}
.mine-hero .asset-benefit .asset-title {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: #1d3d08;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  /* 白色描边，让字从绿底上跳出来 */
  -webkit-text-stroke: 1.6px #fff;
  paint-order: stroke fill;
  text-shadow: 0 1px 1.5px rgba(50, 90, 10, 0.14);
}
.mine-hero .asset-benefit .asset-sub {
  font-size: 9.5px;
  color: #356310;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.4;
  /* 两行内显示；均衡换行让两行长度接近，避免最后只剩一两个字 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  text-wrap: balance;
  letter-spacing: -0.15px;
}

/* 图标 */
.mine-hero .asset-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-right: 0;
}
.mine-hero .asset-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

/* 窄屏适配 */
@media (max-width: 360px) {
  .mine-hero { padding: 18px 11px 14px; }
  .mine-hero .user-avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 22px; }
  .mine-hero .user-name-row h3 { font-size: 15.5px; }
  .mine-hero .asset-col { padding: 11px 9px; min-height: 76px; }
  .mine-hero .asset-balance { border-radius: 20px; }
  .mine-hero .asset-benefit { border-radius: 20px; }
  .mine-hero .asset-row { gap: 10px; }
  .mine-hero .asset-balance .asset-value { font-size: 21px; }
  .mine-hero .asset-benefit .asset-title { font-size: 13.5px; }
  .mine-hero .asset-icon { width: 38px; height: 38px; }
  .mine-hero .user-edit { font-size: 12px; }
}

/* 底部：用户协议 / 隐私政策 */
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 14px 0;
  padding-bottom: 6px;
}
.legal-link {
  background: transparent;
  border: 0;
  padding: 4px 2px;
  font-size: 12px;
  color: #9aa2ad;
}
.legal-link:active { color: #5b6472; }
.legal-sep {
  font-size: 11px;
  color: #d7dbe1;
}

/* =========================================================
 * 「我的」页内容卡
 *  - 订单卡样式见文件末尾「我的订单卡：整块白色，贴在黄色区域下面」
 *  - 下方其他卡片保持独立圆角
 * ========================================================= */
#page-mine .cell-group {
  border-radius: 20px !important;
  box-shadow: 0 4px 18px rgba(20, 30, 60, 0.08), 0 1px 3px rgba(20, 30, 60, 0.04) !important;
  border: 1px solid rgba(240, 242, 245, 0.95) !important;
}

/* 头像：浅灰底 + 中性描边（白底上清爽） */
#page-mine .mine-hero .user-avatar {
  background: #eef1f6;
  color: #9aa2ad;
  border: 0;
  box-shadow: none;
}

/* 顶部资料区与下方内容留出间距：底部要留足，否则资产卡会被订单卡盖住 */
#page-mine .mine-hero {
  padding-bottom: 34px;
}

/* =========================================================
 * 打手端：独立全屏应用（独立顶栏 + 独立导航）
 * ========================================================= */
.staff-app {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.staff-app.show {
  transform: translateY(0);
  visibility: visible;
}

/* ---- 顶栏：与下方内容同一色系，做成一体（无分割感） ---- */
.staff-topbar {
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  /* 纯色取下方水彩渐变的最上沿色，与页面无缝衔接 */
  background: #4a7bf7;
  color: #fff;
  position: relative;
}

.staff-topbar h2 {
  flex: 1;
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  text-align: center;
  /* 顶栏已去掉返回按钮：标题绝对居中，不受右侧接单胶囊影响 */
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

/* 接单状态小胶囊 */
.staff-duty {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.staff-duty.off {
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.72);
}

/* ---- 页面容器 ---- */
.staff-pages {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.staff-page-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(76px + env(safe-area-inset-bottom, 0px));
  display: none;
}
.staff-page-panel.on { display: block; }

/* ---- 底部导航（打手端） ---- */
.staff-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid #eceef1;
  box-shadow: 0 -2px 12px rgba(20, 20, 40, 0.06);
  z-index: 2;
}
.staff-tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9aa2ad;
  font-size: 10.5px;
  font-weight: 600;
  transition: color 0.15s;
}
.staff-tabbar button svg {
  width: 22px;
  height: 22px;
}
.staff-tabbar button.on {
  color: #3d6ff5;
}
.staff-tabbar button.on svg {
  transform: translateY(-1px);
}
.staff-tabbar .badge {
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: 6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  font-style: normal;
}

/* ---- 打手端通用卡片 ---- */
.st-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
}
.st-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
}
.st-section-title .cnt {
  font-size: 11.5px;
  font-weight: 500;
  color: #9aa2ad;
  margin-left: auto;
}

/* 抢单卡片 */
.grab-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
  border-left: 4px solid #3d6ff5;
}
.grab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.grab-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grab-money {
  font-size: 17px;
  font-weight: 900;
  color: #f5700a;
  flex: 0 0 auto;
}
.grab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: #7a828c;
  margin-bottom: 12px;
}
.grab-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.grab-meta b {
  color: #1a1a1a;
  font-weight: 700;
}
.grab-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a7bf7, #6a5cf0);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(74, 123, 247, 0.3);
}
.grab-btn:active { transform: scale(0.98); }
.grab-btn:disabled {
  background: #d8d8d8;
  box-shadow: none;
}

/* 打手端空状态 */
.st-empty {
  text-align: center;
  padding: 70px 20px;
  color: #9aa2ad;
}
.st-empty svg {
  width: 54px;
  height: 54px;
  color: #d0d5dc;
  margin: 0 auto 14px;
  display: block;
}
.st-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

/* 打手端「我的」资料卡 */
.st-profile {
  background: linear-gradient(135deg, #3d6ff5 0%, #5a5cf0 55%, #7b4ff0 100%);
  border-radius: 16px;
  padding: 18px 16px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(21, 122, 77, 0.28);
}
.st-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.st-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex: 0 0 54px;
  overflow: hidden;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-profile-info h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 800;
}
.st-profile-info p {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}
.st-profile-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.st-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.st-stat-row > div {
  text-align: center;
}
.st-stat-row b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 3px;
}
.st-stat-row span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* 打手端接单开关 */
.st-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
}
.st-switch-row .lbl {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
}
.st-switch-row .sub {
  font-size: 11px;
  color: #9aa2ad;
  font-weight: 400;
  margin-top: 2px;
}
.st-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}
.st-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  z-index: 2;
  cursor: pointer;
}
.st-switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8dde4;
  transition: background 0.2s;
}
.st-switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.st-switch input:checked ~ .track { background: #4a7bf7; }
.st-switch input:checked ~ .knob { transform: translateX(20px); }

/* =========================================================
 * 「我的订单」卡片：参照图样式
 * 结构：.order-status（白卡） > .os-header（标题行）+ .os-row（图标行）
 * ========================================================= */
/* ---- 订单卡：白色，贴在黄色区域下面 ---- */
#page-mine .order-status {
  display: block !important;
  background: #fff !important;
  /* 上方两角小圆（内凹弧由伪元素单独画），下方两角圆 */
  border-radius: 20px !important;
  border: 0 !important;
  box-shadow: 0 4px 16px rgba(120, 90, 0, 0.12) !important;
  /* 往上压，贴住黄色区域；左右留出 2px 让弧能露出来 */
  margin: -20px 2px 14px !important;
  padding: 0 8px 20px !important;
  position: relative;
  z-index: 3;
  overflow: visible;
}

/* 左右两个内凹弧：黄底色的圆角块，盖住白卡上角
   效果：白卡左右上角被「咬」掉一个圆弧 → 就是内凹小弯 */
#page-mine .order-status::before,
#page-mine .order-status::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 22px;
  height: 22px;
  /* 与黄底同色 */
  background: #ffc61a;
  pointer-events: none;
  z-index: 4;
}
#page-mine .order-status::before {
  left: -2px;
  border-bottom-right-radius: 22px;
}
#page-mine .order-status::after {
  right: -2px;
  border-bottom-left-radius: 22px;
}

/* =========================================================
 * 「我的订单」卡：整块白色，贴在黄色区域下面
 *
 * 布局（大白话）：
 *   上面一大块黄色 = 用户资料 + 账户余额 + 会员权益
 *   下面一块白色   = 我的订单（6 个图标）
 *   白色卡左右上角往里凹 → 形成两个明显的弧，像贴在黄底下面
 *
 * 实现：
 *   · .order-status 自身 border-radius: 34px 34px 20px 20px
 *     （上方两角大圆 = 内凹弧；下方两角小圆）
 *   · 标题行不再单独上黄色（整块已经是白色卡）
 * ========================================================= */

/* ---- 标题行：白色卡顶部，透明背景 ---- */
#page-mine .order-status .os-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0 0 0 !important;
  padding: 18px 14px 10px !important;
  border: 0 !important;
  background: transparent;
  z-index: 1;
}

/* ---- 图标行：白色卡主体 ---- */
#page-mine .order-status .os-row {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  padding: 6px 8px 6px !important;
  background: transparent;
  border-radius: 0;
}

/* 「我的订单」标题：黄底上的深棕粗体（保证清晰） */
#page-mine .os-title {
  position: relative;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 17px 4px 0 !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px;
  line-height: 1.35;
  overflow: visible !important;

  /* 白底卡上用深色实字 */
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #1a1a1a !important;
  color: #1a1a1a !important;

  /* 轻微高光 */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: none;
  -webkit-text-stroke: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  transform: translateZ(0);
}
#page-mine .os-title::before {
  content: none !important;
  display: none !important;
}
/* 小星星：金色，放在标题文字右上角（用 padding 留出的空间，不压字） */
#page-mine .os-title::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #ffd93d 0%, #ffb703 55%, #f59300 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transform: rotate(8deg);
  filter: drop-shadow(0 1px 1px rgba(200, 150, 0, 0.4));
}

/* 「全部订单 ›」：白底上用灰字 */
#page-mine .os-all {
  font-size: 13px;
  font-weight: 500;
  color: #9aa2ad;
  padding: 0;
  background: none;
  border: 0;
  white-space: nowrap;
  line-height: 1.3;
  letter-spacing: 0.2px;
}
#page-mine .os-all:active { opacity: 0.6; }

/* ---- 图标行：强制 6 列一行（grid 不会换行） ---- */
/* 注意：背景/圆角/贴上去的位移已在上面 .order-status .os-row 定义，这里只管布局 */
#page-mine .os-row {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  grid-auto-flow: column;
  align-items: start;
  gap: 0;
  width: auto;
}

#page-mine .os-row .os-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

#page-mine .os-row .os-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #1a1a1a;
  flex: 0 0 36px;
  transition: transform 0.16s;
}
#page-mine .os-row .os-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
#page-mine .os-row .os-item:active .os-icon {
  transform: scale(0.9);
}

#page-mine .os-row .os-name {
  font-size: 12px;
  font-weight: 400;
  color: #141414;
  white-space: nowrap;
  letter-spacing: 0.1px;
  line-height: 1.2;
}

#page-mine .os-row .os-badge {
  top: -2px;
  right: -4px;
}

/* 窄屏 */
@media (max-width: 360px) {
  #page-mine .order-status { padding: 16px 4px 18px !important; }
  #page-mine .os-row .os-icon { width: 32px; height: 32px; flex-basis: 32px; }
  #page-mine .os-row .os-icon svg { width: 26px; height: 26px; }
  #page-mine .os-row .os-name { font-size: 10.5px; }
  #page-mine .os-title { font-size: 16px !important; }
}


/* 两卡宽度比：左卡稍窄、右卡稍宽（右卡文案更长） */
.mine-hero .asset-balance { flex: 0.86 1 0 !important; }
.mine-hero .asset-benefit { flex: 1.14 1 0 !important; }

/* =========================================================
 * 下单弹层：派单方式 + 打手选择框
 * ========================================================= */
.dispatch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.dispatch-row button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1.5px solid transparent;
  text-align: left;
  transition: all 0.16s;
}
.dispatch-row button .dm-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.dispatch-row button .dm-sub {
  font-size: 10.5px;
  color: #9a9a9a;
  line-height: 1.35;
}
.dispatch-row button.on {
  background: #fff5f0;
  border-color: #ff8a3d;
}
.dispatch-row button.on .dm-title { color: #ff5a2c; }
.dispatch-row button.on .dm-sub { color: #d4763a; }

/* 长方形选择框 */
.staff-picker {
  margin-top: 9px;
  border: 1.5px dashed #d8dde4;
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.staff-picker:active { background: #f2f4f7; }

.sp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 54px;
  color: #9aa2ad;
  font-size: 13px;
}
.sp-empty svg { width: 18px; height: 18px; }

.sp-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.sp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd93d, #ffb703);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  overflow: hidden;
}
.sp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sp-info b {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-info i {
  font-size: 11px;
  color: #9a9a9a;
  font-style: normal;
}
.sp-off {
  font-size: 9.5px;
  font-weight: 500;
  color: #9a9a9a;
  background: #eef0f3;
  padding: 1px 5px;
  border-radius: 4px;
  font-style: normal;
}
/* 在线标签：蓝紫系（打手端禁用绿，这里用主色蓝） */
.sp-on {
  font-size: 9.5px;
  font-weight: 500;
  color: #3d6ff5;
  background: #e8effe;
  padding: 1px 5px;
  border-radius: 4px;
  font-style: normal;
}
/* 离线打手整项置灰、不可点 */
.bs-staff-item.off {
  opacity: 0.55;
  filter: grayscale(0.4);
  cursor: not-allowed;
}
.bs-staff-item.off .sp-avatar {
  background: #d7dbe1;
}
.sp-change {
  font-size: 12.5px;
  color: #ff5a2c;
  font-weight: 600;
  flex: 0 0 auto;
}

/* 打手列表 */
.staff-picker-list {
  margin-top: 8px;
  max-height: 216px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.07);
}
.sp-loading {
  padding: 22px;
  text-align: center;
  font-size: 12.5px;
  color: #9aa2ad;
}
.sp-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border-bottom: 1px solid #f6f7f9;
  text-align: left;
  transition: background 0.14s;
}
.sp-item:last-child { border-bottom: 0; }
.sp-item:active { background: #fafbfc; }
.sp-item.on { background: #fff8f3; }
.sp-pick {
  font-size: 14px;
  color: #ff5a2c;
  font-weight: 700;
  flex: 0 0 auto;
}

/* =========================================================
 * 完善资料：头像编辑
 * ========================================================= */
.avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  cursor: pointer;
}
.avatar-edit-img {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe9a8, #ffd93d);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255, 190, 40, 0.32);
  transition: transform 0.16s;
}
.avatar-edit:active .avatar-edit-img { transform: scale(0.96); }
.avatar-edit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-edit-img > span {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(180, 120, 0, 0.3);
}
/* 右下角相机小圆标 */
.avatar-edit-cam {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ff5a2c;
  border: 2.5px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(255, 90, 44, 0.4);
}
.avatar-edit-cam svg {
  width: 14px;
  height: 14px;
}
.avatar-edit-tip {
  font-size: 12px;
  color: #9a9a9a;
  letter-spacing: 0.2px;
}

/* =========================================================
 * 完善资料：全屏页面（不是底部弹层）
 * ========================================================= */
/* 完善资料：屏幕中央弹窗 */
.profile-page {
  position: fixed;
  inset: 0;
  z-index: 340;   /* 必须高于打手端(200)，否则打手端点「完善资料」会被盖住 */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.profile-page.show { display: flex; }

/* 完善资料页里的 body 复用 .center-dialog-body 的滚动设置，这里只调内边距 */
.profile-page .profile-body {
  padding: 16px;
}

/* 表单卡片 */
.profile-form {
  background: #fff;
  border-radius: 16px;
  padding: 6px 16px;
  box-shadow: 0 2px 12px rgba(20, 20, 40, 0.05);
}
.profile-field {
  padding: 14px 0;
  border-bottom: 1px solid #f6f7f9;
}
.profile-field:last-child { border-bottom: 0; }
.profile-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a8f98;
  margin-bottom: 8px;
}
.profile-field label i {
  font-style: normal;
  font-size: 11px;
  color: #b3bac3;
  font-weight: 400;
  margin-left: 4px;
}
.profile-field input {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  color: #1a1a1a;
  outline: none;
}
.profile-field input::placeholder { color: #c3cad3; }

/* 底部保存按钮 */
.profile-foot {
  margin-top: 24px;
}
.profile-save {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a2c, #ff8a3d);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 90, 44, 0.3);
  transition: transform 0.12s;
}
.profile-save:active { transform: scale(0.98); }
.profile-save:disabled {
  background: #d8d8d8;
  box-shadow: none;
}

/* =========================================================
 * 下单弹层：支付方式选择（微信支付 / 余额支付）
 * ========================================================= */
.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.pay-row button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1.5px solid transparent;
  text-align: left;
  transition: all 0.16s;
}
.pay-row button .pm-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.pay-row button .pm-sub {
  font-size: 10.5px;
  color: #9a9a9a;
  line-height: 1.35;
}
.pay-row button.on {
  background: #f0f9f4;
  border-color: #12b886;
}
.pay-row button.on .pm-title { color: #0b7f61; }
.pay-row button.on .pm-sub { color: #2f9e7a; }

.pay-warn {
  margin-top: 8px;
  font-size: 11.5px;
  color: #e5484d;
  background: #fff1f2;
  border-radius: 8px;
  padding: 7px 10px;
}

/* =========================================================
 * 确认订单：全屏页面（不是底部弹层）
 * ========================================================= */
.order-confirm-page {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.order-confirm-page.show {
  transform: translateX(0);
  visibility: visible;
}

.ocp-header {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.ocp-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}
.ocp-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a1a1a;
}
.ocp-back:active { background: #f2f4f7; }
.ocp-back svg { width: 22px; height: 22px; }

.ocp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* 卡片 */
.ocp-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.04);
}

/* 商品信息 */
.ocp-goods {
  display: flex;
  gap: 12px;
}
.ocp-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ocp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ocp-thumb svg { width: 34px; height: 34px; color: rgba(255,255,255,.95); }
.ocp-goods-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ocp-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ocp-sub {
  font-size: 11.5px;
  color: #9aa2ad;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ocp-price {
  font-size: 19px;
  font-weight: 800;
  color: #ff5a2c;
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ocp-price small { font-size: 12px; font-weight: 700; }
.ocp-price i {
  font-size: 11px;
  color: #b3bac3;
  font-weight: 400;
  font-style: normal;
  margin-left: auto;
}

/* 数量行 */
.ocp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ocp-row-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* 小标题 */
.ocp-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

/* 输入字段 */
.ocp-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.ocp-field label i {
  font-style: normal;
  font-size: 11px;
  color: #b3bac3;
  font-weight: 400;
  margin-left: 3px;
}
/* 必填标记：红色 */
.ocp-field label i.req {
  color: #ff5a2c;
  font-weight: 600;
}
.ocp-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #eceef1;
  border-radius: 10px;
  background: #fafbfc;
  padding: 0 12px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.ocp-field input:focus {
  border-color: #ff5a2c;
  background: #fff;
}
.ocp-field input::placeholder { color: #c3cad3; }

/* 底部固定栏 */
.ocp-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 12px rgba(20, 20, 40, 0.05);
}
.ocp-foot-left {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ocp-foot-label {
  font-size: 12px;
  color: #9aa2ad;
}
.ocp-foot-price {
  font-size: 23px;
  font-weight: 800;
  color: #ff5a2c;
  letter-spacing: -0.5px;
}
.ocp-foot-price small { font-size: 13px; font-weight: 700; }
.ocp-submit {
  flex: 0 0 auto;
  min-width: 140px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a2c, #ff8a3d);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.32);
  transition: transform 0.12s;
}
.ocp-submit:active { transform: scale(0.97); }
.ocp-submit:disabled {
  background: #d8d8d8;
  box-shadow: none;
}

/* =========================================================
 * 订单详情：全屏页面（不是居中弹窗）
 * ========================================================= */
.order-detail-page {
  position: fixed;
  inset: 0;
  /* 必须高于订单列表（220），否则从列表点进详情会被盖住 */
  z-index: 230;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.order-detail-page.show {
  transform: translateX(0);
  visibility: visible;
}

/* =========================================================
 * 收银台：全屏付款页面（金额 + 倒计时 + 支付方式）
 * 层级 260：高于确认订单页(210) / 订单详情(230)，低于确认框(400)
 * ========================================================= */
.pay-page {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
  max-width: 480px;
  margin: 0 auto;
}
.pay-page.show {
  transform: translateX(0);
  visibility: visible;
}
.pay-header {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.pay-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}
.pay-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a1a1a;
  background: transparent;
}
.pay-back:active { background: #f2f3f5; }
.pay-back svg { width: 22px; height: 22px; }
.pay-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0 20px;
}
/* 顶部金额区 */
.pay-hero {
  background: #fff;
  padding: 34px 20px 26px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}
.pay-hero-label {
  font-size: 13px;
  color: #9aa2ad;
  margin-bottom: 10px;
}
.pay-hero-amount {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}
.pay-hero-amount small {
  font-size: 20px;
  font-weight: 700;
  margin-right: 2px;
}
/* 倒计时 */
.pay-countdown {
  margin-top: 14px;
  font-size: 12.5px;
  color: #9aa2ad;
}
.pay-countdown b {
  color: #ff5a2c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pay-countdown.expired b { color: #c3cad3; }
/* 支付方式卡 */
.pay-methods {
  margin: 14px 14px 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.pay-methods-title {
  padding: 14px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #9aa2ad;
}
.pay-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: transparent;
  border-bottom: 1px solid #f6f7f9;
  text-align: left;
}
.pay-method:last-child { border-bottom: 0; }
.pay-method:active { background: #fafbfc; }
.pay-method.disabled { opacity: 0.55; }
.pay-method-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
}
.pay-method-icon svg { width: 22px; height: 22px; }
.pay-method-icon.wechat { background: #e8f9f0; color: #12b886; }
.pay-method-icon.balance { background: #fff4e6; color: #ff8a3d; }
.pay-method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-method-text b { font-size: 14.5px; font-weight: 700; color: #1a1a1a; }
.pay-method-text i { font-size: 11.5px; color: #9aa2ad; font-style: normal; }
.pay-method-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d7dbe1;
  flex: 0 0 20px;
  position: relative;
}
.pay-method.on .pay-method-radio {
  border-color: #ff5a2c;
}
.pay-method.on .pay-method-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ff5a2c;
}
/* 底部确认按钮 */
.pay-submit-wrap {
  padding: 18px 14px 0;
}
.pay-submit {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a2c, #ff8a3d);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.32);
}
.pay-submit:active { transform: scale(0.98); }
.pay-submit:disabled { opacity: 0.6; box-shadow: none; }

.od-header {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.od-header h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}
.od-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a1a1a;
}
.od-back:active { background: #f2f4f7; }
.od-back svg { width: 22px; height: 22px; }

.od-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 14px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* 顶部状态区 */
.od-hero {
  text-align: center;
  margin-bottom: 18px;
}
.od-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.od-icon svg { width: 30px; height: 30px; }
.od-status {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #1a1a1a;
}
.od-no {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9aa2ad;
}

/* 状态提示卡 */
.od-tip {
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.9;
  margin-bottom: 12px;
}
.od-tip b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.od-tip span { color: #8a8a8a; }
.od-tip-warn {
  border: 1.5px dashed #ffe0c7;
  background: #fffbf7;
}
.od-tip-warn b { color: #ff5a2c; }
.od-tip-ok {
  border: 1.5px dashed #c8f0dd;
  background: #f6fdfa;
}
.od-tip-ok b { color: #0b7f61; }

/* 信息卡 */
.od-card {
  background: #fff;
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.04);
}
.od-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f6f7f9;
  font-size: 13.5px;
}
.od-row:last-child { border-bottom: 0; }
.od-k { color: #8a8f98; flex: 0 0 auto; }
.od-v {
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* 底部按钮 */
.od-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 12px rgba(20, 20, 40, 0.05);
}
.od-btn {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  transition: transform 0.12s;
}
.od-btn:active { transform: scale(0.98); }
.od-btn.primary {
  background: linear-gradient(135deg, #ff5a2c, #ff8a3d);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 90, 44, 0.32);
}
.od-btn.ghost {
  background: #f2f4f7;
  color: #5c6370;
  flex: 0 0 38%;
}

/* 商品详情富文本区（后台自定义内容） */
.pd-html {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #f0f2f5;
  font-size: 13.5px;
  color: #5c5c5c;
  line-height: 1.9;
  word-break: break-word;
}
.pd-html p { margin: 0 0 10px; }
.pd-html p:last-child { margin-bottom: 0; }
.pd-html img {
  max-width: 100%;
  border-radius: 10px;
  margin: 8px 0;
  display: block;
}
.pd-html b, .pd-html strong { color: #1a1a1a; font-weight: 700; }
.pd-html ul, .pd-html ol { margin: 8px 0; padding-left: 20px; }
.pd-html li { margin-bottom: 4px; }
.pd-html a { color: #ff5a2c; text-decoration: none; }
.pd-html h1, .pd-html h2, .pd-html h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 12px 0 8px;
}

/* =========================================================
 * 商品详情：下单须知区块
 * 内容来自「装修管理 → 文章管理」或商品单独设置
 * ========================================================= */
.pd-notice {
  margin-top: 16px;
  padding: 14px 15px 15px;
  background: #fffaf2;
  border: 1px solid #ffe6c7;
  border-radius: 12px;
}
.pd-notice-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed #ffe0bb;
}
.pd-notice-head svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #ff8a3d;
}
.pd-notice-head b {
  font-size: 13.5px;
  font-weight: 800;
  color: #a1521a;
  letter-spacing: 0.2px;
}
.pd-notice-body {
  font-size: 13px;
  line-height: 1.95;
  color: #7a5a3a;
  word-break: break-word;
}
.pd-notice-body p { margin: 0 0 8px; }
.pd-notice-body p:last-child { margin-bottom: 0; }
.pd-notice-body h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #a1521a;
  margin: 12px 0 6px;
}
.pd-notice-body h3:first-child { margin-top: 0; }
.pd-notice-body ul, .pd-notice-body ol {
  margin: 6px 0;
  padding-left: 19px;
}
.pd-notice-body li { margin-bottom: 4px; }
.pd-notice-body b, .pd-notice-body strong {
  color: #8a4415;
  font-weight: 700;
}
.pd-notice-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 6px 0;
  display: block;
}

/* 评价里的「接单打手」行（放最上面，突出展示） */
.ri-staff-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: linear-gradient(135deg, #fff8f3, #fff1e8);
  border: 1px solid #ffe4d2;
  border-radius: 10px;
  margin-bottom: 11px;
}
.ri-staff-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb03a, #ff8a1f);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.ri-staff-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ri-staff-info b {
  font-size: 13px;
  font-weight: 700;
  color: #d4570f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-staff-info i {
  font-size: 10.5px;
  font-style: normal;
  color: #b08258;
}

/* =========================================================
 * 底部弹层（支付方式选择 / 打手选择）
 * ========================================================= */
.mask.bottom {
  align-items: flex-end;
  /* 底部弹层（支付方式 / 选择打手）从确认订单页(210)弹出，必须高于它，否则被盖住点不到 */
  z-index: 250;
}
.bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.mask.bottom.show .bottom-sheet {
  transform: translateY(0);
}

.bs-head {
  position: relative;
  padding: 18px 16px 12px;
  text-align: center;
  flex: 0 0 auto;
}
.bs-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.bs-close {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9aa2ad;
}
.bs-close:active { background: #f2f4f7; }
.bs-close svg { width: 18px; height: 18px; }

.bs-body {
  padding: 0 16px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bs-body.bs-scroll {
  max-height: 52vh;
}

/* 支付金额 */
.bs-pay-amount {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -1px;
  padding: 6px 0 18px;
}
.bs-pay-amount small {
  font-size: 18px;
  font-weight: 700;
  margin-right: 2px;
}

/* 支付方式列表 */
.bs-pay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bs-pay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: #fafbfc;
  border: 1.5px solid #eceef1;
  border-radius: 14px;
  text-align: left;
  transition: all 0.16s;
}
.bs-pay-item:active {
  background: #f2f4f7;
  transform: scale(0.99);
}
.bs-pay-item.disabled {
  opacity: 0.5;
}
.bs-pay-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.bs-pay-icon svg { width: 22px; height: 22px; }
.bs-pay-icon.wechat {
  background: linear-gradient(135deg, #3ecf6e, #22b455);
  color: #fff;
}
.bs-pay-icon.balance {
  background: linear-gradient(135deg, #ffb03a, #ff8a1f);
  color: #fff;
}
.bs-pay-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bs-pay-text b {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.bs-pay-text i {
  font-size: 11.5px;
  font-style: normal;
  color: #9aa2ad;
}
.bs-pay-arrow {
  font-size: 20px;
  color: #c3cad3;
  flex: 0 0 auto;
}

/* 打手列表项 */
.bs-staff-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  background: transparent;
  border-bottom: 1px solid #f6f7f9;
  text-align: left;
}
.bs-staff-item:last-child { border-bottom: 0; }
.bs-staff-item:active { background: #fafbfc; }

.bs-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9aa2ad;
  font-size: 13px;
}

/* 底部按钮 */
.bs-foot {
  flex: 0 0 auto;
  padding: 0 16px 16px;
}
.bs-cancel {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #5c6370;
  font-size: 15px;
  font-weight: 600;
}
.bs-cancel:active { background: #e8ebf0; }

/* =========================================================
 * 打手端「我的」页：数据概况卡（参照图样式）
 * ========================================================= */
.sd-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 4px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(20, 20, 40, 0.05);
}

/* 头部：标题 + 接单/离线 */
.sd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sd-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #141414;
  letter-spacing: 0.3px;
  position: relative;
  display: inline-block;
}
/* 标题右上角小装饰星 */
.sd-title::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -12px;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #b6f04a, #74d40f);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* 接单 / 离线 胶囊切换 */
.sd-duty {
  display: flex;
  background: #f2f3f5;
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.sd-duty button {
  min-width: 72px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: #9aa2ad;
  background: transparent;
  transition: all 0.18s;
}
.sd-duty button.on {
  background: linear-gradient(135deg, #d4ff5c, #b6f04a);
  color: #1a2e00;
  box-shadow: 0 2px 8px rgba(150, 210, 20, 0.35);
}
.sd-duty button[data-duty="off"].on {
  background: #d8dde4;
  color: #4a5560;
  box-shadow: none;
}
.sd-duty button:disabled { opacity: 0.6; }

/* 两列数据网格 */
.sd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
}
.sd-item {
  min-width: 0;
}
.sd-label {
  font-size: 13px;
  color: #9aa2ad;
  font-weight: 400;
  margin-bottom: 6px;
}

/* 大数字：整数大、小数小（参照图） */
.sd-num {
  display: flex;
  align-items: baseline;
  color: #141414;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.5px;
}
.sd-num .big-int { font-size: 34px; }
.sd-num .big-dec { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.sd-num-sm .big-int { font-size: 26px; }
.sd-num-sm .big-dec { font-size: 16px; }

.sd-arrow {
  font-size: 19px;
  color: #c3cad3;
  font-style: normal;
  font-weight: 400;
  margin-left: 3px;
  letter-spacing: 0;
}

.sd-sub {
  font-size: 12px;
  color: #9aa2ad;
  margin-top: 7px;
  display: flex;
  gap: 12px;
}

/* 分割线 */
.sd-divider {
  height: 1px;
  background: #f2f3f5;
  margin: 0 -16px 16px;
}

/* 财务概况：两个数字并排（黑 + 红） */
.sd-money {
  font-size: 21px;
  font-weight: 900;
  color: #141414;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.sd-money.red { color: #f5222d; margin-left: 14px; }

/* =========================================================
 * 打手端：资料卡 / 功能列表
 * ========================================================= */
.st-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.st-name-row h3 { margin: 0; }
.st-role {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  flex: 0 0 auto;
}
/* 专属打手 ID */
.st-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 500;
}
.st-id-chip b {
  font-weight: 700;
  letter-spacing: 0.8px;
  font-variant-numeric: tabular-nums;
}

/* 功能列表（跟老板端一致的样式） */
.st-cell-group {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.04);
}
.st-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 14px;
  border-bottom: 1px solid #f6f7f9;
  cursor: pointer;
  transition: background 0.14s;
}
.st-cell:last-child { border-bottom: 0; }
.st-cell:active { background: #fafbfc; }
.st-ci {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #4a7bf7;
}
.st-ct {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}
.st-arrow {
  font-size: 18px;
  color: #c3cad3;
  line-height: 1;
}

/* 订单详情：订单编号 / 支付单号 */
.od-tradeno, .od-payno {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  word-break: break-all;
}
.od-tradeno { color: #1a1a1a; }
.od-payno { color: #1a1a1a; }

/* =========================================================
 * 打手端「我的」页 v2：顶部蓝色水彩渐变资料区（参照图）
 * ========================================================= */

/* 「我的」面板要撑满、无内边距，让渐变区贴边 */
.staff-page-panel#staffPage-mine {
  padding: 0 0 calc(76px + env(safe-area-inset-bottom, 0px));
  background: #f2f4f7;
}

/* ---- 顶部渐变区 ---- */
.sm-hero {
  position: relative;
  padding: 20px 16px 56px;
  overflow: hidden;
}
/* 水彩渐变背景：多色叠加，营造参照图那种蓝紫水彩质感 */
.sm-hero-bg {
  position: absolute;
  inset: 0;
  /* 顶部与顶栏同色 #4a7bf7，往下才展开水彩层次，保证上下无缝 */
  background:
    radial-gradient(circle at 18% 30%, rgba(120, 170, 255, 0.85) 0%, rgba(120, 170, 255, 0) 52%),
    radial-gradient(circle at 82% 26%, rgba(96, 205, 255, 0.7) 0%, rgba(96, 205, 255, 0) 48%),
    radial-gradient(circle at 62% 82%, rgba(150, 130, 255, 0.75) 0%, rgba(150, 130, 255, 0) 55%),
    radial-gradient(circle at 8% 84%, rgba(80, 190, 230, 0.7) 0%, rgba(80, 190, 230, 0) 50%),
    linear-gradient(180deg, #4a7bf7 0%, #4682f5 38%, #5a6ef0 100%);
}
/* 底部白色柔和过渡，跟下面的卡片自然衔接 */
.sm-hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(242, 244, 247, 0) 0%, rgba(242, 244, 247, 0.55) 60%, #f2f4f7 100%);
}

.sm-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

/* 头像：白色描边 + 光晕 */
.sm-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: 0 0 62px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(30, 60, 150, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.sm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sm-hero-info { flex: 1; min-width: 0; padding-top: 2px; }

.sm-hero-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sm-hero-name h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(20, 40, 110, 0.25);
}
.sm-badge-staff {
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  white-space: nowrap;
}

.sm-hero-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  flex-wrap: wrap;
}
.sm-hero-meta b { color: #ffe066; font-weight: 800; font-size: 12.5px; }
.sm-star { color: #ffe066; font-size: 12px; }
.sm-dot { color: rgba(255, 255, 255, 0.55); font-style: normal; }

.sm-hero-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.sm-tag-on {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 226, 130, 0.22);
  border: 1px solid rgba(120, 255, 180, 0.6);
  color: #d8ffe8;
}
.sm-tag-off {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.78);
}

/* 完善资料按钮 */
.sm-edit-btn {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  white-space: nowrap;
  transition: background 0.15s;
}
.sm-edit-btn:active { background: rgba(255, 255, 255, 0.36); }

/* ---- 数据卡：向上叠在渐变区上 ---- */
.sm-card-overlap {
  position: relative;
  z-index: 2;
  margin: -38px 14px 12px;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(30, 50, 100, 0.1);
}

/* ---- 接单权限 + 累计收入/单数（左右两栏） ----
   用户要求：左边显示接单会员（接单权限），右边上下两行显示累计收入、累计单数 */
.sm-perm-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 14px 12px;
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
}
/* 左栏：接单会员（权限状态） */
.sm-perm-left {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding-right: 16px;
}
.sm-perm-label {
  font-size: 11px;
  color: #9aa2ad;
  letter-spacing: 0.2px;
}
.sm-perm-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.sm-perm-state.on { color: #2f7bff; }
.sm-perm-state.off { color: #9aa2ad; }
.sm-perm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: currentColor;
}
.sm-perm-state.on .sm-perm-dot {
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.14);
}
.sm-perm-hint {
  font-size: 10.5px;
  color: #b0b8c4;
}
/* 右栏：累计收入 / 累计单数，上下两行 */
.sm-perm-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid #f0f3f7;
}
.sm-perm-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sm-perm-k {
  font-size: 11.5px;
  color: #9aa2ad;
  white-space: nowrap;
}
.sm-perm-v {
  font-size: 15px;
  font-weight: 900;
  color: #141414;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sm-perm-unit {
  font-size: 10.5px;
  font-weight: 500;
  color: #9aa2ad;
  font-style: normal;
  margin-left: 2px;
}
.sm-perm-line {
  height: 1px;
  background: #f4f6f9;
}

/* ---- 接单权限卡（打手端「我的」页） ---- */
.sm-cards-card {
  margin: 0 14px 12px;
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px 6px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
}
.sm-cards-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sm-cards-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: #141414;
  letter-spacing: -0.2px;
}
.sm-cards-tip {
  font-size: 10.5px;
  color: #b0b8c4;
}
.sm-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #f4f6f9;
  cursor: pointer;
  transition: opacity 0.14s;
}
.sm-card-item:active { opacity: 0.65; }
.sm-card-main { flex: 1 1 auto; min-width: 0; }
.sm-card-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #141414;
  margin-bottom: 4px;
}
.sm-card-badge {
  font-size: 10px;
  font-weight: 600;
  color: #3d6ff5;
  background: #eaf1ff;
  border-radius: 5px;
  padding: 1px 6px;
  flex: 0 0 auto;
}
.sm-card-meta {
  font-size: 11.5px;
  color: #9aa2ad;
  line-height: 1.5;
}
.sm-card-meta b {
  color: #3d6ff5;
  font-weight: 800;
}
.sm-card-btn {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #3d6ff5;
  background: #f0f5ff;
  border-radius: 8px;
  padding: 6px 12px;
  white-space: nowrap;
}
.sm-card-item.on .sm-card-btn {
  color: #6a5cf0;
  background: #f2f0ff;
}

/* ---- 购买接单权限的弹窗内容 ---- */
.cb-box { text-align: center; padding: 4px 0 16px; }
.cb-game {
  font-size: 12px;
  font-weight: 600;
  color: #3d6ff5;
  background: #eaf1ff;
  border-radius: 20px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.cb-name {
  font-size: 16px;
  font-weight: 800;
  color: #141414;
  margin-bottom: 6px;
}
.cb-desc {
  font-size: 12px;
  color: #9aa2ad;
  margin-bottom: 12px;
  line-height: 1.6;
}
.cb-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 14px 0 10px;
}
.cb-cur {
  font-size: 15px;
  font-weight: 700;
  color: #ff5a2c;
}
.cb-num {
  font-size: 32px;
  font-weight: 900;
  color: #ff5a2c;
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cb-days {
  font-size: 12px;
  color: #9aa2ad;
  margin-left: 4px;
}
.cb-note {
  font-size: 11.5px;
  color: #9aa2ad;
  line-height: 1.7;
  background: #fafbfc;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}
.cb-note.on {
  background: #f0f5ff;
  color: #5b6472;
}
.cb-pay-btn {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}

/* 功能列表区域也加左右边距 */
#staffPage-mine .st-cell-group {
  margin: 0 14px 12px;
}

/* ---- 「切换到顾客端」卡片（打手端「我的」页统一切换入口） ---- */
.sm-switch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px;
  padding: 15px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
  cursor: pointer;
  transition: background 0.14s, transform 0.1s;
}
.sm-switch-card:active {
  background: #f7f9fc;
  transform: scale(0.985);
}
.sm-switch-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #3a7bd5;
}
.sm-switch-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sm-switch-text b {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.sm-switch-text span {
  font-size: 11.5px;
  color: #9aa2ad;
}
.sm-switch-arrow {
  font-size: 18px;
  color: #c3cad3;
  line-height: 1;
}



/* =========================================================
 * 登录页（账号密码登录）
 * ========================================================= */
.login-page {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: linear-gradient(160deg, #fff8ec 0%, #ffeccc 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.login-page.show { display: flex; }

.login-inner { width: 100%; max-width: 360px; text-align: center; }

.login-logo {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px;
  background: linear-gradient(135deg, #ff8a3d, #ff5a2c);
  color: #fff; font-size: 32px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(255, 90, 44, 0.28); overflow: hidden;
}
.login-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.login-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: #2a1e10; letter-spacing: -0.3px; }
.login-sub { margin: 0 0 28px; font-size: 12.5px; color: #9a8a72; }

.login-form {
  background: #fff; border-radius: 18px; padding: 22px 20px;
  box-shadow: 0 10px 36px rgba(120, 90, 40, 0.1); text-align: left;
}

.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 12px; color: #8a7a62; font-weight: 600; margin-bottom: 7px; }
.login-field input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px; color: #2a1e10;
  background: #fafbfc; border: 1px solid #eee6da; border-radius: 11px; outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
.login-field input::placeholder { color: #c4b8a6; }
.login-field input:focus { border-color: #ff8a3d; background: #fff; box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.13); }

.login-err { color: #e5484d; font-size: 12.5px; min-height: 18px; margin-bottom: 8px; line-height: 1.5; }

.login-btn {
  width: 100%; height: 48px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #ff8a3d, #ff5a2c);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; transition: opacity 0.16s, transform 0.1s;
  box-shadow: 0 6px 18px rgba(255, 90, 44, 0.26);
}
.login-btn:active { transform: scale(0.985); opacity: 0.92; }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.login-tip { margin: 20px 0 0; font-size: 12px; color: #a89880; line-height: 1.7; }

/* =========================================================
 * 退出登录（「我的」页底部）
 * ========================================================= */
.logout-card {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 14px 12px; padding: 14px 16px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
  font-size: 14px; font-weight: 600; color: #e5484d;
  cursor: pointer; transition: background 0.14s, transform 0.1s;
}
.logout-card:active { background: #fef5f5; transform: scale(0.985); }
.logout-card svg { width: 18px; height: 18px; flex: 0 0 18px; }
