/* ==========================================================================
   搬山搬家 · 客户小程序（H5 同源版）
   ========================================================================== */

body.app-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  gap: 40px;
  background:
    radial-gradient(1200px 600px at 15% 0%, #f8f1e3 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 100%, #e3d6bd 0%, transparent 55%),
    #dcd0ba;
}

.stage-note { width: 330px; display: grid; gap: 18px; }
.stage-note h2 { font-size: 30px; line-height: 1.32; font-family: var(--serif); }
.stage-note .kicker { display: block; margin-bottom: 10px; }
.stage-note p { font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.stage-note ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stage-note li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 12.5px; color: var(--ink-2); }
.stage-note li b { font-family: var(--mono); color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.stage-note .rule { border-top: 1px dashed var(--line-strong); }

/* ---------- 手机外壳 ---------- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  flex: 0 0 auto;
  border-radius: 46px;
  background: #0f0c0a;
  padding: 10px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 30px 60px -20px rgba(23, 19, 15, 0.55),
    0 0 0 1px rgba(23, 19, 15, 0.5);
}
.phone::after {
  content: '';
  position: absolute;
  left: -2px; top: 180px;
  width: 2px; height: 56px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

/* 状态栏 */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}
.statusbar .island {
  position: absolute;
  left: 50%; top: 9px;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #0f0c0a;
  border-radius: 99px;
}
.statusbar__icons { display: flex; gap: 5px; align-items: center; }
.statusbar__icons svg { width: 15px; height: 15px; }

/* 滚动区 */
.app-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.app-scroll::-webkit-scrollbar { display: none; }

.screen { display: none; animation: screenIn 0.32s cubic-bezier(0.2, 0.9, 0.2, 1); padding-bottom: 26px; }
.screen.is-on { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 通用 ---------- */
.pad { padding: 0 18px; }
.app-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 14px; }
.app-head .seal { width: 34px; height: 34px; font-size: 11px; }
.app-head b { font-family: var(--serif); font-size: 16px; letter-spacing: .05em; display: block; }
.app-head small { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--ink-4); }
.app-head .spacer { flex: 1; }

.a-card {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  box-shadow: 3px 3px 0 rgba(23, 19, 15, 0.09);
  padding: 16px;
}
.a-card--tight { padding: 13px 14px; }
.a-card--dashed { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, 0.35); }

.a-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }
.a-title { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.a-sub { font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 5px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper-2);
  font-size: 14px; font-weight: 600; box-shadow: 3px 3px 0 rgba(23, 19, 15, 0.14);
  transition: transform .12s, box-shadow .12s;
}
.a-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(23,19,15,.14); }
.a-btn--accent { background: var(--accent); border-color: var(--accent-2); color: #fff9f1; }
.a-btn--ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: var(--line-strong); }
.a-btn--sm { height: 34px; padding: 0 12px; font-size: 12px; box-shadow: 2px 2px 0 rgba(23,19,15,.12); }
.a-btn--block { width: 100%; }

/* ---------- 首页 ---------- */
.hero {
  position: relative;
  margin: 0 18px;
  padding: 22px 20px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background:
    repeating-linear-gradient(135deg, rgba(23,19,15,.028) 0 1px, transparent 1px 9px),
    var(--paper-2);
  box-shadow: 4px 4px 0 rgba(23, 19, 15, 0.1);
  overflow: hidden;
}
.hero h1 { font-size: 27px; line-height: 1.32; letter-spacing: .01em; margin: 10px 0 8px; }
.hero p { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; max-width: 90%; }
.hero .hero-seal {
  position: absolute;
  right: -14px; bottom: -18px;
  width: 108px; height: 108px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  transform: rotate(-8deg);
  opacity: .22;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--accent);
  letter-spacing: .1em;
}
.hero__meta { display: flex; gap: 16px; margin-top: 16px; }
.hero__meta div { display: grid; gap: 1px; }
.hero__meta b { font-family: var(--mono); font-size: 19px; }
.hero__meta small { font-size: 10px; color: var(--ink-4); letter-spacing: .06em; }

