:root {
  --bg-gradient-top: #f8fce891;
  --bg-gradient-bottom: #b2f1ca;
  --card-dark: #020617;
  --card-dark-soft: #020617ee;
  --card-light: #fdfaf4;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --text-strong: #111827;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --transition-fast: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, opacity 0.2s ease-out;
  --green-soft: rgba(34, 197, 94, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg,
      var(--bg-gradient-top) 0%,
      var(--bg-gradient-bottom) 100%);
  padding: 10px 10px 80px;
  /* 搴曢儴棰勭暀缁欏浐瀹氬鑸爮 */
  color: var(--text-main);
}

.page {
  max-width: 480px;
  margin: 0 auto;
}

/* ========== 椤堕儴淇℃伅鍗★紙绗竴寮犲崱鐗囷級 ========== */

/* 椤堕儴绗竴寮犲崱鐗囷細鑳屾櫙瀹屽叏閫忔槑锛屽唴瀹瑰拰鎸夐挳淇濈暀 */
.hero-card {
  /* 鑳屾櫙鏀逛负瀹屽叏閫忔槑 */
  background: transparent;

  /* 鍘绘帀鎶曞奖锛岃瀹冪湅璧锋潵鍍忔櫘閫氬唴瀹硅€屼笉鏄竴寮犲崱 */
  box-shadow: none;

  /* 鏄惁淇濈暀鍦嗚閮藉彲浠ワ紝杩欓噷鍘绘帀鍦嗚锛岃椤堕儴鏇磋嚜鐒惰鎺?*/
  border-radius: 0;

  /* 淇濇寔鍘熸潵鐨勬帓鐗堝拰闂磋窛锛岃鏂囧瓧銆佹寜閽竷灞€涓嶅彉 */
  padding: 22px 16px 14px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 0;
}

.hero-title,
.hero-title-image {
  width: 100%;
  border-radius: 14px;
}

.hero-title-image {
  display: block;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0;
}

.hero-subtitle {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
  color: #cbd5f5;
  align-items: center;
}

