:root {
  --brand: #ff6a00;
  --brand-deep: #f04b00;
  --ink: #1f2329;
  --ink-2: #5c6570;
  --ink-3: #99a1ab;
  --line: #eceff3;
  --bg: #f5f6f8;
  --phone-bg: #ffffff;
  --dev-bg: #14171c;
  --dev-ink: #d6dbe3;
  --ok: #17a673;
  --warn: #e8871e;
  --err: #e64a45;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.5 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #2b3340 0%, #171b21 55%, #0f1216 100%);
  overflow: hidden;
}

code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ================= stage ================= */
.stage {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 560px;
  gap: 22px;
  padding: 22px;
  align-items: center;
}

/* ================= phone ================= */
.phone { display: flex; justify-content: center; }
.phone__frame {
  position: relative;
  width: 392px;
  height: 808px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #3b424e, #14181d 60%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 24px; border-radius: 0 0 16px 16px;
  background: #0c0f13; z-index: 30;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  /* 模拟手机底部安全区：避免贴底按钮被圆角裁掉 */
  padding-bottom: 10px;
  overflow: hidden;
  background: var(--phone-bg);
  display: flex;
  flex-direction: column;
}

/* statusbar */
.statusbar {
  height: 34px;
  flex: 0 0 34px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 22px;
  font-size: 12px; font-weight: 600;
  background: var(--phone-bg);
  color: var(--ink);
  z-index: 20;
  transition: background .2s, color .2s;
}
.statusbar.is-dark { background: #16191d; color: #fff; }
.statusbar__icons { display: inline-flex; gap: 5px; align-items: center; }
.statusbar__icons i { display: inline-block; background: currentColor; opacity: .85; border-radius: 1px; }
.statusbar__icons .sig { width: 14px; height: 9px; clip-path: polygon(0 100%, 25% 100%, 25% 55%, 0 55%, 0 100%, 35% 100%, 35% 38%, 60% 38%, 60% 100%, 70% 100%, 70% 0, 95% 0, 95% 100%); }
.statusbar__icons .wifi { width: 12px; height: 9px; border-radius: 50% 50% 0 0; }
.statusbar__icons .bat { width: 20px; height: 10px; border-radius: 3px; }

.screen__body { flex: 1 1 auto; position: relative; overflow: hidden; }

/* ================= native pages ================= */
.page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.page__scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page__scroll::-webkit-scrollbar { width: 0; }

.navbar {
  flex: 0 0 auto;
  height: 46px;
  display: grid;
  grid-template-columns: 44px 1fr 64px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 6px;
}
.navbar__title { text-align: center; font-size: 16px; font-weight: 600; }
.navbar__back { border: 0; background: none; font-size: 18px; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; }
.navbar__back:active { background: #f0f2f5; }
.navbar__right { text-align: right; font-size: 13px; color: var(--brand); padding-right: 6px; }

/* tabbar */
.tabbar {
  flex: 0 0 54px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: 2px;
  z-index: 15;
}
.tabbar.is-hidden { display: none; }
.tabbar__item {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; color: var(--ink-3); padding: 0;
}
.tabbar__item.is-active { color: var(--brand); }
.tabbar__item .ico {
  position: relative;
  width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 9px; font-size: 12px; font-weight: 700;
  background: #f1f3f6; color: var(--ink-2);
}
.tabbar__item.is-active .ico { background: rgba(255, 106, 0, .12); color: var(--brand); }
.badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: var(--err); color: #fff;
  font-size: 9px; line-height: 15px; font-style: normal; text-align: center;
}

/* ================= H5 webview ================= */
.webview { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; z-index: 10; }

.wv-titlebar {
  flex: 0 0 auto;
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background .18s, color .18s;
}
.wv-titlebar.is-dark { background: #16191d; color: #fff; border-bottom-color: #24282f; }
.wv-titlebar__row {
  height: 46px; display: grid; grid-template-columns: 46px 1fr 70px; align-items: center;
}
.wv-titlebar__title {
  text-align: center; font-size: 16px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wv-titlebar__back, .wv-titlebar__more {
  border: 0; background: none; color: inherit; font-size: 18px; height: 40px;
}
.wv-titlebar__more { font-size: 13px; text-align: right; padding-right: 8px; }
.wv-titlebar.is-hidden { display: none; }

.wv-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--brand); transition: width .18s ease;
}

.wv-domain {
  flex: 0 0 auto;
  height: 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 11px; color: var(--ink-3);
  background: #fafbfc; border-bottom: 1px solid var(--line);
}
.wv-domain .lock { color: var(--ok); }
.wv-domain.is-warn { color: var(--err); background: #fff5f5; }

.wv-body { flex: 1 1 auto; position: relative; overflow: hidden; background: #fff; }
.wv-body__scroll { position: absolute; inset: 0; overflow-y: auto; }
.wv-body__scroll::-webkit-scrollbar { width: 0; }

.wv-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink-3); font-size: 13px; gap: 8px;
}
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #e3e7ec; border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wv-error {
  position: absolute; inset: 0; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-2); font-size: 13px;
}
.wv-error .big { font-size: 34px; }
.wv-error button {
  margin-top: 6px; border: 1px solid var(--brand); color: var(--brand);
  background: #fff; border-radius: 16px; padding: 6px 18px; font-size: 13px;
}

