/* 游戏护航 H5 全局样式（与小程序主题一致） */
:root {
  --primary: #6366F1;
  --primary-light: #818CF8;
  --accent: #FF6B35;
  --price-red: #EF4444;
  --text-main: #1F2937;
  --text-sub: #6B7280;
  --text-placeholder: #9CA3AF;
  --bg-page: #F5F6FA;
  --bg-card: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --header-h: 52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #E5E7EB;
  color: var(--text-main);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

#app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg-page);
  box-shadow: 0 0 24px rgba(31, 41, 55, .12);
}

/* ===== 顶栏 ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
}
.header-back {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  font-size: 26px;
  line-height: 30px;
  color: #fff;
}
#header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 600;
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.header-slot { margin-left: auto; }

/* ===== 底部 tabBar ===== */
#tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 20;
  display: flex;
  background: #fff;
  border-top: 1px solid #EEF0F4;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  color: #9CA3AF;
  font-size: 10px;
}
.tab-item svg { width: 23px; height: 23px; }
.tab-item.active { color: var(--primary); }
.tab-item .tab-dot {
  position: absolute;
  margin-left: 26px;
  margin-top: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--price-red);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
}

.page { padding: 12px 12px calc(76px + env(safe-area-inset-bottom)); }
.page.no-tab { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ===== 通用 ===== */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31, 41, 55, .06);
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
  padding: 9px 24px;
  border: none;
}
.btn-ghost {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, .45);
  border-radius: 999px;
  font-size: 14px;
  text-align: center;
  padding: 8px 24px;
}
.text-price { color: var(--price-red); font-weight: 600; }
.text-sub { color: var(--text-sub); font-size: 12px; }
.tag {
  display: inline-block;
  font-size: 10px;
  color: var(--primary);
  background: rgba(99, 102, 241, .1);
  border-radius: 4px;
  padding: 2px 7px;
  margin-right: 6px;
}

.section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.section-title { font-size: 16px; font-weight: 600; }
.section-more { font-size: 12px; color: var(--text-sub); }

/* 横向 pill tabs */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 6px 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-sub);
  font-size: 13px;
  border: 1px solid #EEF0F4;
}
.pill.active {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  border-color: transparent;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.lg { width: 60px; height: 60px; font-size: 24px; }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }

.status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}
.status-badge.on { background: rgba(16, 185, 129, .12); color: var(--success); }
.status-badge.busy { background: rgba(245, 158, 11, .14); color: var(--warning); }

/* ===== 首页 ===== */
.hero {
  border-radius: 14px;
  padding: 22px 18px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6 60%, #A78BFA);
  color: #fff;
}
.hero h1 { font-size: 21px; margin-bottom: 6px; }
.hero p { font-size: 12px; opacity: .85; margin-bottom: 16px; }
.hero-btns { display: flex; gap: 10px; }
.hero-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
}
.hero-btn.primary { background: #fff; color: var(--primary); font-weight: 600; }
.hero-btn.ghost { border: 1px solid rgba(255, 255, 255, .6); color: #fff; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px 6px;
}
.game-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 10px rgba(31, 41, 55, .08);
  transition: transform .15s;
}
.game-card:active { transform: scale(.97); }
.game-cover { display: block; width: 100%; height: 100%; object-fit: cover; background: #F3F4F6; }
.game-mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); }
.game-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px 4px;
  font-size: 11px; font-weight: 600; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  white-space: nowrap; overflow: hidden;
}
.game-name .g-emoji { font-size: 12px; }
@media (max-width: 360px) {
  .game-name { font-size: 10px; padding: 4px 2px; }
}

