/* 赫比亚小城好吃 v2 · 县里正发生 */
:root {
  --brand-navy: #0f1627;
  --brand-navy-2: #192238;
  --brand-orange: #ff9a3d;
  --brand-orange-deep: #ce6b1d;
  --brand-cream: #fff3e4;
  --brand-light: #e8ecf6;
  --ink: #1c2433;
  --ink-2: #555e6d;
  --ink-3: #818895;
  --bg: #f5f1e9;
  --surface: #fffdf9;
  --surface-2: #faf7f1;
  --line: #e3ded5;
  --line-strong: #cbc5ba;
  --green: #178460;
  --green-soft: #e9f6f1;
  --red: #d8473d;
  --red-soft: #fff0ee;
  --amber: #b66a1f;
  --blue: #375eaa;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 9px 26px rgba(35, 31, 25, .07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(255, 154, 61, .35);
  outline-offset: 2px;
}
button { color: inherit; }
button:disabled { cursor: not-allowed !important; opacity: .52; }
a { color: inherit; }
#app { width: min(100%, 1240px); margin: 0 auto; padding: 0 24px; }
.hint { color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.eyebrow { display: block; color: var(--brand-orange-deep); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.mini-welcome, .mobile-tabbar { display: none; }

/* SEO 信息保留在文档中，不占用产品首屏。 */
.seo-hero { display: none; }

/* 顶部产品导航 */
.product-header {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 11px; min-width: 238px; }
.brand-icon-v2 { width: 42px; height: 42px; flex: none; }
.logo div { display: grid; line-height: 1.22; }
.logo b { color: var(--brand-navy); font-size: 16px; letter-spacing: -.02em; }
.logo span { margin-top: 3px; color: var(--brand-orange-deep); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.product-header nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.product-header nav button,
.product-header nav a {
  min-height: 38px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 0 13px;
  background: transparent;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.product-header nav button:hover, .product-header nav a:hover { background: #ebe6dd; color: var(--ink); }
.product-header nav button.active { background: var(--brand-navy); color: #fff; }
.product-header .ganji-nav { display: inline-flex; align-items: center; border: 1px solid rgba(255,154,61,.65); color: var(--brand-orange-deep); }
.login-chip { display: inline-flex; align-items: center; min-height: 30px; cursor: pointer; }
#tab-ops, #tab-board, #tab-heat, #resetBtn { display: none !important; }

/* 公共布局 */
main { padding: 22px 0 6px; }
.view { display: none; }
.view.active { display: block; animation: appear .22s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(310px, .82fr); gap: 18px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  background: var(--surface);
}
.card h3 { font-size: 15px; line-height: 1.35; }
.card-title-row, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title-row a, .text-action { border: 0; background: transparent; color: var(--brand-orange-deep); text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; }

/* 消费者端 */
.consumer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: end;
  min-height: 218px;
  margin-bottom: 14px;
  padding: 36px 40px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,154,61,.16) 0 72px, transparent 73px),
    linear-gradient(128deg, var(--brand-navy), #273149 72%, #603a2b 142%);
  box-shadow: 0 16px 34px rgba(15,22,39,.15);
}
.consumer-hero > *, .category-strip > *, .toolbar > *, .mcard > *, .search-wrap { min-width: 0; }
.consumer-hero .eyebrow { color: #ffc58c; }
.consumer-hero h1 { margin-top: 8px; font-size: clamp(29px, 3.5vw, 44px); line-height: 1.13; letter-spacing: -.045em; }
.consumer-hero p { max-width: 590px; margin-top: 10px; color: rgba(255,255,255,.67); font-size: 14px; }
.hero-market-link {
  display: grid;
  align-self: stretch;
  align-content: center;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.hero-market-link span { color: rgba(255,255,255,.68); font-size: 11px; }
.hero-market-link b { margin: 2px 0; color: var(--brand-orange); font-size: 31px; line-height: 1.2; }
.hero-market-link small { color: #fff; font-size: 11px; font-weight: 700; }

.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 18px; }
.category-strip button {
  display: grid;
  gap: 2px;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.category-strip button:hover { border-color: var(--brand-orange); transform: translateY(-1px); }
.category-strip span { font-size: 13px; font-weight: 800; }
.category-strip small { color: var(--ink-3); font-size: 10px; }

.toolbar { display: grid; grid-template-columns: 155px minmax(0, 1fr) auto; gap: 9px; margin-bottom: 11px; }
.street-sel, .search, .merchant-publish textarea, .activity-meta-grid input, .reg-grid input, .reg-grid select, .reg-grid textarea,
#verifyCard input, #verifyCard select, #remindCard input, #adminLoginCard input, #loginModal input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}
.street-sel { font-size: 12px; font-weight: 700; }
.search-wrap { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; }
.search-wrap > span { margin-left: 12px; color: var(--ink-3); font-size: 20px; line-height: 1; }
.search-wrap .search { min-height: 42px; border: 0; outline: 0; }
.search-wrap button { align-self: stretch; border: 0; background: transparent; color: var(--brand-orange-deep); padding: 0 13px; font-size: 12px; font-weight: 800; cursor: pointer; }
.switch { min-height: 44px; border: 1px solid var(--brand-navy); border-radius: 9px; background: var(--brand-navy); color: #fff; padding: 0 14px; font-size: 12px; font-weight: 750; cursor: pointer; }
.hot { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; border-left: 3px solid var(--brand-orange); padding: 11px 13px; background: #fff8ee; }
.hot b { color: var(--brand-orange-deep); font-size: 12px; }
.hot span { color: var(--ink-2); font-size: 11px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 19px 1px 11px; }
.section-heading h2 { margin-top: 2px; font-size: 22px; letter-spacing: -.025em; }
.live-state, .workspace-status { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }
.live-state i, .workspace-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23,132,96,.12); }
.feed { display: grid; gap: 11px; }
.mcard {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-height: 155px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.merchant-media { min-height: 155px; background: #eee8de; }
.merchant-media img { display: block; width: 100%; height: 100%; min-height: 155px; object-fit: cover; }
.merchant-card-body { min-width: 0; padding: 14px 15px; }
.mhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.avatar { display: none; }
.mname { font-size: 16px; font-weight: 820; line-height: 1.5; }
.mmeta { margin-top: 4px; overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; padding: 2px 7px; font-size: 9px; font-weight: 750; vertical-align: 2px; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.teal { background: #e8f4f4; color: #12797a; }
.badge.amber { background: #fff1db; color: var(--amber); }
.badge.gray { background: #f0ede7; color: var(--ink-2); }
.btn-ghost, .btn-red, .btn-teal {
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.btn-ghost { border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-orange); color: var(--brand-orange-deep); }
.btn-ghost.followed { border-color: #bcded2; background: var(--green-soft); color: var(--green); }
.btn-red { border: 0; background: var(--brand-orange); color: var(--brand-navy); }
.btn-red:hover { background: #ffad62; }
.btn-teal { border: 0; background: var(--green); color: #fff; }
.btn-sm { min-height: 30px; padding: 5px 9px; }
.act { display: flex; align-items: center; gap: 9px; margin-top: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.activity-thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; }
.act-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.act .txt { min-width: 0; font-size: 12px; font-weight: 650; }
.act .meta { color: var(--ink-3); font-size: 9px; }
.activity-note { display: -webkit-box; overflow: hidden; color: var(--ink-2); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.act .btn-red { flex: none; align-self: center; }

.col-side { display: grid; gap: 12px; }
.col-side .card { box-shadow: 0 5px 18px rgba(35,31,25,.04); }
.fair-card .card-title-row { margin-bottom: 11px; }
.fairs { display: grid; gap: 0; }
.fair { display: flex; align-items: center; gap: 9px; min-height: 56px; border-top: 1px solid var(--line); padding: 9px 0; }
.fair:first-child { border-top: 0; }
.fair b { font-size: 12px; }
.fair .sub { margin-top: 2px; color: var(--ink-3); font-size: 9px; line-height: 1.45; }
.account-card .card-title-row { margin-bottom: 12px; }
.account-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.account-shortcuts button { display: grid; justify-items: center; gap: 1px; min-height: 56px; border: 0; background: var(--surface); cursor: pointer; }
.account-shortcuts b { font-size: 18px; }
.account-shortcuts span { color: var(--ink-3); font-size: 9px; }
.wallet-card h3 { margin-bottom: 9px; }
.inbox, .mycodes, .follows { display: grid; gap: 7px; }
.msg, .codecard, .fol { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: #fff; font-size: 11px; }
.msg, .codecard, .fol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg b { color: var(--green); font-size: 10px; }
.codecard .num { color: var(--brand-orange-deep); font: 800 16px/1 ui-monospace, Consolas, monospace; letter-spacing: 2px; }
.fol { justify-content: space-between; }

/* 商户工作台 */
.mini-auth-card { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; border: 1px solid #cfe2dc; border-radius: 11px; padding: 13px 15px; background: var(--green-soft); }
.mini-auth-card > div { flex: 1; min-width: 0; }
.mini-auth-card b { font-size: 13px; }
.mini-auth-card p { margin-top: 2px; color: var(--ink-2); font-size: 10px; }
.mini-auth-card button { flex: none; min-height: 36px; border: 0; border-radius: 8px; padding: 0 11px; background: var(--green); color: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 17px; }
.workspace-heading .workspace-status { flex: none; }
.workspace-heading h1 { margin-top: 3px; font-size: 32px; letter-spacing: -.04em; }
.workspace-heading p { margin-top: 4px; color: var(--ink-2); }
.merchant-identity { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: var(--surface); }
.merchant-brand-mark { width: 46px; height: 46px; }
.merchant-identity > div { flex: 1; min-width: 0; }
.merchant-identity .switch { margin-left: auto; }
.merchant-notice { margin-bottom: 12px; border-left: 3px solid var(--brand-orange); padding: 10px 12px; background: #fff8ed; color: var(--ink-2); font-size: 12px; }
.merchant-taskbar { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.merchant-taskbar span { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-left: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.merchant-taskbar span:first-child { border-left: 0; }
.merchant-taskbar b { color: var(--ink-3); font-size: 10px; }
.merchant-taskbar .is-current { color: var(--ink); font-weight: 750; }
.merchant-taskbar .is-current b { color: var(--brand-orange-deep); }
.merchant-core { min-width: 0; grid-template-columns: 1.14fr .94fr; }
.merchant-core .card { min-width: 0; margin: 0; }
.verify-card { grid-row: span 2; order: -3; border-top: 3px solid var(--brand-orange); padding: 18px; }
.merchant-publish { order: -2; }
.merchant-activities { grid-column: 2; order: -1; }
.card-title-row .status-dot, .safe-label, .muted-label { color: var(--green); font-size: 10px; font-weight: 750; }
.safe-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.muted-label { color: var(--ink-3); }
.panel-copy { margin: 6px 0 15px; color: var(--ink-2); font-size: 11px; }
.verify-search { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; }
.verify-search input { font-size: 20px; font-weight: 800; letter-spacing: .2em; }
.find, .publish, .confirm, .send, .pub-market, .approve, .reject {
  min-height: 42px;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.find { border: 0; background: var(--brand-navy); color: #fff; }
.publish { width: 100%; border: 0; background: var(--brand-orange); color: var(--brand-navy); }
.publish:hover { background: #ffad62; }
.confirm { width: 100%; border: 0; background: var(--green); color: #fff; }
.verify-panel { display: none; margin-top: 12px; border: 1px solid #c8e5da; border-radius: 9px; padding: 12px; background: var(--green-soft); }
.verify-panel.show { display: grid; gap: 8px; }
.verify-panel input, .verify-panel select { margin: 0; }
.inline-receipt { margin-top: 10px; border-left: 2px solid var(--line-strong); padding: 7px 9px; color: var(--ink-3); background: var(--surface-2); font-size: 10px; line-height: 1.55; }
.inline-receipt.success { border-color: var(--green); color: #176d52; background: var(--green-soft); }
.inline-receipt.error { border-color: var(--red); color: #9f3b34; background: var(--red-soft); }
.merchant-publish textarea { min-width: 0; max-width: 100%; min-height: 86px; margin: 10px 0 8px; resize: vertical; }
.strategy-picker { min-width: 0; margin: 12px 0 10px; border: 0; }
.strategy-picker legend { margin-bottom: 7px; color: var(--ink-2); font-size: 10px; font-weight: 750; }
.strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.strategy-grid label { position: relative; min-width: 0; cursor: pointer; }
.strategy-grid label:last-child { grid-column: 1 / -1; }
.strategy-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.strategy-grid span { display: grid; min-height: 54px; align-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; transition: border-color .16s ease, background .16s ease; }
.strategy-grid b { font-size: 11px; }
.strategy-grid small { margin-top: 1px; color: var(--ink-3); font-size: 8px; }
.strategy-grid input:checked + span { border-color: var(--brand-orange); background: #fff7ec; box-shadow: inset 3px 0 0 var(--brand-orange); }
.strategy-grid input:focus-visible + span { outline: 3px solid rgba(255,154,61,.35); outline-offset: 2px; }
.activity-field { display: grid; gap: 1px; }
.activity-field > span, .activity-meta-grid label > span { color: var(--ink-2); font-size: 10px; font-weight: 750; }
.activity-field small, .activity-meta-grid small { color: var(--ink-3); font-size: 8px; font-weight: 500; }
.activity-field textarea { margin-top: 5px; }
.activity-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; }
.activity-meta-grid label { display: grid; gap: 4px; min-width: 0; }
.activity-meta-grid .full { grid-column: 1 / -1; }
.activity-meta-grid input { min-width: 0; min-height: 40px; font-size: 10px; }
.activity-image-upload { display: block; margin-bottom: 9px; cursor: pointer; }
.activity-image-upload input { position: absolute; opacity: 0; pointer-events: none; }
.activity-image-upload span { display: grid; place-items: center; min-height: 76px; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 9px; background: #fffbf5; color: var(--ink-3); font-size: 11px; }
.activity-image-upload span.has-image { background-size: cover; background-position: center; color: transparent; }
.activity-consumer-preview { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 10px 0; border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: var(--surface-2); }
.activity-preview-media { display: grid; place-items: center; min-height: 76px; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg, var(--brand-navy-2), #70452f); color: #fff3e4; font-size: 8px; text-align: center; }
.activity-preview-media.has-image { background-size: cover; background-position: center; }
.activity-preview-media.has-image span { display: none; }
.activity-consumer-preview > div:last-child { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.activity-consumer-preview b { display: -webkit-box; overflow: hidden; margin-top: 5px; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.activity-consumer-preview small { margin-top: 4px; color: var(--ink-3); font-size: 8px; }
.activity-consumer-preview .activity-preview-note { display: -webkit-box; overflow: hidden; color: var(--ink-2); line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.activity-consumer-preview .activity-preview-note[hidden] { display: none; }
.acts { display: grid; gap: 7px; }
.actrow { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 11px; }
.actrow:first-child { border-top: 0; }
.actrow .off { color: var(--ink-3); text-decoration: line-through; }
.activity-row-meta { display: block; margin-top: 3px; color: var(--ink-3); font-size: 8px; font-weight: 500; text-decoration: none; }
.merchant-reminder { margin-top: 14px; }
.merchant-reminder .card-title-row { margin-bottom: 11px; }
.remind-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; }
.send { border: 0; background: var(--brand-navy); color: #fff; }
#followerHint { margin-top: 7px; }

.merchant-application { margin-top: 14px; padding: 22px; }
.application-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.application-heading h3 { margin-top: 3px; font-size: 22px; }
.application-heading p { margin-top: 5px; color: var(--ink-2); font-size: 12px; }
.application-progress { display: flex; align-items: center; gap: 5px; }
.application-progress span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--ink-3); font-size: 9px; }
.application-progress span.active { border-color: var(--brand-orange); color: var(--brand-orange-deep); background: #fff7ec; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid label { display: grid; gap: 6px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { margin: 0; font-weight: 500; }
.material-section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 17px; }
.material-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.material-title div { display: grid; }
.material-title b { font-size: 13px; }
.material-title span, .material-title small { color: var(--ink-3); font-size: 9px; }
.upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.upload-tile { position: relative; min-height: 128px; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.upload-tile:hover { border-color: var(--brand-orange); }
.upload-tile input { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; }
.upload-tile > span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 3px; padding: 12px; text-align: center; background-size: cover; background-position: center; color: var(--ink-2); font-size: 10px; }
.upload-tile > span.has-image { color: #fff; background-color: var(--brand-navy); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.upload-tile > span.has-image::after { content: "点击更换"; border-radius: 999px; padding: 3px 7px; background: rgba(15,22,39,.75); font-size: 8px; }
.upload-tile b { color: var(--brand-orange-deep); font-size: 24px; font-weight: 400; line-height: 1; }
.upload-tile small { color: var(--ink-3); font-size: 8px; }
.application-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.application-actions p { color: var(--ink-3); font-size: 10px; }
.application-actions .publish { width: 180px; flex: none; }
.merchant-application + .stats, #merchantStats { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; background: var(--surface); }
.stat b { order: -1; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 10px; }

/* 运营后台 */
body[data-view="ops"], body[data-view="board"], body[data-view="heat"] { background: #eef0f3; }
body[data-view="ops"] #app, body[data-view="board"] #app, body[data-view="heat"] #app { width: 100%; max-width: none; padding: 0; }
body[data-view="ops"] .product-header, body[data-view="ops"] footer,
body[data-view="board"] .product-header, body[data-view="board"] footer,
body[data-view="heat"] .product-header, body[data-view="heat"] footer { display: none; }
body[data-view="ops"] main, body[data-view="board"] main, body[data-view="heat"] main { padding: 0; }
.admin-login { width: min(100% - 32px, 470px); margin: 9vh auto; border: 1px solid #d9dde4; border-radius: 14px; padding: 28px; background: #fff; box-shadow: 0 22px 55px rgba(15,22,39,.11); }
.admin-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.admin-login-brand img { width: 45px; height: 45px; }
.admin-login-brand div { display: grid; }
.admin-login-brand b { font-size: 15px; }
.admin-login-brand span { color: var(--ink-3); font-size: 10px; }
.admin-login-copy h1 { margin: 6px 0 8px; font-size: 25px; line-height: 1.3; letter-spacing: -.035em; }
.admin-login-copy p { margin-bottom: 20px; color: var(--ink-2); font-size: 12px; }
.admin-password { display: grid; gap: 6px; margin-bottom: 10px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.admin-login-note { margin-top: 10px; color: var(--ink-3); font-size: 9px; text-align: center; }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 21px 14px 15px; background: var(--brand-navy); color: #fff; }
.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 23px; }
.admin-sidebar-brand img { width: 40px; height: 40px; }
.admin-sidebar-brand div { display: grid; }
.admin-sidebar-brand b { font-size: 14px; }
.admin-sidebar-brand span { color: rgba(255,255,255,.47); font-size: 9px; }
.admin-sidebar nav { display: grid; gap: 3px; }
.admin-sidebar nav button, .admin-sidebar nav a { display: flex; justify-content: space-between; align-items: center; min-height: 42px; border: 0; border-radius: 8px; padding: 0 11px; background: transparent; color: rgba(255,255,255,.65); text-decoration: none; font-size: 11px; cursor: pointer; }
.admin-sidebar nav button:hover, .admin-sidebar nav a:hover, .admin-sidebar nav button.active { background: rgba(255,255,255,.09); color: #fff; }
.admin-sidebar nav small { color: rgba(255,255,255,.35); font-size: 8px; }
.admin-sidebar nav button.active small { color: var(--brand-orange); }
.admin-sidebar-foot { display: grid; gap: 8px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 7px 0; }
.admin-sidebar-foot span { color: rgba(255,255,255,.38); font-size: 8px; }
.admin-sidebar-foot button { border: 0; background: transparent; color: rgba(255,255,255,.7); text-align: left; font-size: 10px; cursor: pointer; }
.admin-main { min-width: 0; padding: 25px 29px 42px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-topbar h1 { margin-top: 2px; font-size: 26px; letter-spacing: -.035em; }
.admin-top-actions { display: flex; align-items: center; gap: 13px; }
.admin-top-actions button { border: 1px solid #ced3db; border-radius: 7px; background: #fff; padding: 7px 10px; color: var(--ink-2); font-size: 9px; cursor: pointer; }
.admin-alert { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; border-left: 3px solid var(--brand-orange); padding: 12px 14px; background: #fff8ec; }
.admin-alert div { display: grid; }
.admin-alert b { font-size: 12px; }
.admin-alert span { color: var(--ink-2); font-size: 9px; }
.admin-alert button { border: 0; background: transparent; color: var(--brand-orange-deep); font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-stats { margin-bottom: 13px; }
.admin-stats .stat { border-radius: 8px; padding: 15px; background: #fff; }
.admin-stats .stat span { order: -2; }
.admin-stats .stat b { margin: 4px 0; font-size: 26px; }
.admin-stats .stat small { color: var(--ink-3); font-size: 8px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 12px; align-items: start; }
.admin-panel { min-width: 0; border: 1px solid #d9dde3; border-radius: 9px; padding: 16px; background: #fff; }
.admin-review-panel { grid-row: span 2; }
.admin-calendar-panel { grid-column: 1 / -1; }
.panel-heading { margin-bottom: 12px; }
.panel-heading h2 { margin-top: 2px; font-size: 16px; }
.queue-state { color: var(--ink-3); font-size: 8px; }
.apps { display: grid; gap: 7px; }
.application-review { overflow: hidden; border: 1px solid #dde1e7; border-radius: 9px; background: #fff; }
.application-media { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 148px; background: #f2f3f5; }
.application-media img { width: 100%; height: 148px; object-fit: cover; }
.application-media span { display: grid; place-items: center; color: var(--ink-3); font-size: 9px; }
.application-review-main { padding: 14px; }
.application-review-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.application-review-title div { display: grid; }
.application-review-title b { font-size: 14px; }
.application-review-title div span { color: var(--ink-3); font-size: 9px; }
.application-review-main > p { margin: 9px 0; color: var(--ink-2); font-size: 10px; }
.application-review dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 10px 0; }
.application-review dl div { display: grid; gap: 1px; }
.application-review dt { color: var(--ink-3); font-size: 8px; }
.application-review dd { margin: 0; font-size: 9px; }
.review-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.ops-review-mask { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 24px; background: rgba(17, 27, 47, .52); }
.ops-review-mask[hidden] { display: none; }
.ops-review-dialog { width: min(100%, 720px); max-height: min(760px, calc(100vh - 48px)); overflow: auto; border: 1px solid #d9dde3; border-radius: 12px; background: #fff; box-shadow: 0 24px 64px rgba(15,22,39,.28); }
.ops-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e9ebee; padding: 18px 20px 14px; }
.ops-review-head h2 { margin-top: 2px; font-size: 20px; letter-spacing: -.025em; }
.ops-review-close { width: 34px; height: 34px; border: 1px solid #d9dde3; border-radius: 7px; background: #fff; color: var(--ink-2); font-size: 23px; line-height: 1; cursor: pointer; }
.ops-review-summary { padding: 16px 20px 4px; }
.ops-review-merchant { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ops-review-merchant div { display: grid; gap: 4px; }
.ops-review-merchant b { font-size: 18px; }
.ops-review-merchant span:not(.badge) { color: var(--ink-2); font-size: 11px; }
.ops-review-summary > p { margin: 12px 0; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.ops-review-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; border-top: 1px solid #e9ebee; border-bottom: 1px solid #e9ebee; padding: 12px 0; }
.ops-review-summary dl div { display: grid; gap: 3px; }
.ops-review-summary dt { color: var(--ink-3); font-size: 10px; }
.ops-review-summary dd { margin: 0; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.ops-review-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.ops-review-photos img, .ops-review-photos span { width: 100%; aspect-ratio: 1 / .72; border-radius: 7px; object-fit: cover; background: #f4f5f6; }
.ops-review-photos span { display: grid; place-items: center; grid-column: 1 / -1; color: var(--ink-3); font-size: 11px; }
.ops-review-reason { display: grid; gap: 6px; margin: 12px 20px 0; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.ops-review-reason textarea { min-height: 94px; resize: vertical; border: 1px solid #cfd5dd; border-radius: 8px; padding: 10px; color: var(--ink); font: inherit; font-weight: 400; line-height: 1.55; }
.ops-review-reason textarea:focus { outline: 2px solid rgba(255,107,53,.25); border-color: var(--brand-orange); }
.ops-review-reason small { color: var(--ink-3); font-size: 10px; font-weight: 400; }
.ops-review-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e9ebee; margin-top: 16px; padding: 14px 20px; }
.ops-review-actions button { min-height: 36px; padding: 0 13px; }
.empty-state { display: grid; justify-items: center; gap: 3px; padding: 32px 12px; border: 1px dashed #d9dde3; border-radius: 8px; color: var(--ink-3); text-align: center; }
.empty-state b { color: var(--ink-2); font-size: 11px; }
.empty-state span { font-size: 8px; }
.admin-merchant-thumb { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; }
.approw { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border-top: 1px solid #e5e7eb; padding: 10px 0; font-size: 10px; }
.approw:first-child { border-top: 0; }
.approw .info { min-width: 0; }
.approw .hint { color: var(--ink-3); font-size: 8px; }
.approve { min-height: 31px; border: 0; background: var(--green); color: #fff; }
.reject { min-height: 31px; border: 1px solid #e6b6b1; background: #fff; color: var(--red); }
.market-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid #e5e7eb; padding: 10px 0; }
.market-row:first-of-type { border-top: 0; }
.market-row .prep { display: grid; flex: 1; }
.market-row .prep b { font-size: 10px; }
.market-row .prep small { color: var(--ink-3); font-size: 8px; }
.pub-market { min-height: 31px; border: 1px solid #efc99f; background: #fff8ed; color: var(--brand-orange-deep); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* 看板和热力图保留为运营内部视图 */
#view-board, #view-heat { padding: 24px 28px; }
.loop { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.node { flex: 1; min-width: 126px; border: 1px solid #d9dde3; border-radius: 8px; padding: 13px; background: #fff; text-align: center; }
.node b { display: block; font-size: 21px; }
.node span { color: var(--ink-2); font-size: 9px; }
.arrow { display: flex; align-items: center; color: var(--ink-3); }
.node.n-red b { color: var(--red); } .node.n-teal b { color: #12797a; } .node.n-amber b { color: var(--amber); } .node.n-blue b { color: var(--blue); } .node.n-green b { color: var(--green); }
.funnel, .timeline, .heat-rank { display: grid; gap: 7px; }
.fstep { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.fstep .lbl { width: 95px; color: var(--ink-2); }
.fstep .bar { height: 15px; border-radius: 4px; background: var(--green); }
.fstep .bar.r { background: var(--red); } .fstep .bar.a { background: var(--brand-orange); }
.fstep .val { width: 50px; font-weight: 800; }
.ev { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding: 7px 0; font-size: 9px; }
.ev .who { font-weight: 800; } .ev .t { margin-left: auto; color: var(--ink-3); }
.heat-wrap { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: #f3f1ea; }
.heat-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hrow { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.hrow .nm { width: 95px; }.hrow .hb { flex: 1; height: 12px; border-radius: 3px; background: #eee; overflow: hidden; }.hrow .hb i { display: block; height: 100%; background: var(--brand-orange); }.hrow .hv { width: 36px; text-align: right; }
.heat-mode { border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; padding: 6px 9px; font-size: 10px; cursor: pointer; }.heat-mode.active { border-color: var(--brand-orange); color: var(--brand-orange-deep); background: #fff8ed; }

/* 登录弹窗、消息反馈 */
.modal-mask { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(15,22,39,.58); }
.modal-mask.show { display: flex; }
.modal { position: relative; width: min(100%, 390px); border-radius: 14px; padding: 23px; background: #fff; box-shadow: 0 24px 60px rgba(15,22,39,.25); }
.modal h3 { margin: 4px 0 4px; font-size: 20px; }
.modal .close { position: absolute; top: 9px; right: 12px; border: 0; background: transparent; color: var(--ink-3); font-size: 23px; cursor: pointer; }
.login-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 16px; }
.sms-btn { border: 1px solid var(--brand-navy); border-radius: 8px; background: #fff; color: var(--brand-navy); padding: 0 11px; font-size: 11px; font-weight: 750; cursor: pointer; }
#loginCode { margin-top: 8px; }
.login-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.role { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.role:hover { border-color: var(--brand-orange); background: #fff8ed; }
.login-primary { width: 100%; min-height: 46px; margin-top: 14px; border: 0; border-radius: 10px; background: var(--brand-navy); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(15,22,39,.16); }
.login-primary:hover { background: var(--brand-navy-2); }
.logout { width: 100%; margin-top: 10px; border: 1px solid #edc1bd; border-radius: 8px; background: #fff; color: var(--red); padding: 8px; cursor: pointer; }

/* 首次注册身份门：不可通过关闭按钮绕过，最终权限仍由服务端 role_choice 校验。 */
body.identity-gate-open { overflow: hidden; }
.identity-gate-mask { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15,22,39,.72); backdrop-filter: blur(5px); }
.identity-gate-mask.show { display: flex; }
.identity-gate { width: min(100%, 520px); overflow: hidden; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; background: #fffaf6; box-shadow: 0 28px 80px rgba(15,22,39,.32); }
.identity-gate-brand { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--brand-navy); color: #fff; }
.identity-gate-brand img { width: 44px; height: 44px; border: 1px solid rgba(255,154,61,.6); border-radius: 13px; padding: 6px; background: rgba(255,255,255,.06); }
.identity-gate-brand b, .identity-gate-brand span { display: block; }
.identity-gate-brand b { font-size: 15px; letter-spacing: .02em; }
.identity-gate-brand span { margin-top: 1px; color: #ffb569; font-size: 10px; }
.identity-gate-copy { padding: 22px 22px 14px; }
.identity-gate-copy h2 { margin: 5px 0 7px; color: #221c19; font-size: clamp(22px, 5vw, 29px); line-height: 1.25; letter-spacing: -.02em; }
.identity-gate-copy p { color: #776a62; font-size: 12px; line-height: 1.7; }
.identity-choice-grid { display: grid; gap: 10px; padding: 0 22px; }
.identity-choice { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 88px; border: 1px solid #ead9cd; border-radius: 14px; padding: 14px; background: #fff; color: #2d2320; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.identity-choice:hover { transform: translateY(-1px); border-color: #ff8b58; box-shadow: 0 8px 22px rgba(180,90,30,.1); }
.identity-choice.merchant-choice { border-color: #ffd0b8; background: #fff1e8; }
.identity-choice-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--brand-navy); color: #fff; font-size: 16px; font-weight: 900; }
.merchant-choice .identity-choice-icon { background: #ff6b35; }
.identity-choice b, .identity-choice small { display: block; }
.identity-choice b { font-size: 15px; line-height: 1.3; }
.identity-choice small { margin-top: 4px; color: #7a6a5f; font-size: 10px; line-height: 1.55; }
.identity-choice i { color: #f04e1f; font-size: 19px; font-style: normal; }
.identity-gate.is-loading .identity-choice { pointer-events: none; opacity: .58; }
.identity-lock-note { display: flex; align-items: flex-start; gap: 7px; margin: 14px 22px 0; border-top: 1px solid #f0e3da; padding-top: 13px; color: #8b7568; font-size: 10px; line-height: 1.55; }
.identity-lock-note span { flex: 0 0 auto; color: #f04e1f; font-weight: 800; }
.identity-choice-error { min-height: 34px; padding: 8px 22px 15px; color: var(--red); font-size: 11px; }
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 220; max-width: min(86vw, 460px); transform: translate(-50%, 14px); opacity: 0; pointer-events: none; border-radius: 999px; padding: 10px 15px; background: rgba(15,22,39,.94); color: #fff; box-shadow: 0 12px 30px rgba(15,22,39,.22); text-align: center; font-size: 11px; transition: .2s ease; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

footer { display: grid; gap: 3px; margin: 28px 0 34px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--ink-3); text-align: center; font-size: 9px; line-height: 1.6; }
footer a { color: var(--ink-3); text-decoration: none; }
footer a:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; border-radius: 2px; }
.site-footer .footer-subject, .site-footer .footer-record, .site-footer .footer-record a { color: var(--ink-2); }

@media (max-width: 1020px) {
  .two-col { grid-template-columns: 1fr; }
  .col-side { grid-template-columns: repeat(2, 1fr); }
  .fair-card { grid-column: 1 / -1; }
  .merchant-core { grid-template-columns: 1fr; }
  .verify-card { grid-row: auto; }
  .merchant-activities { grid-column: auto; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-review-panel, .admin-calendar-panel { grid-row: auto; grid-column: auto; }
}

@media (max-width: 760px) {
  #app { padding: 0 14px; }
  .product-header { height: auto; min-height: 66px; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .product-header nav { width: 100%; overflow-x: auto; margin: 0; }
  .product-header nav button, .product-header nav a { white-space: nowrap; }
  .consumer-hero { grid-template-columns: 1fr; min-height: 0; padding: 25px; }
  .consumer-hero h1 { font-size: 30px; }
  .hero-market-link { min-height: 90px; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 120px minmax(0, 1fr); }
  .toolbar .switch { grid-column: 1 / -1; }
  .mcard { grid-template-columns: 112px minmax(0, 1fr); }
  .merchant-media, .merchant-media img { min-height: 156px; }
  .col-side { grid-template-columns: 1fr; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h1 { font-size: 27px; }
  .merchant-identity { flex-wrap: wrap; }
  .merchant-identity .switch { width: 100%; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .admin-sidebar-foot { display: none; }
  .admin-main { padding: 18px 14px; }
}

@media (max-width: 520px) {
  .identity-gate-mask { align-items: flex-end; padding: 0; }
  .identity-gate { max-height: 100dvh; overflow-y: auto; border-width: 1px 0 0; border-radius: 20px 20px 0 0; padding-bottom: max(2px, env(safe-area-inset-bottom)); }
  .identity-gate-brand { padding: 15px 18px; }
  .identity-gate-copy { padding: 18px 18px 12px; }
  .identity-choice-grid { padding-inline: 18px; }
  .identity-choice { min-height: 82px; padding: 12px; }
  .identity-lock-note { margin-inline: 18px; }
  .identity-choice-error { padding-inline: 18px; }
}

/* 微信小程序：紧凑品牌栏 + 原生感底栏 */
@media (max-width: 600px) {
  .in-mini-program body { background: #f8f4ed; }
  .in-mini-program #app { width: 100%; padding: 0 12px 86px; }
  .in-mini-program .product-header, .in-mini-program .seo-hero { display: none; }
  .in-mini-program footer { margin: 20px 0 0; padding: 14px 8px 2px; font-size: 10px; }
  .in-mini-program .mini-welcome {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    margin: 0 -12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 13px;
    background: var(--brand-navy);
    color: #fff;
  }
  .mini-brand { display: flex; align-items: center; gap: 8px; }
  .mini-brand-mark { width: 39px; height: 39px; }
  .mini-brand div { display: grid; line-height: 1.2; }
  .mini-brand b { font-size: 14px; }
  .mini-brand span { margin-top: 2px; color: var(--brand-orange); font-size: 8px; letter-spacing: .16em; }
  .mini-location { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 9px; background: rgba(255,255,255,.07); color: #fff; font-size: 10px; }
  .in-mini-program main { padding-top: 11px; }
  .in-mini-program .consumer-hero {
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 10px;
    min-height: 155px;
    margin-bottom: 10px;
    border-radius: 17px;
    padding: 17px;
    background: radial-gradient(circle at 93% 15%, rgba(255,154,61,.15) 0 50px, transparent 51px), linear-gradient(132deg, var(--brand-navy), #283249 80%);
    box-shadow: 0 9px 24px rgba(15,22,39,.14);
  }
  .in-mini-program .consumer-hero h1 { margin-top: 5px; font-size: 23px; line-height: 1.18; }
  .in-mini-program .consumer-hero p { max-height: 41px; overflow: hidden; margin-top: 7px; font-size: 10px; line-height: 1.5; }
  .in-mini-program .hero-market-link { min-height: 92px; align-self: center; border-radius: 12px; padding: 10px; }
  .in-mini-program .hero-market-link span, .in-mini-program .hero-market-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .in-mini-program .hero-market-link b { font-size: 24px; }
  .in-mini-program .hero-market-link small { font-size: 8px; }
  .in-mini-program .category-strip { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
  .in-mini-program .category-strip button { min-height: 58px; border-radius: 10px; padding: 9px 7px; text-align: center; }
  .in-mini-program .category-strip span { font-size: 10px; }
  .in-mini-program .category-strip small { font-size: 8px; }
  .in-mini-program .two-col { display: block; }
  .in-mini-program .toolbar { grid-template-columns: 112px minmax(0, 1fr); gap: 7px; margin-bottom: 8px; }
  .in-mini-program .street-sel, .in-mini-program .search-wrap { height: 42px; border-radius: 10px; }
  .in-mini-program .search-wrap > span { margin-left: 8px; }
  .in-mini-program .search-wrap button { display: none; }
  .in-mini-program .toolbar .switch { grid-column: 1 / -1; min-height: 36px; height: 36px; border-color: #d9d4cb; background: #fff; color: var(--brand-navy); }
  .in-mini-program .hot { display: grid; gap: 2px; margin-bottom: 12px; padding: 10px 11px; }
  .in-mini-program .section-heading { margin: 13px 1px 9px; }
  .in-mini-program .section-heading h2 { font-size: 18px; }
  .in-mini-program .mcard { grid-template-columns: 94px minmax(0, 1fr); min-height: 142px; border-radius: 13px; box-shadow: 0 5px 16px rgba(35,31,25,.05); }
  .in-mini-program .merchant-media, .in-mini-program .merchant-media img { min-height: 142px; }
  .in-mini-program .merchant-card-body { padding: 11px; }
  .in-mini-program .mname { font-size: 13px; }
  .in-mini-program .mmeta { font-size: 8px; }
  .in-mini-program .btn-ghost { min-height: 27px; padding: 4px 7px; font-size: 8px; }
  .in-mini-program .act { align-items: flex-start; flex-wrap: wrap; gap: 4px 7px; margin-top: 8px; padding-top: 7px; }
  .in-mini-program .activity-thumb { width: 32px; height: 32px; }
  .in-mini-program .act .txt { font-size: 10px; }
  .in-mini-program .act .meta { font-size: 8px; }
  .in-mini-program .act .btn-red { min-height: 28px; }
  .in-mini-program .col-side { margin-top: 11px; }
  .in-mini-program .col-side .card { border-radius: 12px; }
  .in-mini-program .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 24px rgba(15,22,39,.07);
  }
  .mobile-tabbar button, .mobile-tabbar a { display: grid; place-items: center; gap: 1px; border: 0; background: transparent; color: var(--ink-3); text-decoration: none; font-size: 9px; }
  .mobile-tabbar > * { min-width: 0; }
  .mobile-tabbar span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; font-size: 11px; font-weight: 850; }
  .mobile-tabbar b { font-size: 9px; }
  .mobile-tabbar .active { color: var(--brand-orange-deep); }
  .mobile-tabbar .active span { background: #fff0df; }
  .in-mini-program #toast { bottom: 74px; }
  .in-mini-program .workspace-heading { margin-top: 4px; }
  .in-mini-program .workspace-heading h1 { font-size: 25px; }
  .in-mini-program .workspace-heading p { font-size: 11px; }
  .in-mini-program .merchant-taskbar { grid-template-columns: 1fr; }
  .in-mini-program .merchant-taskbar span { border-top: 1px solid var(--line); border-left: 0; }
  .in-mini-program .merchant-taskbar span:first-child { border-top: 0; }
  .in-mini-program .three-col { grid-template-columns: 1fr; }
  .in-mini-program .merchant-reminder { margin-top: 10px; }
  .in-mini-program .merchant-application { margin-top: 10px; padding: 15px; }
  .in-mini-program .application-heading { display: grid; }
  .in-mini-program .application-progress { flex-wrap: wrap; }
  .in-mini-program .form-grid { grid-template-columns: 1fr; }
  .in-mini-program .form-grid label.full { grid-column: auto; }
  .in-mini-program .upload-grid { grid-template-columns: 1fr 1fr; }
  .in-mini-program .upload-tile { min-height: 108px; }
  .in-mini-program .application-actions { display: grid; }
  .in-mini-program .application-actions .publish { width: 100%; }
}

@media (max-width: 640px) {
  .ops-review-mask { align-items: end; padding: 0; }
  .ops-review-dialog { width: 100%; max-height: min(86vh, 760px); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 16px 16px 0 0; }
  .ops-review-head, .ops-review-summary { padding-right: 16px; padding-left: 16px; }
  .ops-review-summary dl { grid-template-columns: 1fr; gap: 8px; }
  .ops-review-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-review-reason { margin-right: 16px; margin-left: 16px; }
  .ops-review-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .ops-review-actions .btn-ghost { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