/* pull to refresh */
.ptr {
  position: absolute; left: 0; right: 0; top: 0; height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-3); background: #fafbfc;
  transition: height .12s ease;
}

/* ================= H5 page inner ================= */
.h5 { padding: 12px 14px 26px; }
.h5__hero {
  border-radius: 14px; padding: 16px;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  color: #fff;
}
.h5__hero h2 { margin: 0 0 6px; font-size: 19px; }
.h5__hero p { margin: 0; font-size: 13px; opacity: .92; }
.h5__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.h5__tag { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: rgba(255, 255, 255, .2); }

.h5__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; }
.h5__card h3 { margin: 0 0 10px; font-size: 14px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-2); }

.h5__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn {
  border: 0; border-radius: 10px; padding: 11px 12px; font-size: 13px; font-weight: 600;
  background: #f4f6f9; color: var(--ink);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn--warn { background: #fff3e8; color: var(--brand-deep); }
.btn--full { grid-column: 1 / -1; }

.formrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.formrow:last-child { border-bottom: 0; }
.formrow .label { color: var(--ink-2); font-size: 13px; }
.formrow .value { color: var(--ink); }
.formrow .value.is-empty { color: var(--ink-3); }
.formrow .arrow { color: var(--ink-3); margin-left: 6px; }

/* job list */
.jobcard {
  background: #fff; border-radius: 14px; padding: 14px; margin: 10px 12px;
  box-shadow: 0 1px 2px rgba(20, 30, 45, .04);
  border: 1px solid #f1f3f6;
}
.jobcard__top { display: flex; justify-content: space-between; gap: 10px; }
.jobcard__title { font-size: 16px; font-weight: 700; }
.jobcard__salary { color: var(--brand); font-weight: 700; font-size: 15px; white-space: nowrap; }
.jobcard__meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; color: var(--ink-2); background: #f4f6f9; border-radius: 6px; padding: 3px 7px; }
.jobcard__foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.jobcard__foot .co { color: var(--ink-2); }

.searchbar { display: flex; gap: 8px; padding: 10px 12px 0; }
.searchbar input {
  flex: 1; border: 0; background: #fff; border-radius: 18px; padding: 9px 14px; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.searchbar input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand); }

.section-title { padding: 14px 14px 0; font-size: 13px; color: var(--ink-3); }

/* messages */
.imrow { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #ffd2b3, #ffb27a); flex: 0 0 40px; }
.imrow__main { flex: 1; min-width: 0; }
.imrow__name { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.imrow__time { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.imrow__msg { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mine */
.profile { background: linear-gradient(135deg, #ff8a3d, #ff6a00); padding: 22px 16px 26px; color: #fff; }
.profile__row { display: flex; gap: 12px; align-items: center; }
.profile__avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.profile__name { font-size: 17px; font-weight: 700; }
.profile__sub { font-size: 12px; opacity: .9; margin-top: 2px; }
.menu { background: #fff; margin: 12px; border-radius: 12px; overflow: hidden; }
.menu__item { display: flex; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu__item:last-child { border-bottom: 0; }
.menu__item span:last-child { color: var(--ink-3); font-size: 12px; }

/* ================= layers ================= */
.layer { position: absolute; inset: 0; pointer-events: none; z-index: 25; }
.layer > * { pointer-events: auto; }

.mask { position: absolute; inset: 0; background: rgba(12, 16, 22, .42); animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px 22px;
  animation: rise .2s ease;
  max-height: 78%; overflow-y: auto;
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
.sheet h3 { margin: 0 0 12px; font-size: 15px; text-align: center; }
.sheet__opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.sheet__opt:last-of-type { border-bottom: 0; }
.sheet__opt.is-on { color: var(--brand); font-weight: 600; }
.sheet__cancel { margin-top: 10px; width: 100%; border: 0; background: #f4f6f9; border-radius: 10px; padding: 12px; font-size: 14px; }

.dialog {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 76%; background: #fff; border-radius: 14px; padding: 18px; animation: pop .16s ease;
}
@keyframes pop { from { transform: translate(-50%, -50%) scale(.94); opacity: .5; } }
.dialog h4 { margin: 0 0 8px; font-size: 15px; }
.dialog p { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.dialog input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 14px; }
.dialog input:focus { outline: none; border-color: var(--brand); }
.dialog__row { display: flex; gap: 10px; margin-top: 14px; }
.dialog__row .btn { flex: 1; }

.toast {
  position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%);
  background: rgba(20, 24, 30, .88); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 18px; animation: fade .16s ease;
  max-width: 78%; text-align: center; line-height: 1.45;
}

/* ================= devtools ================= */
.devtools {
  height: calc(100vh - 44px);
  max-height: 812px;
  display: flex; flex-direction: column;
  background: var(--dev-bg);
  border-radius: 16px;
  border: 1px solid #262c35;
  color: var(--dev-ink);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.devtools__head { padding: 16px 18px 12px; border-bottom: 1px solid #232933; }
.devtools__head h1 { margin: 0; font-size: 15px; color: #fff; letter-spacing: .2px; }
.devtools__head p { margin: 6px 0 0; font-size: 11px; color: #7d8794; }
.devtools__head code { color: #ffb27a; }

.devtools__tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid #232933; }
.dt-tab {
  border: 0; background: none; color: #8b95a3; font-size: 12px; padding: 7px 10px;
  border-radius: 8px 8px 0 0;
}
.dt-tab.is-active { color: #fff; background: #1d232b; }

.dtpane { display: none; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.dtpane.is-active { display: flex; }
.dtpane__bar {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding: 8px 14px; font-size: 11px; color: #7d8794; border-bottom: 1px solid #1e242c;
}
.mini {
  border: 1px solid #2c333d; background: #1b2129; color: #b7c0cc;
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
}
.mini:hover { border-color: #3d4653; color: #fff; }

.loglist { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px 16px; font-size: 11.5px; }
.loglist::-webkit-scrollbar { width: 8px; }
.loglist::-webkit-scrollbar-thumb { background: #2a313a; border-radius: 4px; }

.logitem { border-left: 2px solid #2f3742; padding: 6px 8px 7px 10px; margin-bottom: 6px; background: #171c23; border-radius: 0 6px 6px 0; }
.logitem--h2n { border-left-color: #ff8a3d; }
.logitem--n2h { border-left-color: #4ec9a6; }
.logitem--sys { border-left-color: #5a8ef0; }
.logitem--err { border-left-color: var(--err); }
.logitem__head { display: flex; gap: 8px; align-items: baseline; color: #8b95a3; font-size: 10.5px; }
.logitem__head b { color: #e9eef5; font-weight: 600; font-size: 11.5px; }
.logitem__body { margin-top: 3px; color: #b9c3cf; white-space: pre-wrap; word-break: break-all; }
.logitem__body .k { color: #ffca9a; }

.proto { padding: 12px 16px 24px; overflow-y: auto; font-size: 12px; }
.proto h3 { font-size: 12px; color: #ffb27a; margin: 16px 0 6px; }
.proto h3:first-child { margin-top: 0; }
.proto pre {
  margin: 0; background: #10151a; border: 1px solid #232a33; border-radius: 8px;
  padding: 10px 12px; color: #c7d2df; font-size: 11px; line-height: 1.6; overflow-x: auto;
}
.proto ul { margin: 0; padding-left: 18px; color: #aeb8c4; }
.proto li { margin-bottom: 6px; }
.proto code { color: #ffca9a; background: #1b2129; padding: 1px 4px; border-radius: 4px; }

/* =========================================================================
   页面层（ui-kit / views-*）
   ========================================================================= */
.page--tab { z-index: 1; }
.page--push { animation: pageIn .18s ease-out; }
@keyframes pageIn { from { transform: translateX(14px); opacity: .6; } to { transform: none; opacity: 1; } }

.section { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 8px; font-size: 13px; font-weight: 600; color: #1f2329; }
.section__right { font-size: 11.5px; font-weight: 400; color: #99a1ab; }
.list-foot { text-align: center; font-size: 11px; color: #b6bdc6; padding: 16px 0 26px; }
.muted { font-size: 12px; color: #7a838f; }
.salary { color: #ff6a00; font-size: 13px; font-weight: 600; }
.link { color: #ff6a00; font-size: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag-mini { font-style: normal; font-size: 10px; color: #7a838f; background: #f2f4f7; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }

.card { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 12px 14px; }
.card--flush { margin: 10px 12px; }
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card__head h3 { font-size: 13px; color: #1f2329; }
.card__extra { font-size: 11.5px; color: #99a1ab; }
.card textarea { width: 100%; border: 1px solid #eceff3; border-radius: 8px; padding: 10px; font-size: 13px; font-family: inherit; resize: none; outline: none; }

.cell { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; background: #fff; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.cell:last-child { border-bottom: 0; }
.cell__label { color: #1f2329; }
.cell__value { color: #5c6570; display: flex; align-items: center; gap: 4px; max-width: 68%; justify-content: flex-end; text-align: right; }
.cell__value.is-empty { color: #b6bdc6; }
.cell__value.is-warn { color: #ff8a3d; }
.cell .arrow { font-style: normal; color: #c9cdd4; }

.btn--danger { background: #ffece8; color: #e5482f; }
.btn--block { display: block; width: 100%; margin-top: 10px; }
.btn--full { width: 100%; }
.btn { font-size: 13px; }

.empty { text-align: center; padding: 60px 20px; color: #99a1ab; font-size: 13px; }
.empty__ico { font-size: 34px; color: #d5dae1; margin-bottom: 8px; }
.empty p { margin: 0; }

.segment { display: flex; gap: 6px; padding: 4px; background: #f2f4f7; border-radius: 10px; }
.segment--scroll { overflow-x: auto; }
.segment__item { flex: 1 0 auto; border: 0; background: transparent; color: #5c6570; font-size: 12.5px; padding: 7px 12px; border-radius: 8px; }
.segment__item.is-on { background: #fff; color: #1f2329; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }

.statrow { display: flex; background: #fff; margin: 10px 12px; border-radius: 12px; padding: 12px 0; }
.stat { flex: 1; text-align: center; }
.stat b { display: block; font-size: 16px; color: #1f2329; }
.stat span { font-size: 11px; color: #99a1ab; }

/* 首页 */
.home-head { background: #fff; padding: 8px 12px 4px; }
.home-head__top { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 8px; }
.home-head__city { border: 0; background: transparent; font-size: 16px; font-weight: 700; color: #1f2329; font-family: inherit; }
.home-head__city i { font-style: normal; font-size: 11px; color: #99a1ab; }
.iconbtn { position: relative; border: 0; background: #f5f6f8; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; color: #5c6570; }
.iconbtn .badge { position: absolute; top: -4px; right: -4px; }
.catgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; padding: 10px 0 4px; }
.catgrid__item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #3d454f; font-family: inherit; }
.catgrid__item i { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #fff1e8, #ffe3d1); color: #ff6a00; font-style: normal; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.banner { margin: 10px 12px 0; background: linear-gradient(135deg, #ff7a2e, #ff5a00); border-radius: 12px; padding: 12px 14px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.banner b { display: block; font-size: 13px; }
.banner span { font-size: 11px; opacity: .85; }
.banner button { border: 0; background: #fff; color: #ff5a00; font-size: 11.5px; padding: 5px 12px; border-radius: 14px; }

/* 搜索 */
.page--search .search-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 1px solid #f2f4f7; }
.search-head .navbar__back { position: static; }
.search-input { flex: 1; border: 0; background: #f5f6f8; border-radius: 16px; padding: 8px 12px; font-size: 13px; outline: none; font-family: inherit; }
.search-go { border: 0; background: transparent; color: #ff6a00; font-size: 13px; }
.kwrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 6px; }
.kw { border: 0; background: #f5f6f8; color: #3d454f; font-size: 12px; padding: 6px 12px; border-radius: 14px; font-family: inherit; }
.suggest { margin: 0 14px 10px; background: #fff; border-radius: 10px; overflow: hidden; }
.suggest__row { display: flex; justify-content: space-between; padding: 11px 12px; font-size: 13px; border-bottom: 1px solid #f7f8fa; color: #3d454f; }

.result-bar { background: #fff; padding: 10px 12px 0; position: sticky; top: 0; z-index: 2; }
.filterbar { display: flex; gap: 8px; padding: 10px 0; }
.filterbar__item { flex: 1; border: 0; background: #f5f6f8; color: #5c6570; font-size: 11.5px; padding: 7px 4px; border-radius: 8px; font-family: inherit; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.filterbar__item.is-on { background: #fff1e8; color: #ff6a00; font-weight: 600; }
.result-count { font-size: 11.5px; color: #99a1ab; padding: 8px 14px 0; }

/* 地图占位 */
.mapbox { position: relative; height: 132px; margin: 12px; border-radius: 12px; background:
  repeating-linear-gradient(0deg, #eef2f6 0 1px, transparent 1px 26px),
  repeating-linear-gradient(90deg, #eef2f6 0 1px, transparent 1px 26px), #f7f9fb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mapbox__pin { font-size: 22px; color: #ff6a00; }
.mapbox__tip { font-size: 11px; color: #99a1ab; }
.mapbox__mask { position: absolute; bottom: 6px; right: 8px; font-size: 10px; color: #b6bdc6; }
.jobcard__dist { font-size: 11px; color: #99a1ab; margin-top: 6px; }

/* 消息/通知 */
.notice { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 12px 14px; }
.notice__head { display: flex; justify-content: space-between; font-size: 13px; color: #1f2329; margin-bottom: 6px; }
.notice__head span { font-size: 11px; color: #b6bdc6; }
.notice p { margin: 0 0 8px; font-size: 12.5px; color: #5c6570; line-height: 1.6; }
.notice--flat { border: 1px solid #ffe3d1; background: #fffaf6; }
.notice--flat b { font-size: 13px; color: #1f2329; }
.notice--flat p { margin: 4px 0 0; }

/* 我的 */
.profile { background: linear-gradient(135deg, #ff7a2e, #ff5a00); padding: 20px 16px; color: #fff; }
.profile__row { display: flex; align-items: center; gap: 12px; }
.profile__avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: 0 0 52px; }
.profile__main { flex: 1; }
.profile__name { font-size: 16px; font-weight: 700; }
.profile__sub { font-size: 11.5px; opacity: .9; margin-top: 3px; }
.profile__role { font-size: 11.5px; background: rgba(255, 255, 255, .2); padding: 4px 8px; border-radius: 12px; }
.profile__row + * { margin-top: 0; }
.statrow { position: relative; }

/* 登录 */
.page--login .page__scroll { background: #fff; }
.loginbox { padding: 22px 24px; }
.loginbox h2 { font-size: 19px; margin-bottom: 6px; }
.loginbox > p { font-size: 12px; color: #99a1ab; margin: 0 0 18px; }
.field { border-bottom: 1px solid #eceff3; padding: 10px 0; }
.field input, .field textarea { width: 100%; border: 0; outline: none; font-size: 14px; font-family: inherit; background: transparent; }
.field--code { display: flex; align-items: center; gap: 8px; }
.field--code button { border: 0; background: transparent; color: #ff6a00; font-size: 12.5px; white-space: nowrap; }
.agree { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: #7a838f; margin: 16px 0 6px; line-height: 1.5; }
.login-tip { text-align: center; font-size: 11px; color: #b6bdc6; margin-top: 14px; }

/* 简历 */
.resume-head { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 14px; }
.resume-head__row { display: flex; justify-content: space-between; align-items: center; }
.resume-head__row b { font-size: 15px; display: block; }
.resume-head__row span { font-size: 11.5px; color: #7a838f; }
.resume-head__pct { color: #ff6a00; font-weight: 700; font-size: 15px; }
.progress { height: 5px; border-radius: 3px; background: #f2f4f7; margin: 10px 0 6px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff8a3d, #ff5a00); }
.resume-head p { margin: 0; font-size: 11px; color: #99a1ab; }
.actionbar { display: flex; gap: 10px; padding: 12px 14px 22px; }
.actionbar .btn { flex: 1; }
.status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.status--0 { background: #fff3e8; color: #ff6a00; }
.status--1 { background: #eef4ff; color: #3b6fd4; }
.status--2 { background: #e9f8f1; color: #17a673; }
.status--3 { background: #f2f4f7; color: #8b95a3; }
.unfav { margin-top: 8px; border: 1px solid #eceff3; background: #fff; color: #8b95a3; font-size: 11.5px; padding: 5px 10px; border-radius: 14px; }

/* 招聘方 */
.biz-head { background: linear-gradient(135deg, #3d4b5c, #26313d); color: #fff; padding: 18px 16px 16px; }
.biz-head__top { display: flex; justify-content: space-between; align-items: center; }
.biz-head__top b { font-size: 15px; }
.biz-head__top button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 11.5px; padding: 5px 10px; border-radius: 12px; }
.biz-head__data { display: flex; margin-top: 14px; }
.biz-head__data div { flex: 1; text-align: center; }
.biz-head__data b { display: block; font-size: 17px; }
.biz-head__data span { font-size: 10.5px; opacity: .8; }
.bizgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px; }
.bizgrid__item { background: #fff; border: 0; border-radius: 12px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: #3d454f; font-family: inherit; }
.bizgrid__item i { font-style: normal; font-size: 17px; color: #ff6a00; }
.todolist { background: #fff; margin: 0 12px; border-radius: 12px; }
.todo { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f7f8fa; }
.todo:last-child { border-bottom: 0; }
.todo b { color: #ff6a00; font-size: 13px; }
.todo b.is-zero { color: #99a1ab; font-weight: 400; font-size: 11.5px; }
.mini-stats { display: flex; gap: 14px; font-size: 11.5px; color: #99a1ab; margin-top: 8px; }
.cand { background: #fff; margin: 10px 12px; border-radius: 12px; padding: 12px 14px; }
.cand__head { display: flex; gap: 10px; margin-bottom: 8px; }
.cand__main { flex: 1; }
.cand__acts { display: flex; gap: 8px; margin-top: 10px; }
.cand__acts button { flex: 1; border: 1px solid #eceff3; background: #fff; color: #3d454f; font-size: 12px; padding: 7px 0; border-radius: 8px; font-family: inherit; }
.cand__acts button:last-child { border-color: #ff6a00; color: #ff6a00; }
.citygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 14px; }
.citygrid__item { border: 1px solid #eceff3; background: #fff; border-radius: 8px; padding: 9px 0; font-size: 12.5px; color: #3d454f; font-family: inherit; }
.citygrid__item.is-on { border-color: #ff6a00; color: #ff6a00; background: #fff6f0; }

/* 会话 */
.chat-body { background: #f7f8fa; padding: 12px; }
.chat-jobcard { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.chat-jobcard b { display: block; font-size: 12.5px; }
.chat-jobcard span { font-size: 11px; color: #99a1ab; }
.chat-jobcard button { border: 1px solid #ffd9c2; background: #fff6f0; color: #ff6a00; font-size: 11.5px; padding: 4px 10px; border-radius: 12px; }
.chat-list { padding: 12px 0; }
.chat-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.chat-row.is-mine { justify-content: flex-end; }
.chat-bubble { max-width: 74%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; background: #fff; color: #1f2329; border-top-left-radius: 4px; }
.chat-row.is-mine .chat-bubble { background: #ff6a00; color: #fff; border-top-left-radius: 12px; border-top-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 14px; }
.chat-quick .kw { background: #fff; border: 1px solid #eceff3; font-size: 11.5px; padding: 5px 10px; }
.chat-inputbar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid #eceff3; background: #fff; }
.chat-inputbar input { flex: 1; border: 0; background: #f5f6f8; border-radius: 16px; padding: 9px 14px; font-size: 13px; outline: none; font-family: inherit; }
.chat-send { border: 0; background: #ff6a00; color: #fff; font-size: 12.5px; padding: 8px 14px; border-radius: 16px; }
.chat-plus { border: 0; background: transparent; font-size: 18px; color: #7a838f; }

/* 步骤条 */
.stepper { display: flex; gap: 6px; }
.stepper__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: #b6bdc6; }
.stepper__item i { width: 20px; height: 20px; border-radius: 50%; background: #f2f4f7; color: #99a1ab; font-style: normal; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.stepper__item.is-on { color: #ff6a00; }
.stepper__item.is-on i { background: #ff6a00; color: #fff; }
.stepper__item.is-done i { background: #ffe3d1; color: #ff6a00; }

/* H5 补充 */
.h5__text { font-size: 13px; color: #3d454f; line-height: 1.7; }
.h5__text p { margin: 0 0 8px; }
.h5__text h4, .h5__card h4 { font-size: 12.5px; color: #1f2329; margin: 12px 0 6px; }
.h5__ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: #3d454f; line-height: 1.8; }
.h5__map { display: flex; align-items: center; gap: 6px; background: #f5f7fa; border-radius: 8px; padding: 12px; font-size: 12px; color: #5c6570; margin-bottom: 10px; }
.h5__pre { margin: 0; font-size: 11px; color: #5c6570; white-space: pre-wrap; background: #f7f9fb; border-radius: 8px; padding: 10px; }
.kv__url { max-width: 62%; text-align: right; word-break: break-all; }
.comp-row { display: flex; align-items: center; gap: 10px; }
.comp-logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #eef4ff, #dbe8ff); color: #3b6fd4; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.comp-main { flex: 1; }
.comp-main b { display: block; font-size: 13px; }
.comp-main span { font-size: 11px; color: #99a1ab; }
.simjob { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f4f7; }
.simjob:last-child { border-bottom: 0; }
.simjob b { display: block; font-size: 13px; color: #1f2329; }
.simjob span { font-size: 11px; color: #99a1ab; }
.h5-actionbar { position: sticky; bottom: 0; display: flex; gap: 8px; background: #fff; padding: 10px 12px; border-top: 1px solid #eceff3; margin: 0 -14px -14px; }
.h5-actionbar button { border: 0; font-size: 13px; padding: 10px 0; border-radius: 22px; font-family: inherit; }
.h5-actionbar__fav { flex: 0 0 64px; background: #f5f6f8; color: #5c6570; font-size: 10px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.h5-actionbar__fav.is-on { color: #ff6a00; }
.h5-actionbar__chat { flex: 1; background: #fff1e8; color: #ff6a00; border: 1px solid #ffd9c2 !important; }
.h5-actionbar__deliver { flex: 1; background: #ff6a00; color: #fff; }
.faq { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #f2f4f7; font-size: 12.5px; color: #3d454f; }
.faq:last-child { border-bottom: 0; }

/* =========================================================================
   移动端 / WebView 壳内全屏（App 模式）
   电脑浏览器保留「手机壳 + 调试面板」；手机、WebView 壳或 ?app=1 时铺满全屏，
   避免出现「手机里再套一层手机壳」。
   ========================================================================= */
@media (max-width: 900px) {
  body { background: var(--phone-bg); }
  .stage { display: block; padding: 0; gap: 0; }
  .phone__frame { width: 100%; height: 100%; border-radius: 0; padding: 0; background: var(--phone-bg); box-shadow: none; }
  .phone__notch { display: none; }
  .phone__screen { border-radius: 0; }
  .statusbar { display: none; }
  .devtools { display: none; }
}

body.is-app { background: var(--phone-bg); }
body.is-app .stage { display: block; padding: 0; gap: 0; }
body.is-app .phone__frame { width: 100%; height: 100%; border-radius: 0; padding: 0; background: var(--phone-bg); box-shadow: none; }
body.is-app .phone__notch { display: none; }
body.is-app .phone__screen { border-radius: 0; }
body.is-app .statusbar { display: none; }
body.is-app .devtools { display: none; }
body.is-app .h5-actionbar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
