:root {
  /* 页面内容最大宽度。想让页面更宽/更窄，只改这一个值即可。
     设得很大 = 基本跟随显示器宽度；设成 1200px 就是传统的居中窄版。 */
  --page-max: 2400px;
  --page-pad: 20px;

  --accent: #185FA5;
  --accent-soft: #E6F1FB;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --sub: #6B7280;
  --border: #E5E7EB;
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --warn: #B54708;
  --warn-bg: #FFFAEB;
  --ok: #067647;
  --ok-bg: #ECFDF3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px var(--page-pad);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-weight: 700; font-size: 16px; color: var(--text); }
/* 版本号（顶栏）。规则见根目录「版本记录.md」：改动小数位 +1，满 100 进 1 */
.brand .ver {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: 1px;
}
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--sub);
  font-size: 14px;
}
.topbar nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* 顶栏右侧「当前登录身份 + 退出」（2026-11-01 分账号后新增）。
   margin-left:auto 把它推到最右；顶栏本身是 flex-wrap，窄屏会自动换行。 */
.topbar .who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
}
.topbar .who .role {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.topbar .who a { color: var(--sub); text-decoration: underline; text-underline-offset: 2px; }

main {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 14px var(--page-pad) 8px;
}
.foot {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--page-pad) 40px;
  color: var(--sub);
  font-size: 12px;
}

/* 窄屏（手机/平板）收窄留白 */
@media (max-width: 820px) {
  :root { --page-pad: 12px; }
}