.dot {
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 4px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(247, 151, 30, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 6px 18px rgba(247, 151, 30, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
  border: 1px solid rgba(45, 62, 80, 0.22);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(45, 62, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.99);
  background: linear-gradient(135deg, #aab2b8 0%, #34495e 100%);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-offer:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  box-shadow:
    0 15px 40px rgba(247, 151, 30, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  box-shadow:
    0 15px 40px rgba(45, 62, 80, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-offer:hover {
  box-shadow:
    0 15px 40px rgba(45, 212, 191, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::before,
.btn-secondary::before,
.listing-title::before,
.btn-offer::before {
  content: "";
  position: absolute;
  height: 250%;
  width: 36px;
  top: 0;
  left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg) translateY(-35%);
  animation: none;
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.listing-title:hover::before,
.btn-offer:hover::before,
.btn-primary:focus-visible::before,
.btn-secondary:focus-visible::before,
.listing-title:focus-visible::before,
.btn-offer:focus-visible::before {
  animation: shineBtnFx 1.2s ease 1;
}

@keyframes shineBtnFx {
  0% {
    left: -80px;
  }

  40% {
    left: calc(100% + 20px);
  }

  100% {
    left: calc(100% + 20px);
  }
}

.btn-icon {
  font-size: 16px;
  transform: translateY(1px);
}

.hero-stats {
  width: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(138, 233, 250, 0.82);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-sub);
}

.hero-stats b {
  color: #e5e7eb;
  font-weight: 600;
}

/* ========== 鎼滅储鍖哄煙 ========== */

.search-card {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.96), rgba(191, 219, 254, 0.92));
  border-radius: var(--radius-xl);
  padding: 12px 14px 10px;
  box-shadow: 0 14px 24px rgba(30, 64, 175, 0.22);
  color: var(--text-strong);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.search-full {
  grid-column: 1 / -1;
}

.search-item {
  min-width: 0;
}

.field-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.select,
.input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding: 0 14px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.select:focus,
.input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.search-line {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

/* Gemini 椋庢牸鎼滅储妗嗭紙鍘绘帀楹﹀厠椋庡浘鏍囷級 */
@property --search-rot {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.gemini-shell {
  --gradient: conic-gradient(from var(--search-rot) at 52% 49%, #3b82f6 20%, #f59e0b 34%, #22c55e 50%, #06b6d4 66%, #3b82f6 92%);
  animation: none;
  position: relative;
  flex: 1;
  width: 100%;
  border-radius: 999px;
  padding: 2px;
  background: var(--gradient);
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.18),
    0 10px 24px rgba(37, 99, 235, 0.25);
  display: block;
}

.gemini-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient);
  filter: blur(8px);
  opacity: 0.35;
  z-index: -1;
}

.gemini-shell:focus-within,
.gemini-shell:hover {
  animation: searchRotate 2.4s linear 2;
}

.gemini-shell .input {
  border: none;
  height: 42px;
  width: 100%;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
  padding-right: 132px;
}

.gemini-shell .input::placeholder {
  color: #94a3b8;
}

.gemini-shell .input:focus {
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.45);
}

@keyframes searchRotate {
  to {
    --search-rot: 360deg;
  }
}

.search-actions {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border-radius: 999px 999px 999px 999px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: transparent;
}

.search-btn,
.reset-btn {
  height: auto;
  border: none;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #10b981;
}

.reset-btn {
  border-left: 1px solid #facc15;
}

.search-btn:hover,
.reset-btn:hover {
  color: #059669;
}

/* ========== 閫氱敤鍒楄〃鍖哄潡锛堢鍞?/ 姹傜姹傝喘锛?========== */

.section-block {
  margin-top: 14px;
  background: rgba(248, 250, 252, 0.96);
  border-radius: var(--radius-xl);
  padding: 10px 10px 8px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
}

.section-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-block-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-block-sub {
  font-size: 11px;
  color: #6b7280;
}

.badge-type {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #2563eb;
  background: rgba(219, 234, 254, 0.7);
}

/* ========== 鎴挎簮鍗＄墖锛堝乏鍥惧彸淇℃伅锛岀Щ鍔ㄧ鍗曞垪锛?========== */

.listing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-card {
  display: flex;
  gap: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid #e5e7eb;
  transition: var(--transition-fast);
  align-items: stretch;
  overflow: hidden;
  height: 168px;
}

.listing-card:active {
  transform: scale(0.99);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.listing-thumb {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 0;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
  position: relative;
  height: 100%;
  min-height: 0;
}

.listing-thumb img,
.listing-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 娌℃湁鍥剧墖鏃剁殑鍗犱綅鍧?*/
.listing-thumb-empty {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #9ca3af;
}

.listing-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.82);
  color: #f9fafb;
  border: 1px solid rgba(248, 250, 252, 0.6);
}

.listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 12px 10px;
  overflow: hidden;
  height: 100%;
}

.listing-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px 0;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(19, 78, 94, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.listing-title-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.listing-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px 0;
  min-height: 34px;
  max-height: 34px;
  /* 涓轰腑闂翠袱琛岀暀鍑虹ǔ瀹氶珮搴?*/
  overflow: hidden;
}

.listing-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-strong {
  color: #dc2626;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.publish-time {
  font-size: 11px;
  color: #eab308;
  /* 钃濊壊 */
  white-space: nowrap;
  margin-top: 0;
  align-self: flex-end;
  /* 淇濊瘉闈犲簳閮ㄤ笖闈犲彸 */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 灏忔寜閽紙鏆傜暀缁欎箣鍚庤鎯呮垨鍏跺畠浣嶇疆浣跨敤锛屼笉鍐嶇敤浜庨椤靛崱鐗囷級 */
.btn-mini {
  flex: 1 1 0;
  padding: 0 12px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: #f9fafb;
  text-align: center;
}

.btn-mini.chat {
  background: rgba(56, 189, 248, 0.08);
  color: #0284c7;
  border-color: rgba(56, 189, 248, 0.6);
}

.btn-mini.reserve {
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.6);
}

.btn-mini:hover {
  filter: brightness(1.05);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.btn-mini:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

/* ========== 姹傜/姹傝喘鍗＄墖妯℃澘锛堟棤鍥剧墖锛屼粎淇℃伅锛?========== */

.demand-card {
  background: #fffce8;
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  border: 1px dashed #efe3a7;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  transition: transform .2s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.demand-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #7c3aed 0%, #ffffff 50%, #ef4444 100%);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.28);
  pointer-events: none;
}

#demand-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.demand-title {
  font-weight: 600;
  color: #111827;
}

.demand-meta {
  font-size: 11px;
  color: #6b7280;
}

.demand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.btn-offer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  min-width: 92px;
  max-width: 140px;
  height: 34px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
  box-shadow:
    0 10px 30px rgba(45, 212, 191, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}

.btn-offer:active {
  transform: translateY(1px) scale(0.99);
}

/* ========== 鍒嗛〉鏄剧ず锛? / 9 椤?========== */

.pagination {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7280;
}

.pagination-center {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.page-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #2563eb;
  padding: 2px 4px;
  cursor: pointer;
}

.page-btn:disabled {
  color: #9ca3af;
  cursor: default;
}

/* ========== 搴曢儴鍥哄畾瀵艰埅鏍?========== */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px 10px;
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.05),
      rgba(15, 23, 42, 0.86));
  backdrop-filter: blur(6px);
  z-index: 50;
}