.quick-quote { margin: 14px 18px 0; }
.quick-quote .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn {
  flex: 1; min-width: 0; padding: 9px 3px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: rgba(255,255,255,.4); font-size: 10.5px; text-align: center; line-height: 1.35; color: var(--ink-2);
  transition: .15s; overflow: hidden;
}
.seg-btn b { display: block; font-size: 11.5px; white-space: nowrap; letter-spacing: -.02em; }
.seg-btn small { font-size: 9.5px; color: var(--ink-4); white-space: nowrap; }
.seg-btn.is-on { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.seg-btn.is-on small { color: rgba(239,230,213,.6); }

.qq-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.qq-inputs .field label { font-size: 10px; }
.qq-inputs .input { height: 36px; font-size: 13px; }
.qq-total { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.qq-total b { font-family: var(--mono); font-size: 28px; line-height: 1; }
.qq-total small { font-size: 11px; color: var(--ink-4); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 18px 10px; }
.section-head h2 { font-size: 17px; }
.section-head small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--ink-4); }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 18px; }
.svc {
  text-align: left; padding: 13px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper-2);
  box-shadow: 2px 2px 0 rgba(23,19,15,.08); display: grid; gap: 5px;
}
.svc .ico { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.svc b { font-size: 13px; }
.svc small { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.svc:active { transform: translate(1px,1px); }

.rail-x { display: flex; gap: 9px; overflow-x: auto; padding: 4px 18px 6px; scrollbar-width: none; }
.rail-x::-webkit-scrollbar { display: none; }
.addon-card {
  flex: 0 0 132px; padding: 12px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper-2);
  box-shadow: 2px 2px 0 rgba(23,19,15,.08); display: grid; gap: 4px; text-align: left;
}
.addon-card b { font-size: 12.5px; line-height: 1.4; }
.addon-card .price { font-family: var(--mono); font-size: 15px; color: var(--accent); font-weight: 600; }
.addon-card small { font-size: 10px; color: var(--ink-4); line-height: 1.5; }

.privacy-strip {
  margin: 18px; padding: 13px 14px; border: 1.5px dashed var(--accent); border-radius: 5px;
  background: rgba(196,68,28,.045); display: grid; gap: 4px;
}
.privacy-strip b { font-size: 12.5px; color: var(--accent); letter-spacing: .02em; }
.privacy-strip p { font-size: 11px; color: var(--ink-3); line-height: 1.7; }

.review-card { padding: 13px 14px; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.review-card:last-child { border-bottom: 0; }
.review-card .row { gap: 8px; }
.review-card p { font-size: 12px; color: var(--ink-2); line-height: 1.75; }
.review-card .who { font-size: 11px; color: var(--ink-4); font-family: var(--mono); }

.trust-row { display: flex; gap: 8px; padding: 0 18px; flex-wrap: wrap; }

/* ---------- TabBar ---------- */
.tabbar {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink); background: var(--paper-2);
  padding: 6px 6px 10px;
}
.tab {
  border: 0; background: transparent; display: grid; justify-items: center; gap: 2px;
  padding: 6px 0; color: var(--ink-4); font-size: 9.5px; letter-spacing: .04em;
}
.tab svg { width: 20px; height: 20px; }
.tab.is-on { color: var(--accent); }
.tab.is-on svg { stroke-width: 2; }

/* ---------- 子页头 ---------- */
.subhead {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 12px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 6;
}
.subhead b { font-family: var(--serif); font-size: 16px; }
.back-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; }
.subhead .spacer { flex: 1; }

/* ---------- 向导 ---------- */
.steps { display: flex; gap: 4px; padding: 14px 18px 0; }
.steps i {
  flex: 1; height: 3px; background: rgba(23,19,15,.12); border-radius: 99px; transition: background .2s;
}
.steps i.is-on { background: var(--accent); }
.steps i.is-done { background: var(--ink); }
.step-count { padding: 10px 18px 0; display: flex; justify-content: space-between; align-items: baseline; }
.step-count b { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-4); }

