/* ============================================================
   法拍房数据平台 - 全局样式
   ============================================================ */

:root {
  /* ---- 品牌与语义色 ----
     底色/描边与 Element Plus 官方色保持一致（组件观感统一）；
     另定义 *-text 变体专用于文字（对比度 ≥ 4.5:1，满足 WCAG AA） */
  /* 主色为品牌藏青 #1B3A5F（海报同源）：沉稳、可信，适配法拍这类高价值决策场景；
     --point 为同色系亮一档的强调蓝，只用于焦点环与卡片标题竖条这类极小的点；
     价格数字一律藏青，「便宜了多少」一律橙。 */
  --primary: #1B3A5F;   /* 品牌藏青：与海报 / 小程序码同源 */
  --primary-hover: #142B49;
  --primary-light: #edf2f9;
  --primary-text: #1B3A5F;
  --point: #2f6fd0;
  /* 强调橙：只标「让利 / 折扣 / 捡漏机会」，是全站唯一的暖色 */
  --accent: #F0703C;
  --accent-hover: #D95B27;
  --accent-text: #C2551F;      /* 小字用深橙，保证 ≥4.5:1 */
  --accent-light: #FDEFE6;
  --accent-border: #F8D3BC;
  /* 品牌别名（详情页组件 historically 引用） */
  --brand: var(--primary);
  --brand-weak: #EDF2F9;
  --brand-border: #C9D6E8;
  --point-light: #e8f0fc;
  --success: #16A34A;
  --success-light: #F0FDF4;
  --success-text: #15803D;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --warning-text: #B45309;
  --danger: #c41e3a;
  --danger-light: #fbeff2;
  --danger-text: #c41e3a;
  --purple: #6d28d9;
  --wechat: #07C160;            /* 微信官方绿：仅微信登录按钮使用 */

  /* ---- 文字层次（层级清晰、对比度适宜）---- */
  --text-title: #1f2430;      /* 标题：13.9:1 */
  --text-main: #2b3445;       /* 正文主色：11.6:1 */
  --text-regular: #4b5563;    /* 常规文本：7.6:1 */
  --text-secondary: #606b7d;  /* 次要信息：5.2:1（原 #909399 仅 3.5:1 已弃用）*/
  --text-muted: #6a7585;      /* 次要说明/单位：4.7:1，可用于小字正文（原 #8a94a6 仅 3.2:1，不达标）*/
  --text-inverse: #ffffff;

  /* ---- 背景与描边 ---- */
  --bg-page: #f4f6fa;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hover: #f3f7fd;
  --border: #dfe4ee;
  --border-light: #eaeef5;
  --border-strong: #c9d2e3;

  /* ---- 字号阶梯 ---- */
  --fs-hint: 12px;
  --fs-micro: 11px;   /* 标签栏等极小文字（不低于 11px 保证可读）*/
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-display: 36px;    /* 价格大数字（详情页 hero）*/
  --fs-display-sm: 27px; /* 价格大数字（移动端缩放档）*/
  --fs-price: 27px;      /* 列表价格数字 */

  /* ---- 动效：微交互 160ms、浮层 220ms，统一缓动（只动 transform/opacity/颜色）---- */
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- 行高 ---- */
  --lh-tight: 1.3;
  --lh-snug: 1.5;
  --lh-base: 1.7;

  /* ---- 间距阶梯（4 的倍数，全站统一）---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  /* ---- 圆角 ---- */
  --radius-sm: 6px;
  --radius: 12px;               /* 全站统一（原详情页 12px 提升）*/
  --radius-lg: 14px;
  --radius-pill: 999px;
  --radius-xl: 18px;              /* 抽屉 / 弹层专用大圆角 */

  /* ---- 阴影（轻→重，统一光源方向）---- */
  --shadow-card: 0 1px 2px rgba(23, 43, 77, 0.04), 0 4px 14px rgba(23, 43, 77, 0.06);
  --shadow-hover: 0 4px 10px rgba(23, 43, 77, 0.08), 0 10px 26px rgba(23, 43, 77, 0.1);
  --shadow-pop: 0 8px 30px rgba(23, 43, 77, 0.16);
  --shadow-lift: 0 3px 12px rgba(23, 43, 77, 0.16);     /* 卡片悬浮（中性投影，不再带品牌色）*/
  --shadow-header: 0 1px 8px rgba(0, 21, 41, 0.08);     /* 顶部栏 */
  --shadow-bar: 0 -2px 14px rgba(23, 43, 77, 0.08);     /* 底部固定栏（向上投影）*/
  --shadow-sheet: 0 -8px 32px rgba(23, 43, 77, 0.2);    /* 底部抽屉 */

  /* ---- 焦点环（键盘可达性，与品牌色一致）---- */
  --focus-ring: 0 0 0 2px rgba(47, 111, 208, 0.30);   /* 焦点环用品牌蓝亮一档，保证 3:1 可见性 */
  --backdrop: rgba(15, 23, 42, .45);        /* 抽屉/弹层遮罩 */
  --scrollbar-thumb: #c8d2e2;             /* 滚动条 */
  --scrollbar-thumb-hover: #aab7cc;

  /* ---- 组件高度（桌面/移动一致的高度阶梯）---- */
  --header-h: 62px;
  --header-h-mobile: 54px;
  --tabbar-h: 56px;

  /* ---- 中性底色（标签/徽章的浅灰底）---- */
  --bg-muted: #eef1f6;
  --bg-muted-2: #f4f4f5;

  /* ---- 分类色（小区指标分组 / 价格卡，与语义色同一体系）---- */
  --cat-green-border: #a7f3d0;
  --cat-blue: #1d4ed8;
  --cat-blue-light: #eff6ff;
  --cat-blue-border: #bfdbfe;
  --cat-amber: #b45309;
  --cat-amber-light: #fffbeb;
  --cat-amber-border: #fde68a;
  --cat-purple: #6d28d9;
  --cat-purple-light: #f5f3ff;
  --cat-purple-border: #ddd6fe;
  --danger-gradient: linear-gradient(135deg, #fdf5f7, #fbe9ed);

  /* ---- 容器 ---- */
  --container-max: 1440px;
  --container-pad: 20px;

  /* ---- Element Plus 主题变量对齐（统一组件观感与对比度）----
     主色跟随金融深蓝：主按钮 / 激活态 / 复选框统一为深蓝 */
  --el-color-primary: var(--primary);
  /* Element Plus 的 hover/浅底色阶由主色向白色混合而来，必须随深蓝一起重算，
     否则主按钮 hover 会回落到默认的浅蓝 */
  --el-color-primary-light-3: #5f7594;
  --el-color-primary-light-5: #8d9db3;
  --el-color-primary-light-7: #bac4d1;
  --el-color-primary-light-8: #d1d8e0;
  --el-color-primary-light-9: #e8ebf0;
  --el-color-primary-dark-2: #12233C;
  /* 危险色统一为枢机红 #C41E3A，含深浅变体，避免组件回落到默认粉红 */
  --el-color-danger: #c41e3a;   /* 危险红只用于错误/流拍等真实危险语义，不再表示价格 */
  --el-color-danger-light-3: #d9566d;
  --el-color-danger-light-5: #e68a9a;
  --el-color-danger-light-7: #f2bfc7;
  --el-color-danger-light-8: #f7d5da;
  --el-color-danger-light-9: #fbeff2;
  --el-color-danger-dark-2: #9d1830;
  --el-text-color-primary: var(--text-main);
  --el-text-color-regular: var(--text-regular);
  --el-text-color-secondary: var(--text-secondary);
  --el-text-color-placeholder: var(--text-muted);
  --el-border-color: var(--border);
  --el-border-color-lighter: var(--border-light);
  --el-border-color-light: var(--border);
  --el-border-radius-base: var(--radius-sm);
  --el-font-size-base: var(--fs-base);
  --el-table-header-text-color: #3d4757;
  --el-table-text-color: var(--text-main);
  --el-table-border-color: var(--border-light);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 标题统一收紧行高、加深颜色，建立层次；字号越大字距越紧（避免大标题发虚） */
h1, h2, h3, h4, h5 {
  color: var(--text-title);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: 0;
}
h1, h2 { letter-spacing: -0.012em; }

/* 数字列统一等宽数字，避免跳动、便于纵向对齐 */
.tabular-nums,
.price-value,
.f-value,
.stat-value,
.meta-value,
.sibling-num .n {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 键盘可达性：统一焦点样式（不影响鼠标操作） */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 避免 Vue 未挂载时闪现原始模板 */
[v-cloak] { display: none !important; }

a { text-decoration: none; color: inherit; }

/* ------------------------------------------------------------
   顶部导航
   ------------------------------------------------------------ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  box-shadow: var(--shadow-header);
}

.app-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-title);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.logo:hover .logo-text { color: var(--primary-text); }

/* 顶栏搜索：≤768 见手机端断点；≥769 桌面/平板一律可见，避免浏览器缩放跨过断点后消失 */
.header-search { display: none; }

@media (min-width: 1024px) {
  .header-search {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 1 auto;
    width: clamp(150px, 15vw, 220px);
    min-width: 120px;
    height: 34px;
    padding: 0 4px 0 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  }
  .header-search:focus-within {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
  }
  .header-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: var(--fs-sm);
    color: var(--text-main);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .header-search input::placeholder { color: var(--text-muted); }
  .header-search input::-webkit-search-cancel-button { display: none; }
  .header-search button {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--primary-text);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out);
  }
  .header-search button:hover { background: var(--primary-light); }
  .header-search svg { width: 15px; height: 15px; }

  /* 桌面端顶栏顺序：Logo → 主导航 → 搜索 → 账号（搜索靠右，在登录账号前） */
  .app-nav { order: 1; }
  .header-search { order: 2; }
  .user-area { order: 3; }

  /* 账号名过长时省略，避免把搜索框挤出可视区 */
  .user-area > span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 769~991px（平板 / 浏览器放大后的桌面）：收起品牌文字、搜索改用紧凑宽度，保证搜索框不被挤出 */
@media (min-width: 1024px) and (max-width: 1023px) {
  /* 平板宽度不足：整块品牌文字（含域名）一起收起，避免只剩域名 */
  .logo-brand { display: none; }
  .header-search {
    width: 120px;
    min-width: 100px;
    padding-left: 10px;
  }
  .app-menu .el-menu-item { padding: 0 12px; }
}

/* 主导航包裹层（语义 <nav>） */
.app-nav { flex: 1; min-width: 0; }

/* ---- 跳转到主内容（键盘可达性）---- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 3000;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); outline: 2px solid var(--text-inverse); outline-offset: -4px; }

/* 后台窄屏提示 */
.admin-mobile-tip {
  display: none;
  margin-bottom: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid #fbe3b5;
  border-radius: var(--radius-sm);
  background: var(--warning-light);
  color: var(--warning-text);
  font-size: var(--fs-hint);
  line-height: var(--lh-snug);
}
@media (max-width: 768px) {
  .admin-mobile-tip { display: block; }
}

/* 页头 Logo 徽标: 60px 高的页头内取 40px（约 2/3），与品牌文字垂直居中对齐 */
.logo-img {
  height: 40px;
  width: 40px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* 去掉了顶栏里的域名副行，品牌名放大一档成为唯一的文字标识 */
.logo-text { font-size: var(--fs-xl); letter-spacing: 0.3px; }

/* 品牌文字块：与 logo 图形垂直居中 */
.logo-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: var(--lh-tight)
}
.app-menu { flex: 1; border-bottom: none !important; min-width: 0; }
.app-menu .el-menu-item {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-regular);
  border-radius: var(--radius-sm);
  height: 44px;
  line-height: 44px;
  padding: 0 var(--sp-4);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.app-menu .el-menu-item:hover { background: var(--bg-hover); color: var(--text-title); }
.app-menu .el-menu-item.is-active { color: var(--primary-text); font-weight: 600; }

.user-area {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  font-size: var(--fs-base);
  color: var(--text-regular);
}

/* ------------------------------------------------------------
   页面主体
   ------------------------------------------------------------ */
/* 内容不足时页脚仍贴页面底部（保证底部备案号始终位于页面下方居中） */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app > .page-container,
#app > .admin-wrap {
  flex: 1 1 auto;
  width: 100%;    /* auto margin 会禁用 stretch，显式定宽避免被宽表格撑开 */
  min-width: 0;
}

.page-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-6) var(--container-pad) var(--sp-8);
}

.page-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-1);
  color: var(--text-title);
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-5);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.card-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--text-title);
  margin: 0 0 var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.card-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  border-radius: var(--radius-pill);
  /* 卡片标题竖条：全站唯一的蓝色装饰点，与文字/按钮的中性色形成对比 */
  background: linear-gradient(180deg, var(--point), #7aa5f5);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   统计卡片
   ------------------------------------------------------------ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: var(--shadow-hover);
}

/* 可跳转的统计卡片（在拍概览） */
a.stat-card { cursor: pointer; }
a.stat-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
a.stat-card:hover .stat-value { color: var(--primary); }

.stat-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: var(--text-inverse);
  flex-shrink: 0;
  /* 彩色投影 + 顶部 1px 高光：色块更立体，不再是"贴纸" */
  box-shadow:
    0 6px 14px -6px var(--tile-glow, rgba(23, 43, 77, .28)),
    inset 0 1px 0 rgba(255, 255, 255, .34);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

/* 统一的左上柔光，替代死板的纯色填充 */
.stat-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(130% 90% at 22% 0%, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

/* 白色图标加一层极轻投影，避免与浅色渐变糊在一起 */
.stat-icon .el-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(23, 43, 77, .14));
}

.stat-card:hover .stat-icon { transform: translateY(-1px); }

.stat-info { min-width: 0; }
.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: var(--sp-1);
}

/* ---- 买家关注指标条（四宫格，后端按「在拍」口径统计）---- */
.buyer-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.buyer-item {
  background: var(--bg-card);
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  min-width: 0;
}

.buyer-label { font-size: var(--fs-hint); color: var(--text-secondary); }

.buyer-value {
  margin: 2px 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buyer-hint {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 买家榜单（小区 / 商圈 / 各区最低单价）---- */
.rank-list { list-style: none; margin: 0; padding: 0; }

.rank-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--border-light);
  min-width: 0;
}

.rank-item:last-child { border-bottom: none; }

.rank-no {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-micro);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 前三名用品牌浅底强调 */
.rank-no.is-top { background: var(--primary-light); color: var(--primary-text); }

.rank-name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  flex-shrink: 0;
  max-width: 96px;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-value {
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
}

.rank-value em {
  font-style: normal;
  font-weight: 400;
  font-size: var(--fs-micro);
  color: var(--text-secondary);
  margin-left: 1px;
}

.rank-empty {
  padding: var(--sp-4) 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---- 捡漏排行榜（周榜 / 月榜切换）---- */
.deal-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  margin-bottom: var(--sp-2);
}

.deal-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.deal-tab:hover { color: var(--text-main); }

.deal-tab.is-active {
  background: var(--bg-card);
  color: var(--primary-text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(23, 43, 77, .12);
}

.deal-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.deal-head .card-title { margin-bottom: 0; }
.deal-head .deal-tabs { margin-bottom: 0; }

.deal-list { list-style: none; margin: 0; padding: 0; }

/* 桌面端：数据行使用栅格，数值右对齐，避免右侧大面积留白 */
.deal-item {
  display: grid;
  /* 每行独立成网格，只有列宽一致才能保证金额纵向对齐 */
  grid-template-columns: 24px minmax(0, 1fr) 28px 56px 56px 56px 64px;
  column-gap: var(--sp-3);
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-light);
}
.deal-item:last-child { border-bottom: none; }

/* 两行结构在桌面端摊平为表格列 */
.deal-body,
.deal-line,
.deal-sub { display: contents; }

/* 字段分处不同容器，需显式固定在首行，否则自动放置会把后段字段挤到第二行 */
.deal-rank,
.deal-name,
.deal-district,
.deal-market,
.deal-price,
.deal-saving,
.deal-date { grid-row: 1; }

.deal-rank { grid-column: 1; justify-self: start; align-self: center; }

.deal-name {
  grid-column: 2;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.deal-name:hover,
a.deal-name:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.deal-district {
  grid-column: 3;
  justify-self: end;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* 金额统一「数字 + 单位」两段：数字按等宽数字右对齐，单位字号统一 */
.deal-market,
.deal-price,
.deal-saving {
  display: inline-flex;
  align-items: baseline;
  justify-self: end;
  gap: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.deal-market,
.deal-price {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
}
.deal-market { grid-column: 4; }
.deal-price { grid-column: 5; }

.deal-saving {
  grid-column: 6;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--danger);
}

.deal-market .unit,
.deal-price .unit,
.deal-saving .unit {
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--text-muted);
}

.deal-date {
  grid-column: 7;
  justify-self: end;
  text-align: right;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 桌面端隐藏移动端字段前缀（市场价/成交价/成交） */
.deal-sub em,
.deal-saving em { display: none; }

/* 窄屏：恢复两行卡片式，并显示字段前缀 */
@media (max-width: 1024px) {
  .deal-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    padding: 10px 0;
  }

  .deal-body { display: block; flex: 1; min-width: 0; }
  .deal-line { display: flex; align-items: baseline; gap: var(--sp-2); }
  .deal-name { display: block; flex: 1; }

  .deal-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 3px;
  }
  .deal-sub span { white-space: nowrap; }

  .deal-district,
  .deal-market,
  .deal-price,
  .deal-date { font-size: var(--fs-micro); text-align: left; }

  .deal-sub em,
  .deal-saving em {
    display: inline;
    margin-right: 2px;
    font-style: normal;
    font-weight: 400;
    color: var(--text-secondary);
  }
}

.deal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px var(--sp-3);
  margin-top: var(--sp-2);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}

/* 中性化：统计卡图标块统一为墨色系（蓝/绿/橙/红/紫/青不再承担分类，避免与语义色冲突）。
   渐变的亮面仍在左上（与全局阴影光源一致），深色端沉到右下 */
.bg-blue,
.bg-green,
.bg-orange,
.bg-red,
.bg-purple,
.bg-cyan {
  --tile-glow: rgba(26, 58, 102, .38);
  /* 品牌蓝渐变：左上取 --point（亮），右下落到 --primary（深），
     既保持六个图标块统一，又不会像纯墨色那样发黑 */
  background: linear-gradient(145deg, #2f6fd0 0%, #1a3a66 100%);
}

/* ------------------------------------------------------------
   图表容器
   ------------------------------------------------------------ */
.chart-box { width: 100%; height: 320px; }
.chart-box-sm { width: 100%; height: 260px; }
.chart-box-tall { height: 380px; }

/* ------------------------------------------------------------
   表格
   ------------------------------------------------------------ */
.el-table {
  font-size: var(--fs-sm);
  color: var(--text-main);
}

/* 表头：浅底 + 加粗 + 适中行高，与内容区区分层次 */
.el-table th.el-table__cell {
  background: var(--bg-subtle) !important;
  color: var(--text-title);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.el-table th.el-table__cell > .cell { line-height: var(--lh-snug); }
.el-table td.el-table__cell { padding: 9px 0; }
.el-table .cell {
  line-height: var(--lh-snug);
  padding: 0 var(--sp-3);
}
.el-table__body tr:hover > td.el-table__cell { background: var(--bg-hover) !important; }
.el-table--border .el-table__cell { border-right-color: var(--border-light); }
.el-table--border, .el-table--group { border-color: var(--border-light); }
/* 表尾合计 / 统计行 */
.el-table__footer-wrapper td.el-table__cell {
  background: var(--bg-subtle) !important;
  font-weight: 600;
}

.table-link {
  color: var(--primary-text);
  cursor: pointer;
  font-weight: 500;
}
.table-link:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---- 筛选栏：标签与控件对齐、间距统一 ---- */
.filter-bar { margin-bottom: var(--sp-3); }
.filter-bar .el-form-item {
  margin-bottom: var(--sp-3);
  margin-right: var(--sp-4);
}
.filter-bar .el-form-item:last-child { margin-right: 0; }
.filter-bar .el-form-item__label {
  color: var(--text-secondary);
  font-weight: 500;
  padding-right: var(--sp-2);
}
.filter-bar .el-input,
.filter-bar .el-select,
.filter-bar .el-date-editor { vertical-align: middle; }

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-light);
}