.bottom-nav-inner {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 999px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.75);
}

.bottom-nav-btn {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 6px 4px;
  font-size: 11px;
  color: #e5e7eb;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bottom-nav-btn span.icon {
  font-size: 15px;
}

.bottom-nav-btn.active {
  background: rgba(248, 250, 252, 0.1);
  color: #facc15;
}

.bottom-nav-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* 灏忓睆涓撻棬鍐嶇揣鍑戜竴鐐?*/
@media (max-width: 360px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .listing-thumb {
    flex: 0 0 44%;
    max-width: 44%;
  }
}

/* ========== 棣栧睆娆㈣繋寮圭獥锛堟杩庡浘鐗?+ 纭鎸夐挳锛?========== */
body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 10% 10%,
      rgba(56, 189, 248, 0.25),
      rgba(15, 23, 42, 0.86) 55%,
      rgba(2, 6, 23, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.welcome-overlay.show {
  display: flex;
}

.welcome-card {
  width: min(420px, 92vw);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.welcome-media {
  width: 100%;
  height: auto;
  /* 楂樺害璺熼殢鍐呭 */
  background: linear-gradient(135deg,
      rgba(56, 189, 248, 0.25),
      rgba(249, 115, 22, 0.18));
  display: block;
  /* 涓嶉渶瑕?flex 灞呬腑浜嗭紝閬垮厤骞叉壈 */
  position: relative;
}

.welcome-media img {
  width: 100%;
  height: auto;
  /* 鍏抽敭锛氶珮搴﹁嚜閫傚簲 */
  object-fit: contain;
  /* 鍏抽敭锛氬畬鏁存樉绀猴紝涓嶈鍓?*/
  display: block;
}

.welcome-media .welcome-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(248, 250, 252, 0.92);
  font-weight: 700;
  min-height: 220px;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.welcome-media .welcome-fallback .icon {
  font-size: 34px;
}

.welcome-body {
  padding: 12px 14px 14px;
  color: rgba(248, 250, 252, 0.92);
}

.welcome-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.welcome-desc {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  margin-bottom: 12px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
}

.welcome-confirm {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.35);
  transition: var(--transition-fast);
}

.welcome-confirm:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.45);
}

.welcome-hint {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(203, 213, 225, 0.8);
  text-align: center;
}

/* ========== 鎴戣兘婊¤冻/鎴戣兘鎻愪緵 寮圭獥锛堜慨澶嶏細鍥哄畾瑕嗙洊 + 鍙粴鍔級 ========== */
.offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 20% 10%,
      rgba(56, 189, 248, .18),
      rgba(15, 23, 42, .72) 55%,
      rgba(2, 6, 23, .86) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offer-overlay.show {
  display: flex;
}

