/* ==========================================================================
   筑合 ZHUHE · 房地产项目合作云台 · 样式层
   设计语言：墨绿 + 铜金，取「土地与契约」之意；留白克制，信息密度高。
   类名与 pages.js / ui.js 严格对应，改页面时请同步此处。
   ========================================================================== */

:root {
  --primary: #0F5C4C;
  --primary-d: #0A4237;
  --primary-l: #E9F2EF;
  --gold: #B08D4F;
  --gold-l: #F7F0E2;
  --gold-t: #E7CE9C;
  --bg: #F2F4F1;
  --surface: #FFFFFF;
  --surface-2: #F8FAF9;
  --line: #E5E8E3;
  --line-2: #EFF1EE;
  --text: #18211D;
  --text-2: #5B6660;
  --text-3: #949D97;
  --red: #B4453A;
  --red-l: #FBEDEB;
  --green: #1F7A5A;
  --green-l: #E9F4EF;
  --amber: #A9762F;
  --amber-l: #FAF2E4;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 35, 29, .04), 0 10px 30px -18px rgba(16, 35, 29, .28);
  --shadow-sm: 0 1px 2px rgba(16, 35, 29, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --topbar-h: 52px;
  --tabbar-h: 60px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #E8EBE7;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 0; }
h1, h2, h3, h4 { margin: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  color: var(--primary-d);
  word-break: break-all;
}

/* ------------------------------------------------------------ 外壳 */
.app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  body {
    background: radial-gradient(1200px 600px at 50% -10%, #DDE4DD 0%, #E8EBE7 55%, #E4E7E2 100%);
    padding: 22px 0 40px;
  }
  .app {
    min-height: calc(100vh - 62px);
    border-radius: 26px;
    box-shadow: 0 30px 70px -30px rgba(12, 30, 24, .45), 0 2px 6px rgba(12, 30, 24, .08);
    overflow: hidden;
  }
}

.view {
  flex: 1;
  padding-bottom: 76px;
}
.view.has-topbar { padding-top: var(--topbar-h); }

/* ------------------------------------------------------------ 顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 14px;
  background: rgba(242, 244, 241, .9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .3px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar__back, .topbar__act {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  color: var(--text-2);
  flex: none;
  padding: 0;
}
.topbar__back svg, .topbar__act svg { width: 18px; height: 18px; }
.topbar__back:active, .topbar__act:active { background: var(--line-2); }
.topbar__act { border-color: transparent; background: transparent; color: var(--primary); }
.topbar--ghost { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.topbar--ghost .topbar__title { opacity: 0; }
.topbar--ghost .topbar__back { background: rgba(255,255,255,.85); border-color: transparent; }

/* ------------------------------------------------------------ 底部导航 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: 100%;
  max-width: 480px;
  display: flex;
  padding: 5px 2px calc(5px + var(--safe-b));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) {
  .tabbar { border-radius: 0 0 26px 26px; }
}
.tabbar.is-hidden { display: none; }
.tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  padding: 5px 0 3px;
  color: var(--text-3);
  background: none;
  border: 0;
  font-size: 9px;
  letter-spacing: 0;
  overflow: hidden;
}
.tab svg { width: 18px; height: 18px; flex: none; }
.tab span { white-space: nowrap; transform: scale(.97); }
.tab.is-on { color: var(--primary); font-weight: 600; }
.tab.is-on svg { stroke-width: 2.1; }

/* ------------------------------------------------------------ 底部操作条 */
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: 100%;
  max-width: 480px;
  display: flex;
  gap: 10px;
  padding: 11px 16px calc(11px + var(--safe-b));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) {
  .dock { border-radius: 0 0 26px 26px; }
}
.dock .btn { flex: 1; }

/* ------------------------------------------------------------ 头部区 ---------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 116% 12%, rgba(176, 141, 79, .30) 0%, transparent 58%),
    radial-gradient(760px 420px at -16% 108%, rgba(15, 92, 76, .5) 0%, transparent 62%),
    linear-gradient(140deg, #175144 0%, #0D4036 48%, #0A332B 100%);
  color: #fff;
  padding: 68px 22px 62px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -46%; right: -34%;
  width: 88%; height: 138%;
  border: 26px solid rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}
.hero__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; position: relative; }
.hero__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(231,206,156,.4);
  font-size: 19px; font-weight: 700;
  color: var(--gold-t);
}
.hero__name { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.15; }
.hero__name span { display: block; font-size: 10px; letter-spacing: 3px; opacity: .68; font-weight: 500; }
.hero h1 {
  position: relative;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.hero h1 em { color: var(--gold-t); font-style: normal; }
.hero p { position: relative; margin: 0 0 20px; font-size: 13px; opacity: .8; }
.hero__search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 0 12px;
  height: 44px;
  margin: 0;
}
.hero__search svg { color: rgba(255,255,255,.7); width: 18px; height: 18px; flex: none; }
.hero__search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  padding: 0 10px;
}
.hero__search input::placeholder { color: rgba(255,255,255,.55); }

/* 详情页头 */
.dhero {
  position: relative;
  background:
    radial-gradient(700px 320px at 108% 0%, rgba(176, 141, 79, .26) 0%, transparent 60%),
    linear-gradient(140deg, #16503F 0%, #0C3C32 55%, #0A322A 100%);
  color: #fff;
  padding: 20px 18px 22px;
  overflow: hidden;
}
.dhero h1 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .3px;
  margin: 0 0 10px;
}
.dhero .loc {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  opacity: .82;
  line-height: 1.6;
  margin-bottom: 12px;
}
.dhero .loc svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.dhero .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dhero .chip { background: rgba(255,255,255,.14); color: rgba(255,255,255,.92); }
.dhero .chip--gold { background: rgba(231,206,156,.22); color: var(--gold-t); }
.dhero .chip--green { background: rgba(255,255,255,.16); color: #fff; }

/* ------------------------------------------------------------ 通用块 */
.sec { padding: 0 16px; margin-top: 18px; }

.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 11px;
}
.sec-hd h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .4px;
  flex: none;
}
.sec-hd small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sec-hd .more {
  flex: none;
  font-size: 12px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.sec-hd .more svg { width: 12px; height: 12px; }

.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card.pad { padding: 14px 15px; }

.block { margin: 16px 16px 0; }
.block__hd {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.block__hd i {
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--primary);
  flex: none;
}
.block__hd h4 { font-size: 14.5px; font-weight: 650; letter-spacing: .3px; }

.kvlist {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 14px;
}
.kvrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.kvrow:last-child { border-bottom: 0; }
.kvrow dt { color: var(--text-3); flex: none; max-width: 40%; line-height: 1.6; }
.kvrow dd { flex: 1; min-width: 0; text-align: right; line-height: 1.7; word-break: break-word; }
.kvrow dd.num { font-weight: 650; font-variant-numeric: tabular-nums; }
.kvrow--full { display: block; }
.kvrow--full dt { max-width: none; margin-bottom: 5px; }
.kvrow--full dd { text-align: left; }

.grp__b { display: flex; flex-wrap: wrap; gap: 6px; }
.kvrow--full .grp__b { justify-content: flex-start; }

.note {
  background: var(--amber-l);
  color: var(--amber);
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: 12px;
  line-height: 1.7;
}
.note--green { background: var(--green-l); color: var(--green); }
.note--red { background: var(--red-l); color: var(--red); }
.note + .note { margin-top: 8px; }

.pbody { padding: 15px; font-size: 14px; line-height: 1.78; }
.pbody p { margin: 0 0 10px; }
.pbody p:last-child { margin-bottom: 0; }
.pbody ul { padding-left: 18px; margin: 6px 0 10px; }
.pbody li { margin-bottom: 6px; }

.src { font-size: 11.5px; color: var(--text-3); line-height: 1.7; margin-top: 8px; word-break: break-all; }
.src a { color: var(--primary); text-decoration: underline; }

/* ------------------------------------------------------------ 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip--green { background: var(--green-l); color: var(--green); }
.chip--gold { background: var(--gold-l); color: var(--amber); }
.chip--red { background: var(--red-l); color: var(--red); }
.chip--outline { background: transparent; color: var(--text-3); border-color: var(--line); }

/* ------------------------------------------------------------ 卡片：项目 / 需求 */
.pcard {
  display: block;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 14px 15px;
  margin-bottom: 10px;
}
.pcard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
}
.pcard__top .chip { flex: none; }
.pcard__name {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .2px;
  min-width: 0;
}
.pcard__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.pcard__loc svg { width: 14px; height: 14px; flex: none; }
.pcard__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.pcard__kv > div { min-width: 0; }
.pcard__kv b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard__kv span { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.pcard__tags:empty { display: none; }
.pcard__ft {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-3);
}
.pcard__ft svg { width: 12px; height: 12px; }
.pcard__ft .sp { flex: 1; }
.pcard__ft .btn { margin-left: 0; }

