:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-soft: #eef2ff;
  --accent: #f43f5e;
  --accent-soft: #fff1f2;
  --success: #10b981;
  --border: #e8ecf4;
  --shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shell-w: 430px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

/* Layout */
.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 251, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px 10px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
}
.hdr-console {
  position: absolute;
  right: 12px;
  top: max(14px, calc(env(safe-area-inset-top, 0px) + 10px));
  z-index: 2;
  font-size: 0.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: rgba(100, 116, 139, 0.32);
  transition: color 0.2s;
  padding: 6px;
}
.hdr-console:hover,
.hdr-console:active {
  color: rgba(100, 116, 139, 0.55);
}
.header-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 48px;
}
.header-brand-text h1 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-right: 0;
  display: block;
}
.header-brand-text .sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.header-title-full {
  font-size: clamp(1.28rem, 6.2vw, 1.55rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.15 !important;
  padding: 6px 48px 6px 0 !important;
  display: block !important;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 45%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-main-flush {
  padding-left: 0;
  padding-right: 0;
}
.page-main-flush > .guest-banner,
.page-main-flush > .home-actions,
.page-main-flush > .home-group,
.page-main-flush > .section-title,
.page-main-flush > .card-list,
.page-main-flush > #guestBanner {
  margin-left: 14px;
  margin-right: 14px;
}
.page-main-flush > .home-hero-full {
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}
.page-header h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 52px;
}
.page-header h1 .brand-mark,
.header-brand-row .brand-mark {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}
.page-header .sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.page-main {
  padding: var(--space-sm) 14px calc(var(--space-lg) + 8px);
  max-width: 640px;
  margin: 0 auto;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.62rem;
  color: var(--text-muted);
  min-height: var(--nav-h);
  -webkit-tap-highlight-color: transparent;
}
.nav-item .icon { font-size: 1.2rem; line-height: 1; }
.nav-item.active { color: var(--primary); font-weight: 600; }
.nav-item.publish .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  margin-top: -14px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card:active { transform: scale(0.985); transition: transform 0.12s; }
.card-list { display: flex; flex-direction: column; gap: 10px; }

