/* ==========================================================================
   极速AI圈 H5 预览版 · 视觉基准 = UI原型.html ①~④
   主色 #07C160 / 卡片圆角 16 / 按钮胶囊 24 / 标签 8
   ========================================================================== */

:root {
  --green: #07C160;
  --green-deep: #05a850;
  --grad: linear-gradient(135deg, #07C160 0%, #05a850 100%);
  --grad-head: linear-gradient(180deg, #07c160 0%, #0ad071 100%);

  --t1: #1f2329;   /* 主文字 */
  --t2: #4e5969;   /* 次级 */
  --t3: #86909c;   /* 弱 */
  --t4: #c9cdd4;   /* 更弱 */
  --line: #e5e6eb;
  --line-soft: #f2f3f5;
  --bg: #f5f6f7;

  --st-wait-pay: #ff7d00;
  --st-wait-group: #165dff;
  --st-to-use: #07C160;
  --st-used: #86909c;
  --st-refund: #f53f3f;

  --r-card: 16px;
  --r-btn: 24px;
  --r-tag: 8px;

  --shadow-card: 0 1px 4px rgba(0, 0, 0, .05);
  --shadow-pop: 0 -8px 32px rgba(0, 0, 0, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--t1);
  background: #e6e8eb;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--t1); }
a { color: var(--green); text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- 手机容器（PC 上呈现为竖屏卡片） ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg);
  position: relative;
}

@media (min-width: 560px) {
  .app {
    height: calc(100vh - 56px);
    max-height: 940px;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04);
  }
  .app-inner { border-radius: 28px; overflow: hidden; }
}

/* ---------- 状态栏（仅 PC 展示，移动端由系统状态栏负责） ---------- */
.app-statusbar {
  display: none;
  flex: none;
  height: 30px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--t3);
  background: #fff;
}
.app-statusbar .sb-right { display: flex; align-items: center; gap: 5px; }
@media (min-width: 560px) { .app-statusbar { display: flex; } }

/* ---------- 主体滚动区 ---------- */
.app-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  scroll-behavior: smooth;
}
.app-body::-webkit-scrollbar { width: 0; }

.view { min-height: 100%; display: flex; flex-direction: column; }
.view.has-footer { padding-bottom: 0; }

