/* 租房宝 · 用户端 H5 · 蓝色主色 */
:root {
  --ink: #1d2129;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: rgba(22, 93, 255, 0.10);
  --bg: #f2f7ff;
  --bg-soft: #e8f3ff;
  --card: #ffffff;
  --teal: #1677ff;
  --teal-deep: #0e5fd8;
  --teal-soft: #e8f3ff;
  --gold: #3c8dff;
  --danger: #f53f3f;
  --ok: #00b42a;
  --warn: #ff7d00;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(14, 95, 216, 0.10);
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Outfit", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

#app { min-height: 100%; }

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(22, 119, 255, 0.12), transparent 55%),
    radial-gradient(90% 50% at 100% 0%, rgba(14, 95, 216, 0.08), transparent 50%),
    var(--bg);
}

.page { animation: fadeUp .28s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  background: rgba(242, 247, 255, 0.88);
  border-bottom: 1px solid var(--line);
}
.store-pill {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(8, 40, 52, 0.04);
  cursor: pointer;
}
.store-pill.locked {
  cursor: default;
  box-shadow: none;
  background: var(--card);
  opacity: 1;
  pointer-events: none;
}
.store-pill:disabled {
  opacity: 1;
  pointer-events: none;
}
.store-pill .pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; flex-shrink: 0;
}
.store-pill .pin svg { width: 16px; height: 16px; display: block; }
.store-pill .chev {
  color: var(--ink-3); margin-left: auto; flex-shrink: 0;
  width: 18px; height: 18px; display: grid; place-items: center;
}
.store-pill .chev svg { width: 16px; height: 16px; display: block; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer; color: var(--teal-deep);
}
.icon-btn svg { width: 20px; height: 20px; display: block; }

.store-pill .meta { min-width: 0; }
.store-pill .name {
  font-size: 14px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-pill .sub {
  font-size: 11px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Poster */
.poster-wrap { padding: 12px 14px 4px; }
.poster-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.poster-track::-webkit-scrollbar { display: none; }
.poster-card {
  position: relative; flex: 0 0 86%; scroll-snap-align: start;
  height: 148px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #1677ff, #0e5fd8);
  box-shadow: var(--shadow);
}
.poster-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.poster-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,95,216,.12), rgba(0,62,179,.72));
}
.poster-card .copy {
  position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff;
}
.poster-card .copy h3 {
  font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .02em;
}
.poster-card .copy p { margin-top: 4px; font-size: 12px; opacity: .9; }

/* Modules */
.section { padding: 14px 14px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 16px; font-weight: 800; }
.section-head .more { font-size: 12px; color: var(--teal); font-weight: 600; cursor: pointer; }

.module-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.module-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 14px; cursor: pointer;
  background: transparent; border: none;
}
.module-item .ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #5babff 0%, #1677ff 48%, #0a56d6 100%);
  color: #fff;
  box-shadow:
    0 6px 14px rgba(22, 119, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-size: 18px; font-weight: 700;
}
.module-item .ico svg { width: 22px; height: 22px; display: block; }
.module-item span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.module-item.active .ico,
.module-item:active .ico {
  background: linear-gradient(145deg, #3d9aff 0%, #0e5fd8 55%, #0848b8 100%);
  box-shadow: 0 4px 10px rgba(14, 95, 216, 0.34), inset 0 1px 0 rgba(255,255,255,.28);
  transform: translateY(1px);
}

/* Listing cards */
.list-grid { display: flex; flex-direction: column; gap: 12px; }
.listing-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 12px;
  padding: 10px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(8, 40, 52, 0.04);
  cursor: pointer; text-align: left;
}
.listing-card .thumb {
  width: 112px; height: 96px; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft); position: relative;
}
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .badge {
  position: absolute; left: 6px; top: 6px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(11, 95, 110, .88); padding: 2px 6px; border-radius: 999px;
}
.listing-card .body { min-width: 0; display: flex; flex-direction: column; }
.listing-card .title {
  font-size: 14px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card .meta {
  margin-top: 4px; font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing-card .tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 10px; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); padding: 2px 6px; border-radius: 6px;
}
.listing-card .price-row {
  margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.price { color: #1677ff; font-weight: 800; font-family: var(--display); }
.price em { font-style: normal; font-size: 18px; }
.price small { font-size: 11px; font-weight: 600; }

/* Filters */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
}
.chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 8px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: var(--teal);
}
.search-box svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; outline: none; background: transparent; font-size: 14px;
}