.form-block { padding: 16px 18px 0; display: grid; gap: 12px; }
.form-block > .a-kicker { margin-bottom: -4px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  border: 1.5px solid var(--line-strong); border-radius: 5px; padding: 11px 12px; background: rgba(255,255,255,.4);
  text-align: left; display: grid; gap: 2px; transition: .15s;
}
.choice b { font-size: 12.5px; }
.choice small { font-size: 10.5px; color: var(--ink-4); }
.choice.is-on { border-color: var(--accent); background: rgba(196,68,28,.06); box-shadow: inset 0 0 0 1px var(--accent); }

.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.item-chip {
  border: 1.5px solid var(--line-strong); border-radius: 5px; padding: 8px 10px; background: rgba(255,255,255,.42);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px;
  text-align: left; font-size: 11.5px; line-height: 1.35; min-height: 50px;
}
.item-chip .nm { min-width: 0; }
.item-chip .nm b { display: block; font-size: 11.5px; font-weight: 600; }
.item-chip .nm small { display: block; font-size: 9px; color: var(--ink-4); margin-top: 1px; letter-spacing: 0; }
.item-chip .q { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.item-chip .q span { font-size: 15px; line-height: 1; padding: 0 1px; }
.item-chip.is-on { border-color: var(--accent); background: rgba(196,68,28,.07); }
.item-chip.is-on .q { color: var(--accent); font-weight: 700; }
.item-chip.is-on .q span { color: var(--accent); }

.addon-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.addon-row:last-child { border-bottom: 0; }
.addon-row .info { flex: 1; }
.addon-row b { font-size: 12.5px; display: block; }
.addon-row small { font-size: 10.5px; color: var(--ink-4); line-height: 1.5; }
.addon-row .p { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.check {
  width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; background: transparent; flex: 0 0 auto; color: transparent;
}
.check.is-on { background: var(--jade); border-color: var(--jade); color: #fff; }

/* ---------- 明细 ---------- */
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.sum-line:last-child { border-bottom: 0; }
.sum-line small { display: block; color: var(--ink-4); font-size: 10.5px; margin-top: 1px; }
.sum-line .amt { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 4px; }
.sum-total b { font-family: var(--mono); font-size: 30px; }

.cta-bar {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 16px; background: var(--paper);
  border-top: 1px dashed var(--line-strong);
  z-index: 7;
  box-shadow: 0 -10px 18px -14px rgba(23, 19, 15, 0.5);
}
.cta-bar .amt { display: grid; gap: 1px; }
.cta-bar .amt b { font-family: var(--mono); font-size: 21px; line-height: 1; }
.cta-bar .amt small { font-size: 9.5px; color: var(--ink-4); letter-spacing: .06em; }
.cta-bar .a-btn { margin-left: auto; }

/* ---------- 订单 ---------- */
.order-card {
  border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper-2); box-shadow: 3px 3px 0 rgba(23,19,15,.08);
  padding: 14px; display: grid; gap: 10px; margin: 0 18px 12px; text-align: left;
}
.order-card__top { display: flex; align-items: center; justify-content: space-between; }
.order-card__no { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: .08em; }
.order-card__route { font-size: 12.5px; line-height: 1.7; }
.order-card__route em { font-style: normal; color: var(--ink-4); font-size: 11px; }
.order-card__foot { display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 9px; }
.order-card__foot .amt { font-family: var(--mono); font-weight: 600; font-size: 15px; margin-left: auto; }

.timeline-app { display: grid; gap: 0; }
.tl-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 16px; position: relative; }
.tl-row::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-row:last-child::before { display: none; }
.tl-row .dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: 2px; background: var(--paper-2); }
.tl-row.is-last .dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(196,68,28,.14); }
.tl-row b { font-size: 12.5px; }
.tl-row small { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-4); margin-top: 2px; }

