/* ===== 组件 ===== */

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: calc(var(--sp-3) + env(safe-area-inset-top)) var(--sp-4) var(--sp-3);
  /* 顶部与品牌区同一个紫调，滚动时保持半透明毛玻璃 */
  background: color-mix(in srgb, #DCCDF3 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-3) var(--ease), background var(--dur-3) var(--ease);
}

/* 页面上滚后顶栏转回常态底色 */
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

[data-t="dark"] .topbar {
  background: color-mix(in srgb, #3B2F55 82%, transparent);
}
[data-t="dark"] .topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.topbar.scrolled { border-bottom-color: var(--line); }

/* 在线客服入口 */
.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
  text-decoration: none;
}
.cs-link:active { transform: scale(.96); }
.cs-link[hidden] { display: none !important; }
.cs-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
[data-t="dark"] .cs-link {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  border-color: color-mix(in srgb, var(--brand) 38%, transparent);
}

.topbar-spacer { flex: 1; min-width: 0; }

.topbar-title {
  font-family: var(--font-serif);
  font-size: var(--fs-5);
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease);
}
.icon-btn:active { transform: scale(.94); background: var(--press); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--ink-2); fill: none; stroke-width: 1.6; }

/* 页头水印区 */
.hero {
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
  text-align: center;
  /* 淡紫色背景（顶部略深，向下渐隐） */
  background: linear-gradient(
    180deg,
    #DCCDF3 0%,
    #E6DBF8 46%,
    #F1EBFC 74%,
    transparent 100%
  );
}

[data-t="dark"] .hero {
  background: linear-gradient(
    180deg,
    #3B2F55 0%,
    #2C2440 46%,
    #1E1A2A 74%,
    transparent 100%
  );
}
.hero .wm-m { margin-bottom: var(--sp-5); display: inline-block; }

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-7);
  line-height: var(--lh-7);
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 var(--sp-2);
  color: var(--ink);
}

.hero-sub {
  font-size: var(--fs-2);
  color: var(--ink-3);
  letter-spacing: .04em;
  margin: 0;
}

/* ===== 筛选面板：城市 / 区域 / 特点 ===== */
.filter-panel {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-nav) - 1);
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
}

.filter-slot {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}
.filter-slot + .filter-slot::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--line);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.filter-btn:active { opacity: .65; }

.filter-btn .fi {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.8;
}
.filter-btn .fv {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  letter-spacing: -.01em;
}
.filter-btn .fc {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 2;
  transition: transform var(--dur-2) var(--ease);
}
.filter-btn[aria-expanded="true"] { color: var(--brand); }
.filter-btn[aria-expanded="true"] .fc { transform: rotate(180deg); stroke: var(--brand); }
.filter-btn[aria-expanded="true"] .fv { font-weight: 600; }

/* 已选中态：文字换色加粗 */
.filter-slot.active .fv { color: var(--brand); font-weight: 600; }
.filter-slot.active .fi { stroke: var(--brand); }

/* 金色圆形搜索键 */
.filter-go {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), filter var(--dur-2) var(--ease);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent);
}
.filter-go svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
}
.filter-go:active { transform: scale(.92); filter: brightness(1.08); }

/* ===== 第二层筛选行：全部 / 一级 / 二级 + 清除筛选 ===== */
.subfilter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px 0;
}
.sf-group {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.sf-btn {
  position: relative;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--dur-2) var(--ease);
}
.sf-btn:active { transform: scale(.96); }
.sf-btn.on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.sf-btn.picked {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 46%, transparent);
  color: var(--brand);
  font-weight: 600;
}
.subfilter .filter-clear {
  flex: 0 0 auto;
  padding: 2px 2px;
  font-size: 11px;
}
.sf-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E0533B;
  position: absolute;
  top: 1px;
  right: 3px;
  font-style: normal;
}
.sf-dot[hidden] { display: none; }

/* ===== 多选面板 ===== */
.multi-pop {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 62vh;
}
.multi-pop[hidden] { display: none; }
.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.mp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.mp-clear {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 2px;
}
.mp-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.mp-item {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--dur-2) var(--ease);
}
.mp-item:active { transform: scale(.96); }
.mp-item.on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.mp-item.on::after { content: "✓"; font-size: 10px; }
.mp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.mp-count {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.mp-ok {
  height: 32px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.mp-ok:active { transform: scale(.97); }

.filter-clear-row {
  display: flex;
  justify-content: flex-end;
  padding: 6px 4px 0;
}
.filter-clear {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--ink-3) 40%, transparent);
}
.filter-clear:active { color: var(--brand); }

/* ===== 下拉选项浮层 ===== */
.opt-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sheet) + 1);
  background: var(--mask);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.opt-scrim.show { opacity: 1; }