/* ------------------------------------------------------------
   后台房源管理：列表内就地编辑 + 多条件筛选条
   ------------------------------------------------------------ */
.filter-bar .filter-summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-1);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--border-light);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
}
.filter-bar .filter-badge {
  padding: 1px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-text);
  font-weight: 600;
}
.filter-bar .filter-tip { color: var(--text-secondary); }
.filter-bar .range-sep { margin: 0 6px; color: var(--text-muted); }

.inline-hint { font-size: var(--fs-hint); color: var(--text-secondary); }
.inline-hint b { color: var(--text-main); font-weight: 600; }
.muted-text { color: var(--text-secondary); }

/* 可点击就地编辑的单元格 */
.cell-edit {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 8px;
  margin: -5px -8px;                 /* 负外边距撑满单元格，整格可点 */
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  cursor: text;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.cell-edit.is-editable:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.cell-edit.is-editable::after {
  content: "✎";
  margin-left: auto;
  padding-left: 4px;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.cell-edit.is-editable:hover::after { opacity: 1; }
.cell-edit.is-editing {
  padding: 2px;
  margin: -3px -2px;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--focus-ring);
}
.cell-text {
  line-height: var(--lh-snug);
  word-break: break-word;
}
.cell-text.is-strong { font-weight: 600; color: var(--text-title); }
.cell-text.is-empty { color: var(--text-muted); }

.cell-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-hint);
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.cell-tag.tag-orange { background: var(--warning-light); color: var(--warning-text); }
.cell-tag.tag-red { background: var(--danger-light); color: var(--danger-text); }
.cell-tag.tag-green { background: var(--success-light); color: var(--success-text); }
.cell-tag.tag-info { background: var(--bg-muted); color: var(--text-secondary); }

/* 正在保存的行 */
.el-table .row-saving > td.el-table__cell { background: var(--primary-light) !important; }

/* ------------------------------------------------------------
   宽表格：表格框内顶部横向滚动条（与表格自带滚动条同款）+ 冻结列
   ------------------------------------------------------------ */
.prop-table-wrap {
  position: relative;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
}
/* 外层框已提供边框，去掉 Element Plus 表格自带外框，避免双线 */
.prop-table-wrap .el-table,
.prop-table-wrap .el-table--border {
  border: none;
  border-radius: 0;
}

/* 表头下沿浮现的横条：同表格自带滚动条 —— 透明轨道 + 同色滑块，默认隐藏 */
.table-scroll-top {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  height: 12px;
  background: var(--bg-subtle);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  cursor: grab;
  animation: propBarIn .18s ease;
}
@keyframes propBarIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.table-scroll-top:active { cursor: grabbing; }
.table-scroll-top::-webkit-scrollbar { height: 12px; }
.table-scroll-top::-webkit-scrollbar-track { background: transparent; }
.table-scroll-top::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
}
.table-scroll-top::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}
.table-scroll-inner { height: 1px; }

/* 冻结列（起拍价）：不透明底色 + 右侧分隔，避免滚动时内容穿透 */
.el-table__body .el-table-fixed-column--left { background: var(--bg-card); }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table-fixed-column--left {
  background: var(--bg-subtle);
}
.el-table__body tr:hover > td.el-table-fixed-column--left { background: var(--bg-hover) !important; }
.el-table th.el-table-fixed-column--left.is-last-column,
.el-table td.el-table-fixed-column--left.is-last-column {
  border-right: 1px solid var(--border);
}

/* ---- 通用组件观感统一（Element Plus）---- */
.el-form-item__label { color: var(--text-secondary); font-weight: 500; }
.el-descriptions__label { color: var(--text-secondary) !important; font-weight: 500 !important; }
.el-descriptions__content { color: var(--text-main); }
.el-tag { font-weight: 500; }
.el-button { font-weight: 500; letter-spacing: 0.01em; }
.el-tabs__item { font-size: var(--fs-base); font-weight: 500; }
.el-tabs__item.is-active { font-weight: 600; }
.el-empty__description { color: var(--text-secondary); }
.el-dialog { border-radius: var(--radius-lg); }
.el-dialog__title { font-weight: 600; color: var(--text-title); }
.el-dialog__body { padding-top: var(--sp-4); }
.el-alert__title { font-size: var(--fs-base); line-height: var(--lh-snug); }
.el-message-box__title { font-weight: 600; }
.el-pagination { font-weight: 500; }
.el-divider__text { color: var(--text-secondary); background: var(--bg-card); }

/* 语义色与设计令牌对齐（EP 内部派生色随之统一）*/
:root {
  --el-color-success: var(--success);
  --el-color-warning: var(--warning);
  --el-color-danger: var(--danger);
  --el-color-error: var(--danger);
  --el-color-info: var(--text-secondary);
}

/* ------------------------------------------------------------
   后台管理布局（侧边导航 + 内容区）
   ------------------------------------------------------------ */
.admin-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-5) var(--container-pad) var(--sp-8);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
}

.admin-sidebar .el-menu {
  border-right: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
  padding: var(--sp-2);
}

.admin-sidebar .el-menu-item {
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-1);
  height: 44px;
  line-height: 44px;
  font-size: var(--fs-base);
  color: var(--text-regular);
}

.admin-sidebar .el-menu-item.is-active {
  background: var(--primary-light);
  color: var(--primary-text);
  font-weight: 600;
}

.admin-main { flex: 1; min-width: 0; }

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.admin-page-head h2 {
  font-size: var(--fs-xl);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.admin-page-head .desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: var(--sp-1);
}

.admin-toolbar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-4);
}

.admin-toolbar .spacer { flex: 1; }

/* 房源更新日志：今日 / 近 7 天 / 近 30 天更新套数 */
.update-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.update-summary-item {
  flex: 1 1 160px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  background: #f7f9fc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
}
.update-summary-item b {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.update-summary-item em {
  font-style: normal;
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.update-count {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* 房源编辑表单：留空字段隐藏后，剩余字段自动均分铺满（避免留白空洞） */
.prop-form > .el-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0 10px;
}
.prop-form > .el-row > .el-col {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.prop-form-hint {
  margin: -6px 0 var(--sp-2);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}


/* 角色徽章 */
.role-badge {
  display: inline-block;
  padding: 1px var(--sp-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-hint);
  font-weight: 500;
  line-height: 19px;
}
.role-admin { background: var(--danger-light); color: var(--danger-text); }
.role-operator { background: var(--primary-light); color: var(--primary-text); }
.role-viewer { background: var(--bg-muted); color: var(--text-secondary); }
.role-user { background: var(--success-light); color: var(--success-text); }

/* 权限矩阵表格 */
.perm-module { font-weight: 600; }
/* 矩阵第二行：模块说明小字，帮助上一级角色理解开关作用范围 */
.perm-module-desc { font-weight: 400; font-size: var(--fs-micro); color: var(--text-muted); }
.perm-yes { color: var(--success-text); font-weight: 700; }
.perm-no { color: var(--text-muted); }

/* 角色卡片 */
.role-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  height: 100%;
  background: var(--bg-card);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.role-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.role-card h4 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.role-card .role-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-3);
}

/* 统一分页条（左侧摘要 + 右侧分页器） */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
}

.pager .pager-info {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.pager .el-pagination { margin-left: auto; flex-wrap: wrap; row-gap: 8px; }

/* 统计小卡（后台概览） */
.admin-main .mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 100%;
}
.admin-main .mini-stat .icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xl); color: var(--text-inverse); flex-shrink: 0;
}
.admin-main .mini-stat .value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-title);
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
}
.admin-main .mini-stat .label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: var(--sp-1);
}

/* 数据统计页：分组指标磁贴（数字优先，无图标） */
.admin-main .stats-group { margin-bottom: var(--sp-4); }
.admin-main .stats-group:last-child { margin-bottom: 0; }
.admin-main .stats-group-title {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: var(--sp-2);
}
.admin-main .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}
@media (max-width: 768px) {
  .admin-main .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 磁贴：左侧 3px 深蓝强调条默认透明，悬停浮现，替代原来的彩色图标块 */
.admin-main .mini-stat.stat-tile {
  display: block;
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  overflow: hidden;
}
.admin-main .mini-stat.stat-tile::before {
  content: '';
  position: absolute;
  left: 0; top: var(--sp-3); bottom: var(--sp-3);
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.admin-main .mini-stat.stat-tile:hover { border-color: var(--border-strong); }
.admin-main .mini-stat.stat-tile:hover::before { opacity: 1; }

/* 访问通知：卡片头部（实时 / 每日两张卡共用同一结构） */
.admin-main .visit-card + .visit-card { margin-top: 14px; }
.admin-main .visit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.admin-main .visit-head-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.admin-main .visit-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-main .visit-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-main);
}
/* 监听状态点：绿色呼吸，未监听为灰色静止 */
.admin-main .visit-live { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.admin-main .visit-live.is-on {
  background: #2f9e63;
  box-shadow: 0 0 0 0 rgba(47, 158, 99, .45);
  animation: visit-pulse 2.4s var(--ease-out) infinite;
}
@keyframes visit-pulse {
  70% { box-shadow: 0 0 0 7px rgba(47, 158, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 99, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-main .visit-live.is-on { animation: none; }
}
/* 关键数字胶囊：今日访问量 / 当日访问量 */
.admin-main .visit-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-text);
  font-size: var(--fs-hint);
  font-variant-numeric: tabular-nums;
}
.admin-main .visit-metric b { font-size: var(--fs-md); font-weight: 700; }
.admin-main .visit-status { font-size: var(--fs-hint); color: var(--text-muted); }
.admin-main .visit-label { font-size: var(--fs-hint); color: var(--text-secondary); }
.admin-main .visit-desc { margin: 6px 0 10px; font-size: var(--fs-hint); color: var(--text-muted); }

/* 访问通知：表格（时间 / 访客 / 环境 / 页面 四列，主副两行固定行高） */
.admin-main .visit-table-wrap { width: 100%; }
.admin-main .visit-table .el-table__cell { padding: 7px 0; }
.admin-main .visit-main {
  display: block;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug)
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-main .visit-sub {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-hint);
  line-height: var(--lh-tight)
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-main .visit-num { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.admin-main .visit-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-micro);
}
.admin-main .visit-detail-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.admin-main .visit-detail-head .visit-sub-title { margin: 0; }
.admin-main .visit-detail-count { font-size: var(--fs-hint); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.admin-main .visit-date { width: 148px; }

/* 访问通知：每日访问统计（14 天柱形 + 分布条 + 当日明细） */
.admin-main .visit-trend-title,
.admin-main .visit-sub-title {
  font-size: var(--fs-hint);
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-2);
}
.admin-main .visit-trend {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: var(--sp-2) 2px 0;
  border-top: 1px dashed var(--border-light);
}
.admin-main .visit-trend-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 3px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.admin-main .visit-trend-item:hover { background: var(--bg-hover); }
.admin-main .visit-trend-item.is-active { background: var(--primary-light); }
.admin-main .visit-trend-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 54px;
}
.admin-main .visit-trend-bar i {
  display: block;
  width: 62%;
  max-width: 24px;
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7ba4e0, var(--primary));
  transition: height var(--dur-base) var(--ease-out);
}
.admin-main .visit-trend-item.is-today .visit-trend-bar i {
  background: linear-gradient(180deg, #86d6ab, #2f9e63);
}
.admin-main .visit-trend-count {
  font-size: var(--fs-micro);
  color: var(--text-regular);
  font-variant-numeric: tabular-nums;
}
.admin-main .visit-trend-date { font-size: var(--fs-micro); color: var(--text-muted); white-space: nowrap; }
.admin-main .visit-trend-item.is-active .visit-trend-date { color: var(--primary-text); font-weight: 600; }

.admin-main .visit-rank { display: flex; flex-direction: column; gap: var(--sp-2); }
.admin-main .visit-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(50px, 1.6fr) 44px;
  align-items: center;
  gap: var(--sp-2);
}
.admin-main .visit-rank-name {
  font-size: var(--fs-hint);
  color: var(--text-regular);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-main .visit-rank-bar { height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.admin-main .visit-rank-bar i { display: block; height: 100%; border-radius: 3px; background: var(--point); }
.admin-main .visit-rank-count {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.admin-main .visit-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-main .visit-empty { padding: var(--sp-2) 0; font-size: var(--fs-hint); color: var(--text-muted); }

@media (max-width: 768px) {
  .admin-main .visit-head { gap: var(--sp-2); }
  .admin-main .visit-head-actions { width: 100%; }
  .admin-main .visit-date { width: 132px; }
  /* 手机端四列放不下，改为卡片内横向滚动，列宽不再被压扁 */
  .admin-main .visit-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-main .visit-table { min-width: 680px; }

  .admin-main .visit-trend { gap: 2px; }
  .admin-main .visit-trend-bar { height: 44px; }
  .admin-main .visit-trend-date { font-size: 10px; }
  .admin-main .visit-rank-row { grid-template-columns: minmax(0, 1.2fr) minmax(40px, 1.2fr) 36px; }
}

/* 小区管理：表格顶部横向滚动条（与表体横向滚动联动） */
.admin-main .table-hscroll-top {
  height: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 6px;
}
.admin-main .table-hscroll-top-inner { height: 1px; }

/* 小区表：排序图标紧贴列名（列名之后，不漂到右边缘），数字列居中更紧凑 */
/* EP 默认给可排序表头 .cell 设了 space-between，会把图标顶到右边缘，这里按列对齐方式复位 */
.admin-main .community-table th.el-table__cell.is-sortable .cell { justify-content: flex-start; }
.admin-main .community-table th.el-table__cell.is-sortable.is-center .cell { justify-content: center; }
.admin-main .community-table th.el-table__cell.is-sortable.is-right .cell { justify-content: flex-end; }
.admin-main .community-table .caret-wrapper { margin-left: 4px; }
/* 自定义两行表头列：EP 会在插槽内容后再追加一组原生三角，隐藏它，只保留名称后的一组 */
.admin-main .community-table th.col-h-head > .cell > .caret-wrapper { display: none; }
.admin-main .community-table .el-table__cell .cell { padding-left: 10px; padding-right: 10px; }
/* 数值列：EP 给居中列加了 is-center；但 .cell-edit 是 flex 容器，悬停笔图标 ::after 带 margin-left:auto
   会吃掉右侧剩余空间把文字顶到左边，这里让它脱离文档流，文字才能真正居中 */
.admin-main .community-table td.el-table__cell.is-center .cell-edit { position: relative; justify-content: center; }
.admin-main .community-table td.el-table__cell.is-center .cell-edit .cell-text { text-align: center; }
.admin-main .community-table td.el-table__cell.is-center .cell-edit input { text-align: center; }
.admin-main .community-table td.el-table__cell.is-center .cell-edit.is-editable::after { position: absolute; right: 0; margin-left: 0; }
.admin-main .community-table td.el-table__cell:not(.is-center) .cell-edit { justify-content: flex-start; }
/* 两行表头：名称(含排序图标)第一行，单位第二行 */
.admin-main .community-table .col-h { display: inline-flex; flex-direction: column; align-items: center; line-height: var(--lh-tight) }
.admin-main .community-table .col-h-top { display: inline-flex; align-items: center; }
.admin-main .community-table .col-h-name { white-space: nowrap; font-weight: 600; }
.admin-main .community-table .col-h-unit { font-size: 11px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; }

/* 后台统计条（如「历史成交」页顶部汇总） */
.admin-main .mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: var(--sp-3);
}

/* 无图标版本（.v / .l 结构）改为上下排布，与详情页统计卡观感一致 */
.admin-main .mini-stat:not(:has(.icon)) { display: block; }
.admin-main .mini-stat .v {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
}
.admin-main .mini-stat .l {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: var(--sp-1);
}

/* ------------------------------------------------------------
   登录页
   ------------------------------------------------------------ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c3f94 0%, var(--primary) 55%, #5cc4de 100%);
  padding: var(--sp-5);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
}

.login-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-4);
  object-fit: contain;
}

.login-title {
  text-align: center;
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-title);
  margin: 0 0 var(--sp-1);
}

.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-6);
}

.login-hint {
  margin-top: var(--sp-4);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  text-align: center;
  line-height: var(--lh-base);
}
.login-hint .link-primary {
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 500;
}
.login-hint .link-primary:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   房源详情页
   ------------------------------------------------------------ */
.detail-topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

/* 详情页搜索框：仅移动端展示，跳转房源列表检索 */
.detail-search { display: none; }

.detail-crumb { color: var(--text-secondary); font-size: var(--fs-sm); }

/* ---- 核心信息区（Hero）---- */
.hero-card { padding: var(--sp-5) var(--sp-6); }

.hero-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-main { min-width: 0; flex: 1 1 320px; }

.hero-title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: var(--lh-tight)
  letter-spacing: 0.005em;
  margin: 0 0 var(--sp-3);
  color: var(--text-title);
  word-break: break-word;
}

.hero-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero-sub {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  margin-top: var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--sp-4);
}

.hero-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  flex-wrap: wrap;
}

/* 核心价格四宫格 */
.hero-price {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.price-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.price-block .price-label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.price-block .price-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-top: 5px;
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
  word-break: break-word;
}

.price-block .price-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.price-block.is-main {
  background: var(--danger-gradient);
  border-color: var(--danger-light);
}

/* 银行评估价卡片与「银行评估价」分组同色（紫） */
.price-block.is-bank {
  background: var(--cat-purple-light);
  border-color: var(--cat-purple-border);
}
.price-block.is-discount {
  background: var(--success-light);
  border-color: var(--success-light);
}

/* 低于市场价的节省额：紧跟单价右侧的小胶囊，金额单独放大 */
.price-block .price-saving {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(23, 43, 77, .05);
  box-shadow: 0 1px 2px rgba(23, 43, 77, .05);
  font-size: var(--fs-hint);
  font-weight: 600;
  line-height: var(--lh-snug)
  color: var(--success-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-block .price-saving b {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.01em;
}
/* 起拍价数值与节省额同一行，右侧跟随 */
.price-block .price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.price-block.is-main .price-value { color: var(--primary); font-size: var(--fs-display); }
.price-block.is-discount .price-value { color: var(--success-text); }
/* 银行评估价与「银行评估价」指标分组同色（紫），便于跨区块识别同一类数据 */
.price-block.is-bank .price-value { color: var(--cat-purple); }
.price-block.is-bank .price-label { color: var(--cat-purple); }

/* 关键信息条 */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 96px;
}
.meta-item .meta-label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}
.meta-item .meta-value {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-snug);
  word-break: break-word;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-hint);
  font-weight: 600;
  white-space: nowrap;
}
.countdown-danger { background: var(--danger-light); color: var(--danger-text); }
.countdown-warning { background: var(--warning-light); color: var(--warning-text); }
.countdown-info { background: var(--bg-muted-2); color: var(--text-secondary); }
.countdown-success { background: var(--success-light); color: var(--success-text); }

