:root {
  --ink: #1a1814;
  --pine: #14352c;
  --pine-2: #1d4a3e;
  --brass: #a68456;
  --brass-2: #c4a574;
  --cinnabar: #c5362b;
  --paper: #f3f0e8;
  --card: #fff;
  --line: #e6e1d6;
  --mute: #7a746a;
  --soft: #efeae1;
  --ok: #1f7a4d;
  --warn: #9a6420;
  --shadow: 0 10px 28px rgba(26, 24, 20, 0.06);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(820px 420px at 8% -10%, #1d5344 0%, transparent 52%),
    #0c1613;
  color: #f4efe6;
}
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; }
a { color: inherit; text-decoration: none; }

.stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 430px;
  justify-content: center;
  align-items: start;
  gap: 42px;
  padding: 28px;
}
.brief { max-width: 420px; }
.brief-kicker {
  margin: 0;
  color: var(--brass-2);
  letter-spacing: 0.22em;
  font-size: 12px;
}
.brief-mark {
  margin: 10px 0 0;
  font-size: 56px;
  line-height: 0.9;
  font-weight: 760;
  letter-spacing: -0.05em;
}
.brief-en {
  margin: 8px 0 0;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: #b7c4bc;
}
.brief h1 {
  margin: 18px 0 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.brief-lead, .brief-foot { color: #d5ddd6; font-size: 14px; line-height: 1.7; }
.brief-lead { margin: 12px 0 0; }
.brief-label {
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #9aafa6;
}
.brief-accounts { display: grid; gap: 6px; }
.brief-accounts button {
  text-align: left;
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe6;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brief-accounts button.on {
  background: #f3f0e8;
  color: var(--ink);
  border-color: transparent;
}
.brief-accounts b { font-size: 13px; }
.brief-accounts span { font-size: 12px; color: #b7c4bc; }
.brief-accounts button.on span { color: #5e675f; }
.brief-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.brief-nav button {
  border: 1px solid rgba(196, 165, 116, 0.45);
  background: transparent;
  color: #f0e2c8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.brief-points { margin: 16px 0 0; padding: 0; list-style: none; }
.brief-points li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #d7e0da;
}
.brief-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-2);
  position: absolute;
  left: 0;
  top: 11px;
}
.brief-foot { margin-top: 16px; color: #8ea398; font-size: 12px; }

.phone {
  width: 390px;
  height: min(844px, calc(100dvh - 36px));
  background: #141210;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.wx-chrome { flex: none; background: #fff; position: relative; z-index: 6; }
.wx-status, .wx-nav { display: flex; align-items: center; }
.wx-status {
  height: 34px;
  padding: 12px 20px 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: 5px; }
.wx-nav { height: 44px; position: relative; }
.wx-back, .wx-side {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}
.wx-back { border: 0; background: transparent; padding: 0; }
.wx-title {
  position: absolute;
  left: 86px;
  right: 104px;
  text-align: center;
  font-size: 16px;
  font-weight: 680;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-capsule {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 87px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.78);
  z-index: 7;
}
.wx-capsule > button {
  flex: 1;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  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.16); flex: none; }
.wx-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 168px;
  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;
  font-size: 14px;
}
.wx-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  z-index: 5;
}

.body { flex: 1; overflow: auto; background: var(--paper); }
.body::-webkit-scrollbar { width: 0; }
.pad { padding: 12px 14px 22px; }

.tabbar {
  flex: none;
  height: 62px;
  display: grid;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: 6px;
}
.tabbar button {
  border: 0;
  background: transparent;
  color: #9a948a;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
}
.tabbar button.on { color: var(--pine); font-weight: 700; }
.tabbar i.dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.mast {
  background:
    linear-gradient(180deg, rgba(20, 53, 44, 0.2), rgba(20, 53, 44, 0.55)),
    #14352c;
  color: #f6f1e6;
  padding: 6px 16px 18px;
}
.mast .brand {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--brass-2);
}
.mast h1 {
  margin: 8px 0 12px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.search-pill {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #8a8378;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  text-align: left;
  font-size: 14px;
}
.sky {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 36px;
  margin-top: 14px;
  opacity: 0.85;
}
.sky span {
  flex: 1;
  background: rgba(243, 240, 232, 0.16);
  border-radius: 2px 2px 0 0;
}

.sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 8px;
}
.sec-h h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.sec-h span, .muted { color: var(--mute); font-size: 12px; }
.sec-h button {
  border: 0;
  background: transparent;
  color: var(--pine);
  font-size: 13px;
  padding: 0;
}

.chips, .plates { display: flex; gap: 6px; overflow: auto; padding-bottom: 2px; }
.chips::-webkit-scrollbar, .plates::-webkit-scrollbar { height: 0; }
.chips button, .plates button, .chip {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #3e463f;
}
.chips button.on, .plates button.on, .chip.on {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.services button {
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 4px 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.services i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e7f0ec;
  color: var(--pine);
  display: grid;
  place-items: center;
}

.house {
  width: 100%;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.cover-wrap {
  width: 104px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #ddd;
}
.cover-wrap svg, .gallery svg { width: 100%; height: 100%; }
.cover-wrap em, .gallery em {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-style: normal;
  font-size: 10px;
  color: #fff;
  background: rgba(20, 24, 20, 0.62);
  border-radius: 999px;
  padding: 2px 6px;
}
.house .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kicker { font-size: 11px; color: var(--brass); letter-spacing: 0.04em; }
.house strong, .t-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}
.meta { color: var(--mute); font-size: 12px; line-height: 1.4; }
.price {
  color: var(--cinnabar);
  font-weight: 760;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.price small { font-size: 11px; font-weight: 650; margin-left: 1px; }
.score {
  height: 3px;
  background: #efeae1;
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
}
.score b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brass), #dfc08a);
}

.gallery {
  height: 210px;
  background: #ddd;
  position: relative;
}
.gallery .count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 8px;
}
.media-row { display: flex; gap: 6px; padding: 10px 14px 0; }
.media-row button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.detail-h { padding: 12px 14px 0; }
.detail-h .price { font-size: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-style: normal;
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e7f0ec;
  color: var(--pine-2);
}
.tag.warn { background: #f8ecd8; color: var(--warn); }
.tag.bad { background: #f8e4e1; color: var(--cinnabar); }
.tag.off { background: var(--soft); color: var(--mute); }

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.kv div {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.kv span { display: block; color: var(--mute); font-size: 11px; }
.kv b { display: block; margin-top: 3px; font-size: 14px; }

.note, .card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}
.note h3, .card h3 { margin: 0 0 6px; font-size: 14px; }
.note p, .card p { margin: 0; font-size: 13px; line-height: 1.6; color: #3f463f; }
.note.warn { background: #fbf6ec; }
.privacy {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--mute);
}

.dock {
  flex: none;
  display: grid;
  grid-template-columns: 64px 64px 1fr;
  gap: 8px;
  padding: 8px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.dock button, .dock a {
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 680;
}
.dock .ghost {
  border: 1px solid var(--line);
  background: #fff;
}
.dock .primary, .btn {
  border: 0;
  background: var(--pine);
  color: #fff;
}
.btn, .btn-line, .btn-red {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  font-weight: 680;
  margin-top: 8px;
}
.btn-line {
  border: 1px solid var(--pine);
  background: #fff;
  color: var(--pine);
}
.btn-red { border: 0; background: var(--cinnabar); color: #fff; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row .btn, .btn-row .btn-line, .btn-row .btn-red { margin-top: 0; }

.field { display: block; margin-top: 10px; }
.field span {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5c564e;
  margin-bottom: 4px;
}
.req { color: var(--cinnabar); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.field textarea { resize: none; min-height: 72px; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}
.check input { width: 18px; height: 18px; }

.filters {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(243, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 8px 14px;
}
.filters button {
  flex: none;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.filters button.on { background: var(--pine); color: #fff; }

.mapbox {
  position: relative;
  height: 280px;
  margin: 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #e4eee8;
}
.mapbox svg { width: 100%; height: 100%; }
.pin, .me {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0;
  padding: 0;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: var(--cinnabar);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.me {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #1d4e89;
  border: 2px solid #fff;
}
.tools { display: flex; gap: 8px; padding: 12px 14px; }
.tools button { flex: 1; }

.sheet {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: rgba(20, 18, 16, 0.4);
  display: flex;
  align-items: flex-end;
}
.sheet .panel {
  width: 100%;
  max-height: 86%;
  overflow: auto;
  background: #f7f4ee;
  border-radius: 18px 18px 0 0;
  padding: 12px 14px 18px;
}
.sheet h3 { margin: 4px 0 8px; font-size: 16px; }
.grab {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #ddd6ca;
  margin: 0 auto 8px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  background: rgba(26, 24, 20, 0.88);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  z-index: 12;
  max-width: 80%;
  text-align: center;
}

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metrics div, .metric {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.metrics b, .metric b {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.metrics span, .metric span { color: var(--mute); font-size: 12px; }

.row {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
  box-shadow: var(--shadow);
}
.row b { display: block; font-size: 14px; }
.row span, .row small { display: block; margin-top: 3px; color: var(--mute); font-size: 12px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.actions button, .mini {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
}
.mini.on, .actions button.on { border-color: var(--pine); color: var(--pine); }

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 8px;
  min-height: 100%;
}
.bubble {
  max-width: 78%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}
.bubble.me { margin-left: auto; background: #14352c; color: #fff; }
.bubble small { display: block; opacity: 0.7; font-size: 10px; margin-top: 4px; }
.composer {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
  padding: 8px 12px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.composer input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.composer button { border: 0; border-radius: 12px; background: var(--pine); color: #fff; }

.empty {
  text-align: center;
  color: var(--mute);
  padding: 28px 16px;
  font-size: 13px;
  line-height: 1.6;
}
.closed {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #111;
  color: #fff;
}
.closed button {
  margin-top: 12px;
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
}
.boom {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #fff;
  color: #c5362b;
  padding: 10px;
  z-index: 20;
  white-space: pre-wrap;
  font-size: 12px;
}
.viewer {
  height: 220px;
  margin: 8px 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 53, 44, 0.05), rgba(20, 53, 44, 0.28)),
    #d9e3dc;
  display: grid;
  place-items: center;
  color: var(--pine);
  font-size: 13px;
}
.scan {
  width: 140px;
  height: 180px;
  margin: 12px auto;
  border-radius: 80px;
  border: 2px dashed var(--brass);
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: 13px;
  background:
    radial-gradient(circle at 50% 40%, #fff, #efeae1 70%);
}
hr.line { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.step {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.step i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: #e4dfd4;
  font-style: normal;
}
.step i.on { background: var(--pine); }

@media (max-width: 900px) {
  body { background: #14352c; }
  .stage { display: block; padding: 0; }
  .brief { display: none; }
  .phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .screen { border-radius: 0; }
}