/* 寮圭獥鍐呭鍖猴細闀垮唴瀹瑰彲婊氬姩锛屼笉浼氣€滅湅寰楄浣嗘嫋涓嶅姩鈥?*/
.offer-card {
  max-height: min(78vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.offer-card-shell {
  width: min(520px, 94vw);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  padding: 14px;
  position: relative;
}

.offer-close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.offer-dialog-title {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}

.offer-demand-brief {
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.offer-form-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.offer-field-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.offer-reserve-fields,
.offer-note-wrap {
  grid-column: 1 / -1;
}

.offer-reserve-fields {
  display: none;
}

.offer-reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.offer-note {
  width: 100%;
  min-height: 84px;
  resize: none;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

.offer-submit-btn {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.offer-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.page-me {
  display: none;
}

.me-card {
  margin: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.me-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.me-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.me-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.me-refresh-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.me-section {
  margin-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 12px;
}

.me-section-compact {
  margin-top: 14px;
}

.me-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
}

.me-house-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.me-house-empty {
  display: none;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 0;
}

.me-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.me-action-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.me-action-btn-publish {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #111827;
}

.me-action-btn-home {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

/* ========== 鎴挎簮璇︽儏寮圭獥锛堢偣鍑诲崱鐗囨墦寮€锛?========== */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at 20% 10%,
      rgba(56, 189, 248, 0.18),
      rgba(15, 23, 42, 0.82) 58%,
      rgba(2, 6, 23, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(10px);
}

.detail-overlay.show {
  display: flex;
}

.detail-card {
  width: min(560px, 95vw);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.55);
  overflow: hidden;
  position: relative;
}

.detail-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
  z-index: 6;
}

.detail-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.detail-media img,
.detail-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
}

.detail-media img {
  cursor: zoom-in;
}

.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.66);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.detail-nav.prev {
  left: 12px;
}

.detail-nav.next {
  right: 12px;
}

.detail-nav[disabled] {
  opacity: .35;
  cursor: default;
}

.detail-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-body {
  padding: 0;
  color: rgba(248, 250, 252, 0.92);
}

.detail-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-tags .pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(226, 232, 240, 0.9);
}

.detail-row {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 6px;
}

.detail-price {
  font-size: 22px;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 0;
}

.detail-desc {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.88);
  white-space: pre-wrap;
}

.detail-meta {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(203, 213, 225, 0.8);
}

@media (max-width: 560px) {
  .search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================
   璇︽儏寮圭獥淇℃伅鍖猴細绱у噾甯冨眬锛堜笉鏀规暣浣撻鏍硷紝鍙皟缁撴瀯锛?   - 绗簩琛岋細浣嶇疆/浠锋牸/缂栧彿 鍚屼竴琛?   - 绗笁琛岋細璇︽儏浠嬬粛
   - 鍙充笅瑙掞細棰勭害鐪嬫埧鎸夐挳
   ========================= */
.detail-info {
  position: relative;
  padding: 14px 14px 72px;
  min-height: 190px;
}

/* 绗簩琛岋細涓€琛屼笁娈典俊鎭紝绌洪棿涓嶅鑷姩鎹㈣ */
.detail-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  margin-bottom: 8px;
}

/* 杩欎笁涓?span 鍙槸鈥滃崰浣嶅鍣ㄢ€濓紝涓嶅己琛屾敼浣犲師鏉ョ殑瀛椾綋/棰滆壊 */
.detail-loc,
.detail-price,
.detail-code {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: normal;
}

/* 浠锋牸鍙◢寰獊鍑轰竴鐐癸紙濡傛灉浣犲師鏉ュ凡缁忔湁 price-strong锛屽氨鍒犳帀杩欐锛?*/
.detail-price {
  font-weight: 700;
}

/* 鍙充笅瑙掓寜閽細涓嶆敼鍙樻暣浣撻鏍硷紝鍙仛鍦嗚涓庤交寰€忔槑鎰?*/
.detail-reserve-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, .42);
  background: linear-gradient(135deg, #f59e0b, #facc15);
  box-shadow: 0 12px 28px rgba(250, 204, 21, .24);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  z-index: 6;
}

.detail-reserve-btn:active {
  transform: scale(.98);
}

/* 搴曢儴鏍忥細灞呬腑 + 涓庨椤靛悓瀹斤紙浣跨敤 --page-max锛屾湭瀹氫箟鍒欓粯璁?480px锛?*/
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);

  /* 涓庨〉闈㈠悓瀹斤細min(椤甸潰鏈€澶у搴? 瑙嗗彛瀹藉害-宸﹀彸杈硅窛) */
  width: min(var(--page-max, 480px), calc(100vw - 20px));

  display: flex;
  gap: 10px;
  padding: 10px 12px;

  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;

  z-index: 999;
}

/* 4 涓寜閽瓑鍒?*/
.bottom-nav .nav-item {
  flex: 1;
  height: 48px;

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(173, 231, 190, 0.788);
  color: #2b8139;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.bottom-nav .nav-item .icon {
  font-size: 16px;
  line-height: 1;
}

.bottom-nav .nav-item .label {
  font-size: 11px;
  line-height: 1;
}

/* 婵€娲绘€?*/
.bottom-nav .nav-item.active {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .35);
}

/* 闃叉閬尅椤甸潰鍐呭锛堝惈瀹夊叏鍖猴級 */
body {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.demand-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 10px;
}

.demand-actions .btn {
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
}

.demand-actions .btn-primary {
  border: 1px solid rgba(0, 0, 0, .12);
}