.rental-card, .job-card, .demand-card {
  padding: 12px 14px;
  cursor: pointer;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.card-title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.card-price small { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--text-muted);
  align-items: center;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--text-muted);
}
.tag.primary { background: var(--primary-soft); color: var(--primary-dark); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.verified { background: #d1fae5; color: #059669; }
.tag.warn { background: #fef3c7; color: #d97706; }
.tag.danger { background: #fee2e2; color: #dc2626; }

.card.has-thumb { display: flex; gap: 0; padding: 0; }
.card.has-thumb .card-body { padding: 12px 12px 12px 10px; flex: 1; min-width: 0; }
.card-thumb {
  width: 96px;
  min-height: 96px;
  flex-shrink: 0;
  background: #e2e8f0 center/cover no-repeat;
}

.photo-gallery {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: var(--space-sm);
  scrollbar-width: none;
}
.photo-gallery img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

#mapContainer {
  width: 100%;
  height: calc(100dvh - 100px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-fallback-list { display: flex; flex-direction: column; gap: 6px; }
.map-fallback-item {
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
}

.chat-list { display: flex; flex-direction: column; gap: 6px; }
.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.chat-preview strong { display: block; font-size: 0.85rem; }
.chat-preview small { color: var(--text-muted); font-size: 0.7rem;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
  background: var(--accent); color: #fff; font-size: 0.65rem;
  padding: 1px 6px; border-radius: 999px; font-weight: 600;
}

.chat-room { display: flex; flex-direction: column; height: calc(100dvh - 52px); }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble {
  max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 0.85rem; line-height: 1.4;
}
.chat-bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { align-self: flex-start; background: #f1f5f9; border-bottom-left-radius: 4px; }
.chat-bubble time { display: block; font-size: 0.6rem; opacity: 0.65; margin-top: 3px; }
.chat-input-bar {
  display: flex; gap: 6px; padding: 8px 12px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.chat-input-bar input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }

.map-picker { height: 160px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 6px; overflow: hidden; }
.photo-upload-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.photo-upload-item {
  width: 68px; height: 68px; border-radius: var(--radius-sm); border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: #f8fafc; font-size: 1.2rem; color: var(--text-muted);
}
.photo-upload-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.verify-status-box {
  padding: 12px; border-radius: var(--radius); margin-bottom: var(--space-md); text-align: center; font-size: 0.85rem;
}
.verify-status-box.pending { background: #fef3c7; color: #92400e; }
.verify-status-box.approved { background: #d1fae5; color: #065f46; }
.verify-status-box.rejected { background: #fee2e2; color: #991b1b; }
.verify-status-box.none { background: #f1f5f9; color: var(--text-muted); }

.nav-badge {
  position: absolute; top: 0; right: calc(50% - 16px);
  background: var(--accent); color: #fff; font-size: 0.55rem;
  padding: 0 4px; border-radius: 999px; min-width: 14px; text-align: center;
}
.nav-item { position: relative; }

.admin-wrap { max-width: 900px; margin: 0 auto; padding: 16px; }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; font-size: 0.85rem; }
.admin-actions { display: flex; gap: 6px; margin-top: 8px; }
.admin-actions .btn { padding: 6px 12px; font-size: 0.75rem; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }

/* Filters */
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 var(--space-sm);
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
}
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}

.search-box {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-sm);
}
.search-box input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  outline: none;
  font-size: 16px; /* 防止 iOS 自动放大 */
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.search-box button {
  padding: 11px 16px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 64px;
}

/* Detail */
.detail-hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f43f5e 100%);
  color: #fff;
  padding: 16px 14px;
  border-radius: 0 0 16px 16px;
  margin: -8px -14px 12px;
}
.detail-hero.job { background: linear-gradient(135deg, #8b5cf6, #a78bfa, #f43f5e); }
.detail-hero h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.detail-hero .price-big { font-size: 1.6rem; font-weight: 800; }
.detail-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border);
}
.detail-section h3 {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.detail-section p { font-size: 0.85rem; white-space: pre-wrap; }
.facility-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.facility-item {
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.72rem;
}

.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  padding-bottom: calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(15,23,42,.06);
}
body.has-contact-bar { padding-bottom: calc(72px + var(--safe-bottom)); }
.contact-bar .btn { flex: 1; padding: 12px; font-size: 0.85rem; min-height: 46px; }
.contact-bar .btn-fav { flex: none; width: 46px; padding: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost { background: #f1f5f9; color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; min-height: 36px; }

/* Forms */
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  outline: none;
  font-size: 16px; /* 防止 iOS 聚焦放大 */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
}
.checkbox-grid label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Landing */
.landing-body {
  min-height: 100dvh;
  padding-bottom: 0;
  background: linear-gradient(165deg, #eef2ff 0%, #f4f6fb 45%, #fff1f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.landing-wrap { width: 100%; max-width: 380px; }
.landing-brand { text-align: center; margin-bottom: 20px; }
.brand-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.landing-brand h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
}
.landing-brand p { color: var(--text-muted); margin-top: 6px; font-size: 0.85rem; }
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.1rem; color: var(--primary); }
.stat-item span { font-size: 0.68rem; color: var(--text-muted); }

.landing-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.landing-card h2 { font-size: 1rem; margin-bottom: 2px; }
.landing-card .desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; }
.landing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.feature-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px;
  border: 1px solid var(--border);
  text-align: center;
}
.feature-box .emoji { font-size: 1.25rem; margin-bottom: 4px; }
.feature-box strong { display: block; font-size: 0.78rem; }
.feature-box small { font-size: 0.65rem; color: var(--text-muted); }
.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.demo-chip {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.68rem;
}

/* Home */
.home-hero {
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 35%, #7c3aed 70%, #db2777 100%);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  right: -20%;
  top: -40%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.home-hero h2 { font-size: 0.95rem; font-weight: 700; position: relative; z-index: 1; }
.home-hero p { font-size: 0.72rem; opacity: 0.9; margin-top: 4px; position: relative; z-index: 1; }
.home-hero-compact {
  padding: 16px 16px;
  margin-bottom: 14px;
  animation: homeFadeUp .35s ease both;
}
.home-hero-compact h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.home-hero-compact p { font-size: 0.78rem; margin-top: 6px; opacity: 0.92; }
.home-hero-full {
  padding: 18px 16px;
  margin-bottom: 10px;
  border-radius: 0;
  width: 100%;
  animation: homeFadeUp .35s ease both;
  background: linear-gradient(115deg, #1e40af 0%, #2563eb 28%, #6d28d9 62%, #db2777 100%);
}
.home-hero-full h2 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}
.home-hero-full p {
  font-size: 0.82rem;
  margin-top: 6px;
  opacity: 0.95;
}

.home-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 55%, #fff1f2 100%);
  animation: homeFadeUp .4s ease .08s both;
}
.home-group-text {
  flex: 1;
  min-width: 0;
}
.home-group-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.home-group-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.home-group-qr {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.home-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: var(--space-md);
}
.home-tab {
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.home-tab .emoji { font-size: 1.4rem; margin-bottom: 4px; }
.home-tab strong { display: block; font-size: 0.82rem; }
.home-tab small { font-size: 0.65rem; color: var(--text-muted); }

/* 首页分组入口 — 紧凑六宫格 */
.home-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  animation: homeFadeUp .4s ease .05s both;
}
.ha-group-label {
  display: none;
}
.ha-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.home-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 11px 8px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .15s, background .15s;
  text-align: center;
}
.home-action .ha-icon { display: none; }
.home-action strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}
.home-action-pub {
  border-color: rgba(99, 102, 241, 0.35);
  background: #eef2ff;
}
.home-action-pub .ha-icon { display: none; }
.home-action-pub strong { color: var(--primary-dark); }
.home-action-seek {
  border-color: rgba(244, 63, 94, 0.22);
  background: #fff1f2;
}
.home-action-seek .ha-icon,
.ha-icon-seek { display: none; }
.home-action-seek strong { color: #be123c; }
.ha-icon-view { display: none; }
.home-action:active {
  transform: scale(0.97);
  box-shadow: none;
}

@keyframes homeFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 首页显耀发布入口（旧样式保留兼容） */
.publish-cta {
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow);
}
.publish-cta-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  text-align: center;
}
.publish-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.publish-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.publish-action:active { transform: scale(0.96); }
.publish-action .pa-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.publish-action .pa-text { font-size: 0.72rem; text-align: center; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.section-title h3 { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.section-title a {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  padding: 4px 2px;
}

/* Mine */
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-info h2 { font-size: 0.95rem; font-weight: 700; }
.profile-info p { font-size: 0.72rem; color: var(--text-muted); }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 0.85rem;
}
a.menu-item {
  text-decoration: none;
  color: inherit;
}
.promo-banner {
  display: block;
  margin: 14px 0 12px;
  padding: 16px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #a7f3d0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}
.promo-kicker {
  font-size: 0.7rem;
  color: #059669;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.promo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.promo-desc {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

/* 桌面端手机壳内：确保我的页广告位可见、不被底栏挡住 */
@media (min-width: 768px) {
  body.mine-body {
    padding-bottom: calc(var(--nav-h) + 24px + var(--safe-bottom)) !important;
  }
  body.mine-body .page-main {
    padding-bottom: 28px;
  }
  body.mine-body .promo-banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
  }
}

/* Publish */
.publish-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-md);
}
.publish-tab {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.publish-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row > div { min-width: 0; }
.form-row label { display: block; }

/* Utils */
.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-state .emoji { font-size: 2rem; margin-bottom: 0; }
.empty-state p { margin: 0; }
.loading { text-align: center; padding: 28px; color: var(--text-muted); font-size: 0.85rem; }
.toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #0f172a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #ef4444; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--primary);
  margin-bottom: 8px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.guest-banner strong { color: var(--primary); font-size: 0.78rem; white-space: nowrap; font-weight: 700; }
.load-more { font-size: 0.8rem; }

@media (min-width: 768px) {
  body {
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
    background: #d8dee9;
    background-image:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(244, 63, 94, 0.08), transparent);
  }

  body.landing-body {
    padding-bottom: 0;
    background: linear-gradient(165deg, #eef2ff 0%, #f4f6fb 45%, #fff1f2 100%);
  }

  body.has-contact-bar {
    padding-bottom: calc(64px + var(--safe-bottom));
  }

  body[style*="padding-bottom:0"],
  body[style*="padding-bottom: 0"] {
    padding-bottom: 0 !important;
  }

  /* 居中手机壳背景 */
  body:not(.landing-body)::before {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--shell-w);
    max-width: calc(100vw - 24px);
    background: var(--bg);
    z-index: -1;
    box-shadow: 0 0 48px rgba(15, 23, 42, 0.14);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    pointer-events: none;
  }

  .page-header {
    width: var(--shell-w);
    max-width: calc(100vw - 24px);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .page-main {
    width: var(--shell-w);
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  .bottom-nav {
    display: flex;
    width: var(--shell-w);
    max-width: calc(100vw - 24px);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }

  .contact-bar {
    width: var(--shell-w);
    max-width: calc(100vw - 24px);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }

  .chat-room {
    width: var(--shell-w);
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .chat-input-bar {
    border-left: none;
    border-right: none;
  }

  #mapContainer {
    border-radius: var(--radius);
  }

  .admin-wrap {
    max-width: var(--shell-w);
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing-wrap {
    max-width: var(--shell-w);
  }

  .toast {
    max-width: calc(var(--shell-w) - 32px);
  }

  /* 桌面端保持移动端交互，不用 hover 放大 */
  .card:hover {
    transform: none;
  }
}