.opt-scrim[hidden] { display: none; }

.opt-pop {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: calc(var(--z-dialog) + 1);
  width: calc(100% - 32px);
  max-width: 448px;
  max-height: 54vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--sh-3);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.opt-pop.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.opt-pop[hidden] { display: none; }

.opt-list { padding: 6px; }

.opt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-3);
  text-align: left;
  cursor: pointer;
}
.opt-item:active { background: var(--bg-2); }
.opt-item[aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.opt-item .tick {
  margin-left: auto;
  width: 15px;
  height: 15px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2.4;
  opacity: 0;
}
.opt-item[aria-selected="true"] .tick { opacity: 1; }

/* 服务网格：一行三个 */
.list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  padding: 0 var(--sp-4) var(--sp-7);
}

.tile {
  position: relative;
  --g: 168;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-3);
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--gold) 28%, transparent),
    0 3px 12px color-mix(in srgb, var(--gold) 26%, transparent),
    var(--sh-1);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  /* 默认可见：进场用 CSS 动画，JS 不运行也不会白屏 */
  opacity: 1;
  transform: none;
  animation: tile-in var(--dur-4) var(--ease) both;
  -webkit-tap-highlight-color: transparent;
}

.tile:hover {
  border-color: color-mix(in srgb, var(--gold) 100%, #fff 18%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 58%, transparent),
    0 4px 14px color-mix(in srgb, var(--gold) 32%, transparent),
    var(--sh-2);
}

[data-t="dark"] .tile {
  border-color: color-mix(in srgb, var(--gold) 72%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 26%, transparent),
    0 0 14px color-mix(in srgb, var(--gold) 14%, transparent);
}
[data-t="dark"] .tile:hover {
  border-color: var(--gold-soft);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 52%, transparent),
    0 0 20px color-mix(in srgb, var(--gold) 26%, transparent);
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(var(--stagger)); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; }
}
.tile:active { transform: scale(.965); box-shadow: var(--sh-2); }

/* ===== 上部大图区 ===== */
.tile-thumb {
  position: relative;
  aspect-ratio: 1 / 1.31;   /* 高比宽大，参照图四 267×349 */
  overflow: hidden;
}

/* 商家照片：铺满大图区 */
.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-3) var(--ease);
  z-index: 1;
}
.tile:hover .tile-photo { transform: scale(1.04); }
.tile-photo.failed { display: none; }

/* 大字：照片缺失时的兜底，垫在照片下面 */
.tile-glyph {
  position: absolute;
  inset: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 12vw, 50px);
  line-height: 1;
  letter-spacing: .02em;
  user-select: none;
  --g: 168;
  background: linear-gradient(150deg, hsl(var(--g) 44% 93%), hsl(var(--g) 38% 85%));
  color: hsl(var(--g) 42% 32%);
  display: grid;
  place-items: center;
  z-index: 0;
  transition: background var(--dur-3) var(--ease), color var(--dur-3) var(--ease);
}

[data-t="dark"] .tile-glyph {
  background: linear-gradient(150deg, hsl(var(--g) 26% 17%), hsl(var(--g) 22% 12%));
  color: hsl(var(--g) 58% 70%);
  text-shadow: 0 0 22px hsl(var(--g) 60% 50% / .3);
}

.tile-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  backdrop-filter: blur(4px);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 15px;
}