.demand-actions .btn-ghost {
  border: 1px dashed rgba(0, 0, 0, .18);
  background: transparent;
}

/* =========================================================
   Detail modal refresh (override only, logic unchanged)
   ========================================================= */
.detail-overlay {
  padding: clamp(10px, 2.4vw, 18px);
  background: radial-gradient(circle at 18% 8%,
      rgba(251, 191, 36, 0.1),
      rgba(251, 146, 60, 0.14) 35%,
      rgba(120, 53, 15, 0.36) 72%,
      rgba(68, 64, 60, 0.46) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.detail-card {
  width: min(620px, 96vw);
  max-height: min(92vh, 880px);
  border-radius: 20px;
  background: linear-gradient(180deg,
      rgba(255, 251, 235, 0.92),
      rgba(252, 245, 255, 0.9) 32%,
      rgba(254, 243, 199, 0.9) 62%,
      rgba(248, 237, 255, 0.86) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 26px 68px rgba(2, 6, 23, 0.62);
  display: flex;
  flex-direction: column;
}

.detail-close {
  top: 12px;
  right: 12px;
  z-index: 9;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.detail-close:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
}

.detail-media {
  aspect-ratio: 16/9;
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.82),
      rgba(2, 6, 23, 0.95));
}

.detail-media img,
.detail-media video {
  background: rgba(2, 6, 23, 0.36);
}

.detail-nav {
  z-index: 4;
  width: 42px;
  height: 42px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.detail-nav:hover {
  transform: translateY(-50%) translateY(-1px);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.detail-nav[disabled] {
  transform: translateY(-50%);
  box-shadow: none;
}

.detail-count {
  z-index: 3;
  font-weight: 600;
}

.detail-info {
  padding: 14px 14px 12px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.detail-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: #7c2d12;
}

.detail-tags {
  margin: 0;
}

.detail-row {
  margin: 0;
}

.detail-row2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(12px, 2.4vw, 24px);
  row-gap: 8px;
  align-items: center;
}

.detail-loc,
.detail-code {
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  color: #92400e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-loc {
  justify-self: start;
  text-align: left;
}

.detail-code {
  justify-self: end;
  text-align: right;
}

.detail-price {
  margin: 0;
  font-size: 24px;
  color: #b91c1c;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  justify-self: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}

.detail-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: #78350f;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(22vh, 220px);
  overflow: auto;
  padding-right: 2px;
}

.detail-meta {
  margin: 0;
  color: #92400e;
}

.detail-reserve-btn {
  position: static;
  align-self: flex-end;
  margin-top: 2px;
  height: 38px;
  min-width: 108px;
  padding: 0 12px;
  color: #111827;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.detail-reserve-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(250, 204, 21, .3);
  filter: brightness(1.03);
}

.detail-reserve-btn:active {
  transform: translateY(1px) scale(.98);
}

.detail-image-zoom {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 58px;
  background: rgba(2, 6, 23, 0.92);
  cursor: zoom-out;
  gap: 14px;
}

.detail-image-zoom.show {
  display: flex;
}

.detail-image-zoom-img {
  max-width: min(96vw, 1280px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.detail-image-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.detail-image-zoom-nav.prev {
  left: 12px;
}

.detail-image-zoom-nav.next {
  right: 12px;
}

.detail-image-zoom-nav:hover {
  transform: translateY(-50%) translateY(-1px);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

@media (max-width: 700px) {
  .detail-row2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .detail-loc {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .detail-card {
    width: min(620px, 97vw);
    max-height: 94vh;
  }

  .detail-close {
    top: 10px;
    right: 10px;
  }

  .detail-nav {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .detail-row2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-price,
  .detail-code {
    justify-self: start;
    text-align: left;
  }

  .detail-price {
    font-size: 21px;
  }

  .detail-reserve-btn {
    align-self: flex-end;
    min-width: 96px;
    height: 36px;
    padding: 0 10px;
  }

  .detail-image-zoom {
    padding: 16px 44px;
  }

  .detail-image-zoom-nav {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .detail-image-zoom-nav.prev {
    left: 8px;
  }

  .detail-image-zoom-nav.next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-primary::before,
  .btn-secondary::before,
  .listing-title::before,
  .btn-offer::before,
  .gemini-shell {
    animation: none !important;
  }

  .gemini-shell::after {
    display: none;
  }

  .bottom-nav,
  .welcome-overlay,
  .offer-overlay,
  .detail-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