/* 宽屏：表格列多，让它尽量铺开，不要挤在一起 */
@media (min-width: 1600px) {
  .grid.k4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .grid.k3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- 通用 ---------- */
h1 { font-size: 20px; margin: 6px 0 2px; }
h2 { font-size: 16px; margin: 22px 0 8px; }
.sub { color: var(--sub); font-size: 13px; margin: 0 0 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.grid { display: grid; gap: 10px; }
.grid.k2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.k3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.k4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-right: 4px;
  white-space: nowrap;
}
.tag.gray { background: #F3F4F6; color: var(--sub); }
.tag.mid { background: var(--warn-bg); color: var(--warn); }
.tag.low { background: var(--ok-bg); color: var(--ok); }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
table.data th { background: #FAFBFC; color: var(--sub); font-weight: 600; }
table.data tr:last-child td { border-bottom: none; }

/* ---------- 可点击排序的表头（楼盘库） ---------- */
table.data th.sortable a {
  color: inherit;
  display: inline-block;
  user-select: none;
}
table.data th.sortable:hover a { color: var(--accent); }
table.data th.sortable.sorted { background: var(--accent-soft); }
table.data th.sortable.sorted a { color: var(--accent); font-weight: 700; }
table.data th.sortable.num { text-align: right; }
table.data th.sortable.num a { display: block; text-align: right; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 结果数量 + 内联分页（挂在筛选按钮右边） ---------- */
.result-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 2px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: var(--sub);
  white-space: nowrap;
}
.result-bar .rb-count b {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.result-bar .rb-pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.result-bar .rb-pager .cur {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ⚠ 优先级陷阱（2026-10-01 修）：
   上面 `table.data th, table.data td { text-align: left }` 的优先级是 (0,1,2)，
   高于 `.num` 的 (0,1,0)——所以 `.num` **其实从来没生效过**，表格里所有数值列
   的数据一直是左对齐的（非表格处的 .num 正常）。
   以前表头也是左对齐，两边一起错，看不出来；
   楼盘库把表头做成右对齐（`.sortable.num`，优先级够高）之后，
   立刻变成「表头靠右、数据靠左」，一眼就是没对齐。
   这里用更高优先级把 .num 在表格内扶正，顺便修好全站其它表的数值列对齐。 */
table.data th.num, table.data td.num { text-align: right; }
.strong { font-weight: 700; }
.danger { color: var(--danger); }
.ok { color: var(--ok); }
.subtext { color: var(--sub); font-size: 12.5px; }

/* ---------- 长文本列（标的地址）----------
   2026-10-02 用户反馈：「这些地址为什么没有显示完全？」
   两个原因叠在一起：
     1) `table.data td { white-space: nowrap }` —— 长地址把整行撑成超宽，靠横向滚动看；
     2) 模板里又写了 `[:34]` 硬切，切在「…芙蓉湾6街3座23」这种位置，
        尾巴没有省略号，看着像数据缺了一截。
   这里给「标题/地址」列单独放宽：允许折行 + 限制最大宽度，
   完整地址看得见，表格也不会被撑爆。
   （详情页这类「要拿地址做判断」的表格用 .title-cell 完整显示；
     榜单那种「只扫一眼」的列表用 .ellip 单行省略 + 悬停看全。） */
table.data td.title-cell, table.data th.title-cell {
  white-space: normal;
  max-width: 30em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ---------- V1.57 笋盘榜专用紧凑布局（只作用于 table.data.rank） ----------
   table.data 被 8 个模板 21 处共用（楼盘库 / 溢价 / 详情页历史表…），
   所以压缩规则一律加 .rank 前缀，其它页面一律不受影响。
   目标：把其它列压到「数据仍一行显示」的最小宽度，把宽度让给地址列，
   让 30 条标的的整体高度最低（实测 2840px → 1333px）。 */
table.data.rank th, table.data.rank td { padding: 5px 6px; }
table.data.rank td:not(.title-cell) { font-size: 12.5px; }
/* 表头允许折成两行：长表头不再把列撑宽，列宽改由数据本身决定。
   V1.59：▽ 回到标题文字流里——原来 .th-inner 是 inline-flex + flex-wrap，
   窄列放不下时整个按钮被 wrap 到第二行、独自占一行（1440 下实测 8 列如此，
   「第一行标题、第二行只有一个三角形」）。改成 inline 流后 ▽ 紧跟标题最后一行
   末尾（如「拍卖 / 平台▽」），不再单独占行；表头左右 padding 6→3px 给文字让宽。
   实测地址列 / 30 行总高 / 地址一行数全不变；▽ 孤立 1440:8→4、1920:8→0。 */
table.data.rank th.col-head {
  font-size: 12px; white-space: normal; line-height: 1.25;
  padding-left: 3px; padding-right: 3px;
}
table.data.rank th.col-head .th-inner { display: inline; }
table.data.rank th.col-head .th-sort,
table.data.rank th.col-head .th-label {
  display: inline; white-space: normal; overflow-wrap: anywhere;
  max-width: none; line-height: 1.25;
}
table.data.rank th.col-head .th-filter { vertical-align: baseline; margin-left: 1px; }
/* V1.61：「关注/报名」表头在斜杠处固定断成两行——label 用 \n（模板里写 "关注/\n报名"），
   这里用 pre-line 让换行符生效。只作用于 apply 这一列，其它表头不受影响。
   V1.62：该列 align='num' 会命中 `table.data th.num{text-align:right}`，两行文字
   整体靠右、左侧留白，看着没居中。这里单独把这一列的**表头**改成居中
   （数据单元格 td.num 仍右对齐，数字列惯例不变）。选择器优先级 (0,4,2) > 
   `table.data th.num` 的 (0,2,2)，胜出。 */
table.data.rank th.col-head .th-sort[data-sort-col="apply"] { white-space: pre-line; }
table.data.rank th.col-head[data-col="apply"] { text-align: center; }
/* V1.63：上面只是水平居中——两行文字在 55.5px 高的表头里仍贴下（上留白19/下5.5px）。
   根因 .th-inner 是 inline、按基线对齐。改成 flex 容器并撑到内容区高度(39.5px)，
   让两行在垂直方向也居中（实测上下留白 5/5.5px、差 0.5px，且行高 55.5px 不变）。 */
table.data.rank th.col-head[data-col="apply"] .th-inner {
  display: flex; align-items: center; justify-content: center; min-height: 39.5px;
}
/* 地址列：放开 30em 上限、字号保持 13.5px 不缩。
   V1.59：40% → 34%——用户要求「只要地址列有富余就都让给其它列，不分窗口宽度」。
   本页地址一行所需宽度中位 352px / p95 484px，44% 以上的宽度都是浪费；
   34% 让宽后：地址列 1440:510→476、1600:612→530、1920:752→639，
   其余列相应变宽。自动布局 max-width 对 td 无效，固定比例是纯 CSS 下最接近
   「够用就让」的近似（精确到像素需 JS，用户已否决）。 */
table.data.rank td.title-cell { max-width: none; width: 34%; }
/* 小区 / 拍卖法院长名单行省略，title 悬停看全 */
.cell-ellip {
  display: inline-block; max-width: 96px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
/* V1.58：宽屏（视口 ≥1600px，表格 ≈1560px）总宽有富余，取消小区 / 拍卖法院的
   96px 省略上限，让它们按内容撑开显示全（实测各约 137px）；auto 布局把再剩余的
   宽度按比例分给其余列——即「地址够用 → 法院/小区显示全 → 其余列按比例」。
   窄屏继续 96px 省略（用户确认窄屏高度优先）。
   V1.59 起地址列改为 34%，宽屏下法院/小区依旧显示全、30 行总高 1291px 不变，
   只是地址列比 40% 时窄（见上方地址列注释）。 */
@media (min-width: 1600px) {
  table.data.rank .cell-ellip {
    max-width: none; overflow: visible; text-overflow: clip;
  }
}
.ellip {
  display: inline-block;
  max-width: 24em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* ---------- 筛选栏 ---------- */
.filters {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.filters select, .filters input {
  padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: #fff; color: var(--text); max-width: 170px;
}
.filters input[type=number] { width: 96px; }
.filters .sp { flex: 1; }

/* ---------- V1.42 快速出手：楼盘名框加宽 + 四个参数 + 可编辑单元格 ---------- */
/* 楼盘名常常是完整地址（「XX路XX号X栋X座」），通用的 170px 会把它切掉半截。 */
.filters input.q-wide { width: 360px; max-width: 360px; }
@media (max-width: 720px) { .filters input.q-wide { width: 100%; max-width: 100%; } }

.qs-params {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 4px 8px; border: 1px dashed var(--border); border-radius: 8px;
  background: #FAFBFC;
}
.qs-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--sub); white-space: nowrap;
}
.filters .qs-in { width: 82px; max-width: 82px; font-variant-numeric: tabular-nums; }
.filters .qs-sel { width: 74px; max-width: 74px; padding: 6px 4px; }
.qs-unit { font-size: 12px; color: var(--sub); }

.qs-price {
  display: inline-block; cursor: pointer; border-bottom: 1px dashed var(--accent);
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.qs-price:hover { background: #EEF4FF; }
.qs-price .qs-val { font-weight: 600; }
.qs-price .qs-time { display: block; font-size: 11px; line-height: 1.2; }
.qs-edit { width: 92px; padding: 3px 5px; font-size: 13px; }
.qs-profit { font-variant-numeric: tabular-nums; font-weight: 600; }
.qs-profit.qs-neg { color: var(--danger); }
.qs-kv { display: inline-flex; align-items: baseline; gap: 4px; }

.col-head { position: relative; white-space: nowrap; }
.th-inner { display: inline-flex; align-items: center; gap: 2px; }
.th-sort { color: inherit; text-decoration: none; cursor: pointer; }
.th-sort:hover { color: var(--accent); text-decoration: underline; }
.th-sort.active { color: var(--accent); font-weight: 700; }
.th-dir { margin-left: 2px; }
.th-filter {
  border: 0; background: transparent; cursor: pointer;
  font-size: 11px; line-height: 1; padding: 1px 2px; color: var(--sub);
}
.th-filter:hover { color: var(--accent); }
.th-filter.on { color: var(--accent); font-weight: 700; }
.th-filter.on::after { content: "●"; margin-left: 1px; font-size: 8px; vertical-align: top; }

/* 表格在 .scroll 里横向滚动，浮层必须 fixed 挂到视口，否则会被裁掉 */
.th-panel {
  position: fixed; z-index: 1200; min-width: 216px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16); white-space: normal;
}
.th-panel[hidden] { display: none; }
.th-form { display: flex; flex-direction: column; gap: 7px; }
.th-form label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--sub);
}
.th-form input, .th-form select { width: 138px; padding: 5px 6px; font-size: 13px; }
.th-form input[type=date] { width: 146px; }
.th-panel-title { font-weight: 700; font-size: 13px; }
.th-unit { font-weight: 400; font-size: 12px; color: var(--sub); }
.th-note { font-size: 12px; color: var(--sub); max-width: 240px; }
.th-panel-actions { display: flex; gap: 6px; margin-top: 3px; }
.th-panel-actions .btn { padding: 4px 9px; font-size: 12px; }

/* ---------- V1.45 详情页测算器：快速成交单价（输入 + 保存 / 删除） ---------- */
.qk-row { display: flex; gap: 6px; }
.qk-row input { flex: 1; min-width: 0; }
.qk-row .btn { padding: 4px 10px; font-size: 12px; white-space: nowrap; }

/* ---------- V1.46 表头「排序重置」按钮：复用 btn ghost，但缩小 ---------- */
.th-reset {
  padding: 1px 7px;
  font-size: 12px;
  line-height: 1.5;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.btn {
  display: inline-block; padding: 7px 15px; border-radius: 6px; cursor: pointer;
  background: var(--accent); color: #fff; border: none; font-size: 14px;
}
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }

/* ---------- 标的卡片 ---------- */
.item-card { display: block; }
.item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item-title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; margin-top: 6px; }
.kv span b { font-weight: 600; }
.disc {
  font-size: 19px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.disc.hot { color: var(--danger); }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center;
         padding: 16px 0; }
.pager a, .pager span {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; font-size: 14px;
}
.pager .cur { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- 计算器 ---------- */
.calc label {
  display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 2px;
  /* V1.55：标签一律单行，长口径放 title，避免折行把输入框挤下去导致行内不齐 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.calc label .qk-link { float: right; font-size: 12px; font-weight: 400; }
/* V1.55：10 个输入项固定 5 列 = 整齐的 5×2；窄屏逐级降列数。
   不再复用 .grid.k3 的 auto-fit —— 它会让每行格子数随宽度飘、末行落单。 */
.calc-grid { display: grid; gap: 10px 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1250px) { .calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .calc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc input {
  width: 100%; padding: 7px 9px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.calc input[readonly] { background: #FAFBFC; }
.calc .out { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.calc .metric {
  flex: 1 1 130px; background: #FAFBFC; border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px;
}
.calc .metric .l { font-size: 12px; color: var(--sub); }
.calc .metric .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.banner {
  border-radius: 10px; padding: 11px 14px; margin-bottom: 12px; font-size: 13.5px;
  border: 1px solid var(--border); background: #fff;
}
.banner.danger { background: var(--danger-bg); border-color: #FDA29B; color: var(--danger); }

/* ---------- 指标卡的数据来源提示 ---------- */
.metric-card { position: relative; }
.metric-card .subtext { display: flex; align-items: center; gap: 4px; }

.tip-btn {
  flex: none;
  width: 15px; height: 15px; padding: 0;
  border: 1px solid #C7CDD6; border-radius: 50%;
  background: #fff; color: var(--sub);
  font-size: 10px; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tip-btn:hover, .tip-btn:focus { border-color: var(--accent); color: var(--accent); }

.tip-body {
  display: none;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 12px; line-height: 1.6; color: var(--sub);
  white-space: pre-line;              /* 支持 \n 换行 */
  cursor: text;
}
/* 桌面 hover 也能看；.show-tip 供移动端点击 */
.metric-card:hover .tip-body,
.metric-card.show-tip .tip-body { display: block; }
.metric-card.show-tip { border-color: var(--accent); }

/* ---------- 价格随时间变化的曲线图（2026-10-03）----------
   几何全在服务端算（falv/chart.py），这里只管外观。
   SVG 用 viewBox 自适应宽度；高度靠 preserveAspectRatio 保持比例。 */
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 10px;
  margin: 10px 0;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px;
  color: var(--sub); align-items: center; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend .lg[data-series], .chart-legend .lg[data-stage] { cursor: pointer; }
.chart-legend .lg[data-series]:hover, .chart-legend .lg[data-stage]:hover { color: var(--ink, #111); }
.chart-legend .lg.off { opacity: .35; }
.chart-legend .lg.off .ln { filter: grayscale(1); }
.chart-legend .ln { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.chart-legend .shp { fill: currentColor; opacity: .8; }

svg.chart { display: block; width: 100%; height: auto;
  user-select: none; -webkit-user-select: none; }
svg.chart text.ax { font-size: 11px; fill: var(--sub); }
svg.chart text.ax.ref { fill: var(--warn); font-weight: 600; }
svg.chart text.ax.now { fill: var(--danger); font-size: 10px; }
/* 最高/最低点的价格标签：白描边垫底，压在网格线和曲线上也读得清 */
svg.chart text.ex { font-size: 10px; font-weight: 600;
  paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

/* 点的热区：点本身只有 4px，不加这个几乎 hover 不到、也点不准。
   用 fill:none + pointer-events:all —— 既看不见又能接事件。 */
svg.chart a.pt circle.hit { fill: none; pointer-events: all; }
svg.chart a.pt { cursor: pointer; }
svg.chart a.pt:hover { filter: brightness(1.15); }
svg.chart a.pt:hover circle.hit { fill: var(--accent); opacity: .14; }
svg.chart a.pt:focus { outline: none; }
svg.chart a.pt:focus circle.hit { fill: var(--accent); opacity: .18; }

/* 悬停提示框（app.js 生成，替代原生的 <title> —— 原生提示太慢、还挡视线） */
.chart-tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 340px;
  background: rgba(29, 29, 31, .95); color: #fff; border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; line-height: 1.55;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.chart-tip b { font-weight: 600; }
.chart-tip .t-title { color: #D1D5DB; margin-top: 3px; font-size: 12px; }

.chart-note { margin-top: 6px; line-height: 1.7; }

/* ---------- 楼盘库：左主表 + 右侧统计栏（2026-10-11）---------- */
.layout { display: flex; gap: 16px; align-items: flex-start; }
.layout .main { flex: 1 1 auto; min-width: 0; }
.layout .side {
  flex: 0 0 300px; width: 300px;
  position: sticky; top: 12px;
  max-height: calc(100vh - 24px); overflow-y: auto;
  padding-right: 2px;
}
/* 窄屏（含平板竖屏）改为上下堆叠，侧栏不再并排 */
@media (max-width: 1024px) {
  .layout { flex-direction: column; }
  .layout .side {
    width: 100%; flex-basis: auto; position: static;
    max-height: none; overflow: visible;
  }
}
.side-h { font-weight: 700; margin-bottom: 0; }
.stat-city { padding: 10px 12px; }
.stat-city-h { font-weight: 700; margin-bottom: 2px; }
.stat-sec {
  font-size: 12px; color: var(--sub); margin: 9px 0 3px;
  border-top: 1px solid var(--border); padding-top: 6px;
}
.stat-sec:first-child { border-top: none; padding-top: 0; margin-top: 2px; }
.stat-row {
  display: flex; align-items: baseline; gap: 6px;
  padding: 3px 0; font-size: 13px;
}
.stat-l { flex: 0 0 84px; color: var(--sub); }
.stat-v {
  flex: 0 0 70px; text-align: right; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-pf {
  flex: 1; text-align: right; color: var(--sub); font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}
