:root {
  --brand: #e23b2a;
  --brand-soft: #fff1ec;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --line: #f0f0f0;
  --bg: #f5f6f8;
  --green: #07c160;
  --card: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: #e6e6e6;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:active { opacity: 0.72; }
input, textarea { outline: none; border: 0; background: transparent; width: 100%; }
.stage { height: 100%; display: flex; min-height: 0; }
.dir {
  width: 268px;
  flex: none;
  background: #fff;
  border-right: 1px solid #ececec;
  overflow: auto;
}
.dir-head { padding: 16px 14px 8px; }
.dir-head b { display: block; font-size: 15px; }
.dir-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.dir h2 {
  margin: 14px 14px 6px;
  font-size: 12px;
  color: #999;
  letter-spacing: 0.4px;
}
.dir button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px 8px 12px;
  border-left: 3px solid transparent;
  font-size: 13px;
  color: #333;
}
.dir button.on { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); font-weight: 700; }
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.proto-bar {
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #f3f3f3;
}
.proto-bar b { font-size: 13px; white-space: nowrap; }
.url { color: #888; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { flex: 1; }
.proto-bar button {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e4e4e4;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.proto-bar button.on { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.jserr { margin: 0 12px; padding: 8px; background: #ffe8e4; color: #a32015; font-size: 12px; border-radius: 8px; }
.phone-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; }
.phone {
  width: 390px;
  height: min(844px, 100%);
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 10px solid #111;
  border-radius: 36px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.mp-nav {
  flex: none;
  position: relative;
  z-index: 46;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mp-status, .mp-titlebar { display: flex; align-items: center; }
.mp-status { height: 22px; padding: 0 14px 0 16px; justify-content: space-between; }
.mp-time { font-size: 13px; font-weight: 700; }
.mp-sys { display: flex; align-items: center; gap: 5px; }
.mp-titlebar { position: relative; height: 44px; }
.mp-back {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  display: grid;
  place-items: center;
}
.mp-title {
  position: absolute;
  left: 96px;
  right: 96px;
  text-align: center;
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-capwrap { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); z-index: 3; }
.mp-capsule {
  width: 87px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.mp-capsule button { flex: 1; height: 100%; display: grid; place-items: center; }
.mp-capsule button:active { background: rgba(0, 0, 0, 0.06); }
.mp-split { width: 1px; height: 18px; background: rgba(0, 0, 0, 0.16); flex: none; }
.mp-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 196px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.mp-menu:before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  border: 6px solid transparent;
  border-bottom-color: #fff;
  border-top: 0;
}
.mp-menu-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f2f2f2;
}
.mp-menu-head i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
}
.mp-menu-head b, .mp-menu-head small { display: block; }
.mp-menu-head b { font-size: 14px; }
.mp-menu-head small { color: #999; font-size: 11px; }
.mp-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  font-size: 14px;
  border-top: 1px solid #f6f6f6;
}
.mp-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); z-index: 40; }
.mp-exit {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-exit-card { text-align: center; }
.mp-exit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}
.mp-exit-card b { display: block; font-size: 18px; }
.mp-exit-card p { margin: 6px 0 16px; color: #888; }
.mp-exit-card button {
  min-width: 128px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.view { flex: 1; min-height: 0; overflow: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
.view.white { background: #fff; }
.dock {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 5;
}
.tabbar {
  flex: none;
  height: 56px;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 6;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #b5b5b5;
  font-size: 10px;
  font-weight: 650;
  position: relative;
}
.tabbar button.on { color: var(--brand); }
.tabbar svg { width: 20px; height: 20px; }
.ph-img, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide img { width: 72%; height: 72%; object-fit: contain; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px; }
.bubble { max-width: 78%; background: #fff; border-radius: 12px; padding: 8px 10px; }
.bubble b { display: block; font-size: 12px; margin-bottom: 2px; }
.bubble p { margin: 0; font-size: 14px; line-height: 1.45; }
.bubble span { display: block; margin-top: 4px; color: #999; font-size: 11px; }
.bubble.me { margin-left: auto; background: #e23b2a; color: #fff; }
.bubble.me span { color: rgba(255,255,255,.75); }
.h-sec.between { flex-direction: row; align-items: center; justify-content: space-between; }
.badge {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
}
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; position: relative; flex: none; }
.iconbtn .badge { top: 0; margin-left: 6px; }
.toast {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: rgba(28, 28, 28, 0.88);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  z-index: 80;
  max-width: 78%;
  text-align: center;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: flex;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 78%;
  overflow: auto;
}
.sheet h3 { margin: 4px 0 12px; font-size: 16px; }
.sheet p { margin: 0 0 12px; color: #666; font-size: 14px; line-height: 1.55; }
.search-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px; background: #fff; }
.loc { display: flex; align-items: center; gap: 2px; font-weight: 750; font-size: 15px; flex: none; }
.search {
  flex: 1;
  height: 36px;
  background: #f4f5f7;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #b0b0b0;
  font-size: 13px;
  text-align: left;
}
.search input { color: var(--ink); font-size: 14px; }
.search input::placeholder { color: #b5b5b5; }
.hero {
  margin: 12px 14px 0;
  padding: 16px 16px 14px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(255, 190, 140, 0.38), transparent 70%),
    linear-gradient(155deg, #2a211c 0%, #4a2c22 52%, #c2410c 150%);
}
.kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
}
.hero h2 { margin: 10px 0 6px; font-size: 22px; letter-spacing: 0.2px; }
.hero p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.84); }
.hero .btn { margin-top: 14px; }
.bullets { margin: 10px 14px 2px; display: flex; flex-direction: column; gap: 6px; }
.bullets span { display: flex; gap: 6px; font-size: 12px; color: #666; line-height: 1.45; }
.bullets i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; }
.h-sec { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.h-sec b { font-size: 16px; }
.h-sec small, .muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.chips-row, .chips { display: flex; gap: 8px; }
.chips-row { overflow: auto; padding: 10px 14px; }
.chips-row::-webkit-scrollbar { display: none; }
.chips { flex-wrap: wrap; }
.chip {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
}
.sheet .chip { background: #f4f4f4; }
.chip.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.goods, .ocard, .menu, .addr, .part, .rule, .box, .msg {
  background: #fff;
  border-radius: 14px;
}
.goods {
  display: flex;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 10px;
  text-align: left;
  width: calc(100% - 28px);
}
.ph {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  color: #3a3a3a;
}
.g-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.g-name, .ocard-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.g-sub { color: #888; font-size: 12px; line-height: 1.4; }
.g-row, .ocard-bot, .between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: var(--brand); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.sold { color: #bbb; font-size: 12px; }
.origin { color: #bbb; text-decoration: line-through; font-size: 12px; margin-left: 6px; font-weight: 500; }
.empty { padding: 48px 24px; text-align: center; }
.empty b { display: block; font-size: 16px; margin-bottom: 6px; }
.empty p { margin: 0 0 14px; color: #888; font-size: 13px; line-height: 1.5; }
.pad { padding: 12px 14px 20px; }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field .req { color: var(--brand); font-style: normal; margin-right: 2px; }
.input, .textarea, .pick {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  text-align: left;
}
.input, .textarea { border: 1px solid #eee; }
.textarea { min-height: 96px; resize: none; line-height: 1.5; }
.pick { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.pick.pholder { color: #b0b0b0; }
.hint { margin: 0 0 12px; color: #888; font-size: 12px; line-height: 1.5; }
.btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
}
.btn.block { width: 100%; }
.btn.light { background: #fff; color: #1a1a1a; height: 36px; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid #e5e5e5; }
.btn.green { background: var(--green); }
.btn.ghost { background: #f4f4f4; color: #333; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 16px; }
.btn[disabled] { opacity: 0.45; }
.dock .btn { flex: 1; }
.fav {
  width: 52px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #666;
}
.fav.on { color: var(--brand); }
.tag, .anno {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.tag.r, .anno.fee { background: #e7f6f1; color: #0f7a5a; }
.tag.s, .anno.second { background: #fff1e8; color: #c2410c; }
.tag.b, .anno.part { background: #eef0ff; color: #3f3db5; }
.st { font-size: 13px; font-weight: 700; }
.st-go { color: #b45309; }
.st-pay { color: var(--brand); }
.st-ok { color: #0f7a5a; }
.st-off { color: #999; }
.st-as { color: #3f3db5; }
.ocard { margin: 0 14px 10px; padding: 12px; text-align: left; }
.ocard-top, .msg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ocard-title { margin: 8px 0 4px; }
.ocard-bot { margin-top: 8px; }
.linkish { color: var(--brand); font-size: 13px; font-weight: 700; }
.box { margin: 0 14px 10px; padding: 12px; }
.box h3 { margin: 0 0 8px; font-size: 15px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #f6f6f6; }
.kv span { color: #888; flex: none; }
.kv b { font-weight: 650; text-align: right; }
.line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4f4f4; }
.line:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.line .name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.timeline { margin: 0 14px 10px; padding: 8px 12px; background: #fff; border-radius: 14px; }
.step { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #aaa; padding: 5px 0; }
.step i { width: 8px; height: 8px; border-radius: 50%; background: #ddd; margin-top: 5px; flex: none; }
.step.done { color: #666; }
.step.done i { background: #0f7a5a; }
.step.on { color: var(--ink); font-weight: 750; }
.step.on i { background: var(--brand); }
.banner {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6e8;
  color: #9a5b00;
  font-size: 13px;
  line-height: 1.5;
}
.banner.green { background: #e9f8ef; color: #0f7a5a; }
.fee-box { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #f7f8f8; }
.fee-box p { margin: 0 0 6px; font-size: 12px; color: #666; line-height: 1.5; }
.fee-box p:last-child { margin: 0; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #fff; }
.gallery::-webkit-scrollbar { display: none; }
.slide {
  flex: none;
  width: 100%;
  height: 250px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #444;
}
.slide b { font-size: 13px; color: #888; font-weight: 650; }
.dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0; background: #fff; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.dots i.on { background: var(--ink); }
.cond { margin: 10px 14px; padding: 10px 12px; background: #fff; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.cond b { display: block; margin-bottom: 2px; }
.group-h { padding: 12px 14px 8px; font-size: 13px; font-weight: 750; color: #666; }
.note { margin: 8px 14px; color: #888; font-size: 12px; line-height: 1.55; word-break: keep-all; }
.check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #ccc; flex: none; display: grid; place-items: center; }
.check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f4f4f4;
  font-size: 16px;
}
.mine-top {
  margin: 12px 14px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2a211c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex: none;
}
.menu { margin: 0 14px 10px; padding: 0 12px; }
.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  text-align: left;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row .t { display: block; font-size: 15px; font-weight: 700; }
.menu-row .s { display: block; margin-top: 2px; color: #999; font-size: 12px; }
.menu-row .go { margin-left: auto; color: #ccc; }
.msg { margin: 0 14px 10px; padding: 12px; text-align: left; width: calc(100% - 28px); }
.msg .t { font-weight: 750; margin: 6px 0 4px; }
.msg .s { color: #666; font-size: 13px; line-height: 1.45; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fa5151; flex: none; }
.addr { margin: 0 14px 10px; padding: 12px; }
.addr b { display: block; margin-bottom: 4px; }
.part { margin: 0 14px 10px; padding: 12px; }
.part-top { display: flex; gap: 10px; }
.success { padding: 48px 24px 24px; text-align: center; }
.ok-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e9f8ef;
  color: #0f7a5a;
  display: grid;
  place-items: center;
}
.success h2 { margin: 0 0 8px; font-size: 20px; }
.success p { margin: 0 auto 18px; max-width: 320px; color: #666; font-size: 14px; line-height: 1.6; }
.success .btn { margin-top: 8px; }
.pay-amt { display: block; margin: 8px 0; font-size: 32px; font-weight: 800; }
.choice {
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.choice b { display: block; margin-bottom: 4px; }
.choice span { color: #888; font-size: 12px; line-height: 1.45; }
.seg { display: flex; gap: 8px; padding: 10px 14px 0; overflow: auto; }
.rule { margin: 0 14px 10px; padding: 12px 14px; }
.rule b { display: block; margin-bottom: 6px; }
.rule p { margin: 0; color: #555; font-size: 13px; line-height: 1.6; }
h2.page-h { margin: 4px 0 8px; font-size: 18px; }
.page-p { margin: 0 0 12px; color: #666; font-size: 14px; line-height: 1.6; }
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
  text-align: left;
  width: 100%;
  font-size: 14px;
}
@media (max-width: 979px) {
  .dir { display: none; position: fixed; z-index: 90; inset: 44px 0 0 0; width: auto; }
  .dir.open { display: block; }
  .url { display: none; }
  .phone-wrap { display: block; padding: 0; }
  .phone { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
}