/* ---- 五板块：紧凑双列排布（宽卡片 + 多列字段，避免窄列堆高与大片留白）---- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;              /* 同行卡片等高，视觉整齐 */
  margin: 0 0 var(--sp-3);
}

/* 主栏首个分区标题不加多余上边距（与 Hero 保持 16px 紧凑间距） */
.detail-main-col > .section-head:first-child { margin-top: 0; }

.detail-grid > .card.detail-card {
  margin-bottom: 0;
  /* 与全站卡片内边距对齐 4pt 阶梯（原 14px 不在阶梯上） */
  padding: var(--sp-4);
  min-width: 0;
}

/* 属性与记录 / 价格与折扣：两卡并排，卡内字段两栏，每栏「名称在左、数值在右」单行排布 */
.detail-grid > .card.detail-card:not(.is-wide) .card-title { margin-bottom: 8px; }
.detail-grid > .card.detail-card:not(.is-wide) .field-grid { column-gap: var(--sp-4); }
.detail-grid > .card.detail-card:not(.is-wide) .field-grid .field {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 6px 0;
}
.detail-grid > .card.detail-card:not(.is-wide) .field-grid .field .f-label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--fs-hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-grid > .card.detail-card:not(.is-wide) .field-grid .field .f-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  text-align: right;
  overflow-wrap: anywhere;
}

/* 通栏卡片（小区信息内容较多，占满整行） */
.detail-grid > .is-wide { grid-column: 1 / -1; }

/* 通栏卡片内的成组列表（同小区房源 / 历史成交）：内部多列网格，紧凑不留白 */
.detail-grid .sibling-list,
.detail-grid .history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-2);
  align-content: start;
}

/* 字段网格：默认两列（可指定三列），单元格「标签在上 + 数值在下」——密集且易扫读 */
.detail-grid .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-5);
  border-top: 1px solid var(--border-light);
}
.detail-grid .field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 四列：小区基础信息一排铺满；字段不足时轨道自动收拢，不留空档 */
.detail-grid .field-grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.detail-grid .field-grid .field {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding: var(--sp-2) 0;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

/* 取消交替竖线与左右内缩（改为纯下划线分隔，版面更干净） */
.detail-grid .field-grid .field:nth-child(odd),
.detail-grid .field-grid .field:nth-child(even) {
  padding-left: 0;
  padding-right: 0;
  border-left: none;
}

/* 末行不画分隔线 */
.detail-grid .field-grid:not(.cols-3) .field:nth-last-child(-n+2) { border-bottom: none; }
.detail-grid .field-grid.cols-3 .field:nth-last-child(-n+3) { border-bottom: none; }

/* 市场指标分组布局见「小区信息视觉升级」区块（统一列宽与响应式断点） */

/* 迷你统计列数见下方 .detail-grid .mini-stats 规则（自适应列数） */

/* ---- 模块分区标题（明确的分段层次与视觉引导）---- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin: var(--sp-6) 0 var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 4px solid var(--primary);
}
.section-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: 0.01em;
}
.section-note {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
}

/* 桌面端页内跳转：胶囊式小按钮，替代原来那行只读的分区文字 */
.section-jump {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.section-jump a {
  padding: 3px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--fs-hint);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.section-jump a:hover,
.section-jump a:focus-visible {
  border-color: var(--primary-light);
  background: var(--primary-light);
  color: var(--primary-text);
}
/* 手机端已有吸顶分区条，这里不重复 */
@media (max-width: 768px) {
  .section-jump { display: none; }
}
/* 桌面端锚点落位避开吸顶头部 */
@media (min-width: 1024px) {
  #params, #community, #siblings, #history, #desc { scroll-margin-top: 84px; }
}

/* ---- 描述 · 区位配套 ／ 咨询入口 两栏 ---- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-4);
  align-items: start;
  margin-top: var(--sp-5);
}
.detail-main-col,
.detail-aside { min-width: 0; }
/* 父级 align-items:start 会让侧栏只有内容高度，sticky 就没有可滚动区间；
   这里让侧栏撑满整行，咨询卡才能跟着长页面吸顶 */
.detail-aside { align-self: stretch; }

.aside-sticky {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.aside-sticky > .card { margin-bottom: 0; }

/* 房源描述 */
.desc-text {
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-base)
  color: var(--text-main);
  letter-spacing: 0.012em;
  text-align: justify;
}
.desc-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.desc-point {
  padding: var(--sp-3);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  min-width: 0;
}
.desc-point.is-good { border-left-color: var(--success); background: var(--success-light); }
.desc-point.is-deal { border-left-color: var(--accent); background: var(--accent-light); }  /* 捡漏机会：品牌橙 */
.desc-point.is-warn { border-left-color: var(--danger); background: var(--danger-light); }
.desc-point .dp-label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}
.desc-point .dp-value {
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-title);
  line-height: var(--lh-snug);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.desc-note {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

/* 区位与配套 */
#facility .mini-title {
  margin: var(--sp-4) 0 6px;
  padding-top: var(--sp-3);
}
#facility > .mini-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.facility-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  min-width: 0;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.facility-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.facility-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-text);
  font-size: 16px;
  line-height: 1;
}
.facility-body { min-width: 0; }
.facility-label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}
.facility-value {
  margin-top: 1px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-title);
  line-height: var(--lh-snug);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.facility-sub {
  margin-top: 2px;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}
.facility-item.tone-good .facility-icon { background: var(--success-light); }
.facility-item.tone-good .facility-value { color: var(--success-text); }
.facility-item.tone-deal .facility-icon { background: var(--accent-light); }
.facility-item.tone-deal .facility-value { color: var(--accent-text); }
.facility-item.tone-warn .facility-icon { background: var(--danger-light); }
.facility-item.tone-warn .facility-value { color: var(--danger-text); }

/* 咨询入口卡（CTA） */
.contact-card { border-color: var(--primary-light); }
.contact-card .card-title { margin-bottom: var(--sp-3); }

.cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.cta-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.cta-btn.is-call { background: var(--primary-light); border-color: var(--primary-light); }
.cta-icon { font-size: var(--fs-xl); line-height: 1; flex-shrink: 0; }
.cta-body { display: flex; flex-direction: column; min-width: 0; }
.cta-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-title);
  line-height: var(--lh-snug);
}
.cta-sub {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: 1px;
  word-break: break-all;
}

.contact-tip {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.cta-group .el-button { margin-left: 0 !important; width: 100%; }

.contact-note {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  text-align: center;
  line-height: var(--lh-base);
}

/* 咨询电话（号码醒目，移动端点击即可拨号） */
.contact-calls {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.call-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.call-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.call-item.is-primary { background: var(--primary-light); border-color: var(--primary-light); }
.call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
}
.call-icon svg { width: 20px; height: 20px; }
.call-item.is-primary .call-icon { background: #fff; }
.call-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.call-label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}
.call-number {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-title);
  line-height: var(--lh-snug);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.call-item.is-primary .call-number { color: var(--primary); }
.call-action {
  flex-shrink: 0;
  padding: 1px var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-hint);
  line-height: 20px;
}

/* 咨询二维码（居中、留白充足） */
.contact-qr {
  margin-bottom: var(--sp-3);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  text-align: center;
}
.qr-img {
  display: block;
  width: 148px;
  height: auto;
  margin: 0 auto var(--sp-2);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.qr-title {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-title);
  line-height: var(--lh-snug);
}
.qr-sub {
  margin: 2px 0 0;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

.source-note {
  margin: var(--sp-3) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

/* 窄列内字段的排布规则见上方"五板块：紧凑双列排布"区块（统一由 .detail-grid 控制） */

.card-title-note {
  margin-left: auto;
  font-size: var(--fs-hint);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.mini-title {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
}

/* ---- 字段网格 ---- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-light);
}

.field-grid.cols-1 { grid-template-columns: 1fr; }

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-1);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  min-width: 0;
}

/* 网格末端去掉多余分隔线，避免与卡片边缘形成"双线" */
.field-grid.cols-1 .field:last-child { border-bottom: none; }
.field-grid:not(.cols-1) .field:nth-last-child(-n+2) { border-bottom: none; }

.field-grid:not(.cols-1) .field:nth-child(odd) { padding-right: var(--sp-4); }
.field-grid:not(.cols-1) .field:nth-child(even) {
  padding-left: var(--sp-4);
  border-left: 1px solid var(--border-light);
}

.field .f-label {
  color: var(--text-secondary);
  flex-shrink: 0;
  line-height: var(--lh-snug);
}
.field .f-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-snug);
}
.field .f-value.accent { color: var(--warning-text); }
.field .f-value.danger { color: var(--danger-text); }
.field .f-value.success { color: var(--success-text); }
.field .f-value.deal { color: var(--accent-text); }   /* 让利/折扣：品牌橙 */
.field .f-value.primary { color: var(--primary-text); }

/* ------------------------------------------------------------
   小区信息视觉升级
   层次：基础信息条（浅底） → 四组等宽指标卡（顶部 3px 类别色条）
   原则：分类色只用于标题/数值/色条，卡片保持白底，降低彩色噪点
   ------------------------------------------------------------ */

/* 小区基础信息：浅底概览条，与下方指标卡拉开层次 */
.detail-grid .community-info-grid {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  column-gap: var(--sp-5);
}
.detail-grid .community-info-grid .field {
  padding: 2px 0;
  border-bottom: none;
}
.detail-grid .community-info-grid .field .f-label {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
}
.detail-grid .community-info-grid .field .f-value {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-title);
}
/* 小区别名：同一项目的其他叫法，字号与权重各降一档，不与小区名称争视觉焦点 */
.detail-grid .community-info-grid .field .f-value.muted {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

/* 指标分组：桌面四列等宽，窄屏两列，超窄屏单列 */
.detail-grid .metric-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: 0;
}

.metric-group {
  --cat-color: var(--text-secondary);
  --cat-soft: var(--bg-subtle);
  --cat-border: var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--sp-3) 10px var(--sp-2);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(23, 43, 77, 0.04);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

/* 顶部类别色条：四类指标一眼区分 */
.metric-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color);
}

@media (hover: hover) {
  .metric-group:hover {
    border-color: var(--cat-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
  }
}

.metric-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-title);
}

.metric-group-head .metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--cat-color);
  flex-shrink: 0;
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  color: var(--primary-text);
  font-size: 15px;
  line-height: 1;
}

.metric-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 组内字段：标签弱化、数值突出，两列等宽对齐 */
.metric-group .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-2);
  border-top: none;
}
.metric-group .field {
  padding: 7px 0;
  border-bottom: none;
}
.metric-group .field .f-label {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: var(--lh-snug)
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-group .field .f-value {
  margin-top: 2px;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: var(--lh-tight)
  color: var(--cat-color);
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 分组说明置底，避免打断字段的横向对齐 */
.metric-note {
  margin: auto 0 0;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--cat-soft);
  color: var(--text-secondary);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--lh-snug)
  text-align: left;
}

/* 类别主题色（同一色相贯穿色条、圆点、数值与说明底） */
.metric-group.cat-listing { --cat-color: var(--success-text); --cat-soft: var(--success-light); --cat-border: var(--cat-green-border); }
.metric-group.cat-recent { --cat-color: var(--cat-blue); --cat-soft: var(--cat-blue-light); --cat-border: var(--cat-blue-border); }
.metric-group.cat-year { --cat-color: var(--cat-amber); --cat-soft: var(--cat-amber-light); --cat-border: var(--cat-amber-border); }
.metric-group.cat-bank { --cat-color: var(--cat-purple); --cat-soft: var(--cat-purple-light); --cat-border: var(--cat-purple-border); }

/* 小区法拍统计：与指标卡统一的白底小卡 */
.mini-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-5) 0 var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-light);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-title);
}
.mini-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  flex-shrink: 0;
}
.detail-grid .mini-stats { margin-top: var(--sp-2); gap: var(--sp-2); }
.detail-grid .mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  box-shadow: 0 1px 2px rgba(23, 43, 77, 0.03);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.detail-grid .mini-stat:hover {
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(23, 43, 77, 0.06);
}

/* 响应式：笔记本及以下两列（保证数值完整），超窄屏单列 */
@media (max-width: 1280px) {
  .detail-grid .metric-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .detail-grid .metric-groups { gap: var(--sp-2); }
  .metric-group { padding: var(--sp-3) var(--sp-3) var(--sp-2); }
  .metric-group .field .f-value { font-size: var(--fs-sm); }
  .detail-grid .community-info-grid { padding: var(--sp-3); }
}
@media (max-width: 480px) {
  /* 三列基础信息在 360/375 级窄屏上收字号，保证小区名称与租金尽量单行可读 */
  .detail-grid .community-info-grid .field .f-label { font-size: var(--fs-micro); }
  .detail-grid .community-info-grid .field .f-value { font-size: var(--fs-sm); }
}

/* ------------------------------------------------------------
   房源详情 · 数据分析（登录可见）
   7 项测算指标：桌面四列（末项跨两列），窄屏三列/两列/单列
   ------------------------------------------------------------ */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.analysis-item {
  min-width: 0;
  padding: var(--sp-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

/* 关键结论（捡漏空间 / 建议最后接受价）用品牌浅底强调 */
.analysis-item.is-key {
  background: var(--primary-light);
  border-color: #c6e2ff;
}

.analysis-item.is-wide { grid-column: span 2; }

.analysis-label {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-value {
  margin-top: 4px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-tight)
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.analysis-value.is-negative { color: var(--danger-text); }
.analysis-item.is-key .analysis-value { color: var(--primary-text); }

.analysis-hint {
  margin-top: 4px;
  font-size: var(--fs-micro);
  line-height: var(--lh-snug)
  color: var(--text-muted);
}

@media (max-width: 1280px) {
  .analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .analysis-value { font-size: var(--fs-md); }
}
@media (max-width: 480px) {
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-item.is-wide { grid-column: auto; }
}

/* ---- 小区迷你统计（详情页各板块内，与后台概览小卡区分作用域）---- */
.detail-grid .mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.detail-grid .mini-stat {
  text-align: center;
  min-width: 0;
  display: block;
  height: auto;
}
.detail-grid .mini-stat .v {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-title);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-grid .mini-stat .v.is-danger { color: var(--danger-text); }
.detail-grid .mini-stat .l {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: var(--sp-1);
}

/* ---- 同小区房源列表（窄列内自适应折行）---- */
.sibling-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.sibling-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "addr addr"
    "meta foot"
    "nums nums";
  align-items: center;
  column-gap: var(--sp-2);
  row-gap: 6px;
  padding: var(--sp-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.sibling-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
  background: var(--bg-card);
}

/* 地址 / 副信息直接参与卡片栅格，状态与箭头并到副信息行右侧 */
.sibling-main { display: contents; }
.sibling-addr {
  grid-area: addr;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-title);
  line-height: var(--lh-snug);
  word-break: break-word;
}
.sibling-meta {
  grid-area: meta;
  min-width: 0;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: 0;
}

/* 三个关键数字：窄列自动 2 列、宽列 3 列 */
.sibling-nums {
  grid-area: nums;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 2px var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--border-light);
}
.sibling-num { text-align: left; min-width: 0; }
.sibling-num .n {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-snug);
  word-break: break-word;
}
.sibling-num .n.is-price { color: var(--primary); }
.sibling-num .t {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  margin-top: 1px;
}
.sibling-foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.sibling-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: var(--fs-lg);
  line-height: 1;
}

/* ---- 同小区历史拍卖成交（紧凑卡片列表，替代宽表格以适配窄列）---- */
.history-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.history-item {
  padding: var(--sp-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
}
.history-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-title);
  line-height: var(--lh-snug);
  word-break: break-word;
}

.history-nums {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 8px 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
}
/* 四项核心数据一行均分，标签在上、数值在下 */
.history-nums > span {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}
.history-nums i {
  font-style: normal;
  max-width: 100%;
  font-size: var(--fs-micro);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-nums b {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-snug);
  white-space: nowrap;
}
.history-nums b.is-price { color: var(--primary); }

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-2);
  margin-top: 0;
  padding-top: 8px;
  border-top: none;
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}
.history-meta > span:not(:last-child)::after {
  content: "·";
  margin-left: var(--sp-2);
  color: var(--text-muted);
}
.history-more,
.sibling-more {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border-light);
  text-align: center;
}
.history-more .el-button,
.sibling-more .el-button { font-weight: 600; }
.history-more .more-count,
.sibling-more .more-count {
  margin-left: 2px;
  font-size: var(--fs-hint);
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---- 移动端底部操作条 ---- */
.mobile-bar { display: none; }

/* ------------------------------------------------------------
   多选筛选组件（Excel 风格勾选框面板）
   ------------------------------------------------------------ */
.fm { position: relative; width: 100%; }

.fm-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 20px;
  text-align: left;
  color: var(--text-regular);
  transition: border-color var(--dur-base), box-shadow var(--dur-base) var(--ease-out);
}

.fm-trigger:hover { border-color: var(--border-strong); }
/* 焦点态与 Element Plus 输入框保持一致（品牌色描边 + 焦点环） */
.fm-trigger:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.fm-trigger.active {
  border-color: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
  background: var(--primary-light);
}

.fm-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-arrow { color: var(--text-muted); font-style: normal; font-size: var(--fs-micro); }

.fm-panel {
  position: absolute;
  z-index: 2200;
  top: calc(100% + 4px);
  left: 0;
  max-width: calc(100vw - 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 8px;
}

.fm-search input {
  width: 100%;
  box-sizing: border-box;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out);
}
.fm-search input:focus { border-color: var(--primary); }

.fm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 6px;
  font-size: var(--fs-hint);
}
.fm-action {
  padding: 2px 4px;
  border: none;
  border-radius: 4px;
  background: none;
  font: inherit;
  color: var(--primary-text);
  cursor: pointer;
}
.fm-action:hover { text-decoration: underline; }
.fm-count { margin-left: auto; color: var(--text-secondary); }

.fm-list {
  max-height: 258px;
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 4px;
}

.fm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 5px;
  cursor: pointer;
  font-size: var(--fs-sm);
  user-select: none;
}

/* 真实复选框：视觉隐藏，供键盘/读屏使用，焦点环画在 .fm-box 上 */
.fm-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.fm-check:focus-visible + .fm-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.fm-item:hover { background: var(--bg-hover); }
.fm-item:hover { background: var(--bg-hover); }

/* 勾选框（选中为绿色对勾，与参考图一致） */
.fm-box {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1px solid #c0c4cc;
  border-radius: 3px;
  background: var(--bg-card);
  transition: background var(--dur-fast), border-color var(--dur-fast) var(--ease-out);
}
.fm-box.checked { background: var(--primary); border-color: var(--primary); }
.fm-box.checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--bg-card);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fm-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-badge { color: var(--text-secondary); font-size: var(--fs-hint); font-variant-numeric: tabular-nums; }
.fm-empty { padding: var(--sp-4) 0; text-align: center; color: var(--text-secondary); font-size: var(--fs-sm); }