/* ------------------------------------------------------------ 首页 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 10px;
  margin: -26px 16px 0;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.stats > div { text-align: center; min-width: 0; }
.stats b {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats span { display: block; font-size: 11px; color: var(--text-3); margin-top: 4px; }

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  transition: transform .12s, border-color .12s;
}
.quick button:active { transform: scale(.96); border-color: var(--primary); }
.quick .qi {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-l);
  color: var(--primary);
  flex: none;
}
.quick .qi svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------ 筛选 */
.filters {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 16px 8px;
  background: rgba(242, 244, 241, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.view.has-topbar .filters { top: var(--topbar-h); }
.filters__row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}
.filters__row::-webkit-scrollbar { display: none; }
.filters__row + .filters__row { padding-top: 3px; }
.fchip {
  flex: none;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
  transition: background .12s, color .12s;
}
.fchip.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }

.tiny-link { color: var(--primary); text-decoration: underline; }
.row .sp { flex: 1; }

/* ------------------------------------------------------------ 列表行（我的 / 服务入口） */
.mlist {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
}
.mrow:last-child { border-bottom: 0; }
.mi {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--primary-l);
  color: var(--primary);
  flex: none;
}
.mi svg { width: 18px; height: 18px; }
.mt {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
}
.mt small {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 3px;
  line-height: 1.5;
}
.ma { flex: none; color: var(--text-3); font-size: 12px; display: flex; align-items: center; }
.ma svg { width: 15px; height: 15px; }

