* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #e9edf3;
  color: #303133;
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.app {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
}
.app:has(.chat-page),
.app:has(.home) {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.app:has(.auth-page) { min-height: 100dvh; background: #16141f; }
.page { flex: 1; padding-bottom: 16px; }
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #14121c;
  background-image:
    radial-gradient(90% 42% at 50% 0%, rgba(140, 112, 255, .48), transparent 62%),
    linear-gradient(180deg, #1b1730 0%, #2c2358 46%, #14121c 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.auth-hero { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; padding: 56px 28px 32px; color: #fff; }
.auth-hero em { font-style: normal; letter-spacing: .32em; font-size: 12px; color: rgba(255, 255, 255, .62); }
.auth-hero h1 { margin: 14px 0 0; font-size: 36px; font-weight: 650; letter-spacing: .02em; }
.auth-hero p { max-width: 280px; margin: 10px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
.auth-card { width: 100%; margin: 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -18px 40px rgba(12, 8, 28, .18); }
.auth-tabs { display: flex; margin: 0 0 18px; padding: 4px; border-radius: 14px; background: #f3f1f8; }
.auth-tabs button { flex: 1; height: 40px; border: none; border-radius: 11px; background: transparent; color: #606266; }
.auth-tabs button.on { background: #fff; color: #5b4bdb; font-weight: 650; box-shadow: 0 4px 14px rgba(91, 75, 219, .12); }
.auth-card label { display: block; margin-bottom: 14px; color: #606266; font-size: 13px; }
.auth-card label em, .field span em { margin-left: 6px; color: #c0c4cc; font-style: normal; font-size: 12px; }
.auth-card input { width: 100%; height: 50px; margin-top: 8px; padding: 0 16px; border: none; border-radius: 14px; outline: none; background: #f6f5fa; color: #303133; caret-color: #5b4bdb; }
.auth-card .primary { height: 50px; margin-top: 8px; border-radius: 14px; background: linear-gradient(135deg, #6d5ef5, #8a6bff); font-size: 16px; font-weight: 650; box-shadow: 0 10px 22px rgba(109, 94, 245, .28); }
.auth-home { display: block; width: 100%; height: 40px; margin-top: 6px; border: none; background: transparent; color: #909399; }
.gate-mask { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.gate-dismiss { position: absolute; inset: 0; border: none; background: rgba(16, 14, 28, .48); }
.gate-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  animation: gate-in .22s ease;
}
.gate-card i { display: block; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 14px; background: #f3f0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4bdb' stroke-width='1.8'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.gate-card h3 { margin: 0; text-align: center; font-size: 18px; }
.gate-card p { margin: 8px 0 0; color: #909399; text-align: center; font-size: 13px; line-height: 1.6; }
.gate-card .primary { height: 48px; margin-top: 18px; border-radius: 14px; background: linear-gradient(135deg, #6d5ef5, #8a6bff); }
.gate-stay { width: 100%; height: 40px; margin-top: 4px; border: none; background: transparent; color: #909399; }
@keyframes gate-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.gallery-more, .review-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; border: none; background: #f6f4fb; color: #5b4bdb; }
.gallery-more { flex: none; width: 42%; aspect-ratio: 3 / 4; border-radius: 12px; }
.gallery-more b, .review-lock b { font-size: 14px; }
.gallery-more span, .review-lock span { margin-top: 4px; color: #909399; font-size: 12px; }
.review-lock { width: 100%; min-height: 72px; margin-top: 12px; border-radius: 12px; }
.info-lock { width: 100%; border: none; text-align: left; cursor: pointer; }
.info-lock b { margin-left: auto; color: #5b4bdb; font-weight: 600; }
.account-bar { display: flex; align-items: center; justify-content: space-between; margin: 16px; padding: 14px 16px; border-radius: 12px; background: #fff; }
.account-bar button { border: none; background: transparent; color: #409eff; }
.home {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home .top { flex: none; }
.home .top p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .filter-sheet {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.top {
  padding: 22px 16px 30px;
  color: #fff;
  background: linear-gradient(160deg, #2f78d6, #409eff 60%, #79bbff);
}
.top h1 { margin: 0; font-size: 22px; }
.top p { margin: 6px 0 14px; color: rgba(255, 255, 255, .92); font-size: 13px; }
.search { display: flex; overflow: hidden; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(20, 70, 140, .12); }
.search input { flex: 1; height: 40px; border: none; padding: 0 16px; outline: none; color: #303133; background: #fff; caret-color: #303133; }
.search input::placeholder { color: #a8abb2; }
.search button { border: none; background: transparent; color: #409eff; padding: 0 16px; font-weight: 600; }
.notice { margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px; background: #fff7e8; color: #b88230; font-size: 12px; }
.notice { position: relative; z-index: 2; }
.filter-sheet {
  position: relative;
  z-index: 8;
  margin-top: -14px;
  background: #fff;
  border-radius: 18px 18px 0 0;
}
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 46px; }
.filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #303133;
}
.filter strong {
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter i {
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #c0c4cc;
  transition: transform .18s;
}
.filter.open i { transform: rotate(180deg); }
.filter.on { color: #1677ff; }
.filter.on strong { font-weight: 600; }
.filter.on i { border-top-color: #1677ff; }
.drop {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  z-index: 2;
  max-height: min(360px, 52vh);
  overflow: auto;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
  animation: drop-in .18s ease;
}
.drop-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px 6px;
  background: #fff;
}
.drop-search input {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  outline: none;
  background: #f2f4f7;
  color: #303133;
  caret-color: #303133;
  -webkit-appearance: none;
  appearance: none;
}
.drop-search input::placeholder { color: #a8abb2; }
.drop-empty { margin: 0; padding: 22px 16px 26px; text-align: center; color: #909399; font-size: 14px; }
.drop-option[hidden], .drop-empty[hidden] { display: none !important; }
.drop-option {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: none;
  background: transparent;
  color: #303133;
  font-size: 15px;
  text-align: left;
}
.drop-option.sub { padding-left: 36px; color: #606266; font-size: 14px; }
.drop-option em { margin-right: 6px; color: #c0c4cc; font-style: normal; font-size: 12px; }
.drop-option .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.drop-option.on { color: #1677ff; font-weight: 600; }
.drop-option.on::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-left: auto;
  border-right: 2px solid #1677ff;
  border-bottom: 2px solid #1677ff;
  transform: rotate(40deg) translateY(-1px);
}
.drop-mask { position: fixed; inset: 0; z-index: 5; border: none; background: rgba(15, 23, 42, .45); }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.field input, .field textarea, .field select {
  width: 100%;
  height: 36px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
}
.mine-home { padding: 0 16px 20px; }
.mine-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 12px;
  padding: 22px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1677ff, #69b1ff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 119, 255, .22);
}
.mine-hero .mine-avatar, .mine-hero .mine-letter { width: 68px; height: 68px; border: 2px solid rgba(255, 255, 255, .9); }
.mine-hero .mine-letter { background: rgba(255, 255, 255, .22); font-size: 28px; }
.mine-avatar, .mine-letter { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.mine-avatar { object-fit: cover; display: block; }
.mine-letter { display: flex; align-items: center; justify-content: center; background: #1677ff; color: #fff; font-size: 26px; font-weight: 600; }
.mine-id { flex: 1; min-width: 0; }
.mine-id strong, .mine-id span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-hero .mine-id strong { font-size: 20px; font-weight: 650; }
.mine-hero .mine-id span { margin-top: 4px; color: rgba(255, 255, 255, .86); font-size: 13px; }
.mine-badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-style: normal; font-size: 12px; white-space: nowrap; }
.mine-group { margin-bottom: 12px; border-radius: 14px; background: #fff; overflow: hidden; }
.mine-row, .mine-link { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 16px; border: none; border-bottom: 1px solid #f2f3f5; background: #fff; text-align: left; }
.mine-group > :last-child { border-bottom: none; }
.mine-row span, .mine-link span { color: #303133; font-size: 15px; }
.mine-row b { margin-left: auto; color: #909399; font-weight: 400; font-size: 14px; }
.mine-link i { width: 8px; height: 8px; margin-left: auto; border-top: 1.5px solid #c0c4cc; border-right: 1.5px solid #c0c4cc; transform: rotate(45deg); }
.mine-link b { margin-left: auto; color: #909399; font-weight: 400; font-size: 14px; }
.mine-link b + i { margin-left: 8px; }
button.mine-row { width: 100%; cursor: pointer; }
button.mine-go i { width: 8px; height: 8px; margin-left: 8px; border-top: 1.5px solid #c0c4cc; border-right: 1.5px solid #c0c4cc; transform: rotate(45deg); }
.wallet-hero { margin: 16px; padding: 22px 18px; border-radius: 16px; background: linear-gradient(135deg, #1677ff, #69b1ff); color: #fff; }
.wallet-hero span { font-size: 13px; opacity: .86; }
.wallet-hero strong { display: block; margin-top: 6px; font-size: 32px; font-weight: 650; letter-spacing: .5px; }
.wallet-pending { margin: 0 16px 12px; padding: 16px; border-radius: 14px; background: #fff7e8; color: #8a5a12; }
.wallet-pending strong, .wallet-pending p { display: block; margin: 0; }
.wallet-pending p { margin-top: 6px; color: #b88230; font-size: 13px; }
.wallet-pending .primary, .wallet-service { margin-top: 14px; }
.wallet-service { display: block; width: calc(100% - 32px); margin: 0 16px 12px; height: 42px; border: none; border-radius: 8px; background: #fff; color: #1677ff; }
.wallet-logs { margin: 0 16px; }
.order-mask { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, .45); }
.order-sheet { width: min(480px, 100%); padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; }
.order-sheet h3 { margin: 0; text-align: center; font-size: 17px; }
.order-line { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: #909399; font-size: 14px; }
.order-line b { color: #303133; font-weight: 600; }
.order-price { color: #f56c6c; font-size: 20px; }
.order-pay { margin-top: 16px; }
.order-pay label { display: block; color: #606266; font-size: 13px; }
.order-pay input { width: 100%; height: 42px; margin-top: 8px; padding: 0 12px; border: none; border-radius: 10px; outline: none; background: #f5f7fb; color: #303133; caret-color: #303133; }
.order-pay .primary, .order-lack .primary { margin-top: 14px; }
.order-cancel { width: 100%; height: 40px; margin-top: 8px; border: none; background: transparent; color: #909399; }
.order-lack { margin-top: 16px; padding: 14px; border-radius: 12px; background: #fff7e8; color: #8a5a12; text-align: center; }
.order-lack strong, .order-lack p { display: block; margin: 0; }
.order-lack p { margin-top: 6px; color: #b88230; font-size: 13px; }
.order-list { padding: 12px 16px 20px; }
.order-card { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; width: 100%; margin-bottom: 10px; padding: 14px; border: none; border-radius: 14px; background: #fff; text-align: left; }
.order-card span { display: flex; flex-direction: column; min-width: 0; }
.order-card strong { font-size: 16px; }
.order-card em { margin-top: 4px; color: #909399; font-style: normal; font-size: 12px; }
.order-card i { grid-column: 1; color: #303133; font-style: normal; font-weight: 600; }
.order-status { grid-row: 1; grid-column: 2; font-weight: 600; font-size: 13px; }
.order-status.serving { color: #e6a23c; }
.order-status.done { color: #67c23a; }
.order-status.refunded { color: #909399; }
.order-state { margin: 12px 16px; padding: 18px; border-radius: 14px; background: #fff; text-align: center; font-size: 20px; font-weight: 650; }
.order-state.serving { color: #e6a23c; }
.order-state.done { color: #67c23a; }
.order-state.refunded { color: #909399; }
.order-ask { display: block; width: calc(100% - 32px); margin: 16px auto 0; }
.mine-logout { width: 100%; height: 48px; margin-top: 4px; border: none; border-radius: 14px; background: #fff; color: #f56c6c; font-size: 15px; }
.mine-edit-face { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.mine-edit-face .mine-avatar, .mine-edit-face .mine-letter { width: 84px; height: 84px; }
.mine-edit-face .mine-letter { font-size: 32px; }
.mine-edit-face em { color: #909399; font-style: normal; font-size: 12px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.order-btn, .ask-service { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 58px; margin: 0; border: none; border-radius: 14px; }
.order-btn { background: #7b61ff; color: #fff; box-shadow: 0 8px 18px rgba(123, 97, 255, .22); }
.order-btn b, .ask-service b { font-size: 16px; line-height: 1.2; }
.order-btn span { margin-top: 2px; color: rgba(255, 255, 255, .82); font-size: 12px; }
.ask-service { background: #fff; color: #7b61ff; box-shadow: 0 6px 18px rgba(123, 97, 255, .08); }
.ask-service span { margin-top: 2px; color: #909399; font-size: 12px; }
.reviews { margin-top: 16px; padding: 16px; border-radius: 16px; background: #fff; }
.reviews h3 { margin: 0; font-size: 16px; }
.review-form textarea { width: 100%; min-height: 84px; margin-top: 12px; padding: 10px 12px; border: none; border-radius: 12px; resize: none; outline: none; color: #303133; background: #f7f8fa; caret-color: #303133; }
.review-form textarea::placeholder { color: #a8abb2; }
.review-form button { width: 100%; height: 40px; margin-top: 10px; border: none; border-radius: 10px; background: #7b61ff; color: #fff; }
.review-tip, .review-empty { margin: 10px 0 0; color: #909399; font-size: 12px; text-align: center; }
.review-item { padding: 12px 0; border-top: 1px solid #f0f2f5; }
.review-item:first-of-type { margin-top: 6px; }
.review-item strong { font-size: 14px; }
.review-item time { margin-left: 8px; color: #c0c4cc; font-size: 12px; }
.review-item p { margin: 6px 0 0; color: #303133; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.count-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 16px 6px;
  color: #909399;
  font-size: 12px;
}
.text-btn { border: none; background: transparent; color: #409eff; padding: 0; font-weight: 600; }
.card-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pull {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  overflow: hidden;
  color: #909399;
  font-size: 12px;
}
.pull i {
  width: 14px;
  height: 14px;
  border: 2px solid #e4e7ed;
  border-top-color: #409eff;
  border-radius: 50%;
  opacity: 0;
}
.pull.dragging i, .pull.busy i { opacity: 1; }
.pull.busy i { animation: pull-spin .7s linear infinite; }
@keyframes pull-spin { to { transform: rotate(360deg); } }
.feed-tip { margin: 0; padding: 8px 0 18px; color: #c0c4cc; font-size: 12px; text-align: center; }
.list { padding: 8px 12px 0; }
.waterfall { display: flex; align-items: flex-start; gap: 10px; }
.waterfall .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(31, 45, 61, .06);
}
.card .photo { position: relative; aspect-ratio: 1; background: #eef2f6; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 8px 10px 10px; }
.card h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: #eef2f6; }
.hero h2 { margin: 0; font-size: 16px; }
.row { display: flex; align-items: center; gap: 6px; }
.lv { padding: 1px 8px; border-radius: 999px; color: #fff; font-size: 12px; font-style: normal; }
.card .lv { position: absolute; top: 8px; right: 8px; }
.meta { display: block; margin-top: 2px; color: #909399; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-flex; align-items: center; height: 20px; margin: 6px 4px 0 0; padding: 0 6px; border-radius: 3px; color: #fff; font-size: 12px; }
.pin { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: #409eff; color: #fff; font-size: 11px; }
.empty, .fail { padding: 48px 20px; color: #909399; text-align: center; }
.subbar, .detail-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #ebeef5;
}
.subbar h1, .detail-top h1 { flex: 1; margin: 0; font-size: 16px; text-align: center; }
.back, .tabbar button { border: none; background: transparent; }
.back { width: 48px; height: 36px; color: #409eff; }
.hero { display: flex; gap: 14px; margin: 16px; padding: 16px; border-radius: 12px; background: #fff; }
.hero img { width: 76px; height: 76px; }
.block { margin: 0 16px 12px; padding: 14px; border-radius: 12px; background: #fff; }
.block h3 { margin: 0 0 8px; font-size: 14px; }
.block p { margin: 0; color: #606266; }
.stat-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px 12px; }
.stat-box div { padding: 12px; border-radius: 12px; background: #fff; }
.stat-box span { color: #909399; font-size: 12px; }
.stat-box strong { display: block; margin-top: 4px; font-size: 20px; }
.form { margin: 16px; padding: 16px; border-radius: 12px; background: #fff; }
.form h2 { margin: 0 0 14px; font-size: 16px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; color: #606266; font-size: 13px; }
.field textarea { height: 96px; padding: 8px; resize: vertical; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #409eff;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}
.service-card { margin-top: 16px; }
.service-card strong { display: block; margin: 4px 0 8px; font-size: 24px; letter-spacing: .5px; }
.service-card .primary { margin-top: 16px; }
.success { padding: 72px 24px; text-align: center; }
.success h2 { margin-bottom: 8px; }
.success p { color: #909399; }
.phone { margin-top: 16px; color: #909399; font-size: 13px; }
.detail-page {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 6px 18px 22px;
  background: #f4f2fa;
}
.detail-tabs { display: flex; justify-content: space-around; padding: 10px 0 6px; }
.detail-tabs button {
  position: relative;
  border: none;
  background: transparent;
  color: #909399;
  font-size: 16px;
  padding: 8px 6px 14px;
}
.detail-tabs button.on { color: #7b61ff; font-weight: 600; }
.detail-tabs button.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #7b61ff;
  transform: translateX(-50%);
}
.sheet { margin-top: 8px; }
.detail-name { margin: 4px 2px 12px; font-size: 22px; font-weight: 600; }
.intro-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #111;
}
.intro-card span { color: rgba(255, 255, 255, .62); font-size: 13px; font-weight: 600; }
.intro-card p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-main { flex: 1; }
.detail-foot {
  position: sticky;
  bottom: 0;
  padding: 12px 0 18px;
  background: linear-gradient(180deg, rgba(244, 242, 250, 0), #f4f2fa 30%);
}
.portrait {
  overflow: hidden;
  border-radius: 16px;
  background: #221f2b;
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - 210px);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.blank, .place-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #909399;
}
.portrait.blank p, .place-sheet p { margin: 8px 0 0; }
.place-sheet {
  min-height: 280px;
  border-radius: 16px;
  background: #fff;
}
.place-sheet h2 { margin: 0; color: #303133; font-size: 22px; }
.gallery-wrap { margin-top: 12px; }
.gallery-title { margin-bottom: 8px; color: #909399; font-size: 13px; }
.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar, .viewer-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: none;
  width: 74%;
  padding: 0;
  border: none;
  background: transparent;
  scroll-snap-align: center;
}
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: #eef2f6; display: block; }
.viewer { position: fixed; inset: 0; z-index: 40; background: #000; }
.viewer-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.viewer-slide {
  flex: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
}
.viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 22px;
}
.viewer-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}
body.viewer-open { overflow: hidden; }
.detail-page.is-video { height: 100vh; height: 100dvh; overflow: hidden; }
.detail-page.is-video .detail-main { overflow: hidden; }
.feed-box { position: relative; }
.feed {
  height: calc(100vh - 154px);
  height: calc(100dvh - 154px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 16px;
  background: #000;
  -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { display: none; }
.feed-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
.feed-item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.feed-hit { position: absolute; inset: 0; border: none; background: transparent; }
.feed-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 26px;
  font-style: normal;
  line-height: 64px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.feed-play.show { opacity: 1; }
.feed-index {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.place-map { height: min(420px, calc(100vh - 220px)); border-radius: 16px; }
.place-caption { margin: 10px 2px 0; color: #303133; font-size: 14px; }
.place-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50% 50% 50% 4px;
  background: #7b61ff;
  transform: rotate(-45deg);
}
.info-row, .info-block {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
}
.info-row span, .info-block span { flex: none; width: 42px; color: #909399; }
.info-row b { font-weight: 600; }
.info-block { display: block; }
.info-block p { margin: 6px 0 0; color: #606266; }
.detail-back {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #7b61ff, #9a6bff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.to-top {
  position: fixed;
  z-index: 7;
  right: max(16px, calc(50% - 224px));
  bottom: calc(72px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #303133;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
body:has(.drop-mask) .to-top { opacity: 0; pointer-events: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex: none;
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #ebeef5;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  color: #909399;
  font-size: 11px;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: #409eff; font-weight: 600; }
.chat-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #eef1f6;
}
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }
.chat-empty { padding: 36px 16px; color: #909399; text-align: center; }
.bubble { display: flex; margin: 8px 0; }
.bubble > div { max-width: 78%; }
.bubble .box { padding: 8px 10px; border-radius: 12px; background: #fff; word-break: break-word; }
.bubble .box p { margin: 0; white-space: pre-wrap; }
.bubble.mine { justify-content: flex-end; }
.bubble.mine .box { background: #409eff; color: #fff; }
.bubble time { display: block; margin-top: 4px; color: #c0c4cc; font-size: 11px; }
.bubble.mine time { text-align: right; }
.bubble img, .bubble video { display: block; width: min(220px, 70vw); border-radius: 8px; background: #000; }
.bubble audio { display: block; width: min(220px, 70vw); }
.bubble em { display: block; margin-top: 4px; color: #909399; font-style: normal; font-size: 12px; }
.bubble.mine em { color: rgba(255, 255, 255, .85); }
.voice-hint { margin: 0; padding: 6px 12px; color: #f56c6c; text-align: center; background: #fff; font-size: 12px; }
.voice-hint[hidden] { display: none; }
.chat-bar { display: flex; flex: none; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; background: #fff; border-top: 1px solid #ebeef5; }
.chat-compose { display: flex; align-items: center; gap: 4px; }
.chat-bar input[name="text"] { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 18px; outline: none; }
.chat-bar button { flex: none; height: 36px; padding: 0 6px; border: none; background: transparent; color: #606266; }
.chat-bar button[type="submit"] { color: #409eff; font-weight: 600; }
.chat-bar button.on { color: #f56c6c; font-weight: 600; }
.bubble { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.quote { display: block; width: 100%; margin: 0 0 6px; padding: 6px 8px; border: none; border-left: 3px solid #1677ff; border-radius: 6px; background: #e8edf5; color: #303133; text-align: left; }
.quote b, .quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote b { color: #1677ff; font-size: 12px; font-weight: 600; }
.quote span { margin-top: 1px; color: #303133; font-size: 12px; }
.bubble.mine .quote { border-left-color: #fff; background: rgba(0, 0, 0, .18); }
.bubble.mine .quote b, .bubble.mine .quote span { color: #fff; }
.bubble.flash .box { animation: quote-flash .9s ease; }
@keyframes quote-flash {
  30% { box-shadow: 0 0 0 3px #409eff; }
}
.quote-menu { position: fixed; z-index: 50; height: 36px; padding: 0 14px; border: none; border-radius: 8px; background: #303133; color: #fff; transform: translate(-50%, -130%); }
.quote-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-left: 3px solid #1677ff; border-radius: 6px; background: #e8f3ff; }
.quote-bar[hidden] { display: none; }
.quote-bar div { min-width: 0; flex: 1; }
.quote-bar b, .quote-bar p { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-bar b { color: #1677ff; font-size: 12px; }
.quote-bar p { color: #303133; font-size: 12px; }
.quote-bar button { width: 28px; color: #909399; font-size: 18px; }
#chatLog { position: relative; }
.chat-photo { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .82); }
.chat-photo button { position: absolute; inset: 0; border: none; background: transparent; }
.chat-photo img { position: relative; z-index: 1; max-width: 92vw; max-height: 88vh; pointer-events: none; }