.fm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.fm-btn {
  height: 28px;
  padding: 0 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  border-radius: 6px;
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--text-regular);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.fm-btn:hover { border-color: var(--primary); color: var(--primary-text); }
.fm-btn.primary { background: var(--primary); border-color: var(--primary); color: var(--text-inverse); }
.fm-btn.primary:hover { background: var(--primary-hover); color: var(--text-inverse); }

/* ============================================================
   手机端体验优化层
   底部标签栏 · 筛选底部抽屉 · 触控目标 · iOS 安全区 · 表格与字号
   ============================================================ */
.tabbar { display: none; }
.fm-backdrop { display: none; }   /* 仅手机端抽屉模式显示 */
.table-scroll-hint { display: none; }

/* 表格骨架屏（首屏加载占位，避免空白+转圈的生硬感知） */
.table-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-2) 0 var(--sp-4);
}
.sk-row {
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-hover) 50%, var(--bg-subtle) 75%);
  background-size: 400% 100%;
  animation: skShimmer 1.4s ease infinite;
}
.sk-row:nth-child(1) { height: 34px; }
@keyframes skShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 768px) {
  /* ---- iOS / 触控基础 ---- */
  html { -webkit-text-size-adjust: 100%; }
  body {
    -webkit-tap-highlight-color: transparent;   /* 去掉点击灰块 */
    touch-action: manipulation;                 /* 消除 300ms 点击延迟 */
    overscroll-behavior-y: contain;             /* 防止滚动穿透 */
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));  /* 让位底部标签栏 */
  }

  /* iOS 输入防缩放：输入框字号 ≥16px 时，聚焦不再自动放大页面 */
  input, select, textarea,
  .el-input__inner,
  .el-select__input,
  .el-range-input,
  .fm-search input {
    font-size: 16px !important;
  }

  /* ---- 点按反馈（手机无 hover，靠 :active 告诉用户"点中了"）---- */
  .sibling-item:active, .history-item:active, .facility-item:active,
  .desc-point:active, .stat-card:active, .mini-stat:active, .fm-item:active {
    background: var(--bg-hover);
  }
  .cta-btn:active {
    background: var(--primary-light);
  }
  .call-item:active {
    border-color: var(--primary);
    background: var(--bg-hover);
  }
  .el-button:active { opacity: .88; }
  .card:active { transition: transform var(--dur-fast) var(--ease-out); }

  /* ---- 顶部导航简化为单行（横向滚动菜单 → 底部标签栏）---- */
  .app-header { box-shadow: var(--shadow-header); }
  .app-header-inner {
    height: var(--header-h-mobile);
    padding: 0 var(--container-pad);
    flex-wrap: nowrap;
    gap: var(--sp-2);
  }
  .app-nav { display: none; }
  .logo-img { height: 30px; width: 30px; }
  .logo { font-size: var(--fs-md); }
  .user-area { font-size: var(--fs-sm); }
  .user-area .el-button { min-height: 34px; padding: 0 10px; }

  /* ---- 底部标签栏（App 式主导航）---- */
  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 102;
    /* 半透明 + 毛玻璃：内容从下方滚过时不生硬，同时保证图标对比度 */
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -1px 12px rgba(23, 43, 77, .06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: var(--tabbar-h);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--fs-micro);
    line-height: var(--lh-tight)
    letter-spacing: .02em;
    -webkit-user-select: none;
    user-select: none;
    transition: color var(--dur-base) var(--ease-out);
  }
  /* 点按反馈交给图标缩放，避免整格闪蓝 */
  .tabbar-item:active { background: transparent; }
  .tabbar-item.active { color: var(--primary-text); font-weight: 600; }

  /* 图标胶囊：未选中为纯线条，选中后落在浅品牌色底上 */
  .tabbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 28px;
    border-radius: var(--radius-pill);
    transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .tabbar-icon svg { display: block; width: 22px; height: 22px; }
  .tabbar-item.active .tabbar-icon {
    background: var(--primary-light);
    transform: translateY(-1px);
  }
  .tabbar-item:active .tabbar-icon { transform: scale(.9); }
  .tabbar-item:focus-visible { outline: none; }
  .tabbar-item:focus-visible .tabbar-icon { box-shadow: var(--focus-ring); }

  /* 详情页底部操作条叠在标签栏上方 */
  .mobile-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 103; }
  body.has-mobile-bar { padding-bottom: calc(var(--tabbar-h) + 74px + env(safe-area-inset-bottom)); }

  /* 登录页无底部标签栏：去掉 body 预留空间，避免出现空白滚动条 */
  body:has(.login-page) { padding-bottom: 0; }
  .login-page { min-height: calc(100vh - env(safe-area-inset-bottom)); }

  /* ---- 触控目标（≥40px，便于手指点击）---- */
  .el-button { min-height: 38px; }
  .el-button--small { min-height: 34px; }
  .el-button--large { min-height: 44px; }
  .el-pagination .btn-prev,
  .el-pagination .btn-next { min-width: 38px; height: 38px; }
  .el-pager li { min-width: 38px; height: 38px; line-height: 38px; }
  .el-pagination__jump { line-height: 38px; }
  .el-table td.el-table__cell { padding: 11px 0; }
  .el-table th.el-table__cell { padding: 12px 0; }
  .el-checkbox__inner { width: 18px; height: 18px; }
  .el-tag { padding: 3px 10px; line-height: 20px; }
  .el-radio__inner { width: 18px; height: 18px; }
  .fm-trigger { min-height: 42px; }
  .fm-item { min-height: 48px; padding: 8px 6px; }
  .fm-btn { height: 44px; flex: 1; font-size: var(--fs-base); }
  .sibling-item, .history-item, .facility-item, .desc-point { padding: var(--sp-3); }
  .cta-btn { min-height: 56px; }

  /* ---- 表格：字号略放大、行高更舒适 ---- */
  .el-table { font-size: var(--fs-sm); }
  .el-table .cell { line-height: var(--lh-snug) }
  .table-scroll-hint {
    display: block;
    margin: 0 0 var(--sp-2);
    font-size: var(--fs-hint);
    color: var(--text-muted);
    text-align: center;
    letter-spacing: .02em;
  }

  /* ---- 图表：手机端降低高度，减少无效滚动 ---- */
  .chart-box { height: 268px; }
  .chart-box-sm { height: 220px; }
  .chart-box-tall { height: 288px; }

  /* ---- 卡片与间距 ---- */
  .card { border-radius: var(--radius-lg); }
  .page-container { padding: var(--sp-3) var(--container-pad) var(--sp-6); }
  .stat-card { padding: var(--sp-4); }
  .mini-stat { padding: var(--sp-3) var(--sp-2); }
  /* 买家关注指标条：手机端两列两行，收紧字号避免数值截断 */
  .buyer-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buyer-item { padding: 10px 6px; }
  .buyer-value { font-size: var(--fs-md); }
  /* 榜单：窄屏进一步压缩副信息列，保证名称可读 */
  .rank-meta { max-width: 72px; }
  .el-empty__image { width: 90px !important; }

  /* ---- 筛选面板：改为底部抽屉（Bottom Sheet）---- */
  .fm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2199;
    background: var(--backdrop);
    animation: fmFadeIn .18s ease;
  }
  .fm-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    max-width: none;
    max-height: 74vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 6px 14px calc(14px + env(safe-area-inset-bottom));
    z-index: 2200;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sheet);
    animation: fmSlideUp .24s cubic-bezier(.22, .61, .36, 1);
  }
  .fm-panel::before {           /* 抽屉把手 */
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 4px auto 6px;
    border-radius: var(--radius-pill);
    background: var(--border-strong);
    flex-shrink: 0;
  }
  .fm-search { flex-shrink: 0; }
  .fm-search input { height: 40px; font-size: var(--fs-base); }
  .fm-actions { flex-shrink: 0; padding: var(--sp-2) 2px var(--sp-2); }
  .fm-action { padding: 8px 6px; font-size: var(--fs-sm); }
  .fm-list { max-height: 44vh; }
  .fm-footer { flex-shrink: 0; gap: var(--sp-2); }
  .fm-empty { padding: var(--sp-6) 0; color: var(--text-secondary); text-align: center; }
}

@keyframes fmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fmSlideUp { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }

/* ---- 超窄屏（≤400px）：进一步收敛 ---- */
@media (max-width: 480px) {
  .tabbar-item { font-size: var(--fs-micro); }
  .tabbar-icon { width: 42px; }
  .tabbar-icon svg { width: 20px; height: 20px; }
  .hero-title { font-size: var(--fs-md); }
  .price-block .price-value { font-size: var(--fs-lg); }
  .price-block.is-main .price-value { font-size: var(--fs-xl); }
  .el-button + .el-button { margin-left: var(--sp-2); }
  .section-title { font-size: var(--fs-md); }
  .detail-layout { gap: var(--sp-3); }
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.app-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-hint);
  padding: var(--sp-5) var(--sp-4) var(--sp-7);
  line-height: var(--lh-base);
}

/* 网站备案号（页脚居中显示） */
.footer-icp {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-icp a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

.footer-icp a:hover {
  color: var(--primary-text);
}

/* 版权信息 */
.footer-copy {
  color: var(--text-muted, #8a94a6);
}

.login-footer .footer-copy {
  color: rgba(255, 255, 255, .8);
}

/* 登录页备案号（居中固定在页面底部，浅色以适配蓝色背景） */
.login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: var(--fs-hint);
  line-height: var(--lh-base)
}

.login-footer a {
  color: rgba(255, 255, 255, .85);   /* 主色底上的辅助文字 */
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

.login-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   响应式适配
   ------------------------------------------------------------ */
/* 平板：核心价格四宫格降为两列（详情页五板块折行规则见文末"视觉优化层"） */
@media (max-width: 1024px) {
  .hero-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-block.is-main { grid-column: span 2; }
}

@media (max-width: 768px) {
  .app-header-inner { height: 54px; flex-wrap: nowrap; padding: 0 var(--container-pad); gap: var(--sp-2); }
  .logo { font-size: var(--fs-md); }
  .logo-img { height: 30px; width: 30px; }
  /* 移动端保留平台名称：Logo 后显示，超长省略以免挤压右侧登录区 */
  .logo-text {
    display: block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-lg);
    letter-spacing: 0;
  }
  /* 顶栏搜索：靠右，与登录按钮组成右侧组（logo 留在左侧） */
  .header-search {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 1 120px;
    min-width: 0;
    margin-left: auto;
    height: 28px;
    padding: 0 2px 0 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
  }
  .header-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: var(--fs-hint);
    color: var(--text-main);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .header-search input::placeholder { color: var(--text-muted); }
  .header-search input::-webkit-search-cancel-button { display: none; }
  .header-search button {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--primary-text);
    cursor: pointer;
  }
  .header-search button:active { background: var(--primary-light); }
  .header-search svg { width: 13px; height: 13px; }
  .login-logo { width: 64px; height: 64px; margin-bottom: 12px; }
  .app-nav { display: none; }        /* 顶部横向菜单 → 底部标签栏 */
  .user-area { margin-left: 0; flex-shrink: 0; }

  /* 详情页移动端优化 */
  .hero-card { padding: 14px; }
  .hero-title { font-size: var(--fs-lg); line-height: var(--lh-snug) margin-bottom: 6px; }
  .hero-actions { width: 100%; }
  .hero-actions .el-button { flex: 1 1 0; }
  .hero-price { gap: 8px; margin-top: 12px; }
  .price-block { padding: 10px 11px; }
  .price-block .price-value { font-size: var(--fs-xl); }
  .price-block.is-main .price-value { font-size: var(--fs-display-sm); }
  .hero-meta { gap: 10px 18px; margin-top: 12px; padding-top: 12px; }
  .meta-item { min-width: 84px; }
  .detail-grid { gap: var(--sp-3); margin-top: var(--sp-3); }
  .section-head { margin: var(--sp-5) 0 var(--sp-3); }
  .desc-text { font-size: var(--fs-base); text-align: left; line-height: var(--lh-base); }
  .facility-grid { grid-template-columns: 1fr; }
  .field-grid, .field-grid:not(.cols-1) { grid-template-columns: 1fr; }
  .field-grid:not(.cols-1) .field:nth-child(odd) { padding-right: 4px; }
  .field-grid:not(.cols-1) .field:nth-child(even) { padding-left: 4px; border-left: none; }
  .field { padding: 9px 4px; }

  /* 移动端底部操作条（叠在标签栏之上，价格常驻 + 一键拨号） */
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    z-index: 103;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-bar);
    padding: 8px 12px;
    align-items: center;
    gap: 10px;
  }
  .mobile-bar .mb-price {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
  }
  .mobile-bar .mb-label {
    font-size: var(--fs-micro);
    color: var(--text-secondary);
    line-height: var(--lh-tight)
    white-space: nowrap;
  }
  /* 起拍价单独一行放大，市场价 / 单价 / 折扣 / 评估价收在下方小字行 */
  .mobile-bar .mb-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }
  /* 建筑面积：紧跟在总价「万」之后，小字加细分隔线，弱化但不失可读 */
  .mobile-bar .mb-area {
    flex-shrink: 0;
    margin-left: -2px;
    padding-left: 6px;
    border-left: 1px solid var(--border);
    font-size: var(--fs-micro);
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .mobile-bar .mb-line {
    display: flex;
    align-items: baseline;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }
  .mobile-bar .mb-sub {
    flex-shrink: 0;
    font-size: var(--fs-micro);
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .mobile-bar .mb-sub + .mb-sub::before {
    content: '·';
    margin-right: 3px;
    font-weight: 400;
    color: var(--text-muted);
  }
  /* 折扣率低于市场价，用绿色轻提示 */
  .mobile-bar .mb-sub.is-rate { color: var(--success-text); }
  .mobile-bar .mb-value {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--danger-text);
    font-variant-numeric: tabular-nums;
    line-height: var(--lh-tight)
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-bar .mb-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .mobile-bar .mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 44px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    background: #f6f8fb;
    color: var(--text-main);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
  }
  .mobile-bar .mb-ico {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    opacity: .78;
    transition: opacity var(--dur-fast) var(--ease-out);
  }
  .mobile-bar .mb-ico.is-on { fill: currentColor; opacity: 1; }
  .mobile-bar .mb-btn.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #3b8ae4, #1f5fae);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 95, 174, .32);
  }
  .mobile-bar .mb-btn.is-primary .mb-ico { opacity: 1; }
  .mobile-bar .mb-btn:active { transform: scale(.96); }
  .mobile-bar .mb-btn.is-active .mb-ico { opacity: 1; }
  /* 小程序「分享海报」：悬浮条最后一个主操作，加强光晕 */
  .mobile-bar .mb-btn.mb-poster { padding: 0 10px; }
  /* 悬浮条文案只保留「单价 · 市场价」，避免被按钮挤断；折扣率/评估价在下方卡片已有 */
  .mobile-bar .mb-line .mb-sub:nth-child(n+3) { display: none; }
  .mobile-bar .mb-btn.is-active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-text);
  }
  body.has-mobile-bar { padding-bottom: calc(var(--tabbar-h) + 74px + env(safe-area-inset-bottom)); }

  .page-container { padding: 14px 10px 30px; }
  .page-title { font-size: var(--fs-xl); }
  .card { padding: 14px; }
  .stat-value { font-size: var(--fs-xl); }
  .stat-icon { width: 40px; height: 40px; font-size: var(--fs-xl); }
  .chart-box { height: 260px; }

  .pagination-bar { justify-content: center; }

  /* ---- 后台：布局改为单列，菜单改为下拉选择 ---- */
  /* align-items 用 stretch：否则子项按内容宽度撑开，宽表格会把整页顶出屏幕 */
  .admin-wrap { flex-direction: column; align-items: stretch; padding: 12px 10px 30px; gap: 10px; }
  .admin-sidebar { width: 100%; position: static; }
  .admin-mobile-menu { width: 100%; }
  .admin-mobile-menu .el-select__wrapper { min-height: 42px; border-radius: 10px; font-size: var(--fs-base); }
  .admin-page-head { align-items: flex-start; gap: 8px; }
  .admin-page-head h2 { font-size: var(--fs-lg); }
  .admin-page-head .desc { font-size: var(--fs-hint); }

  /* ---- 后台工具栏：输入框铺满一行，按钮均分并加大点按区域 ---- */
  .admin-toolbar { gap: 8px; }
  .admin-toolbar > .el-input,
  .admin-toolbar > .el-select,
  .admin-toolbar > .el-input-number,
  .admin-toolbar > .el-date-editor { flex: 1 1 100%; width: 100% !important; }
  .admin-toolbar > .el-button {
    flex: 1 1 auto; min-width: calc(50% - 4px); min-height: 38px;
    margin-left: 0 !important;
  }
  .admin-toolbar > .spacer { display: none; }
  .admin-toolbar > .el-checkbox,
  .admin-toolbar > .el-radio-group { flex: 1 1 100%; }

  /* ---- 后台筛选表单：标签在左、控件铺满，按钮并排 ---- */
  .admin-main .el-form--inline { display: block; }
  .admin-main .el-form--inline .el-form-item {
    display: flex; align-items: center; width: 100%; margin: 0 0 8px;
  }
  .admin-main .el-form--inline .el-form-item__label {
    flex: 0 0 74px; justify-content: flex-start;
    padding-right: 8px; font-size: var(--fs-sm); line-height: 34px; height: auto;
  }
  .admin-main .el-form--inline .el-form-item__content {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  }
  .admin-main .el-form--inline .el-form-item__content > .el-input,
  .admin-main .el-form--inline .el-form-item__content > .el-select,
  .admin-main .el-form--inline .el-form-item__content > .el-input-number,
  .admin-main .el-form--inline .el-form-item__content > .el-date-editor {
    flex: 1 1 0; width: auto !important; min-width: 0;
  }
  .admin-main .el-form--inline .el-form-item__content > .el-button { flex: 1; min-height: 36px; }

  /* ---- 后台表格：压缩密度，操作按钮更易点 ---- */
  .admin-main .el-table { font-size: var(--fs-hint); }
  .admin-main .el-table .cell { padding: 0 8px; }
  .admin-main .el-table td.el-table__cell { padding: 8px 0; }
  .admin-main .el-table .el-button { min-height: 30px; padding: 0 8px; }
  .admin-main .el-table .el-button + .el-button { margin-left: 6px; }

  /* ---- 后台弹窗：铺满屏幕，表单项上下排列，两列改单列 ---- */
  .el-dialog {
    width: calc(100vw - 24px) !important;
    max-width: 100%;
    margin-top: 6vh !important;
  }
  .el-dialog__header { padding: 14px 14px 6px; }
  .el-dialog__body { padding: 12px 14px; max-height: 66vh; overflow-y: auto; }
  .el-dialog__footer { padding: 10px 14px 14px; }
  .el-dialog .el-form-item { display: block; }
  .el-dialog .el-form-item__label-wrap { display: block; }
  .el-dialog .el-form-item__label {
    display: block; float: none; width: auto !important; height: auto;
    justify-content: flex-start; text-align: left;
    padding: 0 0 4px; font-size: var(--fs-sm); line-height: var(--lh-snug)
  }
  .el-dialog .el-form-item__content { margin-left: 0 !important; }
  .el-dialog .el-row > div[class*="el-col-"] {
    max-width: 100% !important; flex: 0 0 100% !important;
  }
  .el-dialog .el-input,
  .el-dialog .el-select,
  .el-dialog .el-input-number,
  .el-dialog .el-date-editor { width: 100% !important; }

  .pager { justify-content: center; }
  .pager .pager-info { width: 100%; text-align: center; }
  .pager .el-pagination { margin: 0 auto; justify-content: center; }
}