/* 价格：压在图片区右下角，深灰底 + 奶油黄字（参照图三） */
.tile-price {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  padding: 1px 11px 2px;
  min-width: 54px;
  text-align: center;
  border-radius: var(--r-pill);
  background: rgba(38, 36, 33, 0.88);
  color: #F5E6A8;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(20, 18, 14, 0.24);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tile-price small {
  font-size: 8px;
  font-weight: 600;
  opacity: .68;
  margin-left: 1px;
}
[data-t="dark"] .tile-price {
  background: rgba(12, 14, 13, 0.9);
  color: #F7E7A6;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== 下部文字区 ===== */
.tile-body {
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tile-title {
  font-size: var(--fs-1);
  line-height: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -.01em;
}

/* 地址紧贴标题下方 */
/* 地址独占一行 */
.tile-area {
  font-size: 10px;
  line-height: 13px;
  color: var(--ink-3);
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 下一行：编号左对齐，徽章右对齐 */
.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 3px 0 0;
  min-width: 0;
}
/* 编号：左「编号」实底 + 右数字虚线框，参照图二 */
.tile-meta .tile-code {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  height: 16px;
  border-radius: var(--r-pill, 999px);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}
.tile-meta .tile-code b {
  display: flex;
  align-items: center;
  padding: 0 4px 0 6px;
  background: hsl(var(--g) 38% 34%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tile-meta .tile-code i {
  display: flex;
  align-items: center;
  padding: 0 7px 0 4px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .01em;
  color: hsl(var(--g) 42% 32%);
  border: 1px dashed hsl(var(--g) 38% 46%);
  border-left: 0;
  border-radius: 0 var(--r-pill, 999px) var(--r-pill, 999px) 0;
  background: transparent;
}
[data-t="dark"] .tile-meta .tile-code b {
  background: hsl(var(--g) 30% 30%);
}
[data-t="dark"] .tile-meta .tile-code i {
  color: hsl(var(--g) 52% 68%);
  border-color: hsl(var(--g) 34% 42%);
}

/* 邻里认证：圆形徽章（参照红底金边样式） */
.tile-verify {
  height: 16px;
  width: 16px;
  flex-shrink: 0;
  align-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #C9564A 0%, #A6372C 46%, #7E1F16 100%);
  border: 1.5px solid #C9A24E;
  box-shadow:
    0 0 0 .5px rgba(126, 31, 22, .34),
    0 1px 3px rgba(126, 31, 22, .26),
    inset 0 1px 1px rgba(255, 255, 255, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: .95;
  overflow: hidden;
  position: relative;
}
.tile-verify i {
  font-style: normal;
  font-size: 6px;
  line-height: 6px;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(100deg, #F6E6A8 0%, #E8C468 46%, #8FC9A8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
[data-t="dark"] .tile-sub { color: color-mix(in srgb, var(--ink-2) 82%, var(--ink-3)); }

/* ===== 特色项目：每个占 2 格，彩色字 ===== */
.tile-featts {
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 3px 2px;
  align-content: flex-start;
}

/* 每行末项自动补满，避免右侧留空导致"没到头就换行" */
.tile-featts > .feat {
  flex: 1 1 auto;      /* 行内均分撑满，避免右侧空一块才换行 */
  min-width: 0;
}

/* 每个特色占 2 格 = 半宽，两个一行，严格对齐 */
.feat {
  flex: 1 1 auto;      /* 行内均分撑满，避免右侧空一块才换行 */
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 7px;
  line-height: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  padding: 0 2px;
  border-radius: 2px;
  /* 同词同色：每个特色词一个固定色相 */
  color: hsl(var(--c, 168) 58% 26%);
  background: hsl(var(--c, 168) 62% 92%);
}
[data-t="dark"] .feat {
  color: hsl(var(--c, 168) 70% 76%);
  background: hsl(var(--c, 168) 34% 24%);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-1);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  letter-spacing: .02em;
  line-height: 16px;
}

/* 底部标签栏 */

/* 详情抽屉 */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: var(--mask);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}
.sheet-mask[hidden] { display: none; }
.sheet-mask.show { opacity: 1; }

.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  bottom: 0;
  z-index: var(--z-dialog);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-5) var(--r-5) 0 0;
  box-shadow: var(--sh-3);
  transform: translateY(100%);
  transition: transform var(--dur-4) var(--ease);
}
.sheet.show { transform: translateX(-50%) translateY(0); }
.sheet:not(.show) { pointer-events: none; }

.sheet-grip {
  width: 36px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  margin: var(--sp-2) auto var(--sp-1);
  flex-shrink: 0;
}

.sheet-head {
  padding: var(--sp-2) var(--sp-5) var(--sp-3);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: var(--fs-6);
  line-height: var(--lh-6);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
}

.sheet-body {
  padding: var(--sp-4) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-3);
  line-height: 1.65;
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row dt { color: var(--ink-3); flex-shrink: 0; width: 76px; margin: 0; }
.sheet-row dd { margin: 0; flex: 1; color: var(--ink); }

.sheet-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.btn {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: var(--r-3);
  font-size: var(--fs-4);
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:active { background: var(--brand-press); }
.btn-ghost { background: var(--bg-2); color: var(--ink-2); }

/* 吐司 */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-5);
  transform: translate(-50%, 12px);
  z-index: var(--z-toast);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  font-size: var(--fs-2);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  white-space: nowrap;
}
.toast.show { opacity: .94; transform: translate(-50%, 0); }

/* 空态 */
.empty {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-3);
}

/* ===== 手机宽度外壳（桌面居中模拟手机） ===== */
.page-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
}

@media (min-width: 520px) {
  body {
    background: var(--bg-2);
  }
  .page-shell {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent),
                0 8px 40px rgb(0 0 0 / .06);
  }
}

/* 底部导航与抽屉同样限制在手机宽度内 */

.sheet {
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
}
.sheet.show { transform: translateX(-50%) translateY(0); }
