/* ========== 设计图风格 - 本地生活黄页 ========== */

:root {
  /* ===== 中性三档：黑 / 白 / 灰（统一管控） ===== */
  --c-bg: #FFFFFF;            /* 背景 */
  --c-surface: #F5F5F5;       /* 浅灰底（仅用于分区 / 输入框，不用于按钮） */
  --c-text: #000000;          /* 主文字 / 标题 */
  --c-text-2: #999999;        /* 辅助文字 */
  --c-text-3: #666666;        /* 次级文字 */
  --c-line: #E5E5E5;          /* 分割线 */
  --c-line-strong: #CCCCCC;   /* 边框 */
  --c-inverse: #FFFFFF;       /* 反色文字（黑底白字） */

  /* ===== 少量语义色：仅用于状态（成功 / 警告 / 错误 / 提示） ===== */
  --c-success: #52C41A;
  --c-warning: #FAAD14;
  --c-error: #FF4D4F;
  --c-info: #2E8BFF;          /* 极少量提示色，谨慎使用 */

  /* ===== 圆角（iOS 扁平柔和） ===== */
  --radius-sm: 8px;           /* 输入框 */
  --radius-md: 12px;          /* 卡片 / 弹窗 */
  --radius-lg: 16px;

  /* ===== 间距 ===== */
  --space-page: 16px;         /* 页面边距 */
  --space-gap: 12px;          /* 内容间距 */

  /* ===== 阴影（中性低饱和） ===== */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* ===== 字号层级 ===== */
  --fs-title: 18px;           /* 17–20 / semibold */
  --fs-body: 16px;            /* 15–17 */
  --fs-caption: 13px;         /* 12–13 灰 */

  /* ===== 兼容旧引用（映射到新令牌，避免散落硬编码） ===== */
  --primary: var(--c-text);
  --primary-light: var(--c-surface);
  --primary-dark: #333333;
  --text-primary: var(--c-text);
  --text-secondary: var(--c-text-3);
  --text-tertiary: var(--c-text-2);
  --bg-page: var(--c-bg);
  --bg-card: var(--c-bg);
  --border-light: var(--c-line);
  --danger: var(--c-error);
  --success: var(--c-success);
  --warning: var(--c-warning);

  /* ===== 布局尺寸（保留） ===== */
  --tab-height: 44px;
  --bottom-nav-height: 60px;
  --search-header-height: 68px;
  --cat-tabs-height: 44px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ========== 顶部品牌+搜索栏（参考图风格） ========== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-area {
  flex-shrink: 0;
}

.brand-text {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.brand-accent {
  color: var(--danger);
}

.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f2f3f5;
  border-radius: 999px;
  padding: 0 6px 0 16px;
  height: 40px;
  gap: 8px;
}

.search-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #999;
  flex-shrink: 0;
}

.search-pill-icon svg {
  width: 18px;
  height: 18px;
}

.search-pill-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
  padding: 0;
  height: 36px;
}

.search-pill-input::placeholder {
  color: #999;
}

.search-pill-btn {
  background: #000000;
  color: #fff;
  font-size: 13px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  flex-shrink: 0;
  height: 30px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-pill-btn:active {
  opacity: 0.85;
}

/* ========== 分类Tab导航 ========== */
.cate-tabs {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: calc(64px + env(safe-area-inset-top));
  z-index: 99;
}

.cate-tabs::-webkit-scrollbar {
  display: none;
}

.cate-tab {
  flex-shrink: 0;
  padding: 12px 4px;
  margin-right: 24px;
  font-size: 15px;
  color: #999;
  font-weight: 400;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.cate-tab.active {
  color: #1a1a1a;
  font-weight: 600;
}

.cate-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: #1a1a1a;
}

/* ========== 商户列表 ========== */
.merchant-list {
  padding: 12px 16px;
}

/* 商户列表嵌套在首页分区(.home-section)内时，去掉自身内边距，
   使卡片左右边距与 Banner 卡片一致（避免双重内边距导致卡片偏窄） */
.home-section .merchant-list {
  padding: 0;
}

.list-section {
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.section-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 分类区块容器（Tab 切换用） */
.cat-section {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 商户卡片 */
.merchant-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.merchant-card:active {
  transform: scale(0.98);
}

.merchant-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--primary-light);
}

.merchant-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--muted);
}

.merchant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merchant-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 10种分类图标配色 */
.cat-icon-1 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-2 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-3 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-4 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-5 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-6 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-7 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-8 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-9 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }
.cat-icon-10 { background: linear-gradient(135deg, var(--primary-light), var(--primary-light)); }

.merchant-info {
  flex: 1;
  min-width: 0;
}

.merchant-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merchant-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.sub-tag {
  color: var(--text-tertiary);
}

.sub-phone {
  color: var(--text-secondary);
}

/* 拨打按钮 */
.call-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.call-btn:active {
  transform: scale(0.92);
  background: var(--primary-dark);
}

.call-btn svg {
  width: 20px;
  height: 20px;
}

/* ========== 底部导航 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: 16px;
  padding-right: 16px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  display: flex;
  z-index: 100;
  gap: 4px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-tertiary);
  font-size: 11px;
  transition: color 0.2s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  stroke: var(--primary);
}

/* 仅文字模式：文字大小写死为与首页商户卡片名称（.merchant-name 16px/600）一致，隐藏图标 */
.bottom-nav.text-only .nav-item {
  position: relative;
  flex-direction: column;
  gap: 0;
  font-size: 16px;
  font-weight: 600;
}
.bottom-nav.text-only .nav-item svg {
  display: none;
}
/* 仅文字模式激活态：主色文字 + 顶部指示条，当前位置一目了然（贴合大众 tab 习惯） */
.bottom-nav.text-only .nav-item.active {
  color: var(--primary);
}
.bottom-nav.text-only .nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

/* ========== 搜索结果页 ========== */
.search-result-page {
  padding: 12px 16px;
}

.search-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.search-count {
  font-size: 13px;
  color: var(--text-tertiary);
}