/* Element Plus 局部微调 */
.el-descriptions__label { width: 130px; }
.admin-tabs .el-tabs__item { font-size: var(--fs-md); }
.status-tag { font-weight: 600; }

/* ============================================================
   视觉优化层（排版层次 / 留白 / 对比度 / 多屏一致性）
   说明: 置于文件末尾，统一覆盖前述零散取值，避免样式互相打架
   ============================================================ */

/* ---- 滚动条与选区（细节一致性）---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(47, 111, 208, 0.18); }

/* ---- 表格容器：窄屏可横向滚动且有柔和边界 ---- */
.el-table { border-radius: var(--radius-sm); }
.el-table__body-wrapper { overscroll-behavior-x: contain; }

/* ---- 空状态与加载态：留白更舒展 ---- */
.el-empty { padding: var(--sp-6) 0; }
.el-empty__description p { color: var(--text-secondary); }

/* ---- 标签：行高与圆角统一，避免忽大忽小 ---- */
.el-tag { border-radius: var(--radius-sm); }
.el-tag--small { padding: 0 var(--sp-2); }
.el-tag--pill { border-radius: var(--radius-pill); }

/* ---- 移动端浮层（筛选面板等）尺寸更贴合手指 ---- */
.fm-item { min-height: 44px; }

/* ---- 大屏（≥1600px）：适度放大留白与数字字号，避免内容过于稀疏 ---- */
@media (min-width: 1280px) {
  :root { --container-pad: 28px; }
  .page-container, .app-header-inner, .admin-wrap { max-width: 1560px; }
}

/* ---- 中等屏（≤1200px）：栅格与卡片内边距收紧 ---- */
@media (max-width: 1280px) {
  :root { --container-pad: 16px; }
  .hero-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-block.is-main { grid-column: span 2; }
}

/* ---- 详情页五板块：宽屏双列 → 平板单列，紧凑不堆叠、不留大片空白 ---- */
@media (max-width: 1280px) {
  /* 主内容与咨询卡改为上下排列（咨询入口落到页面底部，便于移动端触达）*/
  .detail-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  /* 主栏回到整宽后，五板块仍保持双列，避免卡片过宽显得空洞 */
  .detail-grid .field-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid .field-grid.cols-3 .field:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 768px) {
  /* ---- 详情板块：通栏卡片纵向单列；房源属性与记录 / 价格与折扣 两卡一排两列（一板块一列）---- */
  .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
    margin: 0 0 var(--sp-3);
  }
  .detail-grid > .card,
  .detail-grid > .is-wide { grid-column: 1 / -1; }
  /* 两张非通栏卡片各占一列，并排显示 */
  .detail-grid > .card.detail-card:not(.is-wide) { grid-column: auto; }

  /* 通栏卡片内的成组列表在手机上单列铺满，避免二次横向滚动 */
  .detail-grid .sibling-list,
  .detail-grid .history-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .detail-grid .field-grid { column-gap: var(--sp-4); }
  .detail-grid .field-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 平板（≤992px）：价格两列、后台侧栏收窄 ---- */
@media (max-width: 1024px) {
  .price-block.is-main { grid-column: span 2; }
  .admin-sidebar { width: 176px; }
}

/* ---- 手机（≤768px）：单列布局、字号与留白按比例收敛 ---- */
@media (max-width: 768px) {
  :root {
    --container-pad: 12px;
    --fs-xl: 19px;
    --fs-lg: 16px;
  }

  /* 页面与卡片 */
  .page-container { padding: var(--sp-4) var(--container-pad) var(--sp-6); }
  .page-title { font-size: var(--fs-xl); }
  .page-subtitle { margin-bottom: var(--sp-4); }
  .card { padding: var(--sp-4); margin-bottom: var(--sp-3); }
  .card-title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }

  /* 数据表：降低密度但保证可读 */
  .el-table { font-size: var(--fs-hint); }
  .el-table .cell { padding: 0 var(--sp-2); }
  .el-table td.el-table__cell { padding: 8px 0; }

  /* 筛选栏：标签与控件上下排列，避免挤压换行 */
  .filter-bar .el-form-item {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--sp-3);
  }
  .filter-bar .el-form-item__label {
    display: block;
    width: auto !important;
    text-align: left;
    line-height: var(--lh-snug)
    padding: 0 0 var(--sp-1);
    float: none;
  }
  .filter-bar .el-form-item__content { margin-left: 0 !important; }
  .filter-bar .el-input,
  .filter-bar .el-select,
  .filter-bar .el-date-editor,
  .filter-bar .el-input-number { width: 100% !important; }

  /* 详情页 */
  .hero-card { padding: var(--sp-4); }
  .hero-title { font-size: var(--fs-lg); }
  .hero-price { gap: var(--sp-2); margin-top: var(--sp-4); }
  .price-block { padding: var(--sp-3); }
  .price-block .price-value { font-size: var(--fs-xl); }
  .price-block.is-main .price-value { font-size: var(--fs-2xl); }
  .hero-meta { gap: var(--sp-3) var(--sp-4); }
  .meta-item { min-width: 86px; }
  .field { padding: 10px var(--sp-1); }

  /* 后台 */
  .admin-wrap { padding: var(--sp-3) var(--container-pad) var(--sp-6); }
  .admin-page-head { align-items: flex-start; }
  .admin-page-head h2 { font-size: var(--fs-lg); }
  .admin-toolbar { gap: var(--sp-2); }
  .admin-toolbar > .el-button,
  .admin-toolbar > .el-input,
  .admin-toolbar > .el-select { flex: 1 1 140px; }

  /* 弹窗：接近全屏，内容不局促 */
  .el-dialog { width: 92% !important; margin-top: 5vh !important; }
  .el-message-box { width: 88% !important; }

  /* 分页居中且允许换行 */
  .pagination-bar { justify-content: center; }
  .el-pagination { flex-wrap: wrap; justify-content: center; row-gap: var(--sp-2); }
}

/* ---- 小屏手机（≤480px）：进一步压缩，保证不横向溢出 ---- */
@media (max-width: 480px) {
  :root { --fs-2xl: 22px; --fs-3xl: 26px; }

  .app-header-inner { gap: var(--sp-1); }
  .hero-price { grid-template-columns: 1fr; }
  .price-block.is-main { grid-column: span 1; }
  .meta-item { min-width: 0; flex: 1 1 40%; }
  .el-descriptions__label { width: 96px !important; }
  .el-button + .el-button { margin-left: var(--sp-2); }
}

/* ---- 无障碍：跟随系统"减少动效"设置 ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- 后台小区编辑弹窗：标签不换行，保证两列字段始终对齐 ---- */
.community-form .el-form-item__label {
  white-space: nowrap;
}

/* ---- 房源详情：银行评估价就地编辑 ---- */
.f-value.is-editable,
.price-value.is-editable,
.meta-value.is-editable {
  cursor: pointer;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.price-value.is-editable {
  display: inline-block;
}

.f-value.is-editable:hover,
.price-value.is-editable:hover,
.meta-value.is-editable:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.edit-pen {
  font-style: normal;
  font-size: var(--fs-hint);
  margin-left: 4px;
  opacity: 0.55;
}

.bank-edit-input {
  /* 窄屏指标卡内单格可能不足 120px，改为自适应宽度，避免输入框撑出卡片 */
  width: 100%;
  max-width: 120px;
  min-width: 0;
  box-sizing: border-box;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: var(--fs-sm);
  color: var(--text-title);
  background: #fff;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.bank-edit-input:focus {
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ---- 数据总览：6 个指标一行时压缩内边距，避免数值被截断 ---- */
.stat-card.is-compact {
  padding: var(--sp-4);
  gap: var(--sp-3);
}

.stat-card.is-compact .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: var(--fs-xl);
}

.stat-card.is-compact .stat-value {
  font-size: var(--fs-xl);
}

/* ============================================================
   房源详情 · 移动端信息流（参考贝壳详情页的纵向浏览节奏）
   目标：首屏抓住价格与关键信息，往后是参数 / 小区 / 同小区 / 成交，
        卡片纵向单列、标题分层、操作入口固定在拇指区
   ============================================================ */

/* 分区锚点导航：默认不占位，仅手机端显示 */
.detail-nav { display: none; }
.detail-nav-placeholder { display: none; }

/* 骨架首块：预留接近真实 Hero 的高度，减少数据到达后的布局跳动 */
.sk-hero { min-height: 250px; }

@media (max-width: 768px) {
  /* ---- 吸顶分区导航 ---- */
  .detail-nav {
    display: flex;
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    z-index: 95;
    gap: 2px;
    margin: 0;
    padding: 0 var(--container-pad);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .detail-nav::-webkit-scrollbar { display: none; }
  /* 占位条与吸顶条等高，且内容顶格排列，保证「吸顶条下沿 = 占位条下沿」 */
  .detail-nav-placeholder {
    display: block;
    height: 45px;               /* = 选项卡 44px + 吸顶条 1px 描边 */
    margin-bottom: 10px;
  }
  .detail-nav-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 44px;               /* 触控目标达到 44px */
    margin-right: 14px;
    padding: 0 2px;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  }
  .detail-nav-item:last-child { margin-right: 0; }
  .detail-nav-item.active {
    color: var(--primary-text);
    font-weight: 600;
    border-bottom-color: var(--primary);
  }
  .detail-nav-item:active { color: var(--primary-text); }

  /* 小程序 web-view 内站点头部被隐藏（见 mini-bridge），吸顶条应贴视口顶部 */
  html.is-mini .detail-nav { top: 0; }

  /* 锚点落位时避开吸顶导航 */
  #overview, #params, #community, #analysis,
  #siblings, #history, #desc, #facility {
    scroll-margin-top: calc(var(--header-h-mobile) + 50px);
  }
  html.is-mini #overview, html.is-mini #params, html.is-mini #community,
  html.is-mini #analysis, html.is-mini #siblings, html.is-mini #history,
  html.is-mini #desc, html.is-mini #facility {
    scroll-margin-top: 50px;
  }

  /* ---- 核心信息区：地址 → 标签 → 价格，层层递进 ---- */
  /* 手机端内容顶格：吸顶条以下的留白交给占位条控制 */
  .detail-page { padding-top: 0; }
  /* 返回条在手机端会被吸顶条完全盖住（导航贴顶），隐藏以免白占一屏高度 */
  .detail-topbar { display: none; }
  .detail-topbar .detail-crumb { display: none; }
  .detail-topbar .topbar-back { flex-shrink: 0; padding: 0; }
  .detail-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    padding: 0 2px 0 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
  }
  .detail-search .ds-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-secondary);
  }
  .detail-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: var(--fs-hint);
    color: var(--text-main);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .detail-search input::placeholder { color: var(--text-muted); }
  .detail-search input::-webkit-search-cancel-button { display: none; }
  .detail-search .ds-submit {
    flex-shrink: 0;
    height: 26px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: var(--fs-hint);
    font-weight: 600;
    cursor: pointer;
  }
  .detail-search .ds-submit:active { opacity: .86; }
  .hero-card {
    padding: var(--sp-3) var(--sp-3) var(--sp-3);
    border-radius: var(--radius-lg);
  }
  .sk-hero { min-height: 470px; }
  .hero-head { display: block; }
  .hero-title {
    font-size: var(--fs-lg);
    line-height: var(--lh-snug)
    letter-spacing: 0;
    margin-bottom: var(--sp-2);
  }
  .hero-tags { gap: 6px; }
  .hero-tags .el-tag { font-size: var(--fs-micro); line-height: 18px; padding: 0 7px; }
  /* 数据来源标签价值较低，手机上让位给用途/面积/学区 */
  .hero-tags .el-tag--info { display: none; }
  .hero-sub {
    margin-top: var(--sp-2);
    font-size: var(--fs-hint);
    gap: 4px 12px;
  }
  /* 首屏不放操作按钮：公告与拨号都在固定在拇指区的底部条上，页面更紧凑 */
  .hero-actions { display: none; }

  /* 价格区：起拍价独占一行，折扣率 / 银行评估价 / 市场价并排三列 */
  .hero-price {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: var(--sp-3);
  }
  .price-block {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }
  .price-block.is-main { grid-column: 1 / -1; padding: 10px 12px; }
  .price-block .price-label { font-size: var(--fs-micro); line-height: var(--lh-tight) }
  .price-block .price-value { font-size: var(--fs-md); margin-top: 2px; }
  .price-block.is-main .price-value { font-size: var(--fs-3xl); letter-spacing: -0.01em; }
  .price-block .price-sub { font-size: var(--fs-micro); margin-top: 2px; gap: 3px 6px; }
  .price-block .price-line { gap: 2px 8px; }
  /* 节省额贴到起拍价行最右：说明文字中性灰，金额单独放大成红色锚点 */
  .price-block .price-saving {
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 4px;
    color: var(--text-muted);
    font-size: var(--fs-hint);
    font-weight: 500;
    line-height: var(--lh-snug)
  }
  .price-block .price-saving b {
    color: var(--danger-text);
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  /* 市场价作为参考项仅弱化数值颜色，列宽与另两列保持一致 */
  .hero-price .price-block:not(.is-main):not(.is-discount):not(.is-bank) .price-value {
    font-size: var(--fs-md);
    color: var(--text-secondary);
  }

  /* 关键信息条：三行结构
     ① 拍卖日期：独占整行，名称在左、数值（含倒计时）在右
     ② 保证金 / 房屋用途 / 租金：一排三列，标签在上、数值在下
     ③ 学区/学位：独占整行，名称在左、数值在右 */
  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px var(--sp-3);
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
  }
  .hero-meta .meta-item { min-width: 0; }
  .hero-meta .meta-item:first-child,
  .hero-meta .meta-item:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    /* 极窄屏下倒计时胶囊可整段落行，不撑破卡片 */
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
  }
  .hero-meta .meta-item:last-child .meta-value { text-align: right; }
  .meta-item .meta-value { font-size: var(--fs-sm); }

  /* ---- 板块标题：分区更强，卡片更轻 ---- */
  .detail-main-col > .section-head:first-child { margin-top: var(--sp-4); }
  .section-head {
    margin: var(--sp-5) 0 var(--sp-2);
    padding-left: 10px;
    border-left-width: 3px;
  }
  .section-title { font-size: var(--fs-md); }
  .section-note { display: none; }

  .detail-grid > .card.detail-card,
  .detail-main-col > .card {
    padding: var(--sp-3) var(--sp-3);
    border-radius: var(--radius-lg);
  }
  .card-title {
    font-size: var(--fs-md);
    margin-bottom: var(--sp-2);
  }
  .card-title::before { height: 14px; }

  /* 区位与配套：两列小卡，图标、字号、分组间距同步收紧 */
  #facility .mini-title {
    margin: 12px 0 6px;
    padding-top: 8px;
    font-size: var(--fs-hint);
  }
  #facility .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #facility .facility-item { padding: 8px; gap: 8px; }
  /* 奇数项时最后一张卡片铺满整行，避免右侧留下半格空档 */
  #facility .facility-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #facility .facility-icon { width: 26px; height: 26px; font-size: var(--fs-sm); border-radius: 5px; }
  #facility .facility-label { font-size: var(--fs-micro); }
  #facility .facility-value { margin-top: 0; font-size: var(--fs-sm); }
  #facility .facility-sub { margin-top: 1px; font-size: var(--fs-micro); }

  /* 属性 / 价格两板块并排后卡宽变窄：卡内字段单列，「名称在左、数值在右」同一行 */
  .detail-grid > .card.detail-card:not(.is-wide) .field-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .detail-grid > .card.detail-card:not(.is-wide) .field-grid .field {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 0;
    /* 单列后排：每行都保留分隔线，仅末项去掉（覆盖双列末两行去线的规则） */
    border-bottom: 1px solid var(--border-light);
  }
  .detail-grid > .card.detail-card:not(.is-wide) .field-grid .field:last-child {
    border-bottom: none;
  }
  .detail-grid > .card.detail-card:not(.is-wide) .field-grid .field .f-label {
    font-size: var(--fs-micro);
    line-height: var(--lh-tight)
  }
  .detail-grid > .card.detail-card:not(.is-wide) .field-grid .field .f-value {
    font-size: var(--fs-sm);
    line-height: var(--lh-tight)
    text-align: right;
    overflow-wrap: anywhere;
  }
  /* 小区基础信息：手机两列（小区名称 / 别名，区域·商圈 / 租金），标签与值上下排列 */
  .detail-grid .field-grid.cols-4.community-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    padding: 10px;
  }
  .detail-grid .community-info-grid .field {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }
  /* 三列等宽：取消两列布局遗留的奇偶列左右内缩，避免第三列被挤窄 */
  .detail-grid .community-info-grid .field:nth-child(odd),
  .detail-grid .community-info-grid .field:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
  /* 长小区名 / “元/㎡/月”在窄格内正常换行，不撑破卡片（break-word 兼容旧内核） */
  .detail-grid .community-info-grid .field .f-value {
    width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 数据分析：两列铺排，7 项测算不至于拉出一屏半 */
  .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .analysis-item.is-wide { grid-column: 1 / -1; }
  .analysis-item { padding: 10px; }
  .analysis-hint { font-size: var(--fs-micro); }

  /* 四类市场指标：四个分组保持两排两列（≤480px 时卡内字段再降为单列，见文末小屏规则） */
  .detail-grid .metric-group .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid .metric-group .field-grid .field {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 7px 0;
  }
  .detail-grid .metric-group .field .f-value { text-align: left; }

  /* ---- 同小区房源：紧凑卡片（地址 → 区域·状态 → 三列数据），点击整卡进入 ---- */
  .detail-grid .sibling-list { gap: 10px; }
  .sibling-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "addr addr"
      "meta foot"
      "nums nums";
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(23, 43, 77, 0.05);
    transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  }
  .sibling-item:active {
    transform: scale(0.99);
    border-color: var(--primary);
    box-shadow: var(--shadow-lift);
  }
  /* 让地址与副信息直接参与卡片栅格，省掉独立的“状态 + 箭头”一行 */
  .sibling-main { display: contents; }
  .sibling-addr {
    grid-area: addr;
    font-size: var(--fs-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sibling-meta {
    grid-area: meta;
    min-width: 0;
    margin-top: 0;
    font-size: var(--fs-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sibling-nums {
    grid-area: nums;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
  }
  .sibling-num {
    padding: 5px 6px;
    border-radius: 8px;
    background: var(--bg-subtle);
    text-align: center;
  }
  .sibling-num .n { font-size: var(--fs-sm); }
  .sibling-num .t { margin-top: 2px; font-size: var(--fs-micro); }
  .sibling-foot {
    grid-area: foot;
    width: auto;
    gap: 4px;
    padding: 0;
    justify-content: flex-end;
  }
  .sibling-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: var(--fs-md);
  }

  /* ---- 历史成交：摘要固定三列，明细卡四项核心数据单行排开 ---- */
  .detail-grid .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .detail-grid .mini-stat {
    padding: 8px 4px;
    border-radius: 8px;
  }
  .detail-grid .mini-stat .v { font-size: var(--fs-md); }
  .detail-grid .mini-stat .l { font-size: var(--fs-micro); }
  .history-item {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(23, 43, 77, 0.05);
  }
  .history-head { gap: 8px; }
  .history-name {
    font-size: var(--fs-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .history-head .el-tag { flex-shrink: 0; }
  .history-nums {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
  }
  .history-nums > span {
    flex: 1 1 0;
    align-items: center;
    gap: 2px;
    text-align: center;
  }
  .history-nums i {
    max-width: 100%;
    font-size: var(--fs-micro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .history-nums b { font-size: var(--fs-sm); }
  .history-meta {
    margin-top: 0;
    padding-top: 8px;
    border-top: none;
    font-size: var(--fs-micro);
    line-height: var(--lh-snug)
  }

  /* ---- 描述与配套 ---- */
  .desc-text { font-size: var(--fs-sm); line-height: var(--lh-base) }
  .desc-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: var(--sp-3); }
  .desc-point { padding: 10px; }
  .desc-point .dp-value { font-size: var(--fs-sm); }
  .facility-item { padding: 10px; border-radius: var(--radius-sm); }
  .facility-icon { width: 30px; height: 30px; font-size: var(--fs-md); }
  .facility-value { font-size: var(--fs-sm); }

  /* 咨询卡在移动端落到页面底部，按钮给足触控高度 */
  .contact-card .cta-group { gap: 8px; }
  .contact-card .cta-group .el-button { min-height: 42px; }
  .contact-calls { gap: 8px; }
  .call-item { padding: 10px 12px; }
  .call-number { font-size: var(--fs-lg); }
}

/* ---- 小屏手机（≤480px）：价格保持 2 列，避免首屏被四个价格块撑满 ---- */
@media (max-width: 480px) {
  /* 起拍价整行，折扣率 / 评估价 / 市场价 保持一排三列 */
  .hero-price { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-block.is-main { grid-column: 1 / -1; }
  .price-block.is-main .price-value { font-size: var(--fs-display-sm); }
  .meta-item { flex: 0 1 auto; }
  .detail-nav-item { font-size: var(--fs-hint); margin-right: 12px; }
  .history-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 小区信息四类指标：分组两排两列，卡内字段单列且「名称 + 数值」同一行 */
  .detail-grid .metric-group .field-grid { grid-template-columns: 1fr; }
  .detail-grid .metric-group .field-grid .field {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 0;
  }
  /* 名称可收缩省略，数值占剩余宽度并右对齐，长数值允许在格内换行 */
  .detail-grid .metric-group .field .f-label {
    flex: 0 1 auto;
    min-width: 0;
  }
  .detail-grid .metric-group .field .f-value {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    font-size: var(--fs-hint);
    text-align: right;
  }
  /* 卡内留白收窄，为「名称 + 数值」单行排布让出宽度 */
  .metric-group { padding: 10px 10px 8px; }
}

/* ---- 超窄屏（≤360px）：压缩底部操作条，保证主 CTA 不被挤压 ---- */
@media (max-width: 480px) {
  .mobile-bar { gap: 8px; padding: 8px 10px; }
  .mobile-bar .mb-value { font-size: var(--fs-lg); }
  .mobile-bar .mb-btn { min-width: 54px; padding: 0 10px; font-size: var(--fs-hint); }
  /* 安卓常见 360px 视口：小字行收紧字号与间距，保证四项信息完整显示 */
  .mobile-bar .mb-sub { font-size: var(--fs-micro); }
  .mobile-bar .mb-line { gap: 2px; }
  .mobile-bar .mb-sub + .mb-sub::before { margin-right: 2px; }
  /* 三列价格块在 360px 内收字号，避免「200.00 万」被拆行 */
  .price-block .price-label { font-size: var(--fs-micro); }
  .price-block .price-value { font-size: var(--fs-base); }
  /* 起拍价收到 22px 后，节省额同步收一档，避免抢掉主数字 */
  .price-block .price-saving b { font-size: var(--fs-md); }
  .hero-price .price-block:not(.is-main):not(.is-discount):not(.is-bank) .price-value { font-size: var(--fs-base); }
  /* 三列副说明在超窄屏换行会显凌乱，隐藏后只留标签与数值 */
  .hero-price .price-block:not(.is-main) .price-sub { display: none; }
}

/* ---- 320px 级超窄屏：单价详情首屏已有，让位给市场价 / 折扣率 / 评估价 ---- */
@media (max-width: 480px) {
  .mobile-bar .mb-sub.is-unit { display: none; }
  /* 单价隐藏后，行首不应残留分隔点 */
  .mobile-bar .mb-sub.is-unit + .mb-sub::before { content: none; }
}

/* ============================================================
   详情页视觉体系 v3
   令牌已全部收归 :root（藏青主色 + 橙色强调），此页不再覆写变量
   ============================================================ */

/* ---- 卡片：统一白底、细描边、轻投影、大圆角 ---- */
.detail-page .card {
  background: var(--bg-card);
  border-color: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---- 分区标题：左侧色条 + 明确留白，强化层级 ---- */
.detail-page .section-head {
  border-left-width: 3px;
  border-left-color: var(--brand);
  padding-left: var(--sp-3);
}
.detail-page .section-title { color: var(--text-title); }

/* ============================================================
   核心价格：起拍价 = 视觉重心，折扣率 = 强调
   ============================================================ */
.detail-page .hero-price { gap: var(--sp-3); }

.detail-page .price-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}

/* 银行评估价未录入时：虚线框 + 弱化数值，避免出现一块"空卡片"抢占视觉重心 */
.detail-page .price-block.is-bank.is-empty {
  background: transparent;
  border-style: dashed;
}
.detail-page .price-block.is-bank.is-empty .price-value {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-muted);
}

/* 手机端三列并排只剩 105px 宽，内边距必须收窄，否则「市场价折扣率」必换行。
   注意：本段必须在上面 .detail-page .price-block 之后，才能覆盖它的 16px。 */
@media (max-width: 768px) {
  .detail-page .price-block { padding: 10px 8px; }
  .detail-page .price-block.is-main { padding: 10px 12px; }
  .detail-page .price-block .price-label,
  .detail-page .price-block .price-sub { white-space: nowrap; }
  .detail-page .price-block .price-value { margin-top: 1px; }
  /* 单位与「低于市场价」标签左对齐连排，避免两端顶开后中间空出大缺口 */
  .detail-page .price-block.is-main .price-sub { justify-content: flex-start; gap: 8px; }
}
.detail-page .price-block .price-label { color: var(--text-secondary); }
.detail-page .price-block .price-value { color: var(--text-title); }
.detail-page .price-block .price-sub { color: var(--text-muted); }

.detail-page .price-block.is-main {
  background: #fff;
  border-color: var(--accent-border);
  box-shadow: 0 8px 24px rgba(240, 112, 60, .12);
}
.detail-page .price-block.is-main .price-label { color: var(--accent-text); font-weight: 600; }
.detail-page .price-block.is-main .price-value { color: var(--primary); font-size: var(--fs-display); }

.detail-page .price-block.is-discount { background: var(--bg-subtle); border-color: var(--border); }
.detail-page .price-block.is-discount .price-value { color: var(--accent); }

.detail-page .price-block.is-bank { background: var(--bg-subtle); border-color: var(--border); }
.detail-page .price-block.is-bank .price-label { color: var(--text-secondary); }
.detail-page .price-block.is-bank .price-value { color: var(--brand); }

.detail-page .price-block .price-saving {
  background: var(--accent-weak);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: none;
}

/* 折扣率进度条：起拍价占市场价的比重，替代纯数字表达 */
.price-meter {
  height: 6px;
  margin-top: 10px;
  border-radius: var(--radius-pill);
  background: var(--border-light);
  overflow: hidden;
}
.price-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F5A884, var(--accent));
  transition: width .35s var(--ease-out);
}

/* ============================================================
   参数区：单行罗列 → 网格瓦片（标签在上、数值在下）
   ============================================================ */
.detail-page .detail-grid > .card.detail-card .field-grid {
  gap: var(--sp-2);
  border-top: 0;
}
.detail-page .detail-grid > .card.detail-card .field-grid .field {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-subtle);
  min-width: 0;
}
.detail-page .detail-grid > .card.detail-card .field-grid .field:last-child {
  border: 1px solid var(--border-light);
}
.detail-page .detail-grid > .card.detail-card .field-grid .field .f-label {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  line-height: var(--lh-snug)
}
.detail-page .detail-grid > .card.detail-card .field-grid .field .f-value {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-title);
  text-align: left;
  line-height: var(--lh-snug)
}
/* 语义色不被瓦片样式覆盖 */
.detail-page .detail-grid > .card.detail-card .field-grid .field .f-value.primary { color: var(--brand); }
.detail-page .detail-grid > .card.detail-card .field-grid .field .f-value.danger { color: var(--danger); }
.detail-page .detail-grid > .card.detail-card .field-grid .field .f-value.success { color: var(--success-text); }
.detail-page .detail-grid > .card.detail-card .field-grid .field .f-value.deal { color: var(--accent-text); }

/* 小区基础信息条本身是浅底通栏，内部字段不再叠瓦片 */
.detail-page .detail-grid > .card .community-info-grid .field {
  background: transparent;
  border: 0;
  padding: 2px 0;
}

/* ============================================================
   数据分析 / 成交记录：强调色与可视化
   ============================================================ */
.detail-page .analysis-item.is-key {
  background: var(--accent-weak);
  border-color: var(--accent-border);
}
.detail-page .analysis-item.is-key .analysis-value { color: var(--accent); }

.detail-page .history-nums b.is-price { color: var(--primary); }

/* 成交价 / 市场价 占比条 */
.hist-meter {
  height: 4px;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-light);
  overflow: hidden;
}
.hist-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F5A884, var(--accent));
}