/* 我的：头部 */
.me-hd {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 18px 26px;
  background:
    radial-gradient(520px 260px at 112% 0%, rgba(176, 141, 79, .28) 0%, transparent 62%),
    linear-gradient(140deg, #16503F 0%, #0C3C32 58%, #0A322A 100%);
  color: #fff;
}
.me-hd__av {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(231,206,156,.4);
  color: var(--gold-t);
  font-size: 22px;
  font-weight: 700;
  flex: none;
}
.me-hd__c { min-width: 0; }
.me-hd__c b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.me-hd__c span { display: block; font-size: 12px; opacity: .78; margin-top: 3px; }
.me-panel { padding: 0 16px; margin-top: -14px; position: relative; z-index: 2; }

/* ------------------------------------------------------------ 服务卡 */
.svc {
  display: block;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-2);
}
.svc:last-child { border-bottom: 0; }
.svc__hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.svc__n {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  min-width: 0;
}
.svc__p { flex: none; text-align: right; }
.svc__p b { font-size: 15px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.svc__p span { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.svc__d { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }
.svc__m { display: flex; flex-wrap: wrap; gap: 6px; }

/* ------------------------------------------------------------ 政策 */
.pol { display: block; padding: 13px 15px; border-bottom: 1px solid var(--line-2); }
.pol:last-child { border-bottom: 0; }
.pol__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pol__d { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pol__t { font-size: 14px; font-weight: 650; line-height: 1.5; margin-bottom: 4px; }
.pol__s {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------ 条形图 */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar__hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 5px;
}
.bar__hd b { font-variant-numeric: tabular-nums; color: var(--primary); }
.bar__t { height: 7px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar__f {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), #2E8A6E);
}

/* ------------------------------------------------------------ 图片画廊 */
.gallery {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.gal {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gal::-webkit-scrollbar { display: none; }
.gal__item {
  position: relative;
  flex: none;
  width: 78%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  scroll-snap-align: start;
  border: 1px solid var(--line-2);
  padding: 0;
  text-align: left;
}
.gal__item img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.gal__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 10px 8px;
  font-size: 11.5px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 40, 33, .78));
}
.gal__cap b { font-weight: 650; }
.gal__badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255,255,255,.92);
  color: var(--primary);
}
.gal__badge--gold { background: rgba(231,206,156,.94); color: #6B4E19; }
.gal-note {
  padding: 0 15px 12px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.65;
}
.gal-empty {
  padding: 26px 16px;
  text-align: center;
}
.gal-empty svg { width: 34px; height: 34px; color: var(--text-3); margin-bottom: 8px; }
.gal-empty b { display: block; font-size: 13px; margin-bottom: 4px; }
.gal-empty p { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.65; }

/* 大图查看 */
.lightbox { text-align: center; }
.lightbox img { width: 100%; border-radius: 12px; display: block; }
.lightbox h3 { font-size: 15px; margin-bottom: 10px; }
.lightbox p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin: 10px 0 0; }