.search-count strong {
  color: var(--primary);
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ========== 分类页 ========== */
.category-page {
  padding: 16px;
}

.cat-entrance {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  cursor: pointer;
}

.cat-entrance-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-entrance-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.cat-entrance-text {
  flex: 1;
  min-width: 0;
}

.cat-entrance-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-entrance-desc {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}

.cat-entrance-arrow svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.7);
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-left: 2px;
}

.cat-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.cat-stat-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cat-stat-item:active {
  transform: scale(0.96);
  background: #f5f7fa;
}

.cat-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.cat-stat-name {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* ========== 详情页 ========== */
.detail-page {
  padding-bottom: calc(var(--bottom-nav-height) + 80px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.back-btn {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.detail-title {
  flex: 1;
}

.detail-title h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-title .detail-cat {
  font-size: 13px;
  opacity: 0.8;
}

.detail-share-top {
  position: absolute;
  top: calc(60px + env(safe-area-inset-top));
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.detail-share-top:active {
  background: rgba(255,255,255,0.35);
  transform: scale(0.92);
}

.detail-share-top svg {
  width: 20px;
  height: 20px;
}

.detail-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
}
.detail-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 16px;
  margin-top: -12px;
}

.detail-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.detail-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.detail-info-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-info-icon svg {
  width: 18px;
  height: 18px;
}

.detail-info-content {
  flex: 1;
}

.detail-info-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.detail-info-value {
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-address-text {
  flex: 1;
  word-break: break-all;
  line-height: 1.5;
}

.detail-copy-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.5;
  transition: all 0.2s;
}
.detail-copy-btn:active {
  background: rgba(0,0,0,0.08);
}

.detail-info-btn {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  flex-shrink: 0;
  align-self: center;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.star {
  color: var(--warning);
  font-size: 14px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
.detail-desc img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
  box-sizing: border-box;
}
.detail-desc video,
.detail-desc iframe,
.detail-desc embed,
.detail-desc object {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 8px 0;
  display: block;
}
.detail-desc table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 10px 0;
  display: block;
  overflow-x: auto;
  word-break: break-word;
}
.detail-desc td, .detail-desc th {
  border: 1px solid var(--border-light);
  padding: 6px 10px;
  max-width: 100%;
  word-break: break-word;
  word-wrap: break-word;
}
.detail-desc p {
  margin: 0 0 10px 0;
  max-width: 100%;
}
.detail-desc h1, .detail-desc h2, .detail-desc h3 {
  margin: 14px 0 8px 0;
  color: var(--text-primary);
  word-break: break-word;
}
.detail-desc ul, .detail-desc ol {
  padding-left: 20px;
  margin: 8px 0;
}
.detail-desc li {
  margin: 4px 0;
  word-break: break-word;
}
.detail-desc pre,
.detail-desc code {
  max-width: 100%;
  overflow-x: auto;
  word-wrap: normal;
  white-space: pre-wrap;
  word-break: break-all;
}
.detail-desc blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 3px solid var(--border-light);
  color: var(--text-tertiary);
}

/* 商家相册 */
.detail-album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.album-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
}
.album-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.album-item:active img {
  transform: scale(0.95);
}

/* 详情页底部操作区：拨号栏 + 底部导航 组合为单一固定容器
   内部两栏改为普通流布局，彻底消除双固定栏 + z-index 叠加冲突 */
.detail-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}
.detail-bottom .detail-call-bar {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: auto;
}
.detail-bottom .bottom-nav {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: auto;
}

.detail-call-bar {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  padding: 10px 16px;
  padding-bottom: 10px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  z-index: 101;
  display: flex;
  gap: 12px;
}

.detail-call-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-call-btn svg {
  width: 18px;
  height: 18px;
}

.detail-fav-btn {
  min-width: 56px;
  height: 44px;
  padding: 0 12px;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-fav-btn.active {
  color: var(--primary);
}

.detail-share-btn {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #666666;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
  flex-shrink: 0;
}

.detail-share-btn svg {
  width: 22px;
  height: 22px;
}

/* 分享弹窗 */
.share-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.share-mask.active {
  opacity: 1;
  pointer-events: auto;
}

.share-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.share-sheet.active {
  transform: translateY(0);
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.share-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.share-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #333333;
  cursor: pointer;
  font-family: inherit;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  margin-bottom: 20px;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.share-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 6px;
  background: #f2f3f5;
}

.share-icon.wx { background: var(--success); color: #fff; }
.share-icon.pyq { background: #333333; color: #fff; }
.share-icon.qq { background: var(--c-info); color: #fff; }
.share-icon.wb { background: var(--warning); color: #fff; }
.share-icon.link { background: #000000; color: #fff; }
.share-icon.sys { background: #000000; color: #fff; }

.share-item span {
  font-size: 12px;
  color: #666666;
}

.share-cancel {
  width: 100%;
  padding: 14px;
  background: #f2f3f5;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* 分享海报 */
.share-poster-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 32px 24px;
  box-sizing: border-box;
}

.share-poster-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.share-poster-wrap {
  max-width: 360px;
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.share-poster-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.share-poster-tip {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-align: center;
}

.share-poster-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 20px;
}

.share-icon.poster { background: linear-gradient(135deg, var(--warning), var(--warning)); color: #fff; }

/* 卡片收藏按钮 */
.card-fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: #c8c9cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  margin-left: 8px;
}
.card-fav-btn svg {
  width: 18px;
  height: 18px;
}
.card-fav-btn.faved {
  color: var(--warning);
}
.card-fav-btn.faved svg {
  fill: currentColor;
}

.related-section {
  margin-top: 16px;
}

.related-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* ========== 登录注册页 ========== */
.auth-page {
  padding: 24px 20px 40px;
  min-height: calc(100vh - 56px);
  background: #F2F3F5;
}

.auth-hero {
  text-align: center;
  padding: 32px 0 28px;
}

.auth-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #333333, #000000);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.auth-hero-icon svg {
  width: 36px;
  height: 36px;
}

.auth-hero-emoji {
  font-size: 36px;
  line-height: 1;
}

.auth-hero.has-image {
  background-size: cover;
  background-position: center;
  padding: 48px 0 36px;
  color: #fff;
  border-radius: 0 0 24px 24px;
  margin: -24px -20px 0;
}

.auth-hero.has-image .auth-hero-title {
  color: #fff;
}

.auth-hero.has-image .auth-hero-desc {
  color: rgba(255,255,255,0.85);
}

.auth-hero-logo {
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
}

.auth-logo-img {
  width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-hero.has-image .auth-logo-img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.auth-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #1D2129;
  margin-bottom: 8px;
}

.auth-hero-desc {
  font-size: 13px;
  color: #999999;
  line-height: 1.6;
}

.auth-tip {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.auth-tip.error {
  background: var(--primary-light);
  color: var(--danger);
  border: 1px solid var(--primary-light);
}

.auth-tip.success {
  background: var(--primary-light);
  color: var(--success);
  border: 1px solid var(--primary-light);
}

.auth-form {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field:last-of-type {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-size: 13px;
  color: #666666;
  margin-bottom: 8px;
  font-weight: 500;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  background: #F2F3F5;
  border-radius: 12px;
  padding: 0 14px;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.auth-input-wrap:focus-within {
  background: #fff;
  border-color: #333333;
}

.auth-field-icon {
  width: 18px;
  height: 18px;
  color: #999999;
  margin-right: 10px;
  flex-shrink: 0;
}

.auth-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #1D2129;
  height: 100%;
  width: 100%;
}

.auth-input-wrap input::placeholder {
  color: #CCCCCC;
}

.auth-remember {
  margin: -4px 0 16px;
}
.auth-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  user-select: none;
}
.auth-remember-label input[type="checkbox"] {
  display: none;
}
.remember-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #CCCCCC;
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}
.auth-remember-label input:checked + .remember-box {
  background: var(--primary);
  border-color: var(--primary);
}
.auth-remember-label input:checked + .remember-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.remember-text {
  line-height: 1;
}

.auth-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #333333, #000000);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.auth-submit:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px;
  color: #CCCCCC;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E6EB;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.auth-link-btn {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: #333333;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-link-btn:active {
  transform: scale(0.98);
}

.auth-link-btn.ghost {
  background: #F2F3F5;
  color: #666666;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: #999999;
}

/* ========== 一键登录 ========== */
.onekey-section {
  margin-top: 16px;
  text-align: center;
}

.onekey-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #000000 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.onekey-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.onekey-btn svg {
  width: 20px;
  height: 20px;
}

.onekey-loading {
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.onekey-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E5E6EB;
  border-top-color: #000000;
  border-radius: 50%;
  animation: onekey-spin 0.8s linear infinite;
}

@keyframes onekey-spin {
  to { transform: rotate(360deg); }
}

.onekey-loading p {
  margin: 0;
  font-size: 13px;
  color: #999999;
}

.onekey-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--primary-light);
  text-align: center;
}

.auth-footer a {
  color: #333333;
  text-decoration: none;
}

/* 兼容旧样式 */
.auth-input-group {
  display: flex;
  align-items: center;
  height: 50px;
  background: #f5f7fa;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 0 16px;
  transition: all 0.2s;
}

.auth-input-group:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.auth-icon {
  font-size: 18px;
  margin-right: 12px;
  opacity: 0.8;
}

.auth-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  height: 100%;
}

.auth-input-group input::placeholder {
  color: var(--text-placeholder);
}

.auth-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #000000, #000000);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.auth-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.delete-btn {
  display: block;
  text-align: center;
  color: var(--danger);
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
}

.publish-tip {
  margin-top: 24px;
  padding: 16px;
  background: #f9f9fb;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
}

.publish-tip p {
  margin: 0;
}

.btn-primary {
  display: inline-block;
  padding: 8px 20px;
  background: #000000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-nav-height) + 20px + env(safe-area-inset-bottom));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 80px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: rgba(0,0,0,0.08);
}

.toast.error {
  background: rgba(207, 19, 34, 0.9);
}

.toast.info {
  background: rgba(0, 0, 0, 0.8);
}

/* ========== 空状态 ========== */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-tertiary);
}

.empty-state.small {
  padding: 30px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-logo-img {
  width: 33.33%;
  height: auto;
  max-width: 200px;
  margin-bottom: 12px;
  opacity: 0.9;
  display: inline-block;
  animation: dinoWave 2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes dinoWave {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  15% {
    transform: translateY(-4px) rotate(-5deg) scale(1.02);
  }
  30% {
    transform: translateY(-8px) rotate(6deg) scale(1.03);
  }
  45% {
    transform: translateY(-10px) rotate(-7deg) scale(1.03);
  }
  60% {
    transform: translateY(-8px) rotate(6deg) scale(1.02);
  }
  75% {
    transform: translateY(-4px) rotate(-4deg) scale(1.01);
  }
}

.empty-state p {
  font-size: 14px;
}

/* ========== 收藏面板 ========== */
.fav-panel {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fav-panel.show {
  right: 0;
}

.fav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top));
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.fav-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 16px;
}

.fav-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.fav-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.fav-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.fav-list-info {
  flex: 1;
  min-width: 0;
}

.fav-list-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-list-phone {
  font-size: 12px;
  color: var(--text-tertiary);
}

.fav-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.fav-mask.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========== 首页新模块 - 品牌栏 ========== */
.home-brand-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: calc(48px + env(safe-area-inset-top));
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 80%;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.brand-back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-back-btn svg {
  width: 20px;
  height: 20px;
  stroke: #1a1a1a;
}

.brand-page-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-left: 4px;
}

.brand-name::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: #000000;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-icon-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  color: #666;
  font-size: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.brand-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #666;
}

.brand-city {
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.brand-icon-btn:active {
  background: #f5f5f5;
}

/* ========== 首页搜索框 ========== */
.home-search-wrap {
  padding: 12px 16px 0;
  background: #fff;
}

.home-search-box {
  display: flex;
  align-items: center;
  background: #f5f6f8;
  border-radius: 999px;
  padding: 0 6px 0 16px;
  height: 42px;
  gap: 8px;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex-shrink: 0;
}

.search-icon svg {
  width: 18px;
  height: 18px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
  padding: 0;
  height: 36px;
}

/* ===== 商户卡片地址行 ===== */
.merchant-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.merchant-name > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-phone {
  font-size: 13px;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}

.merchant-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mc-address {
  font-size: 12px;
  color: #888;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-town {
  display: inline-block;
  padding: 1px 6px;
  background: var(--primary-light);
  color: #000000;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 6px;
  flex-shrink: 0;
}

.mc-cat-tag {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--warning);
  background: var(--primary-light);
  padding: 1px 8px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 500;
}