/* ---- 头部三段：标题 / 标签 / 区位，拉开垂直节奏 ---- */
.detail-page .hero-head { gap: var(--sp-3) var(--sp-5); }
.detail-page .hero-title { margin-bottom: var(--sp-3); }
.detail-page .hero-tags {
  gap: 6px 8px;
  margin-bottom: var(--sp-3);
}
.detail-page .hero-sub {
  margin-top: 0;
  gap: 6px var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-snug)
}
.detail-page .hero-sub-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.detail-page .hero-sub-ico {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--text-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- 桌面端关键信息条：五列等分，纵向分隔线，填满整行 ---- */
@media (min-width: 1024px) {
  .detail-page .hero-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }
  .detail-page .hero-meta .meta-item {
    min-width: 0;
    padding: 0 var(--sp-4);
    border-left: 1px solid var(--border-light);
  }
  .detail-page .hero-meta .meta-item:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .detail-page .hero-meta .meta-item:last-child { padding-right: 0; }

  /* 价格卡底部说明贴底，四张卡的基线一致 */
  .detail-page .price-block .price-sub {
    margin-top: auto;
    padding-top: var(--sp-1);
  }
}

/* ---- 移动端固定操作条：留出安全区，白底更沉稳 ---- */
@media (max-width: 768px) {
  .detail-page .mobile-bar {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .detail-page .price-block.is-main .price-value { font-size: var(--fs-display-sm); }
}

@media (max-width: 480px) {
  .detail-page .price-block.is-main .price-value { font-size: var(--fs-2xl); }
}

/* ============================================================
   房源列表页视觉体系 v3
   令牌已全部收归 :root，此处仅保留表格 / 筛选器的组件级规则
   ============================================================ */

/* ---- 页头与卡片 ---- */
/* 与全站页面标题同阶（--fs-xl），不再单独设 22px，避免字号阶梯过密 */
.list-page .page-title {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xl);
}
.list-page .page-subtitle { font-size: var(--fs-sm); color: var(--text-secondary); }

.list-page .card {
  border-color: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---- 筛选区：字段紧凑、操作行独立成一条 ---- */
.list-page .filter-bar { padding: var(--sp-4); }
.list-page .filter-bar .el-form-item { margin-bottom: var(--sp-3); }
.list-page .filter-bar .el-form-item__label {
  font-size: var(--fs-hint);
  color: var(--text-secondary);
}

.list-page .filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border-light);
}
/* 用 gap 控制间距，去掉 Element 相邻按钮的默认外边距 */
.list-page .filter-actions .el-button + .el-button { margin-left: 0; }
/* 折叠状态下提示生效中的高级筛选数量 */
.list-page .filter-badge {
  margin-left: 4px;
  padding: 0 6px;
  font-size: var(--fs-micro);
  line-height: 16px;
}

/* ---- 表格：去纵线、加行高、表头浅灰底 ---- */
.list-page .el-table {
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-page .el-table th.el-table__cell {
  font-size: var(--fs-hint);
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--border);
}
.list-page .el-table td.el-table__cell { padding: 10px 0; }
/* 单元格内边距 8px：与收窄后的列宽匹配，表头不折行 */
.list-page .el-table .cell { padding: 0 var(--sp-2); line-height: var(--lh-snug) }

/* 冻结表头：表体内部滚动时表头保持可见 */
.list-page .el-table--scrollable-y .el-table__header-wrapper {
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}
.list-page .el-table__body-wrapper { overscroll-behavior: contain; }

/* 表头：文字与排序箭头同一行，箭头统一跟在文字末尾 */
.list-page .el-table th.el-table__cell .cell {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
/* Element 默认箭头占位 24px，收窄后列宽更贴合内容 */
.list-page .el-table .caret-wrapper {
  width: 14px;
  flex: none;
}

/* 斑马纹降到几乎不可见，只留极浅层次 */
.list-page .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #FCFDFE;
}
.list-page .el-table__body tr:hover > td.el-table__cell { background: #F7F9FC; }
/* 斑马行同样响应悬浮（否则条纹选择器优先级更高） */
.list-page .el-table--striped .el-table__body tr.el-table__row--striped:hover > td.el-table__cell {
  background: #F7F9FC;
}

/* 去掉表格底部与固定列的多余描边 */
.list-page .el-table::before,
.list-page .el-table__inner-wrapper::before { display: none; }
.list-page .el-table__body tr:last-child td.el-table__cell { border-bottom: 0; }

/* ---- 单元格语义 ---- */
.list-page .table-link {
  color: var(--brand);
  font-weight: 500;
}
.list-page .table-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* 起拍价：全表唯一的高饱和数字 */
.list-page .cell-price {
  color: var(--primary);
  font-weight: 700;
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
}

/* 单价：次要信息，降一级颜色 */
.list-page .cell-unit {
  color: var(--text-secondary);
  font-size: var(--fs-hint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 折扣率：胶囊标签 */
.list-page .rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 1px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #F5F7FA;
  font-size: var(--fs-hint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 用途：浅底小标签 */
.list-page .use-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: #F5F7FA;
  color: var(--text-secondary);
  font-size: var(--fs-hint);
  white-space: nowrap;
}

.list-page .cell-empty { color: var(--text-muted); }
.list-page .status-tag { font-weight: 600; border-radius: 6px; }

/* ---- 分页 ---- */
.list-page .pagination-bar {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-light);
}

/* ---- 移动端：压缩留白，标签同步收字号 ---- */
@media (max-width: 768px) {
  .list-page .filter-bar { padding: var(--sp-3); }
  .list-page .el-table { font-size: var(--fs-hint); }
  .list-page .el-table .cell { padding: 0 var(--sp-2); }
  .list-page .el-table td.el-table__cell { padding: var(--sp-2) 0; }
  .list-page .cell-price { font-size: var(--fs-sm); }
  .list-page .rate-pill,
  .list-page .use-chip { font-size: var(--fs-micro); }
  .list-page .rate-pill { min-width: 48px; }

  /* ---- 移动端：表格替换为卡片列表 ---- */
  .list-page .table-scroll-hint { display: none; }

  /* 排序条：横向滚动的标签，当前字段高亮并显示升降序 */
  .list-page .m-sort {
    display: flex;
    gap: 6px;
    margin: 0 calc(-1 * var(--sp-4)) var(--sp-3);
    padding: 0 var(--sp-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .list-page .m-sort::-webkit-scrollbar { display: none; }
  .list-page .m-sort-item {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text-secondary);
    font-size: var(--fs-hint);
    line-height: 1;
    cursor: pointer;
  }
  .list-page .m-sort-item.is-active {
    border-color: var(--brand);
    background: var(--brand-weak);
    color: var(--brand);
    font-weight: 600;
  }
  .list-page .m-sort-arrow { font-size: var(--fs-micro); }
  .list-page .m-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .list-page .m-property {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  }
  .list-page .m-property:active {
    border-color: var(--brand-border);
    background: #FBFCFE;
  }
  .list-page .m-property-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .list-page .m-property-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: var(--lh-snug)
    color: var(--text-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .list-page .m-property-head .el-tag { flex: none; }

  .list-page .m-property-meta {
    margin: 6px 0 0;
    font-size: var(--fs-hint);
    line-height: var(--lh-snug)
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .list-page .m-property-nums {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  .list-page .m-num {
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-subtle);
  }
  .list-page .m-num-label {
    display: block;
    font-size: var(--fs-micro);
    color: var(--text-muted);
  }
  .list-page .m-num-value {
    display: block;
    margin-top: 2px;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-title);
    font-variant-numeric: tabular-nums;
  }
  .list-page .m-num-value.is-price { color: var(--primary); }

  .list-page .m-property-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
    font-size: var(--fs-hint);
    color: var(--text-muted);
  }
  .list-page .m-detail { color: var(--brand); font-weight: 500; }
}

/* ============================================================
   数据总览（首页）版面重构
   分区：页头 → 在拍概览 → 买家关注 → 市场结构 → 买家榜单 → 最新房源
   栅格：桌面 6/12 栏 / 平板 2 栏 / 手机 1–2 栏
   ============================================================ */
.dash-page { --dash-gap: var(--sp-4); }

/* ---- 页头 ---- */
.dash-page .dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.dash-page .dash-hero .page-title { font-size: var(--fs-2xl); }
.dash-page .dash-hero .page-subtitle { margin-bottom: 0; }
/* 移动端页头快捷搜索：桌面隐藏，手机首屏显示在「数据总览」右侧 */
.dash-quick { display: none; }
/* 页头右侧：今日新增房源窗口 + 数据更新时间 */
.dash-page .dash-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.dash-page .dash-today {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--primary-light, #dbe7ff);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
  box-shadow: 0 4px 14px rgba(23, 43, 77, .08);
}
.dash-page .dash-today-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-hint);
  color: var(--text-secondary, #6b7688);
  white-space: nowrap;
}
.dash-page .dash-today-icon { font-size: var(--fs-base); color: var(--primary, #2563eb); }
.dash-page .dash-today-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-text, #1f2430);
  font-variant-numeric: tabular-nums;
}
.dash-page .dash-today-value small {
  margin-left: 2px;
  font-size: var(--fs-hint);
  font-weight: 500;
  color: var(--text-muted, #8a94a6);
}
.dash-page .dash-today-trend {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--fs-micro);
  line-height: var(--lh-snug)
  white-space: nowrap;
}
.dash-page .dash-today-trend.is-up { color: #0a8f4c; background: rgba(10, 143, 76, .1); }
.dash-page .dash-today-trend.is-down { color: #c0392b; background: rgba(192, 57, 43, .1); }
.dash-page .dash-today-trend.is-flat { color: var(--text-muted, #8a94a6); background: var(--bg-muted, #f4f6fa); }

.dash-page .dash-updated {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-hint);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* 手机端页头：标题 → 今日新增 → 副标题 + 更新时间
   今日新增紧跟「数据总览」标题，不再单占一张大卡，首屏更紧凑、层级更清楚 */
@media (max-width: 768px) {
  .dash-page .dash-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    margin-bottom: var(--sp-4);
  }
  /* 拆掉两层包裹，让标题 / 副标题 / 今日新增 / 更新时间成为同级网格项，便于重排 */
  .dash-page .dash-hero-text,
  .dash-page .dash-hero-meta { display: contents; }

  .dash-page .dash-hero .page-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  /* 标题右侧：搜索框撑满剩余宽度，「买房工具」贴最右 */
  .dash-page .dash-quick {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .dash-quick-search {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
  }
  .dash-quick-search:focus-within {
    border-color: var(--primary);
    background: #fff;
  }
  .dash-quick-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
  }
  .dash-quick-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: var(--fs-hint);
    color: var(--text-main);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .dash-quick-search input::placeholder { color: var(--text-muted); }
  .dash-quick-search input::-webkit-search-cancel-button { display: none; }
  .dash-page .dash-today {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .dash-page .dash-hero .page-subtitle {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    margin: 0;
    font-size: var(--fs-hint);
  }
  .dash-page .dash-updated {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
  /* 首屏已有更大的搜索框，隐藏顶栏那颗小搜索，避免同屏重复 */
  .page-home .header-search { display: none; }
  /* 没有搜索框时，登录按钮自己顶到最右 */
  .page-home .user-area { margin-left: auto; }

  /* 今日新增：铺满整行的浅色信息条，标签 + 数字紧挨，涨跌贴右 */
  .dash-page .dash-today {
    width: 100%;
    gap: 8px;
    padding: var(--sp-2) 10px;
    border: 1px solid #dbe6f5;
    border-radius: 10px;
    background: #eef3fa;
    box-shadow: none;
  }
  .dash-page .dash-today-icon { font-size: var(--fs-sm); }
  .dash-page .dash-today-label { font-size: var(--fs-hint); }
  .dash-page .dash-today-value { font-size: var(--fs-lg); }
  .dash-page .dash-today-value small { font-size: var(--fs-micro); }
  .dash-page .dash-today-trend {
    margin-left: auto;
    padding: 1px 7px;
    font-size: var(--fs-micro);
    line-height: var(--lh-snug)
  }
  /* 更新时间收成纯文本，与副标题同一行右对齐 */
  .dash-page .dash-updated {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: var(--fs-micro);
    color: var(--text-muted, #8a94a6);
  }
}

/* ---- 分区标题（复用全站 .section-head 视觉语言）---- */
.dash-page .dash-section { margin-top: var(--sp-7); }
.dash-page .dash-section:first-of-type { margin-top: 0; }
.dash-page .section-head { margin: 0 0 var(--sp-3); }

/* ---- 卡片节奏统一：间距交给 grid gap，卡片等高 ---- */
.dash-page .card {
  height: 100%;
  margin-bottom: 0;
  padding: var(--sp-4);
}
.dash-page .card-title {
  min-height: 20px;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md);
}
.dash-page .card-title::before { height: 14px; }
.dash-page .card-title-note { font-size: var(--fs-micro); }

/* ---- ① 在拍概览 ---- */
.dash-page .dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-3);
}
.dash-page .dash-kpis .stat-card { height: 100%; }
.dash-page .stat-value { font-variant-numeric: tabular-nums; }

/* ---- ② 区域优质房源（每区一个 TOP 5 榜单）---- */
/* 桌面 4 列；10 个区在末行不足时整体居中，避免出现单张孤卡 */
.dash-page .district-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--dash-gap);
}
.dash-page .pick-card {
  flex: 0 0 calc((100% - var(--dash-gap) * 3) / 4);
  min-width: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.dash-page .pick-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-hover);
}
@media (max-width: 1280px) {
  .dash-page .pick-card { flex-basis: calc((100% - var(--dash-gap)) / 2); }
}
@media (max-width: 768px) {
  .dash-page .pick-card { flex-basis: 100%; }
}

.pick-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: 2px;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-light);
}
.pick-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-title);
}
.pick-count { font-size: var(--fs-micro); color: var(--text-muted); white-space: nowrap; }