/* 价格条目 */
.deal-row {
  display: flex;
  align-items: center;
  padding: 12px;
}
.deal-row + .deal-row { border-top: 1px solid #F3F4F6; }
.deal-cover { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; margin-right: 12px; background: #F3F4F6; }
.deal-info { flex: 1; min-width: 0; margin-right: 10px; }
.deal-title { font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deal-desc { font-size: 12px; color: var(--text-sub); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deal-price { text-align: right; margin: 0 12px; }
.deal-price .num { font-size: 17px; }
.deal-price .unit { font-size: 11px; color: var(--text-sub); }

/* 价格页表 */
.price-row { padding: 0 0 13px; }
.price-row + .price-row { border-top: 1px solid #F3F4F6; padding-top: 13px; }
.price-cover { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: #F3F4F6; }
.price-top { display: flex; align-items: flex-start; padding: 0 14px; }
.price-main { flex: 1; min-width: 0; }
.price-title { font-size: 14px; font-weight: 600; }
.price-detail { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.price-meta { margin-top: 8px; display: flex; align-items: center; font-size: 11px; color: var(--text-placeholder); }
.price-num { text-align: right; margin-left: 12px; white-space: nowrap; }
.price-num .num { font-size: 18px; }
.price-num .unit { font-size: 11px; color: var(--text-sub); }
.price-contact {
  margin: 10px 14px 0;
  display: block;
  margin-top: 10px;
  padding: 7px 0;
  border-radius: 999px;
  background: rgba(99, 102, 241, .08);
  color: var(--primary);
  font-size: 12px;
  text-align: center;
}

/* 打手卡片 */
.booster-card {
  display: flex;
  padding: 13px;
  margin-bottom: 10px;
}
.b-main { flex: 1; min-width: 0; margin-left: 11px; }
.b-head { display: flex; align-items: center; gap: 7px; }
.b-name { font-size: 15px; font-weight: 600; }
.b-ranks { margin-top: 5px; font-size: 11px; color: var(--accent); }
.b-games { margin-top: 5px; }
.b-intro {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.b-side { text-align: right; margin-left: 10px; }
.b-price .num { font-size: 16px; }
.b-price .unit { font-size: 10px; color: var(--text-sub); }
.b-stats { margin-top: 7px; font-size: 10px; color: var(--text-sub); }
.b-stats b { color: var(--text-main); font-weight: 600; }

/* 打手详情 */
.detail-card { padding: 18px 15px; text-align: center; }
.detail-name { font-size: 18px; font-weight: 700; margin-top: 9px; }
.detail-status { margin-top: 5px; }
.detail-tags { margin-top: 9px; }
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #F3F4F6;
}
.d-stat .v { font-size: 16px; font-weight: 700; color: var(--primary); }
.d-stat .k { font-size: 10px; color: var(--text-sub); margin-top: 2px; }
.detail-intro { margin-top: 12px; padding: 13px 15px; font-size: 13px; color: var(--text-sub); line-height: 1.7; }

.detail-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #EEF0F4;
}
.detail-bar .bar-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 14px;
}
.bar-btn.ghost { border: 1px solid rgba(99, 102, 241, .45); color: var(--primary); }
.bar-btn.primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; }

/* ===== 消息列表 ===== */
.conv-row {
  display: flex;
  align-items: center;
  padding: 13px;
}
.conv-row + .conv-row { border-top: 1px solid #F3F4F6; }
.conv-main { flex: 1; min-width: 0; margin-left: 11px; }
.conv-top { display: flex; align-items: center; }
.conv-name { font-size: 15px; font-weight: 600; }
.conv-time { margin-left: auto; font-size: 11px; color: var(--text-placeholder); }
.conv-last {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-sub);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.conv-unread {
  margin-left: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--price-red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ===== 聊天页 ===== */
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  padding: 0;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: var(--bg-page);
}
.msg-row { display: flex; margin-bottom: 14px; align-items: flex-start; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-body { max-width: 74%; margin: 0 8px; }
.bubble {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.msg-row.mine .bubble {
  background: linear-gradient(135deg, #6366F1, #818CF8);
  color: #fff;
  border-top-right-radius: 3px;
}
.msg-row.staff .bubble {
  background: #fff;
  color: var(--text-main);
  border-top-left-radius: 3px;
  box-shadow: 0 1px 4px rgba(31, 41, 55, .06);
}
.msg-time { font-size: 10px; color: var(--text-placeholder); margin-top: 4px; text-align: center; }
.msg-row.mine .msg-time { text-align: right; }

.chat-dock { background: #F7F8FC; border-top: 1px solid #EEF0F4; }
.quick-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 0;
  scrollbar-width: none;
}
.quick-bar::-webkit-scrollbar { display: none; }
.quick-chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E5E7EB;
  color: var(--text-sub);
  font-size: 12px;
}
.composer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
}
.composer input {
  flex: 1;
  height: 38px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
}
.composer .send {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #C7CBF5;
  color: #fff;
  font-size: 14px;
}
.composer .send.on { background: linear-gradient(135deg, #6366F1, #8B5CF6); }

/* ===== 我的 ===== */
.me-card {
  display: flex;
  align-items: center;
  padding: 20px 16px;
}
.me-info { flex: 1; margin-left: 13px; min-width: 0; }
.me-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.me-name .pen { font-size: 12px; color: var(--text-sub); font-weight: 400; }
.me-id { margin-top: 5px; font-size: 11px; color: var(--text-placeholder); }

.menu-card { margin-top: 12px; }
.menu-row {
  display: flex;
  align-items: center;
  padding: 14px 15px;
  font-size: 14px;
}
.menu-row + .menu-row { border-top: 1px solid #F3F4F6; }
.menu-row .m-icon { margin-right: 10px; }
.menu-row .m-arrow { margin-left: auto; color: #C7CBD4; }
.menu-row .m-extra { margin-left: auto; font-size: 12px; color: var(--text-sub); }
.menu-row .m-extra + .m-arrow { margin-left: 6px; }

.intent-row { padding: 12px 14px; }
.intent-row + .intent-row { border-top: 1px solid #F3F4F6; }
.intent-desc { font-size: 13px; line-height: 1.5; }
.intent-meta { display: flex; margin-top: 5px; font-size: 11px; color: var(--text-placeholder); }
.intent-status { margin-left: auto; color: var(--warning); }

.reset-btn {
  display: block;
  width: 100%;
  margin: 18px 0 8px;
  padding: 11px 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #FCA5A5;
  color: var(--price-red);
  font-size: 13px;
}

/* 客服浮动按钮 */
.float-kefu {
  position: fixed;
  right: calc(50% - 260px + 14px);
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 15;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}
.float-kefu .fk-text { font-size: 9px; color: var(--primary); margin-top: 1px; }
@media (max-width: 540px) {
  .float-kefu { right: 14px; }
}

/* ===== 空状态 ===== */
.empty-wrap { padding: 60px 20px; text-align: center; }
.empty-icon { font-size: 52px; }
.empty-text { margin-top: 12px; font-size: 14px; color: var(--text-sub); }
.empty-subtext { margin-top: 6px; font-size: 12px; color: var(--text-placeholder); }
.empty-btn {
  margin-top: 20px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  padding: 8px 32px;
}

/* ===== Toast / 弹窗 ===== */
#toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: 76%;
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(17, 24, 39, .86);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
/* hidden 属性必须永远生效，防止遮罩类元素常驻全屏挡住点击 */
[hidden] { display: none !important; }

#modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 24, 39, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#modal {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px 14px;
  text-align: center;
}
#modal-title { font-size: 16px; font-weight: 600; }
#modal-content {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  white-space: pre-line;
  text-align: left;
}
#modal-input {
  width: 100%;
  margin-top: 12px;
  height: 38px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
#modal-input:focus { border-color: var(--primary); }
#modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
#modal-btns button {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  font-size: 14px;
}
#modal-cancel { border: 1px solid #E5E7EB; color: var(--text-sub); }
#modal-ok {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
}
#modal-ok.danger { background: linear-gradient(135deg, #EF4444, #F87171); }

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: 0 2px 10px rgba(31, 41, 55, .05);
  font-size: 13px;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
}

/* ===== 收藏按钮 / 评价列表 ===== */
.fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-sub);
  background: #fff;
}
.fav-btn.on {
  color: var(--price-red);
  border-color: #FCA5A5;
  background: rgba(239, 68, 68, .06);
}
.review-row { display: flex; padding: 12px 14px; }
.review-row + .review-row { border-top: 1px solid #F3F4F6; }
.rv-main { flex: 1; margin-left: 10px; min-width: 0; }
.rv-top { display: flex; align-items: center; }
.rv-name { font-size: 13px; font-weight: 600; }
.rv-stars { margin-left: auto; color: var(--warning); font-size: 12px; letter-spacing: 1px; }
.rv-content { margin-top: 4px; font-size: 13px; color: var(--text-sub); line-height: 1.5; }
.rv-time { margin-top: 4px; font-size: 11px; color: var(--text-placeholder); }

/* ===== 订单列表 ===== */
.order-row { padding: 13px 14px; margin-bottom: 10px; }
.o-top { display: flex; align-items: flex-start; }
.o-desc { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.45; margin-right: 10px; }
.o-status { font-size: 11px; flex-shrink: 0; padding: 2px 8px; border-radius: 999px; }
.o-status.warn { background: rgba(245, 158, 11, .14); color: var(--warning); }
.o-status.run { background: rgba(99, 102, 241, .12); color: var(--primary); }
.o-status.done { background: rgba(16, 185, 129, .12); color: var(--success); }
.o-status.refund { background: rgba(239, 68, 68, .12); color: #EF4444; }
.o-status.refund-applied { background: rgba(245, 158, 11, .12); color: #F59E0B; }
.o-status.off { background: #F3F4F6; color: var(--text-sub); }
.o-meta { display: flex; align-items: center; margin-top: 8px; font-size: 15px; }
.o-time { margin-left: auto; font-size: 11px; color: var(--text-placeholder); }
.o-btns { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; align-items: center; }
.o-btn { padding: 6px 16px; border-radius: 999px; font-size: 12px; }
.o-btn.primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; }
.o-btn.ghost { border: 1px solid #E5E7EB; color: var(--text-sub); }

/* ===== 首页轮播 ===== */
.banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
  background: #111827;
  touch-action: pan-y;
}
.banner-track { display: flex; height: 100%; transition: transform .45s ease; }
.banner-slide { position: relative; flex: 0 0 100%; height: 100%; }
.banner-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55));
}
.banner-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.banner-cap b { color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.banner-cap span { color: rgba(255, 255, 255, .85); font-size: 11px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.banner-dots { position: absolute; right: 12px; bottom: 14px; z-index: 1; display: flex; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: all .3s; }
.banner-dots i.on { width: 16px; background: #fff; }

/* ===== 预约单 ===== */
.bk-mask {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(17, 24, 39, .5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bk-modal {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.bk-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.bk-sec { font-size: 12px; color: var(--text-sub); margin: 10px 0 8px; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.bk-days button { font-family: inherit; border: 2px solid transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.bk-days .sch-chip { flex: 0 0 auto; }
.bk-days .sch-chip.sel { border-color: var(--primary); background: #EEF2FF; }
.bk-days .sch-chip.off { opacity: .45; }
.bk-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-slot {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #E5E7EB);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.bk-slot.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.bk-slot.off { opacity: .45; cursor: not-allowed; }
.bk-hint { font-size: 12px; color: var(--text-sub); }
.bk-btns { display: flex; gap: 10px; margin-top: 16px; }
.bk-btns button { flex: 1; height: 40px; border-radius: 999px; font-size: 14px; }
.bk-cancel { border: 1px solid var(--line, #E5E7EB); color: var(--text-sub); }
.bk-ok { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; }
.bk-ok:disabled { opacity: .5; }
.o-book {
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #EEF2FF;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== 打手排班 ===== */
.sch-card { padding: 12px 14px; }
.sch-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sch-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.sch-chip {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #F3F4F6;
  text-align: center;
}
.sch-chip b { display: block; font-size: 12px; }
.sch-chip span { display: block; font-size: 10px; color: var(--text-sub); }
.sch-chip em { display: block; font-style: normal; font-size: 11px; margin-top: 2px; font-weight: 600; color: #10B981; }
.sch-chip.rest em { color: #9CA3AF; }
.sch-chip.today { background: #EEF2FF; }
.sch-chip.today b { color: var(--primary); }
.rest-note { padding: 12px 14px; font-size: 12px; color: #92400E; background: #FFFBEB; }

/* ===== 评价弹窗 ===== */
#review-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 24, 39, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#review {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px 14px;
  text-align: center;
}
#review-title { font-size: 16px; font-weight: 600; }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.stars button { font-size: 26px; color: #E5E7EB; background: none; line-height: 1; }
.stars button.on { color: var(--warning); }
#review-text {
  width: 100%;
  height: 70px;
  margin-top: 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  outline: none;
}
#review-text:focus { border-color: var(--primary); }
#review-btns { display: flex; gap: 10px; margin-top: 16px; }
#review-btns button { flex: 1; height: 38px; border-radius: 999px; font-size: 14px; }
#review-cancel { border: 1px solid #E5E7EB; color: var(--text-sub); }
#review-ok { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; }

/* ===== 订单行优惠券 ===== */
.o-coupon {
  flex: 0 0 auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 107, 53, .12);
  color: var(--accent);
  white-space: nowrap;
}
.o-price-line { display: inline-flex; align-items: baseline; gap: 6px; }
.o-origin {
  font-size: 12px;
  color: var(--text-placeholder);
  text-decoration: line-through;
}

/* ===== 优惠券页（领券中心 / 我的券包） ===== */
.cp-page { padding-top: 10px; }
.cp-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 14px 12px;
}
.cp-tabs button {
  position: relative;
  padding: 7px 18px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-sub);
  border: 1px solid #E5E7EB;
}
.cp-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.cp-tabs em {
  font-style: normal;
  margin-left: 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  display: inline-block;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--price-red);
  color: #fff;
  font-size: 10px;
}
.cp-tabs button.active em { background: rgba(255,255,255,.25); }

/* 券卡：左侧金额块 + 右侧信息，整体票券造型 */
.coupon-card {
  display: flex;
  align-items: stretch;
  margin: 0 14px 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 41, 55, .05);
}
.cc-left {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #FF6B35, #F43F5E);
  padding: 14px 6px;
}
.cc-left b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.cc-left b::first-letter { font-size: 15px; margin-right: 1px; }
.cc-left span { font-size: 10px; opacity: .92; margin-top: 3px; }
.cc-body {
  flex: 1;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cc-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-sub { font-size: 11px; color: var(--text-sub); margin-top: 5px; }
.cc-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 14px;
}
.cp-get {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6B35, #F43F5E);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.cp-get:disabled {
  background: #F3F4F6;
  color: var(--text-placeholder);
  font-weight: 400;
}
.cc-tag { font-size: 12px; color: var(--text-sub); }
/* 已领取 / 抢光：整卡淡化 */
.coupon-card.is-got { opacity: .72; }
/* 使用中（冻结）：蓝色金额块 */
.coupon-card.is-frozen .cc-left { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.coupon-card.is-frozen .cc-tag { color: var(--primary); }
/* 已使用 / 已过期：灰色置灰 */
.coupon-card.is-off { opacity: .55; }
.coupon-card.is-off .cc-left { background: linear-gradient(135deg, #9CA3AF, #6B7280); }
.coupon-card.is-off .cc-name { text-decoration: line-through; }

/* ===== 下单选券弹窗 ===== */
.cp-modal { width: 100%; max-width: 520px; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 82vh; display: flex; flex-direction: column; }
.cp-sum {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  background: #F9FAFB;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--text-sub);
}
.cp-sum b { color: var(--text-main); font-weight: 600; text-align: right; }
.cp-sum .cp-cut { color: var(--accent); }
.cp-sum .cp-pay { color: var(--price-red); font-size: 15px; font-weight: 800; }
.cp-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.cp-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 34px 10px 10px;
  background: #fff;
  transition: border-color .15s;
}
.cp-opt.sel { border-color: var(--accent); background: rgba(255, 107, 53, .05); }
.cp-opt.disabled { opacity: .5; cursor: not-allowed; }
.cp-opt.none .cp-info { padding-left: 2px; }
.cp-amt {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--price-red);
}
.cp-amt b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.cp-amt small { font-size: 10px; color: var(--text-sub); margin-top: 2px; }
.cp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-info b { font-size: 14px; font-weight: 600; }
.cp-info small { font-size: 11px; color: var(--text-sub); }
.cp-state { flex: 0 0 auto; font-size: 11px; color: var(--text-placeholder); }
.cp-radio {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
}
.cp-opt.sel .cp-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.cp-empty { padding: 22px; text-align: center; font-size: 12px; color: var(--text-sub); }

/* 打手详情增强 */
.cert-badge {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 6px; padding: 1px 6px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  border-radius: 10px; vertical-align: middle;
}
.resp-text { font-size: 11px; color: var(--text-sub); margin-left: 8px; }
.tag.game { background: rgba(99, 102, 241, .12); color: #4F46E5; }
.tag.rank { background: rgba(245, 158, 11, .12); color: #D97706; }
.tag.skill { background: rgba(16, 185, 129, .12); color: #059669; }
.sch-tip { font-size: 11px; font-weight: 400; color: var(--text-sub); margin-left: 6px; }
.sch-strip .sch-chip { cursor: pointer; }
.sch-strip .sch-chip:hover:not(.rest) { border-color: var(--accent); }
.sim-list { display: flex; flex-direction: column; gap: 8px; }
.sim-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff; border-radius: 12px;
  cursor: pointer; transition: background .15s;
}
.sim-card:active { background: #F9FAFB; }
.sim-info { flex: 1; min-width: 0; }
.sim-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sim-tags { margin: 4px 0 2px; display: flex; gap: 4px; flex-wrap: wrap; }
.sim-tags .tag { font-size: 10px; }
.sim-meta { font-size: 11px; color: var(--text-sub); }
.sim-arrow { font-size: 22px; color: #D1D5DB; line-height: 1; }

/* 评价体系：分项评分 + 追评 */
.rv-dims { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.rv-dim { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-dim-label { font-size: 13px; color: var(--text-sub); flex: 0 0 70px; }
.rv-dim-stars { display: flex; gap: 4px; }
.rv-dim-stars button {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #E5E7EB; padding: 0; line-height: 1;
}
.rv-dim-stars button.on { color: #FBBF24; }
.rv-summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #FFFBEB; border-radius: 10px; margin: 6px 0 10px; }
.rv-avg-stars { font-size: 18px; color: #FBBF24; }
.rv-avg-num { font-size: 16px; font-weight: 700; color: #B45309; }
.rv-avg-tip { font-size: 11px; color: var(--text-sub); margin-left: auto; }
.rv-dims-mini { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0; font-size: 11px; color: var(--text-sub); }
.rv-dims-mini span b { color: var(--text-main); font-weight: 600; margin-right: 2px; }
.rv-score { font-size: 12px; color: var(--text-sub); margin-left: 4px; }
.rv-follow {
  margin-top: 8px; padding: 8px 10px; background: #F9FAFB;
  border-radius: 8px; font-size: 12px; color: var(--text-main);
  border-left: 2px solid #6366F1;
}
.rv-follow-tag {
  display: inline-block; padding: 1px 6px; background: #6366F1;
  color: #fff; border-radius: 4px; font-size: 10px; margin-right: 6px; vertical-align: middle;
}
.rv-follow-time { display: block; font-size: 10px; color: var(--text-sub); margin-top: 4px; }
.b-stats small { font-size: 10px; color: var(--text-sub); font-weight: 400; margin-left: 2px; }

/* 首页公告条 */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 10px; padding: 9px 12px;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px;
  font-size: 12px; color: #92400E;
}
.notice-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-x { flex: none; border: none; background: none; color: #B45309; font-size: 13px; padding: 2px 4px; cursor: pointer; }
.notice-ico { flex: none; font-size: 13px; }
.notice-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.notice-body[data-notice-link] { cursor: pointer; }
.notice-count { flex: none; font-size: 10px; color: #B45309; background: rgba(180,83,9,.1); border-radius: 8px; padding: 1px 6px; }
.notice-in { animation: noticeIn .35s ease both; }
@keyframes noticeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 首页热门套餐：横向滑动卡片 */
.deal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin: 0 -14px;
  padding: 0 14px 6px;
}
.deal-scroll::-webkit-scrollbar { display: none; }
.deal-track {
  display: flex;
  gap: 12px;
  padding-right: 14px;
}
.deal-card {
  flex: 0 0 150px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.deal-card-cover {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #F3F4F6;
}
.deal-card-body { padding: 10px; }
.deal-card-title { font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deal-card-desc { font-size: 11px; color: var(--text-sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; min-height: 30px; }
.deal-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.deal-card-foot .num { font-size: 16px; font-weight: 700; }
.deal-card-foot .unit { font-size: 10px; color: var(--text-sub); }
.deal-card-btn {
  border: none; background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff; font-size: 11px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}

/* 聊天：订单/打手卡片消息 */
.msg-card {
  width: 220px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.msg-row.mine .msg-card { margin-left: auto; }
.mc-cover { display: block; width: 100%; height: 90px; object-fit: cover; background: #F3F4F6; }
.mc-body { padding: 10px; }
.mc-title { font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mc-desc { font-size: 11px; color: var(--text-sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.mc-price { margin-top: 6px; }
.mc-price b { font-size: 15px; font-weight: 700; }
.mc-price span { font-size: 10px; color: var(--text-sub); }
.mc-btn {
  display: block; width: 100%; border: none; border-top: 1px solid #F3F4F6;
  background: #fff; color: var(--primary); font-size: 12px; padding: 8px 0; cursor: pointer;
}
.mc-btn:active { background: #F9FAFB; }

/* 对方正在输入 */
.typing {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 12px; color: var(--text-sub);
}
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #D1D5DB;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
.typing-text { margin-left: 4px; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 我的页：头像编辑 + 签名 + 统计 */
.me-avatar { position: relative; cursor: pointer; }
.me-avatar .avatar { transition: transform .2s; }
.me-avatar:hover .avatar { transform: scale(1.05); }
.me-avatar-edit {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff; font-size: 10px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.me-sig { font-size: 12px; color: var(--text-sub); margin-top: 4px; cursor: pointer; }
.pen-tip { color: var(--primary); font-size: 11px; margin-left: 4px; }
.me-stats {
  display: flex; background: #fff; border-radius: 12px; margin: 0 14px 12px;
  padding: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.me-stat { flex: 1; text-align: center; }
.me-stat b { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.me-stat span { font-size: 11px; color: var(--text-sub); }

/* 头像选择弹窗 */
.av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.av-opt {
  width: 100%; aspect-ratio: 1; border: 1px solid #E5E7EB; border-radius: 12px;
  background: #F9FAFB; font-size: 24px; cursor: pointer;
}
.av-opt:active { background: #EEF2FF; border-color: var(--primary); }
.av-custom { display: flex; gap: 8px; margin-bottom: 12px; }
.av-custom input { flex: 1; height: 34px; border: 1px solid #E5E7EB; border-radius: 8px; padding: 0 10px; font-size: 12px; }
.av-reset { width: 100%; border: 1px dashed #E5E7EB; background: none; color: var(--text-sub); padding: 8px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* 头像图片/emoji 模式 */
.avatar.av-img { padding: 0; overflow: hidden; }
.avatar.av-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.av-emoji { background: linear-gradient(135deg,#EEF2FF,#F5F3FF); font-size: 1.4em; }

/* 设置页开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; margin-left: auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0; background: #D1D5DB; border-radius: 24px; transition: .2s;
}
.slider:before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }

