:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --ink: #17211f;
  --ink-2: #45524f;
  --muted: #7d8a86;
  --line: #e6e0d4;
  --brand: #12463f;
  --brand-2: #1c6a5c;
  --brand-soft: #e4efeb;
  --gold: #b8863b;
  --gold-soft: #f5ead3;
  --danger: #b3503f;
  --shadow-sm: 0 1px 2px rgba(23, 33, 31, .05), 0 4px 12px rgba(23, 33, 31, .04);
  --shadow-md: 0 6px 24px rgba(23, 33, 31, .08);
  --shadow-lg: 0 18px 50px rgba(23, 33, 31, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

/* 保证 [hidden] 能覆盖 .modal / .drawer-mask 等自带 display 的元素 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, p { margin: 0; }

button { font: inherit; color: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }

svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.ico { width: 18px; height: 18px; }

.scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* 桌面端筛选条件换行展示，避免隐藏在横向滚动里 */
@media (min-width: 821px) {
  .chips { flex-wrap: wrap; }
  .scroll-x { overflow-x: visible; }
}

/* ------------------------------------------------------------ 顶部栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 224, 212, .8);
}

.topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #e3c48b;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(18, 70, 63, .25);
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-text b { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .4px; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
}

.city-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color .18s, color .18s, box-shadow .18s;
}
.city-trigger:hover { border-color: var(--brand-2); color: var(--brand); box-shadow: var(--shadow-sm); }
.city-trigger .chev { width: 15px; height: 15px; opacity: .6; }
.city-trigger.locating { color: var(--muted); }

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(320px, 40vw);
  height: 38px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(28, 106, 92, .09); }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px;
  display: grid;
  place-items: center;
}
.search-clear svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ 头图 */

.hero {
  background:
    radial-gradient(900px 400px at 88% -10%, rgba(28, 106, 92, .12), transparent 70%),
    linear-gradient(180deg, #fbf9f4, var(--bg));
  border-bottom: 1px solid rgba(230, 224, 212, .7);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.geo-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.geo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  position: relative;
}
.geo-dot.ok { background: #2f9e7f; box-shadow: 0 0 0 4px rgba(47, 158, 127, .14); }
.geo-dot.warn { background: var(--gold); box-shadow: 0 0 0 4px rgba(184, 134, 59, .14); }
.geo-dot.loading { background: var(--muted); animation: pulse 1.2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

#geoText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand-2);
  font-size: 13px;
  padding: 0 0 0 4px;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}
.link-btn:hover { text-decoration: underline; }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 800;
}
.br-mobile { display: none; }

.hero-sub {
  margin-top: 14px;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 15px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--brand); }
.hero-stats span { font-size: 12px; color: var(--muted); }

.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(18, 70, 63, .18)); }

/* ------------------------------------------------------------ 城市条 */

.citybar {
  border-bottom: 1px solid rgba(230, 224, 212, .7);
  background: var(--bg);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.bar-row + .bar-row { border-top: 1px dashed rgba(230, 224, 212, .9); }

.row-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
  flex-shrink: 0;
  width: 56px;
}

.chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.chip {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  transition: all .16s ease;
  flex-shrink: 0;
}
.chip:hover { background: #fff; border-color: var(--line); color: var(--brand); }
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #f3e6c9;
  box-shadow: 0 4px 12px rgba(18, 70, 63, .22);
}
.chip .n { opacity: .6; font-size: 11px; margin-left: 3px; }
.chip.small { padding: 4px 11px; font-size: 12.5px; }

.ghost-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  white-space: nowrap;
  transition: all .16s;
  flex-shrink: 0;
}
.ghost-btn:hover { border-color: var(--brand-2); color: var(--brand); background: #fff; }
.ghost-btn.big { padding: 11px 26px; font-size: 14px; }

.primary-btn {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #f6ecd8;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  transition: all .16s;
}
.primary-btn:hover { background: var(--brand-2); border-color: var(--brand-2); }

/* ------------------------------------------------------------ 筛选 */

.filters {
  position: sticky;
  top: 68px;
  z-index: 30;
  background: rgba(247, 244, 238, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 224, 212, .8);
}

.filter-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
  flex-wrap: wrap;
}

.tools-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.field select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%237d8a86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 6px center / 16px;
  color: var(--ink-2);
  border-radius: 8px;
  padding: 5px 26px 5px 10px;
  font-size: 13px;
  outline: 0;
  cursor: pointer;
}
.field select:focus { border-color: var(--brand-2); }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.switch input {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d9d4c8;
  position: relative;
  transition: background .18s;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch input:checked { background: var(--brand-2); }
.switch input:checked::after { transform: translateX(14px); }

.result-count { font-size: 13px; color: var(--muted); }
.result-count b { color: var(--brand); font-size: 15px; }

/* ------------------------------------------------------------ 列表 */

.main { padding-top: 28px; padding-bottom: 56px; }

.list-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head h2 { font-size: 20px; letter-spacing: -.3px; }
.list-head p { font-size: 13px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(230, 224, 212, .9);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(28, 106, 92, .28);
}
.card:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.card-top { display: flex; gap: 14px; }

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-soft);
  position: relative;
}
.avatar svg { width: 100%; height: 100%; }
.avatar .online-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfcbc1;
  border: 2px solid var(--surface);
}
.avatar .online-dot.on { background: #2f9e7f; }

.card-id { min-width: 0; flex: 1; }
.card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.card-name .verified {
  width: 15px;
  height: 15px;
  color: var(--brand-2);
  flex-shrink: 0;
}
.card-title {
  font-size: 12.5px;
  color: var(--brand-2);
  background: var(--brand-soft);
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  margin-top: 5px;
}
.card-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-sub .sep { width: 3px; height: 3px; border-radius: 50%; background: #cfcabf; }

.card-rate {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.card-rate .star { color: var(--gold); width: 14px; height: 14px; }
.card-rate b { color: var(--ink); }
.card-rate span { color: var(--muted); font-size: 12px; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 24px; }
.tag {
  font-size: 11.5px;
  color: var(--ink-2);
  background: #f4f0e6;
  border: 1px solid #ece5d6;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag.gold { color: #8a6427; background: var(--gold-soft); border-color: #ecd9b4; }

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.price b { font-size: 20px; font-weight: 700; color: var(--brand); letter-spacing: -.5px; }
.price small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.price .unit { font-size: 12px; color: var(--muted); }
.card-cta {
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  transition: all .16s;
}
.card:hover .card-cta { background: var(--brand); color: #f6ecd8; }

.badge-offline {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  color: var(--muted);
  background: #f1eee6;
  border-radius: 999px;
  padding: 2px 9px;
}

/* 骨架屏 */
.skeleton .sk {
  background: linear-gradient(90deg, #efece4 25%, #f7f4ee 37%, #efece4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton .sk-avatar { width: 74px; height: 74px; border-radius: 20px; }
.skeleton .sk-line { height: 12px; margin-bottom: 9px; }
.skeleton .sk-line.w60 { width: 60%; }
.skeleton .sk-line.w40 { width: 40%; }
.skeleton .sk-foot { height: 34px; margin-top: 16px; }

/* 空状态 */
.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}
.empty svg { width: 64px; height: 64px; margin: 0 auto 14px; }
.empty h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 13.5px; margin-bottom: 18px; }

.load-more-wrap { display: flex; justify-content: center; align-items: center; padding: 34px 0 0; }
.end-tip { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ 详情抽屉 */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 22, .42);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--surface);
  z-index: 61;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.3, .8, .3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }

.drawer-close, .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background .16s;
}
.drawer-close:hover, .modal-close:hover { background: #fff; color: var(--ink); }
.drawer-close svg, .modal-close svg { width: 18px; height: 18px; }

.drawer-body { overflow-y: auto; padding-bottom: 96px; }

.dp-hero {
  padding: 28px 24px 20px;
  background: linear-gradient(160deg, #eef5f1, #f8f5ee);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
}
.dp-hero .avatar { width: 88px; height: 88px; border-radius: 24px; }
.dp-hero h3 { font-size: 22px; letter-spacing: -.4px; }
.dp-hero .dp-title { font-size: 13px; color: var(--brand-2); margin-top: 3px; }
.dp-hero .dp-loc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.dp-section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dp-section h4 {
  font-size: 14px;
  letter-spacing: .3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-section h4::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--gold);
}

.dp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dp-fact {
  background: #f8f5ee;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.dp-fact span { display: block; font-size: 11.5px; color: var(--muted); }
.dp-fact b { font-size: 15px; }
.dp-fact b em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }

.dp-intro { font-size: 13.5px; color: var(--ink-2); }

.dp-menu { display: flex; flex-direction: column; gap: 8px; }
.dp-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: #fff;
}
.dp-menu-item .mi-name { font-size: 13.5px; font-weight: 600; }
.dp-menu-item .mi-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dp-menu-item .mi-price { font-size: 15px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.dp-menu-item .mi-price small { font-size: 11px; font-weight: 400; color: var(--muted); }

.dp-reviews { display: flex; flex-direction: column; gap: 12px; }
.dp-review { border-bottom: 1px dashed var(--line); padding-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.dp-review:last-child { border-bottom: 0; padding-bottom: 0; }
.dp-review .rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dp-review .rv-user { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.dp-review .rv-stars { color: var(--gold); font-size: 11.5px; letter-spacing: 1px; }
.dp-review .rv-date { font-size: 11.5px; color: var(--muted); margin-left: auto; }

.dp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dp-related .rel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s, transform .16s;
}
.dp-related .rel:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.dp-related .rel .avatar { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 6px; }
.dp-related .rel b { font-size: 12.5px; display: block; }
.dp-related .rel span { font-size: 11px; color: var(--muted); }

.dp-actions {
  position: fixed;
  bottom: 0;
  right: 0;
  width: min(480px, 100%);
  padding: 14px 20px;
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 62;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.3, .8, .3, 1);
}
.drawer.open .dp-actions { transform: translateX(0); }
.dp-price { flex: 1; }
.dp-price b { font-size: 20px; color: var(--brand); }
.dp-price span { font-size: 12px; color: var(--muted); display: block; }
.dp-actions .primary-btn { padding: 11px 26px; }
.dp-actions .ghost-btn { padding: 10px 16px; }

/* ------------------------------------------------------------ 城市弹层 */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 22, .42);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  z-index: 71;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(680px, calc(100% - 32px));
  max-height: min(72vh, 640px);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity .22s, transform .22s;
}
.modal.show { opacity: 1; transform: translate(-50%, -50%); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}
.modal-head h3 { font-size: 17px; }
.modal-head .modal-close { position: static; }

.modal-search { padding: 0 20px 12px; }
.modal-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: 0;
  background: #fbf9f4;
}
.modal-search input:focus { border-color: var(--brand-2); }