.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px dashed var(--border-light);
}
/* 手机端：小区名链接撑到 44px 高，避免小字链接误触 */
@media (max-width: 768px) {
  .pick-item { align-items: center; }
  .pick-name { display: flex; align-items: center; min-height: 44px; }
}
.pick-item:last-child { border-bottom: none; }
.pick-body { flex: 1; min-width: 0; }

.pick-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.pick-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-hint);
  font-weight: 600;
  color: var(--text-main);
}
.pick-name:hover,
.pick-name:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pick-saving {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--danger-light);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.pick-sub {
  margin-top: 2px;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- ④ 买家榜单 ---- */
.dash-page .dash-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--dash-gap);
}
.dash-page .dash-boards .card { display: flex; flex-direction: column; }
.dash-page .dash-deal { margin-top: var(--dash-gap); }
.dash-page .deal-head { margin-bottom: var(--sp-3); }
.dash-page .deal-head .card-title { margin-bottom: 0; }
.dash-page .deal-head .deal-tabs { margin-top: 0; margin-bottom: 0; }

/* ---- ⑤ 最新房源 ---- */
.dash-page .dash-more { margin-top: var(--sp-4); text-align: center; }

/* ---- 平板：指标 3 列、图表/榜单 2 列 ---- */
@media (max-width: 1280px) {
  .dash-page .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-page .dash-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-page .dash-boards .card:nth-child(3) { grid-column: 1 / -1; }
}

/* ---- 手机：单列为主，指标与买家关注两列 ---- */
@media (max-width: 768px) {
  .dash-page .dash-hero { margin-bottom: var(--sp-4); }
  .dash-page .dash-hero .page-title { font-size: var(--fs-xl); }
  .dash-page .dash-section { margin-top: var(--sp-6); }
  .dash-page .section-head { margin-bottom: var(--sp-2); }
  .dash-page .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .dash-page .dash-kpis .stat-card { padding: var(--sp-3); gap: var(--sp-2); }
  .dash-page .dash-boards { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .dash-page .dash-boards .card:nth-child(3) { grid-column: auto; }
  .dash-page .district-picks { gap: var(--sp-3); }
}

/* ---- 房源列表：入库 3 日内的 NEW 标识（到期由后端实时取消） ---- */
.new-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  height: 16px;
  line-height: 16px;
  border-radius: 3px;
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.22);
  color: var(--danger);
  font-size: var(--fs-micro);   /* 9px 过小，收到阶梯最小档 11px */
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---- 我的收藏 ---- */
.fav-list { display: flex; flex-direction: column; gap: 12px; }
.fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.fav-main { flex: 1; min-width: 0; }
.fav-title { font-size: var(--fs-md); font-weight: 600; color: var(--text-title); }
.fav-title:hover { color: var(--primary); }
.fav-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.fav-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.fav-price { text-align: right; }
.fav-price-label { display: block; font-size: var(--fs-hint); color: var(--text-secondary); }
.fav-price b { font-size: var(--fs-lg); font-weight: 700; color: var(--primary); }

/* 中等屏隐藏顶栏「我的收藏」（底部标签栏已有入口），避免顶栏拥挤 */
@media (max-width: 1280px) {
  .app-menu .app-menu-fav { display: none !important; }
}

@media (max-width: 768px) {
  .fav-item { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px; }
  .fav-side { width: 100%; justify-content: space-between; }
}

/* ============================================================
   数据分析页
   ============================================================ */
.analytics-page {
  /* 页头淡墨渐变，突出标题区 */
  background: linear-gradient(180deg, rgba(35, 42, 54, .05), rgba(35, 42, 54, 0) 240px);
}

/* 栅格内卡片等高，纵向间距统一交给列间距；min-width:0 防止宽表格撑破卡片 */
.analytics-page .el-col { display: flex; min-width: 0; margin-bottom: var(--sp-4); }
.analytics-page .el-col > .card,
.analytics-page .el-col > .stat-card { flex: 1; min-width: 0; margin-bottom: 0; }
.analytics-page .el-col > .card { border-radius: var(--radius-lg); }

/* 图表卡片悬停微抬 */
.analytics-page .card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.analytics-page .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.analytics-page .card-title-note { font-weight: 400; }

/* 分区标题：图表区按主题分组，页面更有层次 */
.analytics-page .analytics-section {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 var(--sp-2);
}
.analytics-page .analytics-section:first-of-type { margin-top: var(--sp-5); }
.analytics-page .analytics-section h2 {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: var(--lh-tight)
  color: var(--text-title);
}
.analytics-page .analytics-section .section-note {
  font-size: var(--fs-hint);
  color: var(--text-muted);
}

/* 指标卡副文案：说明统计口径 */
.analytics-page .stat-sub {
  margin-top: 3px;
  font-size: var(--fs-hint);
  line-height: var(--lh-tight)
  color: var(--text-muted);
}

/* 参数对比：筛选条带浅底，与表格形成层次 */
.analytics-page .compare-toolbar {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #f8fafd;
}
/* 宽表格在卡内横向滚动，不撑开页面 */
.analytics-page .compare-scroll { max-width: 100%; }

@media (max-width: 768px) {
  /* 小屏隐藏卡片副说明，避免标题拥挤 */
  .analytics-page .card-title-note { display: none; }
  .analytics-page .stat-sub { display: none; }
  .analytics-page .analytics-section { flex-wrap: wrap; gap: 2px var(--sp-2); margin-top: var(--sp-5); }
  .analytics-page .analytics-section .section-note { flex-basis: 100%; padding-left: 11px; }
}

/* ============================================================
   多房源对比
   ============================================================ */
/* 列表页：已选对比浮条 */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(15, 35, 65, .12);
}
.compare-bar-info { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-secondary); white-space: nowrap; }
.compare-bar-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--primary); color: #fff; font-size: var(--fs-hint);
}
.compare-bar-actions { display: flex; align-items: center; gap: 4px; }

/* 移动端卡片上的对比按钮 */
.m-foot-actions { display: flex; align-items: center; gap: 10px; }
.m-compare-btn {
  position: relative;
  padding: 3px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--fs-hint);
}
/* 视觉保持紧凑，命中区扩到 44px（伪元素不参与布局，不改卡片高度） */
.m-compare-btn::after {
  content: '';
  position: absolute;
  inset: -10px -8px;
}
.m-compare-btn.active { border-color: var(--primary); color: var(--primary-text); background: var(--primary-light, #eef4ff); }

/* 对比页 */
.compare-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); margin-bottom: 10px;
}
.compare-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
/* 移动端 3 套以上时的「选两套对照」选择器（桌面端隐藏） */
.compare-pair { display: none; align-items: center; gap: 6px; min-width: 0; }
.compare-pair-select { width: 148px; }
.compare-pair-sep { flex: none; font-size: var(--fs-hint); color: var(--text-muted); }
.compare-loading { padding: 20px; border-radius: var(--radius-lg); background: var(--bg-card); }
/* 表格外框：不设 overflow:auto，否则祖先成为滚动容器，表头无法吸附在页面顶部 */
.compare-board {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 4px 18px rgba(15, 35, 65, .06);
  overflow: clip;            /* clip 不产生滚动容器，可保留圆角且不影响 sticky */
}
/* 固定表格布局：对比项列定宽，房源列等比均分，2 套时不产生横向滚动 */
.compare-table {
  width: 100%; table-layout: fixed;
  border-collapse: separate; border-spacing: 0;
  font-size: var(--fs-sm);
}
.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;   /* 长地址/学区名换行而不是撑破列宽 */
}
.compare-table td { font-variant-numeric: tabular-nums; }   /* 数字等宽，跨列逐位对照 */
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* 列头：房源卡位（浅色底 + 主题色底线，参考手机/车型对比页） */
.compare-table thead th {
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, #f6f9fd, #fbfcfe);
  border-bottom: 2px solid var(--primary-light);
  /* 纵向滚动时房源列头吸附在顶部栏下方，始终知道每列是哪套房 */
  position: sticky;
  top: var(--header-h);
  z-index: 3;
}
.compare-th-label {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 120px;
  text-align: left !important;
  font-weight: 500;
  font-size: var(--fs-hint);
  line-height: var(--lh-snug)
  color: var(--text-secondary);
  background: var(--bg-muted);
}
.compare-table thead .compare-th-label { z-index: 4; }
.compare-th-property { font-weight: 600; }
.compare-address {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600; font-size: var(--fs-sm); line-height: var(--lh-snug)
  color: var(--text-primary); text-decoration: none;
}
.compare-address:hover { color: var(--primary-text); }
.compare-sub {
  display: block; margin-top: 2px;
  font-size: var(--fs-hint); font-weight: 400; line-height: var(--lh-tight) color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.compare-sub-area { color: var(--text-secondary); }
.compare-remove {
  margin-top: 8px; padding: 2px 10px;
  border: 1px solid var(--border-light); border-radius: 999px;
  background: transparent; color: var(--text-muted); font-size: var(--fs-hint); cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast) var(--ease-out);
}
.compare-remove:hover { border-color: var(--danger, #e34d59); color: var(--danger, #e34d59); }
.compare-remove-x { display: none; }

/* 参数分组行（跨整行的分区标题） */
.compare-group-label {
  position: static;
  padding: 7px 14px !important;
  text-align: left !important;
  font-size: var(--fs-hint);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--primary-text);
  background: var(--primary-light) !important;
}

/* 数值行：差异淡黄、同项最优绿底、负值红字、行悬停微亮 */
.compare-table tr.is-diff td { background: rgba(255, 196, 0, .055); }
.compare-table td.is-best { background: rgba(7, 193, 96, .10); color: #0a8f4c; font-weight: 600; }
.compare-table tr.is-diff td.is-best { background: rgba(7, 193, 96, .12); }
.compare-table td.is-negative { color: var(--danger, #e34d59); font-weight: 600; }
.compare-table td.is-negative.is-best { color: #0a8f4c; }   /* 同项最优优先于负值标红 */
@media (hover: hover) {
  .compare-table tbody tr:hover td { background: rgba(35, 42, 54, .045); }
  .compare-table tbody tr:hover td.is-best { background: rgba(7, 193, 96, .13); }
}
.compare-legend-best { color: #0a8f4c; }
.compare-legend-diff { color: #a8760a; }
/* 小屏用短标签避免对比项列折行；桌面仍显示完整文案 */
.compare-label-short { display: none; }
/* 「展开全部指标」仅移动端出现（桌面一屏能放下全部行） */
.compare-more { display: none; }

/* 小屏（≤360px）详情页底栏：三个按钮并排时进一步收窄，保证价格不被挤没 */
@media (max-width: 480px) {
  .mobile-bar .mb-actions { gap: 6px; }
  .mobile-bar .mb-btn { min-width: 46px; padding: 0 8px; font-size: var(--fs-hint); }
}

@media (max-width: 768px) {
  .compare-bar {
    left: 12px;
    right: 12px;
    bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    transform: none;
    justify-content: space-between;
    border-radius: var(--radius-lg);
  }
  /* 详情页底部还有价格操作条，浮条再上移一层 */
  .compare-bar.is-on-detail {
    bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom, 0px));
  }
  /* ---- 对比页：两套并排，一屏内逐项对照（不再横向滚动）---- */
  .compare-page { padding: var(--sp-3) 10px var(--sp-6); }
  .compare-page .page-title { font-size: var(--fs-lg); }
  .compare-page .page-subtitle { margin-bottom: 0; font-size: var(--fs-hint); line-height: var(--lh-snug) }

  .compare-toolbar { flex-wrap: wrap; gap: var(--sp-2); margin-bottom: 8px; }
  .compare-pair { display: flex; flex: 1 1 100%; }
  .compare-pair-select { flex: 1 1 0; width: auto; min-width: 0; }
  .compare-actions { margin-left: auto; }
  .compare-actions .el-button { margin-left: 0; }

  /* 表头吸附在移动端顶栏下方（54px），列宽按剩余空间均分，2 套不再横向滚动 */
  .compare-table { font-size: var(--fs-hint); }
  .compare-table thead th { top: var(--header-h-mobile); padding: 9px 6px 8px; }
  .compare-th-label { width: 76px; font-size: var(--fs-micro); }
  .compare-table th,
  .compare-table td { padding: 7px 5px; }
  .compare-table td { line-height: var(--lh-tight) }

  .compare-address { font-size: var(--fs-hint); padding-right: 16px; }   /* 让出右上角移除按钮 */
  .compare-sub {
    white-space: normal;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: var(--fs-micro);
  }
  .compare-sub-area { display: none; }        /* 区域/商圈表体已有整行，列头不重复占高 */
  .compare-remove {
    position: absolute; top: 2px; right: 2px;
    width: 22px; height: 22px; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-color: transparent; background: transparent;
    font-size: 15px; line-height: 1;
  }
  .compare-remove-text { display: none; }
  .compare-remove-x { display: block; }

  .compare-label-full { display: none; }
  .compare-label-short { display: inline; }
  .compare-group-label { padding: 5px 10px !important; font-size: var(--fs-micro); }

  /* 次要指标默认折叠：核心数据一屏即可对照完，需要时再展开 */
  .compare-table tr.is-secondary { display: none; }
  .compare-more { display: flex; justify-content: center; margin-top: var(--sp-2); }
  .compare-more .el-button { color: var(--primary-text); font-size: var(--fs-sm); }
}

/* ============================================================
   后台移动端优化（放在最后，覆盖前面小屏规则）
   ============================================================ */
@media (max-width: 768px) {
  /* 模块切换：吸顶横滑胶囊，滚到页面任何位置都能一键换模块 */
  .admin-wrap .admin-sidebar {
    position: sticky;
    top: calc(var(--header-h-mobile) - 1px);
    z-index: 90;
    width: 100%;
    margin: 0 calc(-1 * var(--container-pad));
    padding: 6px var(--container-pad);
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
  }
  .admin-mobile-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .admin-mobile-tabs::-webkit-scrollbar { display: none; }
  .admin-mobile-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .admin-mobile-tab.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
  }
  .admin-mobile-tab-icon { font-size: var(--fs-base); line-height: 1; }

  /* 底部固定标签栏不遮挡最后一屏内容 */
  .admin-wrap { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px)); }

  /* 表格触摸横向滑动更跟手 */
  .admin-wrap .el-table .el-scrollbar__wrap { -webkit-overflow-scrolling: touch; }

  /* 分页器：压缩按钮与间距，保证「上一页 + 页码 + 下一页」单行排布 */
  .admin-wrap .el-pagination.is-background .el-pager li,
  .admin-wrap .el-pager li { min-width: 32px; height: 32px; line-height: 32px; margin: 0 2px; }
  .admin-wrap .el-pagination .btn-prev,
  .admin-wrap .el-pagination .btn-next { min-width: 32px; height: 32px; }
  @media (max-width: 480px) {
    .admin-wrap .el-pagination.is-background .el-pager li,
    .admin-wrap .el-pager li { min-width: 28px; height: 30px; line-height: 30px; margin: 0 1px; }
    .admin-wrap .el-pagination .btn-prev,
    .admin-wrap .el-pagination .btn-next { min-width: 28px; height: 30px; }
  }

  /* 筛选条件：手机端默认收起，先看数据，需要时再展开 */
  .filter-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-regular);
    font-size: var(--fs-sm);
  }
  .filter-mobile-toggle-arrow { color: var(--primary-text); font-size: var(--fs-hint); }
  .admin-wrap .filter-bar.is-mobile-collapsed .el-form { display: none; }
  .filter-bar.is-mobile-collapsed .filter-mobile-toggle { margin-bottom: 0; }

  /* 工具栏：输入类铺满一行，按钮两列均分，触控高度 38px */
  .admin-wrap .admin-toolbar > .el-input,
  .admin-wrap .admin-toolbar > .el-select,
  .admin-wrap .admin-toolbar > .el-input-number,
  .admin-wrap .admin-toolbar > .el-date-editor {
    flex: 1 1 100%; width: 100% !important; min-width: 0;
  }
  .admin-wrap .admin-toolbar > .el-button {
    flex: 1 1 auto; min-width: calc(50% - 4px); min-height: 38px;
    margin-left: 0 !important;
  }
  .admin-wrap .admin-toolbar > .spacer { display: none; }

  /* 筛选表单：标签在左，控件铺满，价格区间均分 */
  .admin-wrap .admin-main .el-form--inline { display: block; }
  .admin-wrap .admin-main .el-form--inline .el-form-item {
    display: flex; align-items: center; width: 100%; margin: 0 0 8px;
  }
  .admin-wrap .admin-main .el-form--inline .el-form-item__label {
    flex: 0 0 74px; justify-content: flex-start; height: auto;
    padding-right: 8px; font-size: var(--fs-sm); line-height: 34px;
  }
  .admin-wrap .admin-main .el-form--inline .el-form-item__content {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  }
  .admin-wrap .admin-main .el-form--inline .el-form-item__content > .el-input,
  .admin-wrap .admin-main .el-form--inline .el-form-item__content > .el-select,
  .admin-wrap .admin-main .el-form--inline .el-form-item__content > .el-input-number,
  .admin-wrap .admin-main .el-form--inline .el-form-item__content > .el-date-editor {
    flex: 1 1 0; width: auto !important; min-width: 0;
  }
  .admin-wrap .admin-main .el-form--inline .el-form-item__content > .el-button {
    flex: 1; min-height: 36px;
  }

  /* 弹窗：接近全屏，表单项上下排列，两列改单列 */
  .el-overlay-dialog .el-dialog,
  .el-dialog {
    width: calc(100vw - 20px) !important;
    max-width: 100%;
    margin-top: 4vh !important;
  }
  .el-dialog .el-form-item { display: block; }
  .el-dialog .el-form-item__label-wrap { display: block; }
  .el-dialog .el-form-item__label {
    display: block; float: none; width: auto !important; height: auto;
    justify-content: flex-start; text-align: left;
    padding: 0 0 4px; font-size: var(--fs-sm); line-height: var(--lh-snug)
  }
  .el-dialog .el-form-item__content { margin-left: 0 !important; }
  .el-dialog .el-row > div[class*="el-col-"] {
    max-width: 100% !important; flex: 0 0 100% !important;
  }
  .el-dialog .el-input,
  .el-dialog .el-select,
  .el-dialog .el-input-number,
  .el-dialog .el-date-editor { width: 100% !important; }
}