/* ------------------------------------------------------------ 表单 */
.form-sec { margin-top: 18px; }
.form-sec__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 10px;
}
.form-sec__hd i {
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--primary);
  flex: none;
}
.form-sec__hd h4 { font-size: 14.5px; font-weight: 650; letter-spacing: .3px; }
.form-sec__hd .n {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.fld {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
}
.fld:last-child { border-bottom: 0; }
.fld > label {
  flex: none;
  width: 104px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.fld .req { color: var(--red); margin-left: 2px; }
.fld input[type="text"],
.fld input[type="number"],
.fld input[type="tel"],
.fld input[type="date"],
.fld input[type="search"],
.fld select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 5px 0;
  font-size: 14px;
  text-align: right;
  color: var(--text);
}
.fld select { text-align-last: right; direction: rtl; text-align: right; }
.fld input::placeholder { color: var(--text-3); }
.fld .unit { flex: none; font-size: 12px; color: var(--text-3); }

.fld--col {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
}
.fld--col:last-child { border-bottom: 0; }
.fld--col > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.fld--col input[type="text"],
.fld--col input[type="number"],
.fld--col input[type="tel"],
.fld--col input[type="date"],
.fld--col select,
.fld--col textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.6;
}
.fld--col input:focus, .fld--col select:focus, .fld--col textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.fld--col textarea { min-height: 88px; resize: vertical; }
.hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-top: 7px; }

/* 多选 */
.picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 15px 13px; }
.pk {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
  transition: background .12s, color .12s, border-color .12s;
}
.pk.is-on {
  background: var(--primary-l);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* 文件 */
.filebox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 15px;
  padding: 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12.5px;
}
.filebox svg { width: 14px; height: 14px; }
.filelist { padding: 0 15px; }
.fileitem {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  margin-top: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--text-2);
}
.fileitem svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.fileitem span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fileitem button { background: none; border: 0; color: var(--text-3); padding: 0 2px; }

/* 图片选择 */
.imgpick {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 15px 4px;
  scrollbar-width: none;
}
.imgpick::-webkit-scrollbar { display: none; }
.imgthumb {
  position: relative;
  flex: none;
  width: 108px;
  height: 68px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.imgthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgthumb button {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 26, 24, .62);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.imgadd {
  flex: none;
  width: 108px; height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 11px;
}
.imgadd svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .12s, opacity .12s;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.985); opacity: .92; }
.btn--gold { background: var(--gold); }
.btn--ghost { background: var(--surface); color: var(--primary); border-color: var(--line); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }

/* ------------------------------------------------------------ tabs */
.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tb {
  flex: none;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
}
.tb.is-on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ------------------------------------------------------------ 锁定块 */
.lock {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.lock.is-open { border-style: solid; border-color: var(--line); background: var(--surface); }
.lock__i {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-l);
  color: var(--amber);
  flex: none;
}
.lock.is-open .lock__i { background: var(--green-l); color: var(--green); }
.lock__i svg { width: 16px; height: 16px; }
.lock__c { flex: 1; min-width: 0; }
.lock__c b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.5; }
.lock__c span { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }
.lock .btn { flex: none; }