.modal-body { overflow-y: auto; padding: 4px 20px 20px; }

.city-group { margin-bottom: 6px; }
.city-group h5 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin: 12px 0 8px;
  letter-spacing: .6px;
}
.city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all .15s;
}
.city-item:hover { border-color: var(--brand-2); color: var(--brand); }
.city-item.active { background: var(--brand); border-color: var(--brand); color: #f6ecd8; }
.city-item .n { font-size: 11px; opacity: .55; margin-left: 4px; }

/* ------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(23, 33, 31, .92);
  color: #f4efe3;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all .24s;
  z-index: 90;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ 页脚 */

.footer {
  border-top: 1px solid var(--line);
  background: #f2eee6;
  padding: 34px 0 18px;
  margin-top: 20px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand b { font-size: 16px; letter-spacing: .5px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin-top: 6px; max-width: 480px; }
.footer-brand .footer-phone { color: var(--brand-2); font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.footer-links span { cursor: pointer; }
.footer-links span:hover { color: var(--brand); }
.copyright { font-size: 12px; color: #9aa29e; margin-top: 22px; }

/* ------------------------------------------------------------ 响应式 */

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
}

@media (max-width: 820px) {
  .hero-art { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 30px; }
  .hero h1 { font-size: 30px; }
  .br-mobile { display: block; }
  .topbar-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .brand-text small { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .search { order: 2; width: 100%; flex: 1; }
  .city-trigger { order: 1; }
  .filters { position: static; }
  .row-label { width: 52px; font-size: 11.5px; }
  .bar-row { gap: 10px; }
  .hero-stats { gap: 26px; }
  .hero-stats b { font-size: 20px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 13.5px; }
  .list-head h2 { font-size: 18px; }
  .card { padding: 16px; }
  .avatar { width: 66px; height: 66px; border-radius: 18px; }
  .filter-tools { gap: 10px; padding-bottom: 10px; }
  .tools-left { gap: 10px; }
  .result-count { width: 100%; }

  .drawer {
    top: auto;
    height: 92vh;
    width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  .drawer.open { transform: translateY(0); }
  .dp-actions {
    width: 100%;
    transform: translateY(100%);
  }
  .drawer.open .dp-actions { transform: translateY(0); }
  .dp-hero { padding: 22px 18px 16px; }
  .dp-section { padding: 18px; }
  .dp-related { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: column; gap: 18px; }
}
