:root {
  --lime: #C6F04A;
  --lime-2: #D8F77A;
  --lime-deep: #A9D42A;
  --lime-soft: #F3FBDA;
  --lime-ink: #243300;
  --ink: #1A1A1A;
  --sub: #8A8A8A;
  --soft: #F4F4F4;
  --line: #EEEEEE;
  --bg: #F6F7F4;
  --card: #fff;
  --danger: #E25B4A;
  --warn: #C4841D;
  --ok: #3D7A16;
  --shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(880px 420px at 8% -8%, rgba(198, 240, 74, 0.7), transparent 55%),
    #F3F5EC;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
button, a { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px; }
img, svg { display: block; }

.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 430px;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 32px 28px;
}
.brief { max-width: 420px; padding-bottom: 24px; }
.brief-mark {
  margin: 0;
  font-size: 42px;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brief-en {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #66704A;
}
.brief h1 {
  margin: 22px 0 10px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.brief-lead, .brief-foot { color: #3d4332; font-size: 14px; line-height: 1.7; }
.brief-points { margin: 18px 0; padding: 0; list-style: none; }
.brief-points li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.brief-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  position: absolute;
  left: 0;
  top: 13px;
  box-shadow: 0 0 0 3px rgba(198, 240, 74, 0.35);
}
.brief-accounts { display: grid; gap: 8px; margin-top: 8px; }
.brief-accounts button {
  text-align: left;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brief-accounts button.on {
  background: var(--lime);
  border-color: transparent;
}
.brief-accounts b { font-size: 14px; }
.brief-accounts span { font-size: 12px; color: #4d5340; }
.brief-foot { margin-top: 18px; color: #6d735c; }

.phone {
  width: 390px;
  height: 820px;
  background: #161616;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(28, 36, 12, 0.18);
}
.screen {
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.wx-chrome { flex: none; background: #fff; position: relative; z-index: 6; }
.wx-status, .wx-nav { display: flex; align-items: center; }
.wx-status {
  height: 28px;
  padding: 10px 18px 0 22px;
  justify-content: space-between;
}
.wx-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-sys { display: flex; align-items: center; gap: 6px; color: #1a1a1a; }
.wx-nav { height: 44px; position: relative; }
.wx-back, .wx-side {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  color: #1a1a1a;
}
.wx-back { border: 0; background: transparent; padding: 0; }
.wx-title {
  position: absolute;
  left: 88px;
  right: 104px;
  text-align: center;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-capsule {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 87px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #1a1a1a;
  z-index: 7;
}
.wx-capsule > button {
  flex: 1;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}
.wx-capsule > button:first-of-type { border-radius: 16px 0 0 16px; }
.wx-capsule > button:last-of-type { border-radius: 0 16px 16px 0; }
.wx-capsule > button:active { background: rgba(0, 0, 0, 0.05); }
.wx-split { width: 1px; height: 18px; background: rgba(0, 0, 0, 0.18); flex: none; }
.wx-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 196px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  padding: 6px;
  text-align: left;
}
.wx-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 14px;
}
.wx-menu button:active { background: var(--soft); }
.wx-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  z-index: 5;
}

.body {
  flex: 1;
  overflow: auto;
  background: var(--bg);
  padding: 12px 14px 18px;
}
.body.chat-mode { display: flex; flex-direction: column; padding: 0; }
.body::-webkit-scrollbar { width: 0; }

.tabbar {
  flex: none;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid #F0F0F0;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  border: 0;
  background: transparent;
  color: #9A9A9A;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
}
.tabbar button.on { color: var(--ink); font-weight: 700; }
.tabbar button.on::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--lime);
}
.tabbar .dot {
  position: absolute;
  top: 8px;
  right: calc(50% - 16px);
  min-width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #E25B4A;
}

.pad { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--sub); font-size: 12px; line-height: 1.5; }
.strong { font-weight: 720; }
.right { text-align: right; }
.h { margin: 2px 0 0; font-size: 18px; letter-spacing: -0.03em; }
.subh { margin: 0; font-size: 15px; font-weight: 720; }

.loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}
.loc i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px var(--lime-soft);
  flex: none;
}
.loc button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #5d6b2c;
  font-size: 12px;
  font-weight: 650;
}