/* ---------- 通用 ---------- */
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.muted { color: var(--t3); }
.center { text-align: center; }
.ic { display: block; flex: none; }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--r-btn);
  background: var(--green); color: #fff; font-size: 16px; font-weight: 600;
  transition: opacity .15s, transform .15s;
}
.btn-primary:active { opacity: .86; transform: scale(.99); }
.btn-primary[disabled], .btn-primary.is-disabled {
  background: #c9cdd4; color: #fff; pointer-events: none;
}
.btn-ghost {
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: var(--r-btn);
  border: 1px solid var(--line); color: var(--t2); font-size: 14px; background: #fff;
}
.btn-ghost:active { background: #f7f8fa; }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 14px; border-radius: 15px;
  border: 1px solid var(--line); color: var(--t2); font-size: 12px; background: #fff;
}
.mini-btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.mini-btn.warn { color: var(--st-refund); border-color: #ffd2cc; }
.mini-btn:active { opacity: .8; }

/* ---------- 状态 pill ---------- */
.pill {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px; border-radius: var(--r-tag);
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.pill.st-0 { color: var(--st-wait-pay); background: #fff7e8; }
.pill.st-1 { color: var(--st-wait-group); background: #e8f3ff; }
.pill.st-2 { color: var(--st-to-use); background: #e8ffea; }
.pill.st-3 { color: var(--st-used); background: #f2f3f5; }
.pill.st-4 { color: var(--st-refund); background: #ffece8; }
.pill.st-5 { color: var(--st-used); background: #f2f3f5; }
.pill.tag-group { color: #ff7d00; background: #fff2e8; font-weight: 600; }

/* ---------- 首页头部 ---------- */
.home-head {
  background: var(--grad-head);
  padding: 14px 16px 16px;
  color: #fff;
  flex: none;
}
.home-head .city-line {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 600; cursor: pointer;
  user-select: none;
}
.home-head .city-line .site {
  font-size: 17px; font-weight: 700; letter-spacing: .5px;
}
.home-head .city-line .city {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .18); border-radius: 12px;
  padding: 3px 8px 3px 10px; margin-left: 2px;
}
.home-head .city-line .city svg { opacity: .95; }
.home-head .sub-line {
  margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .82);
}
.search-box {
  margin-top: 12px;
  background: #fff; border-radius: var(--r-card);
  height: 38px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
}
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 13px; color: var(--t1);
}
.search-box input::placeholder { color: var(--t3); }
.search-box .search-btn {
  font-size: 12px; color: var(--green); font-weight: 600;
  padding: 4px 2px 4px 8px; flex: none;
}

/* ---------- 双列瀑布流 ---------- */
.waterfall {
  display: flex; gap: 10px;
  padding: 12px 12px 20px;
  align-items: flex-start;
}
.wf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wf-col.right { margin-top: 24px; }  /* 右列下沉，错位瀑布流 */

.act-card {
  background: #fff; border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-card);
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease;
}
.act-card:active { transform: scale(.985); }
.act-card.is-disabled { opacity: .62; }
.act-card.is-disabled .act-cover { filter: grayscale(.55); }

.act-cover {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
}
/* 封面高度按原型「位置节奏」轮转，制造高低错落（见 config.js H_LEFT / H_RIGHT） */
.act-cover.h1 { height: 104px; }
.act-cover.h2 { height: 132px; }
.act-cover.h3 { height: 84px; }
.act-cover.h4 { height: 146px; }
.act-cover.h5 { height: 112px; }
/* coverTone 1~5 → 5 组柔和渐变（后端 cover 为空时占位） */
.tone-1 { background: linear-gradient(135deg, #95ec69 0%, #07c160 100%); }
.tone-2 { background: linear-gradient(135deg, #7bb8ff 0%, #165dff 100%); }
.tone-3 { background: linear-gradient(135deg, #ffb65d 0%, #ff7d00 100%); }
.tone-4 { background: linear-gradient(135deg, #f7b1ab 0%, #f53f3f 100%); }
.tone-5 { background: linear-gradient(135deg, #bda9f5 0%, #722ed1 100%); }

.act-cover .cover-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0, 0, 0, .28); color: #fff;
  font-size: 10px; padding: 2px 7px; border-radius: 7px;
  backdrop-filter: blur(4px);
}
.act-cover .cover-soldout {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31, 35, 41, .42);
  font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #fff;
}
.act-cover .cover-title {
  font-size: 11px; color: rgba(255, 255, 255, .88); letter-spacing: .5px;
}

.act-body { padding: 10px 12px 12px; }
.act-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--t1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.act-meta {
  margin-top: 5px; font-size: 11px; color: var(--t3); line-height: 1.6;
}
.act-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 8px; gap: 6px;
}
.price { color: var(--st-refund); font-weight: 700; font-size: 17px; line-height: 1; }
.price .cur { font-size: 12px; margin-right: 1px; }
.price s { color: var(--t4); font-size: 11px; font-weight: 400; margin-left: 4px; }
.joined { font-size: 11px; color: var(--t3); white-space: nowrap; }
.tag-pt {
  display: inline-block; background: #fff2e8; color: #ff7d00;
  font-size: 10px; border-radius: 6px; padding: 1px 5px;
  margin-left: 4px; vertical-align: 1px; font-weight: 600; white-space: nowrap;
}

/* ---------- 加载 / 空状态 ---------- */
.sk-line, .sk-card { background: linear-gradient(90deg, #eef0f2 25%, #f6f7f8 37%, #eef0f2 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
.sk-line { height: 14px; margin: 12px 16px; }
.sk-w70 { width: 70%; } .sk-w45 { width: 45%; }
.sk-card { height: 168px; margin: 12px; border-radius: var(--r-card); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.boot-loading { padding-top: 8px; }
.loading-text {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 0; font-size: 12px; color: var(--t3);
}
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid #d9dde1; border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 24px; gap: 12px; text-align: center;
}
.empty .empty-t { font-size: 14px; color: var(--t2); font-weight: 500; }
.empty .empty-s { font-size: 12px; color: var(--t3); line-height: 1.7; }
.empty .empty-art { opacity: .95; }

/* ---------- 底部 TabBar ---------- */
.tabbar {
  flex: none;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: 54px; font-size: 10px; color: var(--t3);
  cursor: pointer; user-select: none;
}
.tabbar .tab.on { color: var(--green); font-weight: 600; }
.tabbar .tab:active { opacity: .7; }

/* ---------- 详情页 ---------- */
.d-cover {
  position: relative; height: 200px;
  display: flex; align-items: flex-end; padding: 14px;
  color: #fff;
}
.d-cover.is-poster { height: auto; aspect-ratio: 941 / 1672; }
.d-cover .cover-title { font-size: 12px; letter-spacing: 1px; color: rgba(255, 255, 255, .9); }

/* 详情轮播（最多 5 张）：横向 scroll-snap + 圆点 */
.d-swipe-wrap { display: block; padding: 0; overflow: hidden; }
.d-swipe {
  height: 100%; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.d-swipe::-webkit-scrollbar { display: none; }
.d-swipe-item { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.d-swipe-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-swipe-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.d-swipe-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45);
  transition: width .2s, background .2s;
}
.d-swipe-dots i.on { width: 14px; border-radius: 3px; background: #fff; }
.d-cover .back-btn {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0, 0, 0, .28); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.d-body { background: #fff; padding: 16px 16px 18px; }
.d-title { font-size: 19px; font-weight: 700; line-height: 1.45; }
.d-price-row { margin-top: 10px; display: flex; align-items: flex-end; gap: 8px; }
.d-price { color: var(--st-refund); font-weight: 700; font-size: 26px; line-height: 1; }
.d-price .cur { font-size: 16px; margin-right: 1px; }
.d-price-origin { color: var(--t4); font-size: 13px; text-decoration: line-through; padding-bottom: 3px; }
.d-price-tag { font-size: 11px; color: #ff7d00; background: #fff2e8; border-radius: 6px; padding: 2px 7px; margin-bottom: 3px; font-weight: 600; }
.d-joined {
  margin-top: 10px; display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--t3);
}
.d-joined b { color: #ff7d00; font-size: 13px; }

.d-info { background: #fff; margin-top: 10px; padding: 4px 16px; }
.d-info .it {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.d-info .it:last-child { border-bottom: 0; }
.d-info .k { width: 76px; flex: none; color: var(--t3); display: flex; align-items: center; gap: 5px; font-size: 12px; }
.d-info .v { flex: 1; min-width: 0; color: var(--t1); line-height: 1.6; word-break: break-word; }
.d-info .v.tel { color: #165dff; }

.pt-panel {
  margin: 10px 12px 0;
  background: linear-gradient(90deg, #fff7e8, #fff2e8);
  border: 1px solid #ffcf8b; border-radius: var(--r-card);
  padding: 12px 14px;
}
.pt-panel .t { font-size: 14px; font-weight: 700; color: #ff7d00; display: flex; align-items: center; gap: 6px; }
.pt-panel .t s { color: var(--t4); font-weight: 400; font-size: 12px; }
.pt-panel .p { font-size: 11px; color: var(--t3); margin-top: 4px; line-height: 1.6; }
.pt-panel .join-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pt-join {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 9px 12px;
  border: 1px solid #ffe1ba;
}
.pt-join .avt {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.pt-join .pj-name { font-size: 12px; color: var(--t1); font-weight: 600; }
.pt-join .pj-meta { font-size: 10px; color: var(--t3); margin-top: 2px; }
.pt-join .pj-btn {
  flex: none; font-size: 11px; font-weight: 600; color: #fff;
  background: #ff7d00; border-radius: 12px; padding: 5px 12px;
}

.d-rich { background: #fff; margin-top: 10px; padding: 16px; font-size: 14px; color: var(--t2); line-height: 1.9; }
.d-rich h1, .d-rich h2, .d-rich h3, .d-rich h4 {
  font-size: 15px; color: var(--t1); margin: 14px 0 6px; font-weight: 600;
  padding-left: 9px; border-left: 3px solid var(--green); line-height: 1.4;
}
.d-rich h1:first-child, .d-rich h2:first-child, .d-rich h3:first-child { margin-top: 0; }
.d-rich p { margin: 6px 0; }
.d-rich img { border-radius: 10px; margin: 8px 0; }
.d-rich ul, .d-rich ol { padding-left: 20px; list-style: revert; }
.d-rich li { margin: 4px 0; }
.d-rich strong, .d-rich b { color: var(--t1); }

/* 底部固定操作条 */
.d-footer {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-b));
}
.fav-btn {
  flex: none; width: 52px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--t3); padding: 2px 0;
}
.fav-btn.on { color: var(--st-refund); }
.fav-btn.on svg { fill: var(--st-refund); stroke: var(--st-refund); }
.d-footer .btn-primary { flex: 1; }
.d-footer .btn-price { display: flex; flex-direction: column; line-height: 1.15; }
.d-footer .btn-price small { font-size: 10px; font-weight: 400; opacity: .9; }

/* ---------- 导航条（表单/收藏等二级页） ---------- */
.nav {
  flex: none; height: 48px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid var(--line-soft);
}
.nav .nav-title { font-size: 16px; font-weight: 600; }
.nav .nav-back {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--t1);
}
.nav .nav-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--green); font-weight: 500;
}

/* ---------- 表单页 ---------- */
.form-page { background: var(--bg); }
.form-intro {
  background: #fff; padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
}
.form-intro .fi-t { font-size: 15px; font-weight: 600; line-height: 1.5; }
.form-intro .fi-m { margin-top: 6px; font-size: 12px; color: var(--t3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.form-intro .fi-price { color: var(--st-refund); font-weight: 700; font-size: 15px; }

.form-list { background: #fff; margin-top: 10px; }
.form-item {
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
}
.form-item:last-child { border-bottom: 0; }
.form-item .l {
  display: flex; align-items: center; gap: 3px;
  font-size: 13px; color: var(--t2); margin-bottom: 8px; font-weight: 500;
}
.form-item .l i { color: var(--st-refund); font-style: normal; }
.form-item .l .req { color: var(--st-refund); }
.form-item .err-msg { margin-top: 6px; font-size: 11px; color: var(--st-refund); display: none; }
.form-item.has-err .err-msg { display: block; }
.form-item.has-err .input, .form-item.has-err .textarea, .form-item.has-err .select {
  border-color: #ffb4a8; background: #fff8f7;
}
.input, .textarea, .select {
  width: 100%; border: 1px solid transparent; background: #f7f8fa;
  border-radius: 10px; padding: 0 12px; height: 42px; outline: none;
  font-size: 14px; color: var(--t1); transition: border-color .15s, background .15s;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386909c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--green); background: #fff; }
.input::placeholder, .textarea::placeholder { color: var(--t4); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: var(--r-btn);
  background: #f7f8fa; border: 1px solid transparent;
  font-size: 13px; color: var(--t2); cursor: pointer;
  transition: all .15s;
}
.chip.on {
  background: #e8ffea; border-color: var(--green); color: var(--green); font-weight: 600;
}
.form-tip { padding: 12px 16px 4px; font-size: 11px; color: var(--t3); line-height: 1.7; }

/* 提交条 */
.submit-bar {
  flex: none; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + var(--safe-b));
  display: flex; align-items: center; gap: 12px;
}
.submit-bar .amount { flex: none; display: flex; flex-direction: column; line-height: 1.2; }
.submit-bar .amount .a-label { font-size: 10px; color: var(--t3); }
.submit-bar .amount .a-val { font-size: 20px; font-weight: 700; color: var(--st-refund); }
.submit-bar .amount .a-val .cur { font-size: 13px; }
.submit-bar .btn-primary { flex: 1; }

/* ---------- 支付完成 / 核销码 ---------- */
.result-page { background: var(--bg); }
.ok-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 30px auto 12px; color: #fff;
  box-shadow: 0 8px 20px rgba(7, 193, 96, .28);
  animation: pop .4s cubic-bezier(.2, 1.4, .5, 1);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ok-text { text-align: center; font-size: 19px; font-weight: 700; }
.ok-sub { text-align: center; font-size: 12px; color: var(--t3); margin-top: 6px; padding: 0 24px; line-height: 1.6; }

.qr-box {
  background: #fff; margin: 18px 16px 0; border-radius: var(--r-card);
  padding: 20px 18px; text-align: center;
}
.qr-box .qr-t { font-size: 12px; color: var(--t3); }
.qr-img {
  width: 168px; height: 168px; margin: 12px auto 0;
  border: 6px solid #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line); background: #fff;
}
.qr-code-text {
  margin-top: 12px; font-size: 24px; font-weight: 700; color: var(--t1);
  letter-spacing: 3px; font-family: "SF Mono", Menlo, Consolas, monospace;
}
.qr-hint { margin-top: 8px; font-size: 12px; color: var(--t3); }
.qr-used-mask { margin-top: 10px; font-size: 12px; color: var(--st-used); }

/* 拼团进度 */
.group-box {
  background: #fff; margin: 18px 16px 0; border-radius: var(--r-card); padding: 18px;
}
.group-box .g-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.group-box .g-sub { margin-top: 8px; font-size: 12px; color: var(--t3); line-height: 1.7; }
.group-box .g-sub b { color: #ff7d00; }
.progress {
  margin-top: 14px; height: 8px; border-radius: 4px; background: #f2f3f5; overflow: hidden;
}
.progress .bar {
  height: 100%; border-radius: 4px; background: var(--grad);
  transition: width .4s ease; width: 0;
}
.group-members { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.group-members .m {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--grad);
}
.group-members .m.empty-slot {
  background: #f2f3f5; color: var(--t4); border: 1px dashed #d9dde1;
}
.countdown { margin-top: 12px; font-size: 12px; color: var(--t2); }
.countdown b { color: var(--st-wait-group); font-variant-numeric: tabular-nums; }

.ok-info { background: #fff; margin: 10px 16px 0; border-radius: var(--r-card); padding: 4px 16px; }
.result-actions { padding: 18px 16px calc(24px + var(--safe-b)); display: flex; gap: 12px; }
.result-actions .btn-primary, .result-actions .btn-ghost { flex: 1; height: 46px; font-size: 15px; }

/* ---------- 订单列表 ---------- */
.order-tabs {
  flex: none; display: flex; background: #fff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 5;
}
.order-tabs .ot {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 11px 0 9px; font-size: 13px; color: var(--t2);
  position: relative; cursor: pointer;
}
.order-tabs .ot.on { color: var(--green); font-weight: 600; }
.order-tabs .ot.on::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 2px; background: var(--green);
}
.order-tabs .badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #f2f3f5; color: var(--t3); font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.order-tabs .ot.on .badge { background: #e8ffea; color: var(--green); }

.order-card {
  background: #fff; margin: 10px 12px 0; border-radius: var(--r-card);
  padding: 14px; box-shadow: var(--shadow-card);
}
.order-card:last-child { margin-bottom: 14px; }
.order-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--t3); gap: 8px; }
.order-title { font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.45; }
.order-meta { font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.75; }
.order-meta .om-row { display: flex; align-items: center; gap: 5px; }
.order-meta .code { color: var(--t2); font-weight: 600; font-family: "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5px; }
.order-meta .amt { color: var(--st-refund); font-weight: 600; }
.order-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.order-foot .spacer { flex: 1; }

/* ---------- 我的 ---------- */
.me-head {
  background: var(--grad); padding: 30px 18px 34px;
  display: flex; align-items: center; gap: 14px; color: #fff;
}
.avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-name { font-size: 18px; font-weight: 700; }
.me-phone { font-size: 12px; color: rgba(255, 255, 255, .85); margin-top: 5px; }

.me-stats {
  background: #fff; margin: -18px 12px 0; border-radius: var(--r-card);
  padding: 16px 0; display: flex; box-shadow: var(--shadow-card);
  position: relative; z-index: 2;
}
.me-stats .st { flex: 1; text-align: center; position: relative; cursor: pointer; }
.me-stats .st + .st::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 24px; background: var(--line-soft);
}
.me-stats .st .n { font-size: 20px; font-weight: 700; color: var(--t1); line-height: 1.2; }
.me-stats .st .t { font-size: 11px; color: var(--t3); margin-top: 4px; }

.me-menu { background: #fff; margin: 10px 12px 0; border-radius: var(--r-card); overflow: hidden; }
.me-menu .it {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 14px; font-size: 14px; border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.me-menu .it:last-child { border-bottom: 0; }
.me-menu .it:active { background: #fafbfc; }
.me-menu .it .l { display: flex; align-items: center; gap: 10px; color: var(--t1); }
.me-menu .it .arrow { color: var(--t4); display: flex; align-items: center; gap: 6px; font-size: 12px; }
.me-footer { text-align: center; font-size: 11px; color: var(--t4); padding: 24px 0 calc(24px + var(--safe-b)); line-height: 1.8; }

/* ---------- 收藏列表 ---------- */
.fav-list { padding: 10px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.fav-item {
  display: flex; gap: 12px; background: #fff; border-radius: var(--r-card);
  padding: 12px; box-shadow: var(--shadow-card);
}
.fav-thumb {
  width: 92px; height: 76px; border-radius: 12px; flex: none;
  display: flex; align-items: flex-end; padding: 6px 8px;
  color: rgba(255, 255, 255, .9); font-size: 10px;
}
.fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fav-info .f-t { font-size: 14px; font-weight: 600; line-height: 1.4; }
.fav-info .f-m { font-size: 11px; color: var(--t3); margin-top: 5px; line-height: 1.6; }
.fav-info .f-b { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.fav-del {
  flex: none; align-self: flex-start; font-size: 11px; color: var(--t3);
  border: 1px solid var(--line); border-radius: 12px; padding: 3px 10px;
}

/* ---------- 城市选择面板 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  z-index: 90; opacity: 0; transition: opacity .22s ease;
}
.mask.show { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 20px 20px 0 0; z-index: 91;
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  padding-bottom: var(--safe-b);
  max-height: 74vh; display: flex; flex-direction: column;
}
.sheet.show { transform: translate(-50%, 0); }
.sheet-head {
  flex: none; padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.sheet-head .sh-t { font-size: 16px; font-weight: 600; }
.sheet-head .sh-x { color: var(--t3); font-size: 20px; line-height: 1; padding: 4px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px calc(20px + var(--safe-b)); }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.city-cell {
  height: 44px; border-radius: 12px; background: #f7f8fa;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; color: var(--t1); cursor: pointer; gap: 1px;
}
.city-cell .c-n { font-size: 14px; font-weight: 500; }
.city-cell .c-c { font-size: 10px; color: var(--t3); }
.city-cell.on { background: #e8ffea; color: var(--green); font-weight: 600; box-shadow: inset 0 0 0 1px var(--green); }
.city-cell.on .c-c { color: var(--green); }

/* ---------- 模拟微信支付弹窗 ---------- */
.pay-modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s;
}
.pay-modal.show { opacity: 1; }
.pay-card {
  width: 100%; max-width: 320px; background: #fff; border-radius: 18px;
  overflow: hidden; transform: scale(.92); transition: transform .22s cubic-bezier(.2, 1.3, .5, 1);
}
.pay-modal.show .pay-card { transform: scale(1); }
.pay-head { padding: 18px 20px 12px; text-align: center; font-size: 15px; font-weight: 600; }
.pay-amount { text-align: center; font-size: 32px; font-weight: 700; padding: 4px 20px 6px; }
.pay-amount .cur { font-size: 18px; margin-right: 2px; }
.pay-desc { text-align: center; font-size: 12px; color: var(--t3); padding: 0 20px 16px; line-height: 1.6; }
.pay-mock-tip {
  margin: 0 16px 14px; background: #fffbe8; border: 1px solid #ffe58f;
  border-radius: 8px; padding: 8px 10px; font-size: 11px; color: #a1700a; line-height: 1.6;
}
.pay-foot { display: flex; border-top: 1px solid var(--line-soft); }
.pay-foot button {
  flex: 1; height: 50px; font-size: 16px; font-weight: 600;
}
.pay-foot .cancel { color: var(--t2); border-right: 1px solid var(--line-soft); font-weight: 400; }
.pay-foot .confirm { color: var(--green); }

/* ---------- toast ---------- */
.toast-host {
  position: fixed; left: 0; right: 0; top: 0; z-index: 120;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 16px 0; pointer-events: none;
}
.toast {
  max-width: 340px; background: rgba(31, 35, 41, .9); color: #fff;
  font-size: 13px; line-height: 1.6; padding: 10px 16px; border-radius: 10px;
  text-align: center; opacity: 0; transform: translateY(-10px);
  transition: opacity .2s, transform .2s; backdrop-filter: blur(6px);
  word-break: break-word;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: rgba(245, 63, 63, .94); }
.toast.ok { background: rgba(7, 193, 96, .94); }

/* ---------- 错误块 ---------- */
.err-block {
  margin: 40px 20px; background: #fff; border-radius: var(--r-card);
  padding: 28px 20px; text-align: center;
}
.err-block .eb-t { font-size: 15px; font-weight: 600; margin-top: 12px; }
.err-block .eb-s { font-size: 12px; color: var(--t3); margin-top: 8px; line-height: 1.7; word-break: break-all; }
.err-block .btn-ghost { margin: 16px auto 0; width: 132px; }

/* 底部占位（详情页有固定操作条） */
.pad-bottom { height: 12px; }

/* ---------- 页面级固定底栏容器（详情操作条 / 表单提交条） ---------- */
.page-footer { flex: none; display: block; }
.page-footer:empty { display: none; }
.page-footer.is-hidden { display: none; }

/* ==========================================================================
 * 现场核销（#/verify?t=xxx）—— 用户扫现场码自助核销
 * ========================================================================== */
.verify-page { background: var(--bg); padding: 12px 14px 0; }
.verify-head {
  background: #fff; border-radius: var(--r-card);
  padding: 18px 16px;
}
.vh-tag {
  display: inline-block; font-size: 11px; line-height: 1;
  color: var(--green); background: rgba(7, 193, 96, .1);
  border-radius: 4px; padding: 4px 8px;
}
.vh-title { font-size: 19px; font-weight: 700; margin-top: 10px; line-height: 1.4; }
.vh-meta { font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.5; }

.verify-list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 4px 10px;
}
.verify-list-head b { font-size: 14px; }
.verify-list-head span { font-size: 12px; color: var(--t3); }

.vt-card {
  display: flex; gap: 10px;
  background: #fff; border: 1px solid #eef0f3; border-radius: 12px;
  padding: 14px; margin-bottom: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.vt-card.on { border-color: var(--green); background: rgba(7, 193, 96, .04); }
.vt-card.off { opacity: .55; cursor: default; }

.vt-radio {
  width: 18px; height: 18px; flex: none; margin-top: 3px;
  border: 1px solid #d5d8de; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.vt-radio.on { border-color: var(--green); }
.vt-radio i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: none; }
.vt-radio.on i { display: block; }

.vt-body { flex: 1; min-width: 0; }
.vt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vt-top b { font-size: 15px; }
.vt-no { font-size: 12px; color: var(--t3); margin-top: 6px; word-break: break-all; }
.vt-hint { font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.5; }

.verify-tip {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 12px; color: var(--t3); line-height: 1.5;
  padding: 10px 4px 0;
}
.verify-confirm { width: 100%; margin-top: 16px; }
.verify-foot { text-align: center; font-size: 11px; color: #b8bcc4; margin-top: 12px; }

.verify-empty { background: #fff; border-radius: var(--r-card); padding: 40px 24px; text-align: center; }
.ve-title { font-size: 15px; font-weight: 700; }
.ve-sub { font-size: 12px; color: var(--t3); margin-top: 8px; line-height: 1.6; }

.verify-done { background: #fff; border-radius: var(--r-card); padding: 8px 20px 20px; }
.verify-done .ok-icon { margin: 24px auto 12px; }
.vd-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 11px 0; border-top: 1px solid #f2f3f5;
}
.vd-row span { color: var(--t3); font-size: 12px; }

.verify-actions { display: flex; gap: 10px; margin-top: 16px; }
.verify-actions button { flex: 1; }

/* 核销页手输兜底（#/verify 无 token 时） */
.verify-input {
  background: #fff; border-radius: var(--r-card);
  padding: 16px; margin-top: 12px;
}
.verify-input .input {
  width: 100%; box-sizing: border-box;
  font-size: 16px; letter-spacing: 1px; text-align: center;
  text-transform: uppercase;
}
.verify-input .btn-primary { width: 100%; margin-top: 12px; }
.vi-err { font-size: 12px; color: #f53f3f; margin-top: 8px; text-align: center; }