/* ============================================================
   买房工具
   ============================================================ */
.tools-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: var(--sp-4);
}
.tools-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  background: var(--bg-card); color: var(--text-secondary);
  font-size: var(--fs-sm); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.tools-nav-item:hover { border-color: var(--primary); color: var(--primary-text); transform: translateY(-1px); }
.tools-nav-item.is-active {
  border-color: var(--primary); background: var(--primary-light);
  color: var(--primary-text); font-weight: 600;
}
.tools-nav-icon { font-size: var(--fs-xl); }
.tools-card { padding: 20px; }
.tools-form .el-form-item { margin-bottom: 12px; }
.tools-search { display: flex; gap: 10px; max-width: 560px; margin-bottom: 14px; }
.tools-search .el-input { flex: 1; }
.tools-result { margin-top: 6px; padding: 16px; border-radius: var(--radius-lg); background: var(--bg-muted); }
.tools-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tools-result-item { display: flex; flex-direction: column; gap: 4px; }
.tools-result-item span { font-size: var(--fs-hint); color: var(--text-muted); }
.tools-result-item strong { font-size: var(--fs-lg); font-weight: 600; color: var(--text-title); }
.tools-tip { margin: 12px 0 0; font-size: var(--fs-hint); line-height: var(--lh-base) color: var(--text-muted); }
.tools-table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.tools-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tools-table th, .tools-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); text-align: left; }
.tools-table th { background: var(--bg-muted); color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.tools-table tbody tr:last-child td { border-bottom: 0; }
.tools-links { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-hint); line-height: var(--lh-snug) color: var(--text-muted); }
.tools-links a { color: var(--primary-text); }

/* ---- 房屋编码查询 ---- */
.code-search { display: flex; gap: 10px; max-width: 720px; }
.code-search .el-input { flex: 1; }
.code-input .el-input__inner { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.4px; }
.code-counter { font-size: var(--fs-hint); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.code-counter.is-ok { color: var(--success-text); font-weight: 600; }
.code-counter.is-error { color: var(--danger-text); font-weight: 600; }
.code-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-3); max-width: 720px; margin-top: var(--sp-2); }
.code-hint { flex: 1 1 320px; font-size: var(--fs-hint); line-height: var(--lh-snug); color: var(--text-muted); }
.code-hint.is-ok { color: var(--success-text); }
.code-hint.is-error { color: var(--danger-text); }
.code-toolbar-actions { display: flex; align-items: center; gap: var(--sp-1); flex-shrink: 0; }
.code-finder { margin-top: var(--sp-4); padding: var(--sp-4); border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.code-finder .tools-search { max-width: 640px; margin-bottom: var(--sp-3); }
.code-cell-main { font-weight: 600; color: var(--text-title); }
.code-cell-sub { margin-top: 2px; font-size: var(--fs-hint); line-height: var(--lh-snug); color: var(--text-muted); }
.code-cell-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-hint); white-space: nowrap; color: var(--text-secondary); }
.code-result { margin-top: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.code-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.code-address { font-size: var(--fs-md); font-weight: 600; line-height: var(--lh-snug); color: var(--text-title); }
.code-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
.code-tag { padding: 2px 8px; border: 1px solid var(--border-light); border-radius: var(--radius-pill); background: var(--bg-card); font-size: var(--fs-hint); color: var(--text-secondary); }
.code-tag.is-primary { border-color: #c8e1ff; background: var(--primary-light); color: var(--primary-text); font-weight: 600; }
.code-tag.is-warn { border-color: #f5dfba; background: var(--warning-light); color: var(--warning-text); }
.code-result-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.code-meta { margin-top: var(--sp-4); }
.code-meta strong { font-size: var(--fs-md); word-break: break-all; }
.code-rooms-block { margin-top: var(--sp-4); }
.code-block-title { margin-bottom: var(--sp-2); font-size: var(--fs-hint); color: var(--text-muted); }
.code-rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.code-room { padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); font-size: var(--fs-hint); line-height: var(--lh-base) color: var(--text-regular); cursor: pointer; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.code-room:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-text); }
.code-room.is-active { border-color: var(--primary); background: var(--primary); color: var(--text-inverse); }
.code-floors { margin-top: var(--sp-4); border-top: 1px solid var(--border-light); }
.code-floor { display: flex; gap: var(--sp-3); padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.code-floor:last-child { border-bottom: 0; }
.code-floor-name { flex: 0 0 56px; padding-top: 4px; font-size: var(--fs-hint); color: var(--text-secondary); }

@media (max-width: 768px) {
  /* ---- 工具选项卡：由 3 列宫格改为吸顶横滑条，滚动时始终可用 ---- */
  .tools-nav {
    position: sticky;
    top: var(--header-h-mobile);
    z-index: 95;
    display: flex;
    gap: 0;
    margin: 0 calc(-1 * var(--container-pad)) var(--sp-3);
    padding: 0 var(--container-pad);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .tools-nav::-webkit-scrollbar { display: none; }
  .tools-nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 5px;
    height: 44px;
    margin-right: 14px;
    padding: 0 2px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: var(--fs-sm);
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .tools-nav-item:last-child { margin-right: 0; }
  /* 触屏没有真正的悬停，去掉向上浮起与描边高亮 */
  .tools-nav-item:hover {
    transform: none;
    border-color: transparent;
    background: transparent;
    color: var(--text-secondary);
  }
  .tools-nav-item.is-active,
  .tools-nav-item.is-active:hover {
    border: 0;
    border-bottom: 2px solid var(--primary);
    background: transparent;
    color: var(--primary-text);
    font-weight: 600;
  }
  .tools-nav-icon { font-size: var(--fs-md); }
  /* 小程序 web-view 内站点头部被隐藏，吸顶条贴视口顶部 */
  html.is-mini .tools-nav { top: 0; }

  .tools-search { flex-direction: column; max-width: none; }
  .tools-card { padding: 14px; }
  .tools-result-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-result-item strong { font-size: var(--fs-md); }
  .code-search { flex-direction: column; max-width: none; }
  .code-result-head { flex-direction: column; }
  .code-result-actions { width: 100%; }
}

/* ---- 房贷计算（组合贷 / 每期还款明细） ---- */
.rate-presets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2, 8px); margin: 0 0 var(--sp-4, 16px); font-size: var(--fs-sm, 13px); color: var(--text-muted, #8a94a6); }
.rate-presets .el-button { margin-left: 0; }
.rate-note { margin-left: var(--sp-2, 8px); }

.loan-actions { display: flex; align-items: center; gap: var(--sp-3, 12px); flex-wrap: wrap; margin: 4px 0 var(--sp-4, 16px); }
.loan-actions-tip { font-size: var(--fs-hint, 12px); color: var(--text-muted, #8a94a6); }

.calc-result { margin-top: var(--sp-5, 20px); display: flex; flex-direction: column; gap: var(--sp-4, 16px); }

/* 结果概览卡片 */
.calc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.calc-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
             border: 1px solid var(--border-light, #eaeef4); border-radius: 12px; background: var(--bg-card, #fff); }
.calc-card-label { font-size: var(--fs-hint); color: var(--text-muted, #8a94a6); }
.calc-card-value { font-size: var(--fs-xl); font-weight: 700; line-height: var(--lh-tight) color: var(--text-title, #1f2733);
                   font-variant-numeric: tabular-nums; }
.calc-card.is-primary { border-color: var(--primary, #2f7cf6); background: var(--primary-light, #eef4ff); }
.calc-card.is-primary .calc-card-value { color: var(--primary-text, #1c5fd0); }
.calc-card-note { font-size: var(--fs-micro); line-height: var(--lh-snug) color: var(--text-muted, #8a94a6); }

/* 组合贷拆分 */
.loan-parts { display: flex; flex-wrap: wrap; gap: 12px; }
.loan-part { flex: 1 1 240px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline;
             padding: 14px 16px; border: 1px solid var(--border-light, #eaeef4); border-radius: 12px;
             background: var(--bg-card, #fff); }
.loan-part-name { grid-column: 1 / -1; font-weight: 600; color: var(--text-title, #1f2733); }
.loan-part span:not(.loan-part-name) { font-size: var(--fs-sm); color: var(--text-regular, #4a5364); font-variant-numeric: tabular-nums; }
.loan-part span:nth-child(even) { text-align: right; }

/* 每期还款明细 */
.loan-table-card { border: 1px solid var(--border-light, #eaeef4); border-radius: 12px; background: var(--bg-card, #fff); overflow: hidden; }
.loan-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
                   padding: 14px 16px; border-bottom: 1px solid var(--border-light, #eaeef4);
                   background: var(--bg-subtle, #f7f9fc); }
.loan-table-title { font-size: var(--fs-base); font-weight: 600; color: var(--text-title, #1f2733); }
.loan-table-sub { margin-left: 10px; font-size: var(--fs-hint); color: var(--text-muted, #8a94a6); }
.loan-table-total { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-hint); color: var(--text-muted, #8a94a6); }
.loan-table-total strong { font-size: var(--fs-md); color: var(--primary-text, #1c5fd0); font-variant-numeric: tabular-nums; }
.loan-table-scroll { overflow-x: auto; }
.loan-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.loan-table th, .loan-table td { padding: 10px 16px; white-space: nowrap; border-bottom: 1px solid var(--border-light, #eef1f6); }
.loan-table th { background: var(--bg-card, #fff); font-weight: 600; color: var(--text-secondary, #6b7688); }
.loan-table th.is-sortable { cursor: pointer; user-select: none; }
.loan-table th.is-sortable:hover { color: var(--primary-text, #1c5fd0); }
.loan-table .sort-mark { margin-left: 4px; font-size: var(--fs-micro); color: #b3bccb; }
.loan-table .sort-mark.is-active { color: var(--primary, #2f7cf6); }
.loan-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.loan-table tbody tr:nth-child(even) { background: #fafbfd; }
.loan-table tbody tr:hover { background: var(--primary-light, #eef4ff); }
.loan-table tbody tr:last-child td { border-bottom: 0; }
/* 横向滚动时首列（期数）固定 */
.loan-table th:first-child, .loan-table td:first-child { position: sticky; left: 0; z-index: 2; }
.loan-table th:first-child { z-index: 3; background: var(--bg-card, #fff); }
.loan-table tbody tr td:first-child { background: var(--bg-card, #fff); }
.loan-table tbody tr:nth-child(even) td:first-child { background: #fafbfd; }
.loan-table tbody tr:hover td:first-child { background: var(--primary-light, #eef4ff); }

.loan-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
                   padding: 12px 16px; border-top: 1px solid var(--border-light, #eaeef4); }
.loan-table-range { font-size: var(--fs-hint); color: var(--text-muted, #8a94a6); font-variant-numeric: tabular-nums; }
.loan-table-foot .el-pagination { flex-wrap: wrap; }

@media (max-width: 768px) {
  .tools-form .el-input__inner { font-size: 16px; }   /* 避免 iOS 聚焦缩放 */
  .tools-form .el-form-item { margin-bottom: 10px; }
  .calc-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .calc-card { padding: 12px; }
  .calc-card-value { font-size: var(--fs-lg); }
  .loan-part { flex-basis: 100%; padding: 12px; }
  .loan-actions { margin: 4px 0 16px; }
  .loan-actions .el-button { width: 100%; height: 44px; font-size: var(--fs-md); }
  .loan-actions-tip { width: 100%; text-align: center; }
  .rate-presets { font-size: var(--fs-hint); gap: 6px; }
  .rate-presets .el-button { padding: 5px 10px; }
  .rate-note { margin-left: 0; flex-basis: 100%; }
  .loan-table-head { padding: 12px; }
  .loan-table-title { font-size: var(--fs-sm); }
  .loan-table-sub { display: block; margin: 4px 0 0; }
  .loan-table th, .loan-table td { padding: var(--sp-2) 10px; font-size: var(--fs-hint); }
  .loan-table-foot { padding: 10px 12px; justify-content: center; }
  .loan-table-range { width: 100%; text-align: center; }
}

/* 数据总览页内嵌的数据分析区块 */
.analytics-embed .el-col { display: flex; min-width: 0; margin-bottom: var(--sp-4); }
.analytics-embed .el-col > .card { flex: 1; min-width: 0; margin-bottom: 0; }
.analytics-embed .card-title-note { font-weight: 400; }

@media (max-width: 768px) {
  .analytics-embed .card-title-note { display: none; }
}

/* 首页内嵌分析区块锚点定位（避开固定导航） */
.analytics-embed { scroll-margin-top: 88px; }

/* ============================================================
   触控可达性：手机端把主要控件的点击区域放大到 44px（WCAG 2.5.5 / iOS 44pt）
   ============================================================ */
@media (max-width: 768px) {
  .el-button:not(.is-link):not(.el-button--text),
  .el-select__wrapper,
  .el-input__wrapper {
    min-height: 44px;
  }
  /* 表格内的操作按钮保持紧凑，避免撑高行高 */
  .el-table .el-button,
  .el-table .el-select__wrapper { min-height: 32px; }

  /* 横滑选项卡：44px 主触控高度；排序胶囊 / 榜单切换 40px（次要控件） */
  .tools-nav-item,
  .detail-nav-item,
  .admin-mobile-tab { min-height: 44px; }
  .list-page .m-sort-item,
  .deal-tab { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }

  /* 头部：logo 与搜索按钮命中区扩到 44px，视觉尺寸不变 */
  .logo { padding: 7px 0; margin: -7px 0; }
  .header-search button { position: relative; width: 34px; height: 34px; }
  .header-search button::after { content: ''; position: absolute; inset: -5px; }

  /* 成交榜行内链接：撑到 44px（line-height 居中，保留省略号截断） */
  .deal-name { min-height: 44px; line-height: 44px; }
}

/* 仅供屏幕阅读器的标题：不占视觉空间，但补齐语义层级 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 后台图表：小屏降低高度，四张图堆叠时不至于一条超长滚动 */
@media (max-width: 768px) {
  .chart-box { height: 260px; }
  .chart-box-sm { height: 220px; }
  .chart-box-tall { height: 300px; }
}

/* ============================================================
   数据总览 · 细节打磨
   ============================================================ */

/* 指标卡：只有可跳转的卡片响应悬浮，避免「看起来能点」 */
.dash-page .stat-card:not(a):hover {
  transform: none;
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}
.dash-page .stat-card.is-compact .stat-value {
  font-size: 21px;
  letter-spacing: -0.01em;
}
.dash-page .stat-card .stat-label { letter-spacing: 0.01em; }

/* 榜单卡：标题与列表之间加细分隔，序号徽章略收紧 */
.dash-page .dash-boards .card > .card-title {
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
}
.dash-page .rank-item { padding: 9px 0; }
.dash-page .rank-no { width: 21px; height: 21px; border-radius: 7px; }

/* 捡漏榜：桌面端隐藏了字段前缀，补一行列标签，数字不再靠猜 */
.deal-legend {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px 56px 56px 56px 64px;
  column-gap: var(--sp-3);
  padding: 0 8px 6px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.deal-legend span:nth-child(n + 3) { justify-self: end; }
.deal-item {
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
.deal-item:hover { background: var(--bg-hover); }
@media (max-width: 1024px) {
  .deal-legend { display: none; }
  .deal-item { padding: 10px 0; margin: 0; }
}

/* 最新房源：表头做浅底，按钮给足点击宽度 */
.dash-page .dash-table-card { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.dash-page .dash-table-card .el-table th.el-table__cell {
  background: var(--bg-subtle);
  font-size: var(--fs-hint);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dash-page .dash-more .el-button {
  min-width: 208px;
  height: 38px;
  font-weight: 600;
}

/* 大屏区块之间略放松，页头标题收紧字距 */
@media (min-width: 1024px) {
  .dash-page .dash-section { margin-top: var(--sp-8); }
}
.dash-page .dash-hero .page-title { letter-spacing: -0.01em; }

/* 窄屏（iPhone SE 等）：悬浮条只保留文字，避免挤压价格区 */
@media (max-width: 480px) {
  .mobile-bar .mb-ico { display: none; }
  .mobile-bar .mb-btn { padding: 0 8px; gap: 0; font-size: 11px; }
  .mobile-bar .mb-btn.mb-poster { padding: 0 9px; }
}

/* 移动端「低于市场价」：去底色胶囊，纯红字跟在起拍价右侧 */
@media (max-width: 768px) {
  .detail-page .price-block .price-saving,
  .price-block .price-saving {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-muted);
  }
  .detail-page .price-block .price-saving b,
  .price-block .price-saving b { color: var(--accent-text); }
}