.mc-views {
  flex-shrink: 0;
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
}
.cat-tag-1 { background: var(--primary-light); color: var(--danger); } /* 餐饮美食 */
.cat-tag-2 { background: var(--primary-light); color: #000000; } /* 住宿酒店 */
.cat-tag-3 { background: var(--primary-light); color: #000000; } /* 教育培训 */
.cat-tag-4 { background: var(--primary-light); color: var(--success); } /* 便民服务 */
.cat-tag-5 { background: var(--primary-light); color: #333333; } /* 交通出行 */
.cat-tag-6 { background: var(--primary-light); color: #333333; } /* 休闲娱乐 */
.cat-tag-7 { background: var(--primary-light); color: var(--warning); } /* 快递物流 */
.cat-tag-8 { background: var(--primary-light); color: #333333; } /* 医疗健康 */
.cat-tag-9 { background: var(--primary-light); color: #000000; } /* 金融服务 */
.cat-tag-10 { background: var(--primary-light); color: var(--warning); } /* 汽车服务 */

.mc-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mc-action-btn {
  padding: 3px 10px;
  font-size: 12px;
  border: 1px solid #E5E6EB;
  background: #fff;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.4;
}

.mc-action-btn:hover {
  border-color: #000000;
  color: #000000;
}

/* ===== 乡镇选择弹层 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-mask.modal-center {
  align-items: center;
}

.town-sheet {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 32px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-mask.show .town-sheet {
  transform: translateY(0);
}

.town-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #F2F3F5;
  margin-bottom: 12px;
}

.town-close {
  width: 28px;
  height: 28px;
  border: none;
  background: #F2F3F5;
  color: #666;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.town-locate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--primary-light);
  color: #000000;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  cursor: pointer;
}

.town-locate svg {
  width: 18px;
  height: 18px;
}

.town-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.town-item {
  padding: 14px 8px;
  border: 1px solid #E5E6EB;
  background: #fff;
  color: #333;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.town-item:hover {
  border-color: #000000;
  color: #000000;
}

.town-item.active {
  background: var(--primary-light);
  border-color: #000000;
  color: #000000;
  font-weight: 500;
}

@media (min-width: 768px) {
  .town-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.search-btn {
  background: #000000;
  color: #fff;
  font-size: 14px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  flex-shrink: 0;
  height: 32px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-btn svg {
  width: 16px;
  height: 16px;
  display: none;
}

.search-btn:active {
  opacity: 0.85;
}

.hot-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 14px;
  font-size: 12px;
}

.hot-label {
  color: #999;
  flex-shrink: 0;
}

.hot-tag {
  color: #666;
  background: #f5f6f8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s;
}

.hot-tag:active {
  background: var(--primary-light);
  color: #000000;
}

/* ========== Banner 轮播 ========== */
.home-banner {
  padding: 12px 16px 0;
  position: relative;
  overflow: hidden;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  flex-shrink: 0;
  width: 100%;
  height: 96px;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  width: fit-content;
}

.banner-title {
  font-size: 16px;
  font-weight: 600;
}

.banner-desc {
  font-size: 12px;
  opacity: 0.9;
}

.banner-icon {
  font-size: 42px;
  opacity: 0.9;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.banner-dots .dot.active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}

/* ========== 首页分区通用 ========== */
.home-section {
  padding: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-text {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  position: relative;
  padding-left: 10px;
}

.section-title-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #000000;
  border-radius: 2px;
}

.section-more {
  font-size: 13px;
  color: #999;
}

.section-more:active {
  color: #000000;
}

/* ========== 分类网格卡片 ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

.cat-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  border-radius: 8px;
  transition: background 0.2s;
}

.cat-grid-item:active {
  background: #f5f6f8;
}

.cat-grid-item.active .cat-grid-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cat-grid-item.active .cat-grid-name {
  color: #000000;
  font-weight: 600;
}

.cat-grid-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #000000, #000000);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.cat-grid-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.cat-icon-all {
  background: linear-gradient(135deg, #000000, #333333);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.cat-grid-name {
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

.cat-grid-count {
  font-size: 10px;
  color: #999;
  background: #f5f6f8;
  padding: 1px 6px;
  border-radius: 999px;
}

/* ========== 快捷便民热线 ========== */
.hotline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hotline-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s;
  text-align: center;
}

.hotline-card:active {
  transform: scale(0.96);
}

.hotline-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotline-water .hotline-icon { background: var(--primary-light); }
.hotline-gas .hotline-icon { background: var(--primary-light); }
.hotline-lock .hotline-icon { background: var(--primary-light); }
.hotline-taxi .hotline-icon { background: var(--primary-light); }
.hotline-power .hotline-icon { background: var(--primary-light); }
.hotline-tel .hotline-icon { background: var(--primary-light); }

.hotline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.hotline-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.hotline-phone {
  font-size: 12px;
  color: #000000;
  font-weight: 500;
}

/* ========== 商户分区间距调整 ========== */
.merchant-section {
  padding-top: 4px;
}

/* 详情页底部拨号栏按钮 */
.detail-call-bar .btn-outline {
  min-width: 60px;
  flex-shrink: 0;
  height: 44px;
  border: 1.5px solid #e5e6eb;
  border-radius: 22px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.detail-call-bar .btn-outline:active {
  transform: scale(0.95);
  background: #f5f5f5;
}
.detail-call-bar .btn-outline.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.detail-call-bar .btn-outline.active:active {
  transform: scale(0.95);
  background: var(--primary-light);
}
.detail-call-bar .btn-primary {
  flex: 1;
  text-align: center;
  height: 44px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.detail-call-bar .btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ========== 响应式适配 ========== */
/* 响应式：平板和桌面端 */
@media (min-width: 768px) {
  .page {
    max-width: 768px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
    min-height: 100vh;
  }
  body {
    background: #e9ecf0;
  }
  .detail-bottom {
    max-width: 768px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  /* 全局底部导航：与 .page / 顶栏等宽并居中（.bottom-nav 是 .page 子元素，但 position:fixed 相对视口） */
  .bottom-nav {
    max-width: 768px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 100%;
  }
  .back-to-top {
    right: calc(50% - 384px + 16px);
  }
  .toast-container {
    max-width: 768px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    right: auto;
  }
  .hotline-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .detail-album {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 960px) {
  .page {
    max-width: 960px;
  }
  .detail-bottom {
    max-width: 960px;
  }
  /* 全局底部导航：960 宽屏容器模式 */
  .bottom-nav {
    max-width: 960px;
  }
  .back-to-top {
    right: calc(50% - 480px + 16px);
  }
  .merchant-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .list-section {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .hotline-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ========== 个人中心新版 ========== */

/* ===== 个人中心（简洁版） ===== */
.uc-card {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  margin: 0;
  border-radius: 0 0 20px 20px;
  padding: 24px 16px 56px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.uc-card .uc-avatar {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.25);
}
.uc-card .uc-avatar-emoji {
  color: #fff;
}
.uc-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.uc-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.uc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc-avatar-emoji {
  font-size: 26px;
  color: #000000;
  font-weight: 600;
}
.uc-meta {
  flex: 1;
  min-width: 0;
}
.uc-name {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}
.uc-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
}
.uc-edit-btn {
  flex-shrink: 0;
  border: 1px solid #000000;
  color: #000000;
  background: #fff;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}
.uc-stats {
  display: flex;
  align-items: center;
  margin: -36px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 18px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}
.uc-stat {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333;
}
.uc-stat b {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
}
.uc-stat span {
  font-size: 12px;
  color: #999;
}
.uc-stat-divider {
  width: 1px;
  height: 28px;
  background: #f0f0f0;
}

.uc-menu {
  margin: 12px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.uc-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #f6f7f8;
}
.uc-menu-item:last-child {
  border-bottom: none;
}
.uc-ic {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  flex-shrink: 0;
}
.uc-ic svg {
  width: 20px;
  height: 20px;
}
.uc-ic.danger {
  color: var(--danger);
}
.uc-menu-item.danger .uc-tx {
  color: var(--danger);
}
.uc-tx {
  flex: 1;
}
.uc-ar {
  color: #ccc;
  font-size: 18px;
}

/* 个人中心 - 社交二级菜单（展开/收起） */
.uc-submenu {
  background: #f7f9fc;
  border-bottom: 1px solid #eef0f3;
}
.uc-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 13px 44px;
  text-decoration: none;
  color: #333333;
  font-size: 14px;
  position: relative;
  transition: background .15s, color .15s;
}
/* 左侧竖向引导线：强化"竖排子列表"的层级关系，符合日常手风琴交互 */
.uc-sub-item::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e3e7ee;
}
.uc-sub-item::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--primary-light);
  z-index: 1;
}
.uc-sub-item:hover {
  background: var(--primary-light);
  color: #000000;
}
.uc-sub-item:active {
  background: var(--primary-light);
}

.uc-pwd {
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.uc-pwd .form-group {
  margin-bottom: 10px;
}

/* 退出确认弹窗（WorkBuddy 风格） */
.confirm-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}
.confirm-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  text-align: center;
}
.confirm-text {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin: 10px 0 20px;
}
.confirm-actions {
  display: flex;
  gap: 12px;
}
.confirm-actions .btn {
  flex: 1;
}

/* 编辑资料弹层 */
.edit-sheet {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  max-height: 86vh;
  overflow-y: auto;
}
.edit-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #f2f3f5;
}
.edit-sheet-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.edit-sheet-actions .btn {
  flex: 1;
}
.edit-sheet .form-group {
  margin-bottom: 14px;
}
.edit-sheet label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.edit-sheet input[type="text"],
.edit-sheet select {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
}
.edit-sheet select:focus,
.edit-sheet input[type="text"]:focus {
  outline: none;
  border-color: #000000;
}

/* ============================================================
   详情页 v2（2026-08-06）：蓝色 Hero 延伸到顶部状态栏
   ============================================================ */
.detail-hero {
  position: relative;
  background: linear-gradient(135deg, #333333 0%, #000000 50%, #000000 100%);
  padding: 16px;
  padding-top: calc(env(safe-area-inset-top) + 8px);
  color: #fff;
  /* 直角底部：蓝头与下方白卡硬过渡（按需求取消圆角） */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* 顶栏：单行承载 返回按钮(左) + 商户名(绝对居中) + 圆形头像(右)，两端距边一致 */
.hero-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.hero-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  transition: background 0.15s;
}
.hero-back-btn:active {
  background: rgba(255, 255, 255, 0.38);
}
.hero-back-btn svg {
  width: 20px;
  height: 20px;
}

.hero-topbar-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  /* 完整显示商户名：中间位置允许换行，绝不截断 */
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  line-height: 1.3;
}

/* 圆形头像（融入顶栏右端，无描边、透明底；尺寸与默认头像协调，不突兀） */
.detail-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.detail-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-icon-emoji {
  font-size: 24px;
  line-height: 1;
}

/* 详情页信息卡片（替代详情页内联样式） */
.detail-info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.detail-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  gap: 12px;
}
.detail-info-row:last-child {
  border-bottom: none;
}

.detail-info-row-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.detail-info-label {
  font-size: 14px;
  color: #888;
  flex-shrink: 0;
}

.detail-info-value {
  font-size: 14px;
  color: #333;
  text-align: right;
  word-break: break-all;
  text-decoration: none;
}

.detail-info-phone {
  color: #000000;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-info-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.detail-info-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  word-break: break-word;
}

/* 详情页相册网格 */
.detail-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.detail-album-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.detail-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 详情页相似商家卡片链接 */
.merchant-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 我的收藏：左滑卡片露出红底白字"取消"按钮 */
.fav-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.fav-item-action {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: var(--danger);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  z-index: 0;
}
.fav-cancel-btn {
  width: 100%;
  height: 100%;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fav-item-front {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  transition: transform 0.25s ease;
  will-change: transform;
}
.fav-item.open .fav-item-front {
  transform: translateX(-80px);
}
.fav-item .merchant-card {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

/* 拨号栏按钮顺序：拨号左（flex:1）+ 收藏右（窄） */
.detail-call-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.detail-call-primary {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  order: 1; /* 排第一（左） */
}
.detail-call-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.detail-call-fav {
  min-width: 88px;
  height: 44px;
  border-radius: 22px;
  border: 1.5px solid #e5e6eb;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  order: 2; /* 排第二（右） */
}
.detail-call-fav:active {
  transform: scale(0.95);
  background: #f5f5f5;
}
.detail-call-fav.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* 详情页 hero 头版需要更小的顶部内边距，
   因为 hero 已经覆盖了安全区，不再额外加 safe-area */
.detail-page-hero {
  padding-top: 0 !important;
}
.detail-page-hero > .home-brand-bar {
  display: none;
}

/* 媒体查询：Hero 顶部高度在平板/桌面收窄 */
@media (min-width: 768px) {
  .detail-hero {
    margin: 0 0 0 0;
  }
  /* PC：头像略放大，仍居顶栏右端，与移动端保持协调不突兀 */
  .detail-hero-icon {
    width: 56px;
    height: 56px;
  }
}

/* 移动端：详情页适配（蓝头满幅、头像居中、信息卡与 Banner 左对齐） */
@media (max-width: 767px) {
  .detail-hero {
    padding: 16px;
    padding-top: calc(env(safe-area-inset-top) + 8px);
  }
  /* 信息卡/相册与 Banner 同为 16px 边距，视觉对齐 */
  .detail-page .home-section {
    padding: 16px;
  }
}

/* ============================================================
   近场内网社交模块
   ============================================================ */
.social-tabs { display: flex; gap: 24px; padding: 0 16px; height: 44px; align-items: center; border-bottom: 1px solid #f0f0f0; background: #fff; }
.social-tab { font-size: 16px; color: #888; position: relative; height: 44px; line-height: 44px; text-decoration: none; }
.social-tab.active { color: #000000; font-weight: 600; }
.social-tab.active::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 24px; height: 3px; border-radius: 3px; background: #000000; }

.social-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sq-btn { flex: 1 1 calc(50% - 5px); text-align: center; padding: 12px 0; background: #fff; border-radius: 10px; font-size: 14px; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,0.04); text-decoration: none; }
.sq-btn:active { background: #f5f8ff; }

.social-post-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.spc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.spc-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.spc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spc-meta { min-width: 0; }
.spc-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.spc-sub { font-size: 12px; color: #999; margin-top: 2px; }
.spc-content { display: block; font-size: 15px; line-height: 1.6; color: #222; text-decoration: none; white-space: pre-wrap; word-break: break-word; }
.spc-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.spc-images a, .spc-images img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; overflow: hidden; }
.spc-actions { display: flex; gap: 24px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f5f5f5; }
.spc-act { display: inline-flex; align-items: center; gap: 5px; color: #888; font-size: 14px; background: none; border: none; cursor: pointer; text-decoration: none; }
.spc-act svg { width: 18px; height: 18px; }
.spc-act.like-btn.active { color: var(--danger); }
.spc-act.like-btn.active svg { fill: var(--danger); }
.spc-act.static { cursor: default; }

.empty-state { text-align: center; color: #999; font-size: 14px; padding: 40px 20px; }
.form-error { background: var(--primary-light); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }

/* 评论 */
.social-comments { margin-top: 14px; }
.sc-title { font-size: 15px; font-weight: 600; margin: 0 0 10px; color: #333; }
.comment-item { display: flex; gap: 10px; margin-bottom: 14px; }
.ci-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.ci-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 600; color: #333; }
.ci-text { font-size: 14px; color: #444; line-height: 1.6; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.ci-time { font-size: 12px; color: #bbb; margin-top: 3px; }
.comment-box { display: flex; gap: 8px; margin-top: 14px; }
.comment-box .form-input { flex: 1; }

/* 附近的人 */
.nearby-tip { font-size: 13px; color: #888; margin: 0 0 12px; }
.nearby-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ni-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.ni-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ni-meta { flex: 1; min-width: 0; }
.ni-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.ni-sub { font-size: 12px; color: #999; margin-top: 2px; }
.ni-btn { padding: 6px 14px; border-radius: 18px; font-size: 13px; text-decoration: none; border: 1px solid #ddd; color: #666; background: #fff; }
.ni-btn.follow-btn.active { background: #000000; border-color: #000000; color: #fff; }
.ni-btn.msg { border-color: #000000; color: #000000; }

/* 私信 */
.msg-partner { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.mp-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #eee; }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-name { font-size: 16px; font-weight: 600; }
.msg-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg-row { display: flex; }
.msg-row.mine { justify-content: flex-end; }
.msg-row.theirs { justify-content: flex-start; }
.msg-bubble { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg-row.mine .msg-bubble { background: #000000; color: #fff; border-bottom-right-radius: 4px; }
.msg-row.theirs .msg-bubble { background: #f0f0f0; color: #222; border-bottom-left-radius: 4px; }
.msg-box { display: flex; gap: 8px; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.msg-box .form-input { flex: 1; }
.conv-item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.unread-dot { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; text-align: center; background: var(--danger); color: #fff; font-size: 11px; border-radius: 8px; padding: 0 4px; margin-left: 6px; }

/* 圈子 */
.circle-head { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ch-name { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.ch-meta { font-size: 13px; color: #999; margin: 6px 0 12px; }
.circle-create { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.circle-item { display: block; background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 10px; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ci-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.ci-sub { font-size: 12px; color: #999; margin-top: 3px; }

/* 发动态图片 */
.post-img-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-img-preview { display: flex; gap: 6px; }
.post-img-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.post-img-add { width: 64px; height: 64px; border: 1px dashed #ccc; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #bbb; cursor: pointer; }

/* ================= 内网 IM 主界面（沉浸式） ================= */
/* 整体外层壳：全屏 flex column，去掉外层 brand-bar 与底部 bottom-nav */
.im-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #f5f6f8; }
.im-shell-temp { box-shadow: inset 0 3px 0 var(--warning); }

/* IM 自建顶部壳（取代外层 brand-bar） */
.im-shell-header {
  position: sticky; top: 0; z-index: 50;
  height: 48px; padding: 0 12px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-bottom: 1px solid #f0f1f2;
  padding-top: env(safe-area-inset-top);
  height: calc(48px + env(safe-area-inset-top));
}
.im-shell-back {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a1a; text-decoration: none; transition: background .15s;
}
.im-shell-back:hover { background: #f4f5f7; }
.im-shell-back svg { width: 20px; height: 20px; }
.im-shell-title {
  flex: 1; font-size: 17px; font-weight: 600;
  color: #1a1a1a; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.im-shell-tools { display: flex; align-items: center; gap: 8px; }
.im-shell-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: transparent; color: #1a1a1a;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s;
}
.im-shell-icon:hover { background: #f4f5f7; }
.im-shell-icon svg { width: 20px; height: 20px; }

/* 内网状态指示 chip */
.im-net-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--primary-light); color: #000000;
  font-size: 12px; font-weight: 500;
}
.im-net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,.18); }

/* 提示横幅（错误 / 升级 SQL / 临时会话其他提示） */
.im-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; line-height: 1.5;
  background: var(--primary-light); color: var(--warning); border-bottom: 1px solid var(--primary-light);
}
.im-banner.error { background: var(--primary-light); color: var(--danger); border-color: var(--primary-light); }
.im-banner .im-banner-icon { font-size: 15px; }
.im-banner .im-banner-close {
  margin-left: auto; border: none; background: transparent; color: inherit;
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .65;
}
.im-banner .im-banner-close:hover { opacity: 1; }

/* 主体区域：左会话列表 / 右聊天面板 */
.im-app { flex: 1; display: flex; background: #f5f6f8; min-height: 0; }
.im-panel { background: #fff; min-width: 0; display: flex; flex-direction: column; }
.im-sessions-panel { flex: 1; min-width: 0; }
.im-chat-panel { flex: 1; min-width: 0; border-left: 1px solid #eee; }

/* 会话面板 topbar（紧贴 im-shell-header 下方） */
.im-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid #f0f1f2;
  background: #fff;
}
.im-topbar-title { font-size: 15px; font-weight: 600; color: #333; }
.im-topbar-actions { display: flex; gap: 6px; }
.im-icon-btn {
  border: none; background: #f2f3f5; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; color: #333;
  display: flex; align-items: center; justify-content: center;
}
.im-icon-btn:hover { background: #e8e9eb; }
.im-icon-btn svg { width: 16px; height: 16px; }

/* 内网细分提示（小字辅助行） */
.im-net-tip {
  font-size: 12px; color: #000000; background: var(--primary-light);
  padding: 6px 16px; border-bottom: 1px solid #f0f0f0;
}

/* 会话列表 + 空状态 */
.im-session-list { flex: 1; overflow-y: auto; padding: 6px 8px; min-height: 0; }
.im-session {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px; border-bottom: 1px solid #f4f5f6;
  cursor: pointer; position: relative; border-radius: 0;
  transition: background .15s;
}
.im-session:hover { background: #fafbfc; }
.im-session.active { background: var(--primary-light); }
.im-session.pinned { box-shadow: inset 3px 0 0 var(--c-text); }
.im-session.muted { opacity: .7; }

.im-session-avatar {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
  background: var(--c-text); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-inverse); font-weight: 600; font-size: 17px;
}
.im-session-avatar img { width: 100%; height: 100%; object-fit: cover; }
.im-session-body { flex: 1; min-width: 0; }
.im-session-name {
  font-size: 15px; font-weight: 600; color: #1a1a1a;
  display: flex; align-items: center; gap: 6px;
}
.im-session-tag {
  font-size: 10px; background: #000000; color: #fff;
  border-radius: 4px; padding: 1px 5px;
}
.im-session-tag.temp { background: var(--warning); }
.im-session-tag.burn { background: var(--danger); }
.im-session-last {
  font-size: 13px; color: #888; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.im-session-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-right: 18px; }
.im-session-time { font-size: 11px; color: #bbb; }
.im-unread {
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--danger); color: #fff; font-size: 11px;
  border-radius: 9px; padding: 0 5px; font-weight: 600;
}
.im-session-menu {
  position: absolute; right: 0; bottom: 10px;
  border: none; background: transparent; color: #bbb;
  font-size: 16px; cursor: pointer; padding: 4px 8px;
}
.im-session-menu:hover { color: #333; }

/* 会话列表空状态（关键 UX：替代灰色空白） */
.im-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 32px; text-align: center; color: #888;
}
.im-empty-icon {
  width: 96px; height: 96px; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #000000; margin-bottom: 18px;
}
.im-empty-icon svg { width: 52px; height: 52px; }
.im-empty-title { font-size: 16px; font-weight: 600; color: #555; }
.im-empty-desc { font-size: 13px; color: #aaa; margin-top: 6px; max-width: 240px; line-height: 1.5; }
.im-empty-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.im-empty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 999px;
  background: #f4f5f7; color: #555; font-size: 13px;
  text-decoration: none; transition: all .15s;
}
.im-empty-btn:hover { background: #e8e9eb; }
.im-empty-btn-primary {
  background: linear-gradient(135deg, #000000, #000000); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.im-empty-btn-primary:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }

/* 聊天面板 */
.im-chat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid #f0f1f2; background: #fff;
}
.im-back-btn {
  border: none; background: transparent; cursor: pointer; color: #333;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.im-back-btn:hover { background: #f4f5f7; }
.im-back-btn svg { width: 18px; height: 18px; }
.im-chat-title {
  flex: 1; font-size: 16px; font-weight: 600; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 临时会话模式横幅（橙色 + 倒计时） */
.im-temp-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-light));
  color: var(--warning); font-size: 13px;
  border-bottom: 1px solid var(--primary-light);
}
.im-temp-icon { font-size: 14px; display: inline-flex; }
.im-temp-icon svg { width: 15px; height: 15px; }
.im-temp-text { font-weight: 600; }
.im-temp-expire {
  margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--primary-light); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.im-temp-close {
  margin-left: auto; border: none; background: transparent;
  color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .65;
}
.im-temp-close:hover { opacity: 1; }

.im-typing {
  font-size: 12px; color: #000000;
  padding: 4px 16px; background: var(--primary-light);
}

/* 消息流 */
.im-msg-list {
  flex: 1; overflow-y: auto;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  background: #f5f6f8; min-height: 0;
}
.im-msg-list.has-messages { padding-top: 14px; }
.im-msg-row { display: flex; gap: 8px; max-width: 100%; }
.im-msg-row.mine { flex-direction: row-reverse; }
.im-msg-avatar {
  width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
  background: var(--c-text); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--c-inverse); font-weight: 600;
}
.im-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.im-msg-wrap { max-width: 72%; display: flex; flex-direction: column; }
.im-msg-row.mine .im-msg-wrap { align-items: flex-end; }
.im-msg-name { font-size: 12px; color: #999; margin-bottom: 3px; }
.im-msg-bubble {
  padding: 9px 13px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
  background: #fff; color: #222;
  border-bottom-left-radius: 4px;
}
.im-msg-row.mine .im-msg-bubble {
  background: linear-gradient(135deg, #000000, #000000); color: #fff;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 4px;
}
.im-msg-bubble.burn { background: var(--primary-light); }
.im-msg-bubble.burned { background: #f0f0f0; color: #aaa; font-style: italic; }
.im-msg-img { max-width: 180px; border-radius: 10px; display: block; }
.im-msg-file { color: #000000; text-decoration: none; word-break: break-all; }
.im-msg-row.mine .im-msg-file { color: #fff; opacity: .9; }
.im-msg-status { font-size: 11px; color: #bbb; margin-top: 3px; text-align: right; }
.im-msg-recall {
  border: none; background: transparent; color: var(--danger);
  font-size: 11px; cursor: pointer; margin-top: 3px; align-self: flex-end;
}
.im-msg-recalled { text-align: center; color: #aaa; font-size: 12px; padding: 6px 0; }
.im-msg-row.im-flash .im-msg-bubble { animation: imFlash 1.2s ease; box-shadow: 0 0 0 2px #CCCCCC; }
@keyframes imFlash { 0%,100% { background: inherit; } 30% { background: var(--primary-light); } }

/* 聊天区空状态（无消息时） */
.im-msg-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: #bbb; font-size: 14px; padding: 40px 20px;
  text-align: center;
}
.im-msg-empty-icon { display: flex; }
.im-msg-empty-icon svg { width: 48px; height: 48px; opacity: .35; }

/* 工具栏（输入区上方） */
.im-toolbar { display: flex; gap: 6px; padding: 6px 12px; border-top: 1px solid #f0f1f2; background: #fff; }
.im-tool {
  border: none; background: #f4f5f7; width: 36px; height: 36px;
  border-radius: 10px; font-size: 16px; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
}
.im-tool svg { width: 20px; height: 20px; }
.im-tool:hover { background: #e8e9eb; }
.im-tool.burn.on { background: var(--danger); color: #fff; }
.im-burn-off {
  position: absolute; bottom: -2px; right: -2px;
  font-size: 9px; background: #999; color: #fff;
  border-radius: 6px; padding: 0 3px;
}
.im-tool.burn.on .im-burn-off { background: #fff; color: var(--danger); }

/* 输入区 */
.im-input-row {
  display: flex; gap: 8px; padding: 8px 12px 12px; background: #fff;
  align-items: flex-end;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.im-input {
  flex: 1; border: 1px solid #e5e6e8; border-radius: 18px;
  padding: 9px 14px; font-size: 14px;
  resize: none; max-height: 120px; line-height: 1.4; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.im-input:focus { border-color: #000000; box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }
.im-send { border-radius: 18px; padding: 0 18px; }

/* 通用模态 */
.im-modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.im-modal {
  background: #fff; border-radius: 14px; padding: 18px;
  width: 100%; max-width: 340px; max-height: 80vh; overflow-y: auto;
}
.im-modal-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.im-modal-sub { font-size: 13px; color: #888; margin: 10px 0 6px; }
.im-modal-btns { display: flex; flex-direction: column; gap: 8px; }
.im-modal-btn {
  border: none; background: #f4f5f7; padding: 12px; border-radius: 10px;
  font-size: 14px; cursor: pointer; color: #333;
}
.im-modal-btn:hover { background: #e8e9eb; }
.im-modal-btn.danger { color: var(--danger); }

.im-group-announce {
  font-size: 13px; color: #666; background: var(--primary-light);
  padding: 8px 10px; border-radius: 8px; margin-bottom: 6px;
}
.im-member-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.im-member {
  font-size: 14px; color: #333; padding: 6px 0; border-bottom: 1px solid #f4f5f6;
  display: flex; justify-content: space-between; align-items: center;
}
.im-member-act {
  color: #000000; font-size: 13px; text-decoration: none;
  margin-left: 8px; white-space: nowrap;
}
.im-member-act:hover { text-decoration: underline; }
.im-member-pick { display: flex; flex-direction: column; gap: 6px; }
.im-pick { font-size: 14px; color: #333; }

.im-search-result { display: flex; flex-direction: column; gap: 6px; }
.im-search-item {
  font-size: 13px; color: #333; padding: 8px;
  background: #f7f8fa; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: background .15s;
}
.im-search-item:hover { background: var(--primary-light); color: #000000; }

/* 响应式：桌面并排 / 移动切换 */
@media (min-width: 768px) {
  .im-sessions-panel { flex: 0 0 340px; border-right: 1px solid #eee; }
  .im-chat-panel { flex: 1; }
  .im-back-btn { display: none; }
  .im-chat-header { padding: 10px 18px; }
}
@media (max-width: 767px) {
  .im-shell-header { padding: 0 8px; gap: 6px; }
  .im-net-chip { display: none; } /* 移动端隐藏内网状态文字以节省空间 */
}