/* Detail */
.detail-hero {
  position: relative; height: 260px; background: #0e5fd8;
}
.detail-hero img, .detail-hero video.hero-media, .detail-hero img.hero-media {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.detail-hero video.hero-media { background: #000; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.hero-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45);
}
.hero-dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.hero-counter {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.detail-hero .back {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; border: none;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px);
}
.detail-hero .back svg { width: 20px; height: 20px; display: block; }
.detail-hero .fav-btn {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; border: none;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px);
}
.detail-hero .fav-btn.on { color: #ff4d6d; background: rgba(255,255,255,.92); }
.detail-hero .fav-btn svg { width: 18px; height: 18px; display: block; }
.detail-body {
  margin-top: -18px; position: relative; z-index: 1;
  background: var(--bg); border-radius: 20px 20px 0 0; padding: 18px 14px 180px;
}
.detail-title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.detail-price { margin-top: 8px; color: #1677ff; font-family: var(--display); font-weight: 800; font-size: 28px; }
.detail-price small { font-size: 13px; font-weight: 600; }
.kv-grid {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.kv {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 8px; text-align: center;
}
.kv b { display: block; font-size: 14px; font-weight: 700; }
.kv span { font-size: 11px; color: var(--ink-3); }
.block {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.block h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.block p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.detail-bar {
  position: fixed; left: 0; right: 0; z-index: 40;
  bottom: calc(var(--nav-h) + 20px + var(--safe-b));
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.btn {
  appearance: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 14px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-ghost {
  background: var(--bg-soft); color: var(--teal-deep); border: 1px solid var(--line);
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; box-shadow: 0 8px 18px rgba(22, 119, 255, .28);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Bottom nav */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100% - 56px));
  bottom: calc(12px + var(--safe-b));
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px 8px 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 14px 36px rgba(8, 40, 52, 0.18);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.tabbar button {
  border: none; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
  padding: 0;
  line-height: 1.1;
}
.tabbar button.active { color: var(--teal-deep); }
.tabbar .ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 10px;
  transition: transform .18s ease, background .18s ease;
}
.tabbar .ico svg {
  width: 22px; height: 22px;
  display: block;
}
.tabbar button.active .ico {
  width: 34px; height: 34px;
  background: var(--teal-soft);
  transform: translateY(-1px);
}
.tabbar button.active .ico svg {
  width: 26px; height: 26px;
}
.tabbar button span.lbl { white-space: nowrap; }

/* Sheets / modals */
.mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 20, 28, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b));
  overflow: auto;
  animation: sheetUp .28s ease;
}
@keyframes sheetUp {
  from { transform: translateY(40px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.sheet-handle {
  width: 36px; height: 4px; border-radius: 999px; background: #d5dde3;
  margin: 4px auto 12px;
}
.sheet h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.sheet .hint { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.store-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--line);
  margin-bottom: 8px; cursor: pointer; background: #fff;
}
.store-option.active { border-color: var(--teal); background: var(--teal-soft); }
.store-option .av {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.store-option .t { font-weight: 700; font-size: 14px; }
.store-option .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.form-item { margin-bottom: 12px; }
.form-item label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px;
}
.form-item label .req { color: var(--danger); margin-right: 2px; }
.form-control {
  width: 100%; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fafcfd; padding: 0 12px; outline: none;
}
.form-control:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,.14); }
textarea.form-control { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.captcha-row { display: flex; gap: 8px; }
.captcha-row img {
  width: 120px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #e8f3ff;
}
.tabs-auth {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg-soft); padding: 4px; border-radius: 12px; margin-bottom: 14px;
}
.tabs-auth button {
  border: none; background: transparent; border-radius: 10px;
  padding: 10px; font-weight: 700; color: var(--ink-3); cursor: pointer;
}
.tabs-auth button.active { background: #fff; color: var(--teal-deep); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.form-msg { margin-top: 8px; font-size: 12px; color: var(--danger); min-height: 16px; }
.auth-switch { text-align: center; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.auth-switch a { color: var(--teal); font-weight: 700; cursor: pointer; }

/* Contracts / Mine */
.tip-card {
  display: flex; gap: 10px; padding: 12px; border-radius: 14px;
  background: linear-gradient(135deg, #1677ff, #0e5fd8); color: #fff; margin-bottom: 10px;
}
.tip-card.warn { background: linear-gradient(135deg, #ff7d00, #f77234); }
.tip-card .n { font-family: var(--display); font-size: 22px; font-weight: 800; }
.tip-card .d { font-size: 12px; opacity: .9; }
.tips-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.contract-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px;
}
.contract-card .row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.contract-card h4 { font-size: 15px; font-weight: 800; }
.contract-card .sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.status-pill {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep); white-space: nowrap;
}
.status-pill.pending { background: #fff4e5; color: var(--warn); }
.status-pill.ok { background: #e6f7ef; color: var(--ok); }
.status-pill.danger { background: #fdecec; color: var(--danger); }
.contract-actions { display: flex; gap: 8px; margin-top: 12px; }
.contract-actions .btn { flex: 1; padding: 10px; font-size: 13px; }

.mine-hero {
  margin: 12px 14px; padding: 18px; border-radius: 20px;
  background: linear-gradient(145deg, #1677ff 0%, #0e5fd8 55%, #003eb3 100%);
  color: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.mine-hero .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.45);
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
}
.mine-hero .avatar svg { width: 28px; height: 28px; }
.mine-hero .avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-hero .hi { font-size: 12px; opacity: .85; }
.mine-hero h2 { font-size: 20px; font-weight: 800; margin-top: 2px; font-family: var(--display); }
.mine-hero .phone { margin-top: 4px; font-size: 13px; opacity: .9; }
.mine-hero .login-btn {
  margin-left: auto; flex-shrink: 0;
  border: none; background: #fff; color: var(--teal-deep);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.mine-stats {
  margin: 0 14px 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.mine-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 6px; text-align: center; cursor: pointer;
  font: inherit; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mine-stat:active { transform: scale(.97); }
.mine-stat .n { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--teal-deep); }
.mine-stat .d { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.mine-group {
  margin: 0 14px 12px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 4px 16px rgba(14, 95, 216, 0.04);
}
.mine-group .gh {
  padding: 12px 14px 2px; font-size: 12px; color: var(--ink-3); font-weight: 700;
  letter-spacing: .04em;
}
.mine-svc-card { overflow: visible; }
.mine-svc-card .gh { padding: 12px 14px 6px; }
.mine-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 2px 12px 14px;
}
.mine-nav-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 12px 12px 10px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mine-nav-item:active { transform: scale(.98); }
.mine-nav-item .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.18);
  transition: transform .15s ease;
}
.mine-nav-item .ico svg { width: 22px; height: 22px; display: block; }
.mine-nav-item .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mine-nav-item .lab {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1.2;
}
.mine-nav-item .sub {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-nav-item .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.mine-nav-item:active .ico { transform: scale(.94); }
.mine-nav-item.tone-blue {
  background: linear-gradient(145deg, #f0f7ff 0%, #e4f0ff 100%);
}
.mine-nav-item.tone-blue .ico {
  background: linear-gradient(145deg, #5babff 0%, #1677ff 55%, #0e5fd8 100%);
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.28);
}
.mine-nav-item.tone-cyan {
  background: linear-gradient(145deg, #eefcfb 0%, #dff7f6 100%);
}
.mine-nav-item.tone-cyan .ico {
  background: linear-gradient(145deg, #36cfc9 0%, #13c2c2 55%, #08979c 100%);
  box-shadow: 0 6px 14px rgba(19, 194, 194, 0.28);
}
.mine-nav-item.tone-amber {
  background: linear-gradient(145deg, #fff8ef 0%, #ffefd9 100%);
}
.mine-nav-item.tone-amber .ico {
  background: linear-gradient(145deg, #ffb84d 0%, #ff7d00 55%, #d46b08 100%);
  box-shadow: 0 6px 14px rgba(255, 125, 0, 0.28);
}
.mine-nav-item.tone-violet {
  background: linear-gradient(145deg, #f6f1ff 0%, #ece4ff 100%);
}
.mine-nav-item.tone-violet .ico {
  background: linear-gradient(145deg, #b37feb 0%, #722ed1 55%, #531dab 100%);
  box-shadow: 0 6px 14px rgba(114, 46, 209, 0.26);
}
.mine-nav-item.tone-green {
  background: linear-gradient(145deg, #eefbf2 0%, #e0f6e8 100%);
}
.mine-nav-item.tone-green .ico {
  background: linear-gradient(145deg, #3dda6a 0%, #00b42a 55%, #009a29 100%);
  box-shadow: 0 6px 14px rgba(0, 180, 42, 0.26);
}
.mine-menu button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px; border: none; background: transparent; cursor: pointer;
  border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; color: var(--ink);
}
.mine-menu button:last-child { border-bottom: none; }
.mine-menu button:active { background: var(--teal-soft); }
.mine-menu .mi {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, #e8f3ff, #d6e9ff); color: var(--teal-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.mine-menu .mi svg { width: 18px; height: 18px; display: block; }
.mine-menu .mi.danger { background: #ffece8; color: var(--danger); }
.mine-menu .txt { flex: 1; min-width: 0; }
.mine-menu .txt .t { font-size: 14px; font-weight: 700; }
.mine-menu .txt .s { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.mine-menu .arr { color: var(--ink-3); width: 16px; height: 16px; display: grid; place-items: center; flex-shrink: 0; }
.mine-menu .arr svg { width: 14px; height: 14px; }
.mine-menu .badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: inline-grid; place-items: center; flex-shrink: 0;
}
.sub-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(242,247,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sub-head h1 { font-size: 17px; font-weight: 800; flex: 1; }
.profile-card {
  margin: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  box-shadow: 0 4px 16px rgba(14, 95, 216, 0.04);
}
.profile-card .hint { font-size: 12px; color: var(--ink-3); }
.kv-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.kv-line:last-child { border-bottom: none; }
.kv-line .k { color: var(--ink-3); font-weight: 600; flex-shrink: 0; }
.kv-line .v { color: var(--ink); font-weight: 700; text-align: right; word-break: break-all; }

.progress-track { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.progress-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; position: relative;
}
.progress-step:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 34px; bottom: -2px;
  width: 2px; background: var(--line);
}
.progress-step.done:not(:last-child)::before { background: var(--teal); }
.progress-step .dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: #eef2f6; color: var(--ink-3); border: 2px solid transparent;
  z-index: 1;
}
.progress-step .dot svg { width: 14px; height: 14px; }
.progress-step.done .dot { background: var(--teal); color: #fff; }
.progress-step.current .dot {
  background: #fff; color: var(--teal-deep);
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,119,255,.15);
}
.progress-step .info .lab { font-size: 14px; font-weight: 700; }
.progress-step .info .desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.progress-step.current .info .lab { color: var(--teal-deep); }

.about-hero {
  margin: 14px; padding: 28px 18px; text-align: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #1677ff 0%, #0e5fd8 60%, #003eb3 100%);
  color: #fff; box-shadow: var(--shadow);
}
.about-hero .logo {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px;
  background: rgba(255,255,255,.2); display: grid; place-items: center;
}
.about-hero .logo svg { width: 32px; height: 32px; }
.about-hero h2 { font-family: var(--display); font-size: 24px; font-weight: 800; }
.about-hero p { margin-top: 6px; font-size: 13px; opacity: .9; }

.empty {
  padding: 48px 20px; text-align: center; color: var(--ink-3);
}
.empty b { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 15px; }

.toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
  z-index: 100; max-width: 86%;
  background: rgba(15, 28, 36, .92); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600;
  pointer-events: none; animation: fadeIn .2s ease;
}

.qr-box { text-align: center; padding: 8px 0 4px; }
.qr-box img {
  width: 180px; height: 180px; margin: 0 auto 10px; border-radius: 12px;
  border: 1px solid var(--line); object-fit: contain; background: #fff;
}
.qr-box p { font-size: 13px; color: var(--ink-2); }

.contract-view {
  white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: var(--ink-2);
  background: #fafcfd; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; max-height: 46vh; overflow: auto;
}

.loading-bar {
  height: 3px; background: linear-gradient(90deg, transparent, var(--teal), transparent);
  background-size: 40% 100%; animation: load 1s linear infinite;
}
@keyframes load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
  .app-shell { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .tabbar { width: 300px; }
  .detail-bar {
    left: max(0px, calc(50% - 240px));
    right: max(0px, calc(50% - 240px));
  }
  .poster-card { flex-basis: 92%; height: 168px; }
}