/* ------------------------------------------------------------ 空态 */
.empty { text-align: center; padding: 46px 20px; }
.empty .ei {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-3);
}
.empty .ei svg { width: 24px; height: 24px; }
.empty b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 5px; }
.empty p { font-size: 12.5px; color: var(--text-3); margin: 0 0 16px; line-height: 1.7; }

/* ------------------------------------------------------------ 收费方案 */
.plan {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.plan__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
}
.plan__row:last-child { border-bottom: 0; }
.plan__n { flex: 1; min-width: 0; }
.plan__n b { display: block; font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.plan__n span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.65; }
.plan__p {
  flex: none;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan__p small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.plan__p--free { color: var(--green); }
.plan__p--gold { color: var(--amber); }

.tier {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.tier__card.is-hot { border-color: var(--primary); box-shadow: 0 8px 26px -18px rgba(15,92,76,.6); }
.tier__hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.tier__hd b { font-size: 15px; font-weight: 700; }
.tier__badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--gold-l);
  color: var(--amber);
}
.tier__price { font-size: 22px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.tier__price small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.tier__desc { font-size: 12px; color: var(--text-3); line-height: 1.65; margin: 4px 0 11px; }
.tier__items { list-style: none; padding: 0; margin: 0; }
.tier__items li {
  position: relative;
  padding-left: 17px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 4px;
}
.tier__items li::before {
  content: '';
  position: absolute;
  left: 3px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .55;
}

.calc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}
.calc__r {
  display: contents;
}
.calc__r span, .calc__r b {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.calc__r:last-child span, .calc__r:last-child b { border-bottom: 0; }
.calc__r span { color: var(--text-2); }
.calc__r b { text-align: right; font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 650; }
.calc__total span, .calc__total b { color: var(--text); font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------ sheet / toast */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 22, 18, .46);
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(2px);
}
.sheet-mask.is-on { display: flex; }
.sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b));
  max-height: 84vh;
  overflow-y: auto;
}
.sheet h3 { font-size: 17px; margin-bottom: 8px; }
.sheet p { font-size: 13px; color: var(--text-2); line-height: 1.75; margin: 0 0 14px; }
.sheet .fld { padding: 10px 0; border-bottom: 0; }
.sheet .fld > label { width: 72px; }
.sheet .fld input, .sheet .fld select {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 9px 11px;
  text-align: left;
}
.sheet .fld--col { padding: 10px 0; }

.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  max-width: 82vw;
  background: rgba(22, 32, 28, .9);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  text-align: center;
}
.toast.is-on { opacity: 1; }