.driver-box { display: flex; align-items: center; gap: 12px; }
.driver-box .avatar { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--paper-3); }
.priv-box { border: 1.5px dashed var(--accent); border-radius: 5px; padding: 12px; background: rgba(196,68,28,.04); display: grid; gap: 6px; }
.priv-box .no { font-family: var(--mono); font-size: 18px; color: var(--accent); letter-spacing: .05em; }

/* ---------- 评价 ---------- */
.star-input { display: flex; gap: 6px; }
.star-input button { border: 0; background: transparent; padding: 0; color: var(--ink-4); }
.star-input button.is-on { color: var(--mustard); }
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick { padding: 5px 10px; border: 1.5px solid var(--line-strong); border-radius: 99px; font-size: 11px; background: transparent; }
.tag-pick.is-on { border-color: var(--jade); color: var(--jade); background: rgba(36,85,74,.07); }

/* ---------- 我的 ---------- */
.profile { padding: 6px 18px 0; display: flex; align-items: center; gap: 12px; }
.profile .avatar { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 700; background: var(--paper-3); }
.profile b { font-family: var(--serif); font-size: 18px; display: block; }
.profile small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); letter-spacing: .06em; }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 18px 0; }
.mine-stat { border: 1.5px solid var(--line-strong); border-radius: 5px; padding: 10px; text-align: center; background: rgba(255,255,255,.35); }
.mine-stat b { display: block; font-family: var(--mono); font-size: 18px; }
.mine-stat small { font-size: 10px; color: var(--ink-4); }
.mine-list { margin: 16px 18px 0; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--paper-2); overflow: hidden; box-shadow: 3px 3px 0 rgba(23,19,15,.08); }
.mine-row {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px dashed var(--line);
  font-size: 13px; width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.mine-row:last-child { border-bottom: 0; }
.mine-row .ico { color: var(--accent); display: grid; place-items: center; }
.mine-row .spacer { flex: 1; }
.mine-row .arrow { color: var(--ink-4); }

/* ---------- 客服 ---------- */
.chat-list { display: grid; gap: 10px; padding: 14px 18px 0; }
.bubble-me { background: var(--ink); color: var(--paper-2); padding: 10px 13px; border-radius: 6px 6px 2px 6px; font-size: 12px; line-height: 1.7; max-width: 82%; justify-self: end; }
.bubble-cs { background: var(--paper-2); border: 1px solid var(--line-strong); padding: 10px 13px; border-radius: 6px 6px 6px 2px; font-size: 12px; line-height: 1.7; max-width: 82%; justify-self: start; }
.chat-input { display: flex; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--paper); }

/* ---------- 拨号弹层 ---------- */
.call-modal { position: absolute; inset: 0; background: rgba(23,19,15,.55); backdrop-filter: blur(3px); z-index: 30; display: none; place-items: center; padding: 24px; }
.call-modal.is-on { display: grid; }
.call-box { width: 100%; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 8px; padding: 22px; text-align: center; display: grid; gap: 10px; box-shadow: 6px 6px 0 rgba(23,19,15,.2); }
.call-box .no { font-family: var(--mono); font-size: 26px; letter-spacing: .06em; color: var(--accent); }
.call-box .ring { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); animation: ringPulse 1.6s infinite; }
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(196,68,28,.28); } 50% { box-shadow: 0 0 0 14px rgba(196,68,28,0); } }

/* ---------- 登录 ---------- */
.login-app { padding: 60px 26px 0; display: grid; gap: 20px; }
.login-app h1 { font-size: 30px; line-height: 1.3; }
.login-app .seal { width: 56px; height: 56px; font-size: 18px; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  body.app-body { padding: 0; gap: 0; background: var(--paper); }
  .stage-note { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .phone__screen { border-radius: 0; }
  .statusbar .island { display: none; }
}