.search {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 4px 4px 4px 12px;
  border: 1px solid #EFEFEF;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  height: 36px;
}
.search button, .mini {
  border: 0;
  background: var(--lime);
  border-radius: 11px;
  height: 36px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ECEDE8;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
}
.seg button.on { background: #fff; color: var(--ink); font-weight: 720; box-shadow: 0 2px 8px rgba(0,0,0,.04); }

.hero {
  background: linear-gradient(160deg, #D9F77A 0%, #C6F04A 55%, #B7E63C 100%);
  border-radius: 20px;
  padding: 16px 16px 14px;
  display: flex;
  gap: 8px;
  min-height: 108px;
  position: relative;
  overflow: hidden;
}
.hero h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.03em; line-height: 1.25; }
.hero p { margin: 0; font-size: 12px; line-height: 1.55; color: #243300; max-width: 210px; }
.hero-art { width: 108px; height: 84px; flex: none; margin-left: auto; }

.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.cats button {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.cats i {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.cats i svg, .thumb svg, .product i svg { width: 28px; height: 28px; }
.sec button {
  border: 0;
  background: transparent;
  color: #5d6b2c;
  font-size: 12px;
  font-weight: 650;
  padding: 0;
}
.rail {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0 -2px;
  padding-bottom: 2px;
}
.rail::-webkit-scrollbar { height: 0; }
.rail-card {
  width: 108px;
  flex: none;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  text-align: left;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.rail-card .thumb { width: 40px; height: 40px; border-radius: 12px; }
.rail-card .thumb svg { width: 24px; height: 24px; }
.rail-card b { font-size: 13px; line-height: 1.3; }
.rail-card .price { font-size: 14px; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 0; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow);
}
.item:active { transform: scale(0.99); }
.thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}
.item b, .card b { font-weight: 700; }
.title-line {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.meta { margin-top: 4px; color: var(--sub); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.price { font-size: 16px; font-weight: 760; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 650; margin-right: 1px; }

.pill, .tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  background: var(--lime-soft);
  color: #3f5a09;
}
.tag.wait { background: #FFF6E4; color: #9A6408; }
.tag.pool { background: #F3FBDA; color: #3F6212; }
.tag.done, .tag.ok { background: #E9F8EE; color: #166534; }
.tag.bad { background: #FDECEC; color: #B42318; }
.tag.off { background: #F3F3F3; color: #737373; }
.tag.go { background: #EAF3FF; color: #1D4E89; }

.chips { display: flex; gap: 6px; overflow: auto; padding-bottom: 2px; }
.chips::-webkit-scrollbar { height: 0; }
.chips button {
  border: 0;
  background: #fff;
  color: #666;
  border-radius: 999px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  flex: none;
}
.chips button.on { background: var(--ink); color: #fff; }

.btn {
  border: 0;
  background: var(--lime);
  color: var(--ink);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 16px;
  font-weight: 740;
  font-size: 15px;
}
.btn.block { width: 100%; }
.btn.ghost {
  background: #fff;
  border: 1px solid #E6E6E6;
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.danger { background: #FDECEC; color: #B42318; }
.btn.small { min-height: 34px; border-radius: 10px; font-size: 13px; padding: 0 10px; }
.btn:active { transform: translateY(1px); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.stat span { display: block; color: var(--sub); font-size: 12px; }
.stat b { display: block; margin-top: 4px; font-size: 18px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; font-size: 12px; font-weight: 650; color: #66704A; }

.kv { display: flex; flex-direction: column; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #F4F4F4;
  font-size: 13px;
}
.kv div:last-child { border-bottom: 0; }
.kv span { color: #777; }
.kv b { font-weight: 680; text-align: right; }

.receipt {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.receipt head, .receipt .rh {
  background: var(--lime);
  padding: 12px 14px;
  font-weight: 760;
}
.receipt .kv { padding: 4px 14px 8px; }

.note, .banner {
  font-size: 12px;
  line-height: 1.55;
  color: #4d5340;
  background: var(--lime-soft);
  border-radius: 12px;
  padding: 10px 12px;
}
.banner.warn { background: #FFF6E4; color: #7A5410; }
.banner.lock { background: #F4F4F4; color: #666; }
.banner.bad { background: #FDECEC; color: #8E2A22; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: #777; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px #EFEFEF;
}
.field textarea { min-height: 76px; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px #B6DE3A; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.lockline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  font-size: 13px;
}
.lockline i { font-style: normal; color: #999; font-size: 12px; }

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.38);
  border: 0;
  z-index: 8;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F7F7F5;
  border-radius: 22px 22px 0 0;
  z-index: 9;
  padding: 8px 14px 18px;
  max-height: 78%;
  overflow: auto;
}
.sheet .grab {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #DDD;
  margin: 4px auto 10px;
}
.sheet h3 { margin: 0 0 10px; font-size: 17px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  z-index: 12;
  max-width: 86%;
  text-align: center;
  line-height: 1.4;
}

.fab {
  position: absolute;
  right: 16px;
  bottom: 78px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: var(--lime);
  box-shadow: 0 10px 22px rgba(166, 206, 40, 0.45);
  z-index: 4;
  font-size: 28px;
  line-height: 1;
}

.bubbles { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 78%;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.bubble.me { margin-left: auto; background: var(--lime); border-radius: 14px 14px 4px 14px; }
.bubble small { display: block; color: #66704A; font-size: 11px; margin-top: 4px; }
.quick { display: flex; gap: 6px; padding: 8px 12px 0; overflow: auto; }
.quick button {
  border: 0;
  background: #fff;
  border-radius: 999px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  flex: none;
}
.composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
}
.composer input {
  flex: 1;
  border: 0;
  background: var(--soft);
  border-radius: 12px;
  height: 42px;
  padding: 0 12px;
  outline: none;
  min-width: 0;
}
.dealbar { padding: 0 12px 12px; background: #fff; }

.route {
  background: #F8FBEA;
  border-radius: 16px;
  padding: 12px;
}
.stop { display: flex; gap: 8px; align-items: flex-start; }
.stop i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: 4px;
  flex: none;
  box-shadow: 0 0 0 4px rgba(198, 240, 74, 0.8);
}
.leg {
  margin: 2px 0 2px 4px;
  padding-left: 14px;
  border-left: 1.5px dashed #B7C48A;
  color: #66704A;
  font-size: 12px;
  line-height: 22px;
}
.map-label { font-size: 11px; letter-spacing: 0.08em; color: #66704A; font-weight: 700; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
}
.step .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 760;
}
.step .line { width: 2px; background: #E4E8D4; margin: 4px auto; min-height: 16px; }
.step button {
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.trail { margin: 0; padding: 0; list-style: none; }
.trail li { font-size: 12px; color: #555; padding: 6px 0; border-bottom: 1px solid #F3F3F3; line-height: 1.5; }

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 760;
  flex: none;
}
.avatar.lg { width: 58px; height: 58px; border-radius: 20px; font-size: 22px; }
.cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #F6F7F4;
  text-align: center;
  padding: 24px;
}
.cover .mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 760;
}
.empty { text-align: center; color: #888; padding: 28px 10px; font-size: 13px; line-height: 1.6; }
.code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  font-size: 22px;
  font-weight: 760;
}
.mono { font-variant-numeric: tabular-nums; }
.product {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}
.product i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  font-style: normal;
}
.product i svg { width: 24px; height: 24px; }
.boom {
  position: fixed;
  z-index: 99;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  background: #8e2e2a;
  padding: 12px;
  white-space: pre-wrap;
  font: 13px/1.5 sans-serif;
}

.body.with-fab { padding-bottom: 74px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec h3 { margin: 0; font-size: 15px; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice button {
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.choice button.on { box-shadow: inset 0 0 0 1.5px #C6F04A; }
.choice b { display: block; font-size: 14px; }
.choice span { display: block; margin-top: 2px; color: #777; font-size: 12px; }

@media (max-width: 860px) {
  .brief { display: none; }
  .stage { display: block; padding: 0; background: #fff; }
  .phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: #fff;
  }
  .screen { border-radius: 0; }
  .wx-status { padding-top: calc(8px + env(safe-area-inset-top)); }
}