/* ------------------------------------------------------------ 辅助类 */
.f11 { font-size: 11px; }
.f12 { font-size: 12px; }
.f13 { font-size: 13px; }
.t3 { color: var(--text-3); }
.tc { text-align: center; }
.bold { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.sub { color: var(--text-3); }
.sp { flex: 1; }
.row { display: flex; align-items: center; gap: 6px; }
.row.gap8 { gap: 8px; }
.gap6 { gap: 6px; }
.gap8 { gap: 8px; }
.gap10 { gap: 10px; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }

/* ==========================================================================
   信息架构 v2：顾问工作室（studio）/ 交付样本库（samples）/ 服务场景（cases）
   思路：首页从「信息瀑布流」改为「判断的展示与交易入口」。
   ========================================================================== */

/* ------------------------------------------------------------ Hero 主行动 */
.hero__cta { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn { flex: 1 1 0; min-width: 120px; }
.hero__cta .btn--ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

/* 首页配套区内的搜索框（浅色背景，需换配色） */
.home-search {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
}
.home-search input { color: var(--text); }
.home-search input::placeholder { color: var(--text-3); }

/* ------------------------------------------------------------ 首页顾问名片 */
.advcard { display: block; padding: 15px; }
.advcard__hd { display: flex; align-items: center; gap: 11px; }
.advcard__av {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #175144 0%, #0A332B 100%);
  color: var(--gold-t);
  font-size: 20px; font-weight: 700;
}
.advcard__c { flex: 1; min-width: 0; }
.advcard__c b { display: block; font-size: 16px; font-weight: 700; }
.advcard__c span { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.advcard__go { flex: none; color: var(--text-3); display: flex; }
.advcard__go svg { width: 17px; height: 17px; }
.advcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.advcard__q {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .2px;
}

/* ------------------------------------------------------------ 「我能解决什么问题」 */
.card.pad6 { padding: 6px 0; }
.gorow {
  display: block;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-2);
}
.gorow:last-child { border-bottom: 0; }
.gorow b { display: block; font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.gorow span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.gorow:active { background: var(--bg); }

/* ------------------------------------------------------------ 服务分组标题 */
.catblk { margin-top: 13px; }
.catblk:first-of-type { margin-top: 0; }
.cat-hd {
  display: flex; align-items: center; gap: 7px;
  margin: 0 2px 8px;
  font-size: 12.5px; font-weight: 650;
  color: var(--primary);
  letter-spacing: .5px;
}
.cat-hd::before {
  content: '';
  width: 3px; height: 12px; border-radius: 2px;
  background: var(--gold);
  flex: none;
}
.svc--link { display: block; }
.svc--link:active { background: var(--bg); }

/* ------------------------------------------------------------ 顾问工作室头部 */
.dhero.adv { padding: 22px 18px 20px; }
.advhd { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.advhd__av {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(231, 206, 156, .45);
  color: var(--gold-t);
  font-size: 24px; font-weight: 700;
}
.advhd__c { min-width: 0; }
.advhd__c h1 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: .4px; }
.advhd__t { font-size: 12.5px; opacity: .8; line-height: 1.55; }
.advhd__q {
  position: relative;
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(231, 206, 156, .55);
  font-size: 13px; font-weight: 600; line-height: 1.65;
  color: var(--gold-t);
}
.advhd__cta { position: relative; display: flex; gap: 10px; margin-top: 16px; }
.advhd__cta .btn { flex: 1; }
.dhero .btn--ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

/* ------------------------------------------------------------ 交付样本卡 */
.sample { padding: 15px; margin-bottom: 12px; }
.sample:last-child { margin-bottom: 0; }
.sample__hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 9px;
}
.sample__type {
  font-size: 11px; font-weight: 650;
  padding: 3px 8px; border-radius: 6px;
  background: var(--green-l); color: var(--green);
}
.sample__price { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.sample__t { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin-bottom: 11px; }
.sample__b { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 8px; }
.sample__b b { color: var(--text-3); font-weight: 600; margin-right: 6px; }
.sample__b--hl { background: var(--gold-l); border-radius: 9px; padding: 10px 11px; }
.sample__b--hl b { color: var(--amber); }
.sample__d { font-size: 12.5px; color: var(--text-2); margin: 10px 0 11px; }
.sample__d > b { display: block; color: var(--text-3); font-weight: 600; }
.sample__ul { list-style: none; padding: 0; margin: 6px 0 0; }
.sample__ul li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.75;
}
.sample__ul li::before {
  content: '';
  position: absolute; left: 2px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  opacity: .5;
}

/* ------------------------------------------------------------ 服务场景卡 */
.ccase { padding: 15px; margin-bottom: 12px; }
.ccase:last-child { margin-bottom: 0; }
.ccase__hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.ccase__type {
  font-size: 11px; font-weight: 650;
  padding: 3px 8px; border-radius: 6px;
  background: var(--gold-l); color: var(--amber);
}
.ccase__region { font-size: 11.5px; color: var(--text-3); }
.ccase__row {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 9px; margin-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--text-2);
}
.ccase__row b { flex: none; font-size: 12px; font-weight: 600; color: var(--text-3); }
.ccase__blk { margin-bottom: 10px; }
.ccase__blk b { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.ccase__blk p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.ccase__blk--res { background: var(--green-l); border-radius: 9px; padding: 10px 11px; margin-bottom: 0; }
.ccase__blk--res b { color: var(--green); }
