/* ==========================================================================
   启东好房网 · 前台原型样式表（移动端优先 Mobile First）
   规则：正文最小字号 14px；所有可交互元素有可见焦点样式；颜色对比度 ≥ 4.5:1
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand: #0e5fd8;
  --brand-dark: #0a4cb0;
  --brand-deep: #0b2e6f;
  --brand-light: #e8f1fe;
  --brand-line: #cfe0fa;

  /* 功能色 */
  --accent: #ff6b2c;
  --price: #d92b1c;
  --ok: #0f8a4d;
  --warn-bg: #fff7e6;
  --warn-fg: #8a5300;

  /* 文字与背景 */
  --ink: #15203a;
  --ink-2: #46536d;
  --ink-3: #66738a;
  --line: #e3e9f2;
  --bg: #f4f7fb;
  --white: #fff;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .06);
  --shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 6px 18px rgba(16, 32, 64, .07);
  --shadow-lg: 0 10px 40px rgba(11, 46, 111, .16);
  --max: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 64px; /* 给移动端底部操作条留位 */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

/* 键盘可达的焦点样式（无障碍必备） */
:focus-visible {
  outline: 3px solid #ff9d00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 跳到主要内容 */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 999;
  padding: 10px 16px; background: var(--brand-deep); color: #fff;
  border-radius: 0 0 8px 8px; font-size: .9375rem; transition: top .18s;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ===================== 顶部信息条 + 头部 ===================== */
.topbar {
  background: var(--brand-deep); color: #cddcf4; font-size: .875rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 40px;
}
.topbar a { color: #cddcf4; }
.topbar a:hover { color: #fff; }
.topbar .tb-hot { display: none; }
.topbar .tb-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }

.header {
  background: var(--white); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header .wrap {
  display: flex; align-items: center; gap: 12px; min-height: 60px;
}
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, #2f83ff 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 10px rgba(14, 95, 216, .28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.logo-en { font-size: .75rem; color: var(--ink-3); letter-spacing: 1.6px; }

/* 主导航（移动端横向滚动，桌面端靠右） */
.nav { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 12px; white-space: nowrap;
  font-size: 1rem; color: var(--ink-2); border-radius: 8px;
}
.nav a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 700; background: var(--brand-light); }

.header-cta { display: none; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  font-size: 1rem; font-family: inherit; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: .16s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(14, 95, 216, .26); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(255, 107, 44, .3); }
.btn-accent:hover { background: #ef5a18; color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-phone { background: #fff; color: var(--brand); border-color: var(--brand-line); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1.0625rem; }

/* ===================== 首屏 Hero（3 秒说清：你是谁 / 能干什么 / 点哪里） ===================== */
.hero {
  background:
    radial-gradient(1000px 380px at 12% -10%, #1a72f0 0%, rgba(26, 114, 240, 0) 62%),
    linear-gradient(135deg, #0b2e6f 0%, #0e5fd8 100%);
  color: #fff; padding: 26px 0 22px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -70px; bottom: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero h1 {
  margin: 0 0 8px; font-size: 1.6rem; line-height: 1.3; letter-spacing: .3px;
}
.hero .hero-sub {
  margin: 0 0 6px; font-size: 1.0625rem; color: #dbe8ff;
}
.hero .hero-trust {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px;
  padding: 0; list-style: none; font-size: .9375rem; color: #c7dbff;
}
.hero .hero-trust li { display: flex; align-items: center; gap: 6px; }
.tick {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center;
  font-size: .75rem; color: #fff;
}

/* 搜索面板 */
.hero-main { position: relative; }
.search-panel {
  background: #fff; border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}

/* 首屏扫码位：搜索面板右侧的公众号 / 客服微信二维码（后台可上传替换，留空则整块不渲染）
   手机端两个并排放在搜索面板下方，桌面端竖排顶对齐 */
.hero-qr {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: 12px;
}
.qr-card {
  margin: 0; padding: 8px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.qr-card img {
  display: block; width: 100%; max-width: 116px; height: auto;
  margin: 0 auto; border-radius: 6px;
}
.qr-card figcaption {
  margin-top: 5px; font-size: .75rem; line-height: 1.3; color: var(--ink-3);
}
.search-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.search-tabs button {
  appearance: none; background: none; border: 0; font-family: inherit;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink-3);
  padding: 1px 4px 12px; cursor: pointer; position: relative;
}
.search-tabs button[aria-selected="true"] { color: var(--brand); }
.search-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 2px; background: var(--brand);
}
.search-form { display: grid; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field-label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="tel"], input[type="search"], input[type="number"],
input[type="email"], select, textarea {
  width: 100%; padding: 12px 12px; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1px solid #c9d4e5; border-radius: 8px; min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #93a0b4; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); outline: none; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366738a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.hot-words { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .875rem; }
.hot-words .hw-label { color: var(--ink-3); }
.hot-words a {
  padding: 4px 10px; border-radius: 999px; background: #f1f5fb;
  color: var(--ink-2); font-size: .875rem;
}
.hot-words a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }

/* 首屏快捷转化 */
.hero-actions { display: grid; gap: 10px; margin-top: 14px; }
.hero-note { font-size: .875rem; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

/* ===================== 数据背书 ===================== */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 8px;
  margin: 0; padding: 16px 0; list-style: none; text-align: center;
}
.stats b { display: block; font-size: 1.375rem; color: var(--brand); letter-spacing: .3px; }
.stats span { font-size: .875rem; color: var(--ink-3); }

/* ===================== 通用区块 ===================== */
.section { padding: 26px 0 4px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-size: 1.25rem; letter-spacing: .3px;
  display: flex; align-items: center; gap: 9px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--brand);
}
.section-head .more { font-size: .9375rem; color: var(--ink-3); white-space: nowrap; }
.section-head .more:hover { color: var(--brand); }

/* ===================== 品类入口 ===================== */
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 10px; }
.entry {
  display: flex; align-items: center; gap: 11px; padding: 14px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.entry:hover { border-color: var(--brand-line); box-shadow: var(--shadow); text-decoration: none; }
.entry-ico {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center; background: var(--brand-light); color: var(--brand);
}
.entry-t { font-weight: 600; font-size: 1rem; }
.entry-d { font-size: .875rem; color: var(--ink-3); }

/* ===================== 房源卡片 ===================== */
/* align-items:start：卡片各自按内容高度收缩，不再被同行最高的卡片拉高，避免图片下方留大片空白 */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
/* padding：横排卡片四周统一留白 10px，缩略图不贴卡片左上角，与下方留白一致 */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; box-shadow: var(--shadow-sm); padding: 10px;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--brand-line); }
/* 缩略图：正方形 148px（横排卡片），四周由卡片 padding 留白
   object-fit:contain —— 完整显示上传的原图，不做裁切（多余空间由底色补齐） */
.card-media { position: relative; display: block; width: 148px; flex: none; aspect-ratio: 1 / 1; align-self: flex-start; background: #e9eefa; overflow: hidden; border-radius: 6px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
a.card-media { cursor: pointer; }
a.card-media:hover img, a.card-media:focus-visible img { transform: scale(1.05); }
.card-badge {
  position: absolute; left: 0; top: 10px; padding: 3px 8px;
  background: var(--accent); color: #fff; font-size: .875rem; border-radius: 0 6px 6px 0;
}
/* 含视频的房源：缩略图右下角叠一个播放三角（与详情页图集角标同一套视觉） */
.card-video {
  position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(10, 20, 40, .62);
  pointer-events: none;
}
.card-video::after {
  content: ''; position: absolute; left: 9px; top: 6.5px;
  border-left: 7px solid #fff; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
}
.card-body { padding: 0 0 0 10px; min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-title { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.card-title a { color: var(--ink); display: block; }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-meta { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.card-sub { margin: 0; font-size: .875rem; color: var(--ink-3); }

/* 资讯详情页封面：限制高度并居中，避免竖版大图撑满整屏 */
.article-cover { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; margin: 0 auto 14px; border-radius: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 1px 0 0; }
.tag {
  padding: 2px 8px; border-radius: 4px; font-size: .875rem;
  background: var(--brand-light); color: var(--brand-dark);
}
.tag.tag-ok { background: #e6f6ee; color: var(--ok); }
.tag.tag-warn { background: var(--warn-bg); color: var(--warn-fg); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { margin: 0; color: var(--price); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.price small { font-size: .875rem; font-weight: 400; }
.price-unit { display: block; font-size: .875rem; color: var(--ink-3); font-weight: 400; }
.card-act { display: flex; gap: 6px; }
.card-act .btn { padding: 8px 12px; font-size: .9375rem; }

/* ===================== 房价行情 ===================== */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 10px; font-size: .9375rem; }
.bar-track { height: 10px; background: #eef2f9; border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6aa8ff, var(--brand)); }
.bar-val { color: var(--price); font-weight: 700; font-size: .9375rem; }
.data-note { margin: 12px 0 0; font-size: .875rem; color: var(--ink-3); }

/* ===================== 服务流程 ===================== */
.steps { display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; display: flex; gap: 12px; align-items: flex-start;
}
.step-no {
  counter-increment: s; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); font-weight: 700;
  display: grid; place-items: center; font-size: .9375rem;
}
.step-no::before { content: counter(s); }
.step h3 { margin: 0 0 2px; font-size: 1rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--ink-3); }

/* ===================== 常见问题（原生 details，可键盘操作） ===================== */
.faq { display: grid; gap: 8px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 14px;
}
.faq summary {
  cursor: pointer; padding: 13px 26px 13px 0; font-size: 1rem; font-weight: 600;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.375rem; color: var(--ink-3); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 0 14px; font-size: .9375rem; color: var(--ink-2); }
.faq .faq-body p { margin: 0 0 8px; }

/* ===================== 页脚 ===================== */
.footer { background: #0e1b34; color: #a9b8d0; margin-top: 30px; padding: 26px 0 20px; font-size: .9375rem; }
.footer h2 { font-size: 1rem; color: #fff; margin: 0 0 10px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { color: #a9b8d0; }
.footer a:hover { color: #fff; }
.footer .fcontact { display: grid; gap: 7px; }
.footer .fphone { font-size: 1.25rem; color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid #22314f; margin-top: 20px; padding-top: 14px;
  display: grid; gap: 8px; font-size: .875rem; color: #8698b5;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* ===================== 移动端底部操作条 ===================== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  background: #fff; padding: 11px 6px; text-align: center;
  font-size: .9375rem; font-weight: 600; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mobile-bar a:hover { text-decoration: none; background: #f7faff; }
.mobile-bar a[aria-current="page"] { color: var(--brand); }
.mobile-bar a.is-primary { background: var(--accent); color: #fff; }
.mobile-bar .mb-ico { font-size: 1.0625rem; line-height: 1; }

/* ===================== Cookie 提示（隐私合规） ===================== */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 13px 14px; font-size: .9375rem;
  display: none; gap: 10px;
}
.cookie.is-open { display: block; }
.cookie p { margin: 0 0 10px; color: var(--ink-2); }
.cookie .cookie-act { display: flex; gap: 8px; }
.cookie .cookie-act .btn { padding: 9px 16px; font-size: .9375rem; }

/* ===================== 列表页：面包屑 / 筛选 / 分页 ===================== */
.crumb { font-size: .9375rem; color: var(--ink-3); padding: 12px 0 0; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumb li::after { content: "›"; margin-left: 6px; color: #b3bfd2; }
.crumb li:last-child::after { content: ""; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

.page-title { margin: 10px 0 4px; font-size: 1.375rem; }
.page-desc { margin: 0 0 14px; font-size: .9375rem; color: var(--ink-3); }

.filter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 14px; margin-bottom: 14px;
}
/* 移动端默认收起，点击「筛选条件」展开 */
.filter-drawer { display: none; }
.filter-toggle { width: 100%; margin: 10px 0; }
.filter-toggle + .filter-drawer .filter-row:first-child { padding-top: 2px; }
.filter-row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; align-items: baseline; }
.filter-row:last-child { border-bottom: 0; }
.filter-row > .fr-label { flex: none; width: 62px; color: var(--ink-3); }
.filter-opts { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.filter-opts a {
  padding: 3px 10px; border-radius: 6px; color: var(--ink-2); font-size: .9375rem;
}
.filter-opts a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.filter-opts a[aria-current="true"] { background: var(--brand); color: #fff; }

.sortbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 12px; font-size: .9375rem;
}
.sortbar .sort-opts { display: flex; gap: 4px; margin-left: auto; }
.sortbar .sort-opts a { padding: 4px 10px; border-radius: 6px; color: var(--ink-2); }
.sortbar .sort-opts a[aria-current="true"] { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.result-count { color: var(--ink-3); }

.list-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.list-side .panel + .panel { margin-top: 12px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9375rem; }
.side-list li { display: flex; justify-content: space-between; gap: 8px; }
.side-list .s-price { color: var(--price); font-weight: 600; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 6px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px;
  display: grid; place-items: center; font-size: .9375rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination .is-disabled { color: #b3bfd2; }

/* 移动端筛选抽屉 */
.filter-toggle { display: inline-flex; }
.drawer-mask { position: fixed; inset: 0; background: rgba(10, 20, 40, .45); z-index: 95; display: none; }
.drawer-mask.is-open { display: block; }

/* ===================== 详情页 ===================== */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
/* 关键：grid 子项默认 min-width:auto 会被内部内容（如一排固定宽的图集缩略图）
   撑开整列，导致主图 width:100% 跟着变宽、横向溢出。置 0 后由容器宽度说了算。 */
.detail-layout > * { min-width: 0; }
/* 详情页左右两列：相邻面板之间留出间距。
   .detail-layout 的 gap 只撑开主列与侧栏两个大列，列内部多个 .panel 堆叠
   （预售公示详情的主列有 6~7 个面板）此前没有间距、边框直接贴在一起。 */
.detail-layout > aside > .panel + .panel,
.detail-layout > div > .panel + .panel { margin-top: 16px; }

/* ---------- 右侧栏：在线预约看房登记（滚动播报，姓名/手机号已脱敏） ---------- */
.book-ticker-sub { margin: 0 0 10px; color: var(--ink-3); font-size: 13px; }
/* 固定表头：贴在滚动区上方，不跟着滚，列宽与下面的行严格对齐 */
.book-ticker-head {
  display: flex; align-items: center; gap: 8px; height: 30px;
  padding: 0 0 6px; border-bottom: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px; font-weight: 600;
}
.book-ticker {
  /* 固定可视高度：约 4.5 行，第 5 行露出半截 + 底部渐隐，提示「下面还有」 */
  height: 152px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(#000 0, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(#000 0, #000 calc(100% - 26px), transparent);
}
.book-ticker-list { list-style: none; margin: 0; padding: 0; }
.book-ticker-list li {
  display: flex; align-items: center; gap: 8px; height: 34px;
  border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--ink-2, #46536d);
}
.book-ticker-list li:last-child { border-bottom: 0; }
/* 三列宽度在表头与数据行之间共用，保证上下对齐 */
.bt-name { flex: 0 0 40px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-ticker-list .bt-name { color: var(--ink); font-weight: 600; }
.bt-phone { flex: 0 0 84px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.bt-time { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 条目超出可视高度时由脚本加上 .is-scrolling，把列表复制一份做无缝循环 */
.book-ticker-track { will-change: transform; }
.book-ticker.is-scrolling .book-ticker-track { animation: book-ticker-scroll var(--bt-dur, 24s) linear infinite; }
.book-ticker.is-scrolling:hover .book-ticker-track { animation-play-state: paused; }
@keyframes book-ticker-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.book-ticker-btn { margin-top: 12px; }
.book-ticker-note { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
/* 用户系统设置「减少动态效果」时改为可手动滚动的静态列表 */
@media (prefers-reduced-motion: reduce) {
  .book-ticker { overflow-y: auto; }
  .book-ticker.is-scrolling .book-ticker-track { animation: none; }
}
.detail-head h1 { margin: 8px 0 8px; font-size: 1.375rem; line-height: 1.4; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* 详情页主图：固定成与演示图一致的 4:3 框（比例可在后台「图片与上传」改），
   图片按比例缩放居中、完整显示（contain），既不裁剪也不会把页面撑长 */
.gallery-main {
  position: relative; background: #e9eefa;
  aspect-ratio: var(--gm-ratio, 4 / 3);
  display: flex; align-items: center; justify-content: center;
}
/* 切到视频时换成视频比例（后台可改，默认 16/9），底色压黑，避免竖屏视频两侧发灰 */
.gallery-main.is-video { --gm-ratio: var(--gm-video-ratio, 16 / 9); background: #0d1526; }
.gallery-main img,
.gallery-main video { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-main video { background: #0d1526; }
/* 显式 display:block 会盖掉浏览器默认的 [hidden]{display:none}，这里补回来，
   否则「有视频时先藏主图」会失效（图片和视频叠在一起） */
.gallery-main img[hidden],
.gallery-main video[hidden] { display: none; }
.gallery-count {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px;
  background: rgba(10, 20, 40, .6); color: #fff; border-radius: 999px; font-size: .875rem;
}
/* 缩略图条：固定宽度按钮横向滚动；min-width:0 保证它只在自己内部滚动，不撑开外层 */
.gallery-thumbs {
  display: flex; gap: 8px; padding: 10px; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.gallery-thumbs button {
  flex: none; width: 84px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; overflow: hidden;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #e9eefa; }
/* 视频缩略图：叠一个播放三角，让人一眼看出第一个是视频 */
.gallery-thumbs button.gt-video { position: relative; }
.gallery-thumbs .gt-play {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(10, 20, 40, .62);
}
.gallery-thumbs .gt-play::after {
  content: ''; position: absolute; left: 10px; top: 7px;
  border-left: 8px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

.price-box {
  background: linear-gradient(135deg, #0b2e6f, #0e5fd8); color: #fff;
  border-radius: var(--radius); padding: 16px; display: grid; gap: 10px;
}
.price-box h2, .price-box p { margin: 0; }
.price-box .pb-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-box .pb-total { font-size: 1.875rem; font-weight: 700; line-height: 1; }
.price-box .pb-unit { font-size: 1rem; color: #c9deff; }
.price-box .pb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; color: #dbe8ff; }
.price-box .pb-act { display: grid; gap: 8px; }

.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec th, .spec td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--ink-3); font-weight: 400; width: 1%; white-space: nowrap; }
.spec td { color: var(--ink); font-weight: 600; }
/* 值列尽量不折行：长值允许换行，但短值（如 70 年住宅、开发商名）保持 1 行 */
.spec td { overflow-wrap: break-word; }
/* 两列表：标签固定窄列，两组「标签+值」各占一半，两张表左右对齐 */
.spec-grid { table-layout: fixed; }
.spec-grid th { width: 88px; }
.spec-grid td { width: auto; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.agent-card { display: flex; gap: 12px; align-items: center; }
.agent-card img { width: 56px; height: 56px; border-radius: 50%; flex: none; background: #e9eefa; }
.agent-card .a-name { font-weight: 700; font-size: 1.0625rem; }
.agent-card .a-meta { font-size: .875rem; color: var(--ink-3); }
/* 操作按钮通用布局：竖向排列并留出间距（列表页/详情页侧栏等非价格区场景；
   .price-box .pb-act 与 .price-box.sell-* .pb-act 的专属规则优先级更高，不受影响） */
.pb-act { display: grid; gap: 10px; }

/* 经纪人微信二维码（后台可上传，未上传则不显示） */
.agent-qr {
  display: flex; gap: 12px; align-items: center; margin-top: 12px;
  padding: 10px; border: 1px dashed var(--brand-line); border-radius: 10px; background: #f7faff;
}
.agent-qr img {
  width: 118px; height: 118px; flex: none; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.agent-qr .qr-tip { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .875rem; color: var(--ink-2); }
.agent-qr .qr-tip strong { font-size: .9375rem; color: var(--ink); }
.agent-qr .qr-tip .qr-sub { color: var(--ink-3); }

/* 表单 */
.form-grid { display: grid; gap: 12px; }
.required { color: var(--price); }
.field-hint { font-size: .875rem; color: var(--ink-3); }
.field-error { font-size: .875rem; color: var(--price); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--price); background: #fff6f5; }
.field.is-invalid .field-error { display: block; }
.check-line { display: flex; gap: 9px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.check-line input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; }
.check-line.is-invalid ~ .field-error { display: block; }
.check-line.is-invalid { color: var(--price); }
.check-line.is-invalid input { outline: 2px solid var(--price); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-q {
  flex: none; padding: 0 14px; height: 46px; display: grid; place-items: center;
  background: #eef3fb; border: 1px solid #c9d4e5; border-radius: 8px; font-weight: 600; letter-spacing: 1px;
}

.alert { border-radius: var(--radius); padding: 14px 16px; font-size: .9375rem; display: none; gap: 10px; }
.alert.is-open { display: block; }
.alert-success { background: #e9f7ef; border: 1px solid #b7e2c8; color: #0b6b3a; }
.alert-error { background: #fdecea; border: 1px solid #f5c2bb; color: #a32a1c; }
.alert h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.alert p { margin: 0; }

/* ===================== 经纪人联系弹层（首页「一键拨打电话咨询」） ===================== */
.sheet { position: fixed; inset: 0; z-index: 130; display: none; }
.sheet[hidden] { display: none; }
.sheet.is-open { display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-mask { position: absolute; inset: 0; background: rgba(8, 18, 38, .55); animation: qdFade .18s ease-out; }
.sheet-panel {
  position: relative; z-index: 1; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 30px rgba(11, 46, 111, .22);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: qdUp .24s cubic-bezier(.2, .8, .25, 1);
}
@keyframes qdFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes qdUp { from { transform: translateY(16%); opacity: .55 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .sheet-mask, .sheet-panel { animation: none; } }

.sheet-head {
  display: flex; gap: 10px; align-items: flex-start; justify-content: space-between;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font-size: 1.125rem; }
.sheet-sub { margin: 4px 0 0; font-size: .875rem; color: var(--ink-3); line-height: 1.5; }
.sheet-close {
  flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer;
}
.sheet-close:hover { background: #f1f6fe; color: var(--brand); border-color: var(--brand-line); }
.sheet-body { padding: 14px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #fafcff; }
.ai-safe { margin: 0; text-align: center; }

/* 看房登记弹层 */
.sheet-actions { display: grid; gap: 10px; margin-top: 4px; }
.sheet-body .form-grid textarea { min-height: 84px; }
.sheet-foot .field-hint { margin: 0; text-align: center; }

.agent-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: #fff; }
.agent-item + .agent-item { margin-top: 12px; }
.ai-top { display: flex; gap: 12px; align-items: flex-start; }
.ai-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: #e9eefa; }
.ai-id { min-width: 0; }
.ai-name { margin: 0 0 4px; font-size: 1.0625rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-badge {
  font-size: .75rem; font-weight: 400; color: var(--brand);
  background: var(--brand-light); border-radius: 999px; padding: 2px 9px;
}
.ai-meta { margin: 0 0 3px; font-size: .875rem; color: var(--ink-3); line-height: 1.55; }
.ai-qr-row {
  display: flex; gap: 12px; align-items: center; margin: 12px 0 0; padding: 10px;
  border: 1px dashed var(--brand-line); border-radius: 10px; background: #f7faff;
}
.ai-qr {
  width: 104px; height: 104px; flex: none; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.ai-qr-tip { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .875rem; color: var(--ink-2); }
.ai-qr-tip strong { font-size: .9375rem; color: var(--ink); }
.ai-qr-sub { color: var(--ink-3); }
.ai-call { margin-top: 12px; }
body.is-sheet-lock { overflow: hidden; }

/* 一句话房源「打电话」弹层 */
.cs-body { text-align: center; }
.cs-meta { margin: 2px 0 12px; font-size: .875rem; color: var(--ink-3); }
.cs-meta b { color: var(--ink-2); }
.cs-num {
  margin: 0 0 16px; font-size: 2rem; font-weight: 800; letter-spacing: .05em;
  color: var(--brand); user-select: all; word-break: break-all;
}
.cs-act { display: grid; gap: 10px; max-width: 340px; margin: 0 auto; }
.cs-act .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cs-tip { margin: 14px 0 0; }

/* 相似房源 */
.similar { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start; }

/* ===================== 响应式：平板 / 桌面 ===================== */
@media (min-width: 700px) {
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .similar { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .search-form { grid-template-columns: 1.2fr 1.6fr auto; align-items: end; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: span 2; }
  .cookie { left: auto; right: 20px; width: 380px; bottom: 24px; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  /* 弹层：桌面端改为居中卡片 */
  .sheet.is-open { justify-content: center; align-items: center; padding: 24px; }
  .sheet-panel { max-width: 560px; max-height: 86vh; border-radius: var(--radius-lg); }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .topbar .tb-hot { display: inline; }
  .header-cta { display: flex; align-items: center; gap: 12px; }
  .header .nav { flex: none; margin-left: 26px; }
  .nav a { padding: 9px 14px; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 2.125rem; }
  .hero .hero-sub { font-size: 1.125rem; }
  .search-panel { padding: 18px 20px; max-width: 920px; }
  /* 有二维码配置时：搜索面板占满左列，右列两枚二维码竖排。
     右列宽度与高度都按「和左边搜索面板齐平」来定：
       高度 = 2 张卡片 + 12px 间距 = 搜索面板高度（约 300px）→ 二维码约 112px；
       宽度 = 112 + 卡片左右内边距 12 = 124px，二维码依然贴满卡片，不留空。
     省下来的宽度全部给左侧搜索框，输入区更舒展。 */
  .hero-main.has-qr { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 16px; align-items: start; }
  .hero-main.has-qr .search-panel { max-width: none; }
  .hero-main.has-qr .hero-qr { margin-top: 0; grid-template-columns: 1fr; gap: 12px; }
  .hero-main.has-qr .qr-card { padding: 6px; }
  .hero-main.has-qr .qr-card img { max-width: 112px; }
  .hero-main.has-qr .qr-card figcaption { margin-top: 4px; line-height: 1.25; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  /* 桌面端卡片改为图上文下：图片通栏铺满，恢复卡片无内边距、文字自带内边距 */
  .card { flex-direction: column; padding: 0; }
  .card-media { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
  .card-body { padding: 11px 12px; }
  .mobile-bar { display: none; }
  .list-layout { grid-template-columns: 1fr 300px; }
  .detail-layout { grid-template-columns: 1fr 320px; }
  .filter-toggle { display: none; }
  .filter-drawer { display: block !important; }
  /* 相似房源：桌面端一行 2 条，卡片保持左图右文的紧凑布局；缩略图正方形加大，四周留白 10px */
  .similar { grid-template-columns: repeat(2, 1fr); }
  .similar .card { flex-direction: row; padding: 10px; }
  .similar .card-media { width: 170px; aspect-ratio: 1 / 1; border-radius: 6px; }
  .similar .card-body { padding: 0 0 0 10px; }
  /* 资讯卡片：桌面端保持左图右文的横排布局，图片四周同样留白 10px，不顶格贴边 */
  .news-card { flex-direction: row; padding: 10px; }
  .news-card .card-media { aspect-ratio: 1 / 1; border-radius: 6px; }
  .news-card .card-body { padding: 0 0 0 10px; }
  /* 资讯详情封面：桌面端允许略高一些，仍限制高度并居中 */
  .article-cover { max-height: 500px; margin-bottom: 16px; }
}

/* =========================================================
 * 卖房登记页（sell.php / sell_list.php）
 * ========================================================= */

/* 顶部细 hero 变体（列表页用） */
.hero.hero-thin { padding: 28px 0 24px; }
.hero.hero-thin h1 { font-size: 1.625rem; }
.hero.hero-thin .hero-sub { font-size: 1rem; margin-top: 6px; color: var(--ink-3); }

/* 蓝色卡片变体（页内强调用） */
.price-box.sell-callout,
.price-box.sell-success {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(11, 46, 111, 0.18);
}
.price-box.sell-callout .pb-total,
.price-box.sell-success .pb-total { font-size: 1.75rem; }
.price-box.sell-callout .pb-act,
.price-box.sell-success .pb-act { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 720px) {
  .price-box.sell-callout .pb-act a { flex: 1; min-width: 200px; }
}
.price-box.sell-success { text-align: center; }
.price-box.sell-success .pb-main { justify-content: center; }
.price-box.sell-success .pb-meta { justify-content: center; }

/* 表单 */
.sell-form { margin-top: 18px; padding: 22px; display: grid; gap: 14px; }
.sell-form .form-title { margin: 0; font-size: 1.25rem; }
.sell-form .form-sub { margin: 0; color: var(--ink-3); font-size: .875rem; }
.sell-form .form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .sell-form .form-grid { grid-template-columns: 1fr 1fr; } }
.sell-form .field-wide { grid-column: 1 / -1; }
.sell-form .req { color: #d93030; margin-left: 2px; }
.sell-form .opt { color: var(--ink-3); font-weight: 400; font-size: .8125rem; margin-left: 4px; }
.sell-form .check-line { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; color: var(--ink-2); }
.sell-form .check-line label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.sell-form .check-line input { margin-top: 3px; }
.sell-form .check-line a { color: var(--brand); text-decoration: underline; }
.sell-form .form-bottom { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.sell-form .captcha-field { min-width: 180px; }
.sell-form .captcha-input { max-width: 120px; letter-spacing: 2px; font-weight: 600; }
.sell-form .form-tip { margin: 0; font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }

/* 后缀输入框：99 m²、128 万元 */
.input-suffix, .input-double {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; transition: border-color .15s;
}
.input-suffix:focus-within, .input-double:focus-within { border-color: var(--brand); }
.input-suffix input, .input-double input {
  border: 0; background: transparent; padding: 10px 0; box-shadow: none;
  flex: 1; min-width: 0;
}
.input-suffix input:focus, .input-double input:focus { box-shadow: none; }
.input-suffix .suffix, .input-double .suffix { color: var(--ink-3); font-size: .875rem; }
.input-double .sep { color: var(--ink-3); }

/* 蜜罐：CSS 隐藏，真实用户看不到，机器人会填 */
.hp {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* 错误横幅 */
.form-banner { padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; font-size: .9375rem; }
.form-banner-err { background: #fff1f0; border: 1px solid #ffc1be; color: #a8071a; }

/* 列表页：挂牌卡片 */
.sell-list { grid-template-columns: 1fr; }
@media (min-width: 720px) { .sell-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sell-list { grid-template-columns: repeat(3, 1fr); } }
.sell-card { display: flex; flex-direction: column; padding: 0; }
.sell-card .card-body { padding: 16px; display: grid; gap: 8px; }
.sell-card-head { margin-bottom: 2px; }
.sell-title { margin: 0; font-size: 1.0625rem; }
.sell-spec {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
  margin: 6px 0 0; padding: 10px 12px; background: #f7f9ff; border-radius: 8px;
  list-style: none;
}
.sell-spec li { display: flex; flex-direction: column; font-size: .8125rem; }
.sell-spec li span { color: var(--ink-3); }
.sell-spec li b { color: var(--ink); font-weight: 600; }
.sell-desc { margin: 4px 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.6; }
.sell-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.sell-foot-middle { justify-content: stretch; margin: 2px 0 4px; }
.sell-foot-middle .btn { flex: 1; padding: 10px 12px; }

/* 小尺寸按钮 */
.btn-sm { padding: 6px 12px; font-size: .875rem; }

/* =========================================================
 * 登记成功弹层（绿色主题，与蓝色品牌 hero 形成视觉差异）
 * 形态：全屏半透明遮罩 + 居中圆角卡片 + 大对勾动画
 * ========================================================= */
.sell-modal-mask {
  position: fixed; inset: 0; z-index: 140;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 38, .55);
  animation: ssMaskIn .22s ease-out;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
@keyframes ssMaskIn { from { opacity: 0 } to { opacity: 1 } }

.sell-modal {
  position: relative;
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 18px;
  padding: 28px 24px 18px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(11, 46, 111, .28);
  animation: ssModalIn .32s cubic-bezier(.22,.85,.32,1.06);
}
@keyframes ssModalIn {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sell-modal-mask, .sell-modal { animation: none; }
}

/* 主对勾图标：圆形背景 + 绿色描边勾 */
.sell-modal-icon {
  width: 72px; height: 72px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #e9f7ef;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(15, 138, 77, .28);
}
.sell-modal-icon svg { display: block; }
.sell-modal-icon .ss-ring2 {
  stroke-dasharray: 188.5; stroke-dashoffset: 188.5;
  transform-origin: 32px 32px; transform: rotate(-90deg);
  animation: ssDraw .55s .08s cubic-bezier(.2,.8,.25,1) forwards;
}
.sell-modal-icon .ss-tick {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: ssDraw .35s .5s cubic-bezier(.2,.8,.25,1) forwards;
}
@keyframes ssDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sell-modal-icon .ss-ring2,
  .sell-modal-icon .ss-tick { stroke-dashoffset: 0; }
}

.sell-modal-title {
  margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; color: #0f8a4d;
  letter-spacing: 1px;
}
.sell-modal-desc {
  margin: 0 auto 14px; max-width: 280px;
  color: var(--ink-2); font-size: .9375rem; line-height: 1.7;
}
.sell-modal-desc b { color: #0a6c3c; font-weight: 700; }
.sell-modal-countdown {
  margin: 0 0 14px; color: var(--ink-3); font-size: .8125rem;
}
.sell-modal-countdown span {
  display: inline-block; min-width: 18px;
  color: var(--brand); font-weight: 700;
}
.sell-modal-act {
  display: grid; gap: 8px; margin: 0 auto 4px;
}
.sell-modal-act .btn { padding: 10px 14px; font-size: .9375rem; }
.sell-modal-act .btn-link {
  background: transparent; color: var(--brand); border-color: transparent;
  font-weight: 500; padding: 4px 0;
}
.sell-modal-act .btn-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* 弹层锁定背景滚动：复用 .sheet-lock，同时锁 html 元素避免移动端橡皮筋 */
html.is-sheet-lock, html.is-sheet-lock body { overflow: hidden; height: 100%; }

/* =========================================================
 * 小区大全：只展示小区名称的紧凑网格
 * ========================================================= */
.comm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; margin-top: 14px;
}
.comm-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 13px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: var(--ink);
}
.comm-item:hover {
  border-color: var(--brand-line); box-shadow: var(--shadow);
  text-decoration: none;
}
.comm-name {
  font-size: 1rem; font-weight: 600; line-height: 1.4;
  color: var(--ink); word-break: break-all;
}
.comm-item:hover .comm-name { color: var(--brand); }
.comm-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: .75rem; color: var(--ink-3);
}
.comm-pill {
  padding: 1px 7px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
}
.comm-hot { color: var(--warn-fg); }

/* 镇区筛选：强制排成一行（放不下时横向滚动，不再折行）。
   标签不再占 62px 固定宽，紧跟「全部」；chip 之间统一 4px 间距、内边距 7px，让 12 个镇尽量一行放下 */
.filter-inline .filter-row { flex-wrap: nowrap; gap: 4px; }
.filter-inline .filter-row > .fr-label { width: auto; padding-right: 2px; }
.filter-inline .filter-opts {
  flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.filter-inline .filter-opts a { white-space: nowrap; flex: none; padding: 3px 7px; }
.filter-inline .filter-opts::-webkit-scrollbar { height: 4px; }
.filter-inline .filter-opts::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.filter-inline .filter-opts::-webkit-scrollbar-track { background: transparent; }

/* ===================== 富文本正文排版 =====================
 * 后台富文本编辑器的产出（资讯正文 / 页面内容 / 房源描述）统一在这里排版，
 * 让粘贴进来的标题、列表、引用、表格、图片在前台有稳定样式。
 * ===================================================== */
.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 14px; }
.rich-text h1, .rich-text h2 { font-size: 1.1875rem; line-height: 1.5; margin: 22px 0 10px; }
.rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 { font-size: 1.0625rem; line-height: 1.55; margin: 18px 0 8px; }
.rich-text ul, .rich-text ol { margin: 0 0 14px; padding-left: 22px; }
.rich-text li { margin: 5px 0; }
.rich-text blockquote {
  margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--brand-line, #cfe0ff);
  background: #f7faff; color: var(--ink-2, #46536d); border-radius: 0 8px 8px 0;
}
.rich-text hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.rich-text img { max-width: 100%; max-height: 420px; width: auto; height: auto; display: block; margin: 6px auto; border-radius: 10px; }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: .9375rem; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich-text th { background: #f5f8fd; }

/* =========================================================
 * 图片点击放大（资讯详情封面 / 正文插图，查看原图）
 * ========================================================= */
.zoomable { cursor: zoom-in; }

.qd-zoom {
  position: fixed; inset: 0; z-index: 9999;
  display: none; background: rgba(6, 14, 28, .93);
  -webkit-tap-highlight-color: transparent;
}
.qd-zoom.is-open { display: block; }
.qd-zoom__stage {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; box-sizing: border-box;
}
/* 放大后按屏幕可用区域等比缩放（不超出、不滚动），保证一屏看全 */
.qd-zoom__img {
  display: block; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.qd-zoom__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; transition: background .2s ease;
}
.qd-zoom__close:hover, .qd-zoom__close:focus-visible { background: rgba(255, 255, 255, .28); }
.qd-zoom__hint {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; margin: 0;
  transform: translateX(-50%); color: rgba(255, 255, 255, .72); font-size: 13px;
  pointer-events: none; white-space: nowrap;
}
body.qd-zoom-lock { overflow: hidden; }
@media (max-width: 640px) {
  .qd-zoom__stage { padding: 52px 12px 46px; }
}

/* ===================== 商品房预售许可 / 现售备案公示 =====================
 * 列表页（presale.php）+ 详情页（presale_detail.php）
 * ===================================================================== */
.presale-list { display: grid; gap: 12px; }
.presale-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: box-shadow .2s ease, border-color .2s ease;
}
.presale-item:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(14, 95, 216, .08); }
.pi-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pi-badge {
  flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap;
  background: var(--brand-light); color: var(--brand-dark);
}
.pi-badge.is-now { background: #fff3e6; color: #a35a00; }
.pi-title { margin: 0; font-size: 1.0625rem; }
.pi-title a { color: var(--ink); }
.pi-date { margin-left: auto; color: var(--ink-3); font-size: .875rem; white-space: nowrap; }
.pi-meta {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px;
  font-size: .9375rem; color: var(--ink-2);
}
.pi-meta li { display: flex; gap: 8px; min-width: 0; }
.pi-meta li > span { flex: none; width: 62px; color: var(--ink-3); }
.pi-meta li { overflow: hidden; text-overflow: ellipsis; }
.pi-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pi-more { font-size: .9375rem; }
.pd-n { margin-left: 4px; color: var(--ink-3); font-size: .75rem; }

/* 详情 */
/* 详情头部：居中式证件卡风格（公文细节版） */
.pd-head {
  position: relative; overflow: hidden;
  padding: 24px 24px 20px;
  text-align: center;
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 72%);
}
.pd-head::before { /* 顶部公文双色调条：品牌蓝 60% + 金 40% */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand-dark) 0 62%, #c9a227 62% 100%);
}
.pd-eyebrow {
  margin: 0 0 2px; color: var(--ink-3); font-size: .75rem;
  letter-spacing: 5px; text-indent: 5px;
}
.pd-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 14px 0 0; overflow: hidden; background: #f8fafc;
}
.pd-facts > div {
  padding: 10px 8px; text-align: center; border-right: 1px solid var(--line);
  min-width: 0;
}
.pd-facts > div:last-child { border-right: none; }
.pd-facts b {
  display: block; font-size: .9375rem; font-weight: 600; color: var(--brand-dark);
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-facts span { display: block; margin-top: 1px; font-size: .6875rem; color: var(--ink-3); letter-spacing: 2px; }
.pd-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.pd-dist, .pd-tag-date {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .8125rem; line-height: 1.5;
}
.pd-dist { background: var(--brand-light); color: var(--brand-dark); font-weight: 500; }
.pd-dist:hover { background: #d8e7fd; }
.pd-tag-date { background: #eef2f8; color: var(--ink-3); }
.pd-title { margin: 6px 0 10px; font-size: 1.625rem; line-height: 1.35; color: #c0392b; }
.pd-cert {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 4px 16px;
  border: 1.5px dashed #c9a227; border-radius: 999px; background: #fffdf5;
  font-size: .9375rem; font-weight: 500; color: #9a7a10;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
.pd-cert-ok {
  font-size: .75rem; font-weight: 600; color: var(--ok, #0f7b4d);
  background: #e8f6ef; border-radius: 999px; padding: 2px 10px; letter-spacing: 1px;
}
.pd-sub { position: relative; margin: 0; padding-top: 13px; color: var(--ink-3); font-size: .875rem; }
.pd-sub::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 2px; border-radius: 2px; background: var(--line);
}
.pd-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.pd-h2::before { content: ''; flex: none; width: 5px; height: 16px; border-radius: 2px; background: var(--brand-dark); }
.pd-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.pd-table th, .pd-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pd-table tbody tr:last-child th, .pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-table > tbody > tr > th { width: 172px; color: var(--ink-3); font-weight: 400; background: #fafbfe; }
.pd-rooms thead th {
  width: auto; background: var(--brand-dark); color: #fff; font-weight: 600;
  letter-spacing: 1px; border-bottom: none;
}
.pd-rooms thead th:first-child { border-radius: 6px 0 0 0; }
.pd-rooms thead th:last-child { border-radius: 0 6px 0 0; }
.pd-rooms td, .pd-rooms th { font-variant-numeric: tabular-nums; }
.pd-rooms tfoot td {
  background: #fdf6ec; color: #b02a1e; font-weight: 700;
  border-top: 2px solid #c9a227; border-bottom: none;
}
.pd-remark {
  margin: 0; padding: 12px 14px; line-height: 1.8;
  background: #f8fafc; border-left: 3px solid #c9a227;
  border-radius: 0 4px 4px 0; color: var(--ink-2); font-size: .9063rem;
}
.pd-hint { margin: 10px 0 0; color: var(--ink-3); font-size: .8125rem; line-height: 1.6; }
.pd-related { list-style: none; margin: 0; padding: 0; }
.pd-related li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem;
}
.pd-related li:last-child { border-bottom: 0; }
.pd-related li a {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-related li span { flex: none; color: var(--ink-3); font-size: .8125rem; }
.pd-comm { font-weight: 500; }
.pd-source .pb-act { margin-top: 0; }
.pd-h2-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.pd-h2-row .pd-h2-t { min-width: 0; }
.pd-more { flex: none; font-size: .8125rem; font-weight: 400; color: var(--brand); }
.pd-more:hover { color: var(--brand-dark); }

/* 预售公示详情：该楼盘在售房源紧凑列表 */
.pd-h-sub { margin: 0 0 8px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.pd-houses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-house {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: var(--white);
}
.pd-house:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.pd-house-media { display: block; line-height: 0; }
.pd-house-media img {
  display: block; width: 96px; height: 72px; object-fit: cover;
  border-radius: 8px; background: var(--bg);
}
.pd-house-title { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.pd-house-title:hover { color: var(--brand); }
.pd-house-meta { margin: 3px 0 0; color: var(--ink-3); font-size: .8125rem; line-height: 1.4; }
.pd-house .price { margin: 3px 0 0; font-size: 1.0625rem; }
.pd-house .price-unit { display: inline; margin-left: 6px; font-size: .75rem; }

@media (max-width: 900px) {
  .pi-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pi-meta { grid-template-columns: 1fr; }
  .pi-date { margin-left: 0; width: 100%; }
  .pd-title { font-size: 1.25rem; }
  .pd-head { padding: 18px 14px 16px; }
  .pd-eyebrow { letter-spacing: 3px; text-indent: 3px; }
  .pd-facts { grid-template-columns: 1fr 1fr; }
  .pd-facts > div:nth-child(2n) { border-right: none; }
  .pd-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pd-sub::before { width: 40px; }
  .pd-table > tbody > tr > th { width: 104px; font-size: .875rem; }
  .pd-table th, .pd-table td { padding: 8px 6px; }
  .pd-house { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
  .pd-house-media img { width: 84px; height: 63px; }
}

/* 打印：公示详情打印成干净文书 */
@media print {
  .detail-layout > aside, .pb-act, .book-panel, .site-footer, .topbar, nav, .breadcrumb { display: none !important; }
  .detail-layout { display: block; }
  .panel { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .pd-rooms thead th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; }
}

/* ===================== 楼市行情 · 房屋交易统计 ===================== */
/* 数据来源：启东市房产交易网公示栏目（周 / 月 / 年 × 四个交易性质） */

.trade-head { margin-bottom: 10px; }

.tp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.tp-head h2 { position: relative; margin: 0; padding-left: 11px; font-size: 1.0625rem; }
.tp-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--brand);
}
.tp-sub { font-size: .8125rem; color: var(--ink-3); }
.ts-h2 { margin: 0 0 10px; font-size: 1rem; }

/* 本期要点（自动摘要） */
.trade-brief { border-left: 3px solid var(--brand); margin-bottom: 14px; }
.trade-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trade-points li { position: relative; padding-left: 16px; font-size: .9375rem; line-height: 1.7; color: var(--ink-2); }
.trade-points li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .5;
}
.trade-points b { color: var(--ink); }

/* 周期切换 */
.trade-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.trade-tabs a {
  flex: 1 1 0; min-width: 132px; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.trade-tabs a b { font-size: 1rem; color: var(--ink); }
.trade-tabs a span { font-size: .75rem; color: var(--ink-3); }
.trade-tabs a:hover { border-color: var(--brand-line); }
.trade-tabs a.is-on { border-color: var(--brand); background: var(--brand-light); box-shadow: none; }
.trade-tabs a.is-on b { color: var(--brand-dark); }

/* KPI */
.trade-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tk {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.tk > span { font-size: .8125rem; color: var(--ink-3); }
.tk > b {
  font-size: 1.5rem; line-height: 1.15; letter-spacing: -.5px; color: var(--ink);
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.tk > b i { margin-left: 5px; font-size: .75rem; font-style: normal; font-weight: 400; color: var(--ink-3); }

/* 涨红跌绿（国内行情惯例） */
.trade-trend { font-size: .8125rem; font-weight: 600; font-style: normal; }
.trade-trend.is-up { color: var(--price); }
.trade-trend.is-down { color: var(--ok); }
.trade-trend.is-flat { color: var(--ink-3); font-weight: 400; }

/* 图表 */
.trade-chart { display: block; width: 100%; height: auto; }
.trade-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .8125rem; color: var(--ink-2); }
.trade-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.trade-legend i.is-line { height: 0; width: 14px; border-top: 2px dashed var(--price); border-radius: 0; }

/* 明细表 */
/* grid 子项默认 min-width:auto，表格的 min-width 会把整列顶开、导致整页横向溢出，这里放开收缩 */
.trade-layout > * { min-width: 0; }
/* 同 detail-layout：grid 的 gap 只撑开主列与侧栏两个大列，
   列内多个 .panel（本期要点下方的走势图 / 均价图 / 分期明细）需自行留间距，否则边框直接贴在一起 */
.trade-layout > div > .panel + .panel { margin-top: 16px; }
.trade-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trade-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: .875rem; }
.trade-table th, .trade-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.trade-table thead th {
  background: #f4f7fb; border-bottom: 1px solid var(--brand-line);
  font-size: .8125rem; font-weight: 600; color: var(--ink-2);
}
.trade-table thead th.tt-period, .trade-table thead th.tt-group { text-align: center; }
.trade-table thead th.tt-cat { text-align: center; }
.trade-table tbody th.tt-period { text-align: left; font-weight: 600; color: var(--ink); }
.trade-table tbody tr:hover td, .trade-table tbody tr:hover th { background: #f7faff; }
.trade-table tfoot th, .trade-table tfoot td {
  background: var(--brand-light); border-top: 2px solid var(--brand); font-weight: 700; color: var(--ink);
}
.trade-table tfoot th.tt-period { text-align: left; }
.trade-num { font-variant-numeric: tabular-nums; font-family: ui-monospace, Consolas, "Courier New", monospace; color: var(--ink-2); }
.trade-num.is-strong { color: var(--ink); font-weight: 700; }
.trade-empty { text-align: center !important; color: var(--ink-3); padding: 26px 0 !important; }

/* 侧栏：交易结构 */
/* 侧栏窄栏改两行式：名称+数值一行，进度条占整行，避免长名称换行挤压 */
.trade-bars li { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; align-items: center; }
.tb-name { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); min-width: 0; white-space: nowrap; }
.tb-name i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; }
.trade-bars .bar-track { grid-column: 1 / -1; grid-row: 2; }
.trade-bars .tb-name { grid-column: 1; grid-row: 1; }
.trade-bars .bar-val { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 6px; font-size: .875rem; color: var(--ink); white-space: nowrap; }
.tb-pct { font-size: .75rem; font-weight: 400; color: var(--ink-3); }
.trade-cat-detail {
  list-style: none; margin: 14px 0 0; padding: 12px 0 0;
  border-top: 1px dashed var(--line); display: grid; gap: 9px; font-size: .8125rem;
}
.trade-cat-detail li { display: flex; justify-content: space-between; gap: 8px; }
.tcd-name { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tcd-name i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tcd-val { color: var(--ink-3); text-align: right; }

/* 侧栏：各周期速览 */
.trade-quick li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; align-items: baseline; }
.trade-quick li .s-price { text-align: right; }
.trade-quick .tq-date { grid-column: 1 / -1; font-size: .75rem; color: var(--ink-3); }

.trade-note { margin: 0 0 10px; font-size: .875rem; line-height: 1.75; color: var(--ink-3); }
.trade-note:last-child { margin-bottom: 0; }
.trade-note strong { color: var(--ink-2); }
.trade-note a { color: var(--brand); }

/* 首页：楼市统计区块（复用行情页组件，纵向更紧凑） */
.home-trade .tp-head { margin-bottom: 10px; }
.home-trade .trade-points { margin-bottom: 15px; }
.home-trade .trade-points li:last-child { margin-bottom: 0; }
.home-trade .trade-kpi { margin-bottom: 0; }
.home-trade .ht-chart-head { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.home-trade .trade-legend { margin-bottom: 16px; }
.home-trade .data-note { margin: 0; padding-top: 13px; border-top: 1px solid var(--line); }
.home-trade .data-note strong { color: var(--ink-2); }
/* 周报 / 月报 / 年报 三个入口 */
.ht-more { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px; }
.ht-more-item {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline;
  background: var(--brand-light); border: 1px solid var(--brand-line); border-radius: var(--radius);
  padding: 10px 13px; text-decoration: none; color: var(--ink-2);
}
.ht-more-item b { font-size: .9375rem; color: var(--brand-dark); }
.ht-more-item span { font-size: .875rem; color: var(--ink-2); }
.ht-more-item em { grid-column: 1 / -1; font-size: .75rem; font-style: normal; color: var(--ink-3); }
.ht-more-item:hover { border-color: var(--brand); background: #fff; }

@media (min-width: 720px) {
  .ht-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 桌面端：均价走势（左）与周/月/年入口（右）两列并排，压低整个板块高度 */
@media (min-width: 1024px) {
  .home-trade .ht-split { margin-top: 20px; }
  .ht-split:not(.ht-split-plain) { display: grid; grid-template-columns: minmax(0, 1fr) 292px; column-gap: 26px; align-items: stretch; }
  .ht-split:not(.ht-split-plain) .ht-chart-col { min-width: 0; }
  .ht-split:not(.ht-split-plain) .ht-chart-head { margin-top: 0; }
  .ht-split:not(.ht-split-plain) .ht-more {
    display: flex; flex-direction: column; gap: 10px; margin: 0;
    border-top: 1px dashed var(--line); padding-top: 16px;
  }
  /* 三张卡均匀铺满右列，与左侧图表等高，避免底部留白 */
  .ht-split:not(.ht-split-plain) .ht-more-item { flex: 1; align-content: center; }
}
/* 移动端：右侧链接较长，标题独占一行避免被挤成竖排 */
@media (max-width: 719px) {
  #trade .section-head { flex-wrap: wrap; row-gap: 4px; }
  #trade .section-head h2 { flex: 0 0 100%; }
  #trade .section-head .more { white-space: normal; }
}

@media (min-width: 720px) {
  .trade-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tk > b { font-size: 1.25rem; }
  .trade-tabs a { min-width: 0; padding: 9px 10px; }
  .trade-tabs a span { display: none; }
}

/* 打印：行情报表打印成干净文书 */
@media print {
  .trade-tabs, .list-layout > aside, .pagination, .mobile-bar, .trade-legend { display: none !important; }
  .list-layout { display: block; }
  .trade-table { min-width: 0; font-size: 11px; }
  .trade-table thead th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; }
  .trade-kpi { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
 * 一句话房源（oneline.php）
 * 卡片即详情：一句话原话 + 标签 + 拨号，不设详情页。
 * ========================================================= */
.ol-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ol-head .page-desc b { color: var(--ink); }
.ol-head .page-desc strong { color: var(--brand); }

/* 搜索 */
.ol-search { margin: 0 0 10px; }
.ol-search-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--brand-line); border-radius: 999px;
  padding: 5px 5px 5px 16px; box-shadow: var(--shadow-sm);
}
.ol-search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 95, 216, .08); }
.ol-search-box .ol-ico { font-size: 16px; flex: none; }
.ol-search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; padding: 9px 0; color: var(--ink);
}
.ol-search-box .btn { padding: 9px 24px; border-radius: 999px; flex: none; }

/* 热门搜索 */
.ol-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-3); margin: 0 0 14px; }
.ol-hot a { padding: 2px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; }
.ol-hot a:hover { border-color: var(--brand-line); color: var(--brand); text-decoration: none; }
.ol-hot .ol-hot-reset { border-style: dashed; color: var(--price); }

/* 订阅 / 更新提示条 */
.ol-note {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--brand-light), #fff);
  border: 1px solid var(--brand-line); border-radius: var(--radius);
  padding: 11px 16px; margin-bottom: 16px;
}
.ol-note-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.ol-note p { margin: 0; flex: 1; min-width: 200px; font-size: .9375rem; color: var(--ink-2); }
.ol-note p b { color: var(--ink); }

/* 筛选 chips */
.ol-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.ol-chips > a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .875rem; color: var(--ink-2); }
.ol-chips > a:hover { border-color: var(--brand-line); color: var(--brand); text-decoration: none; }
.ol-chips > a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.ol-chips > a.is-tag { border-style: dashed; }
.ol-chips .ol-cnt { margin-left: auto; font-size: .8125rem; color: var(--ink-3); }

/* 日期分组 */
.ol-day { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.ol-day > span { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.ol-day > em { font-style: normal; font-size: .75rem; color: var(--ink-3); }
.ol-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 卡片 */
.ol-item {
  display: flex; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 15px 16px; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.ol-item + .ol-item { margin-top: 10px; }
.ol-item:hover { border-color: var(--brand-line); box-shadow: 0 8px 22px rgba(14, 95, 216, .08); }
.ol-av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand-light); flex: none; object-fit: cover; }
.ol-body { flex: 1; min-width: 0; }
.ol-who { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .8125rem; color: var(--ink-3); }
.ol-who b { font-size: .9375rem; color: var(--ink); }
.ol-badge { background: var(--brand-light); color: var(--brand); border-radius: 999px; padding: 0 7px; font-size: .6875rem; line-height: 1.7; }
.ol-new { background: var(--warn-bg); color: var(--warn-fg); border-radius: 999px; padding: 0 7px; font-size: .6875rem; line-height: 1.7; }
.ol-code { margin-left: auto; font-size: .6875rem; color: #93a0b5; letter-spacing: .3px; }

.ol-sentence { margin: 7px 0 0; font-size: 1.025rem; line-height: 1.8; color: var(--ink); word-break: break-word; }
.ol-sentence .ol-comm { color: var(--brand); font-weight: 700; }
.ol-sentence .ol-price { color: var(--price); font-weight: 800; white-space: nowrap; }
.ol-sentence .ol-tel { color: var(--brand); font-weight: 700; border-bottom: 1px dashed var(--brand-line); }

.ol-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ol-tag { font-size: .75rem; padding: 1px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.ol-tag.is-sale { background: var(--brand-light); border-color: var(--brand-line); color: var(--brand); }
.ol-tag.is-rent { background: #e9f7f0; border-color: #bfe6d2; color: var(--ok); }
.ol-tag.is-sale_rent { background: var(--warn-bg); border-color: #f5dfb2; color: var(--warn-fg); }

.ol-act { display: flex; flex-direction: column; justify-content: center; flex: none; }
.ol-act .btn { white-space: nowrap; }

/* 空状态 */
.ol-empty { text-align: center; padding: 38px 20px; }
.ol-empty-t { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 600; }
.ol-empty-d { margin: 0 0 16px; color: var(--ink-3); font-size: .9375rem; }
.ol-empty-act { margin: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 侧栏：发布人 / 栏目说明 / 最低价 */
.ol-layout > aside > .panel { margin-bottom: 12px; }
.ol-layout > aside > .panel:last-child { margin-bottom: 0; }
.ol-pub h2, .ol-rule h2, .ol-cheap h2 { margin: 0 0 12px; font-size: 1rem; }
.ol-pub-top { display: flex; gap: 12px; align-items: center; }
.ol-pub-av { position: relative; flex: none; }
.ol-pub-av img { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--brand-light); object-fit: cover; }
.ol-pub-av .ol-ver {
  position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff;
}
.ol-pub-name { font-size: 1.0625rem; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ol-pub-tag { font-size: .6875rem; background: #e9f7f0; color: var(--ok); border: 1px solid #bfe6d2; border-radius: 999px; padding: 0 6px; font-weight: 600; }
.ol-pub-sub { font-size: .8125rem; color: var(--ink-3); margin-top: 1px; }
.ol-pub-no { display: inline-block; font-size: .6875rem; color: var(--ink-3); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; margin-top: 5px; }
.ol-pub-say {
  margin: 12px 0 0; font-size: .8125rem; line-height: 1.7; color: var(--ink-2);
  background: var(--bg); border-left: 3px solid var(--brand-line); border-radius: 0 8px 8px 0; padding: 8px 11px;
}
.ol-pub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 9px 0; margin: 12px 0; }
.ol-pub-stats > div + div { border-left: 1px dashed var(--line); }
.ol-pub-stats b { display: block; font-size: 1.1875rem; color: var(--brand); line-height: 1.3; }
.ol-pub-stats span { font-size: .6875rem; color: var(--ink-3); }
.ol-call {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: .9375rem;
  padding: 10px; border-radius: 999px; text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(255, 107, 44, .28);
}
.ol-call:hover { background: #ef5a18; }
.ol-mini { display: flex; gap: 8px; margin-top: 8px; }
.ol-mini a, .ol-mini button {
  flex: 1; text-align: center; font-size: .8125rem; padding: 6px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--ink-2); font-family: inherit; cursor: pointer;
}
.ol-mini a:hover, .ol-mini button:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-light); text-decoration: none; }
.ol-pub-time { margin: 9px 0 0; text-align: center; font-size: .6875rem; color: var(--ink-3); }

.ol-rule ul { margin: 0; padding-left: 18px; font-size: .875rem; color: var(--ink-2); }
.ol-rule li { margin-bottom: 7px; }
.ol-rule li::marker { color: var(--brand); }
.ol-rule li:last-child { margin-bottom: 0; }

.ol-cheap-list { list-style: none; margin: 0; padding: 0; }
.ol-cheap-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.ol-cheap-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ol-cheap-list a { display: block; color: var(--ink); overflow: hidden; }
.ol-cheap-list a:hover { color: var(--brand); text-decoration: none; }
.ol-cheap-area { font-size: .75rem; color: var(--ink-3); margin-left: 5px; }
.ol-cheap-p { float: right; color: var(--price); font-weight: 700; }

/* 移动端：发布人卡提到列表上方（手机上侧栏排在最后没人看得到） */
@media (max-width: 1023px) {
  .ol-layout { display: flex; flex-direction: column; gap: 0; }
  .ol-layout > aside { display: contents; }
  .ol-pub { order: -1; }
  .ol-item { flex-wrap: wrap; padding: 13px 14px; }
  .ol-act { width: 100%; }
  .ol-act .btn { width: 100%; }
  .ol-av { width: 40px; height: 40px; }
  .ol-sentence { font-size: 1rem; }
  .ol-chips .ol-cnt { margin-left: 0; width: 100%; }
  .ol-search-box { padding-left: 13px; }
  .ol-search-box .btn { padding: 9px 18px; }
}
@media (min-width: 1024px) {
  .ol-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* 手机端参数表：标签在上、值在下逐行堆叠，避免窄屏挤成两行 */
@media (max-width: 640px) {
  .spec, .spec tbody { display: block; }
  .spec tr { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); }
  .spec tr:last-child { border-bottom: 0; }
  .spec th, .spec td { display: block; padding: 1px 0; border-bottom: 0; }
  .spec-grid th, .spec-grid td { width: auto; }
  .spec th { font-size: .8125rem; }
  .spec td { font-size: .9375rem; }
}

/* ===================== 学区找房 ===================== */
.sq-hero {
  margin: 14px 0 16px; padding: 22px 20px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 62%, #2a7ef0);
  position: relative; overflow: hidden;
}
.sq-hero h1 { margin: 0; font-size: 1.5rem; line-height: 1.35; }
.sq-hero h1 em { font-style: normal; color: #ffd166; }
.sq-hero p { margin: 8px 0 0; color: #d7e5ff; font-size: .9375rem; max-width: 660px; }
.sq-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.sq-stats b { display: block; font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.sq-stats span { display: block; font-size: .75rem; color: #c3d7f8; }
.sq-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: .8125rem; color: #d7e5ff; }
.sq-quick a {
  padding: 4px 11px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
}
.sq-quick a:hover { background: rgba(255, 255, 255, .26); text-decoration: none; }

/* 学区筛选行 */
.filter-row > .fr-label b { display: block; color: var(--ink); font-weight: 600; }
.sq-chip-n { margin-left: 4px; font-size: .75rem; opacity: .65; }
.sq-chip-off { padding: 3px 10px; color: #a9b4c6; font-size: .9375rem; cursor: not-allowed; }
.sq-picked { font-weight: 600; color: var(--brand); }

/* 小区卡片 */
.sq-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.sq-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.sq-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.sq-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sq-card-head h3 { margin: 0; font-size: 1.0625rem; }
.sq-card-head h3 a { color: var(--ink); }
.sq-card-head h3 a:hover { color: var(--brand); text-decoration: none; }
.sq-tag {
  font-size: .75rem; padding: 1px 8px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
}
.sq-tag-level { padding: 2px 10px; background: var(--brand); color: #fff; font-weight: 600; }
.sq-schools { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: .875rem; color: var(--ink-2); }
.sq-schools > span { display: inline-flex; gap: 6px; align-items: baseline; }
.sq-schools i {
  font-style: normal; font-size: .75rem; color: var(--ink-3);
  background: #f2f5fa; border-radius: 4px; padding: 1px 5px;
}
.sq-schools a { color: var(--brand); }
.sq-schools .is-empty { color: #a9b4c6; font-weight: 400; }
.sq-nums {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
}
.sq-nums > div { min-width: 82px; }
.sq-nums small { display: block; font-size: .75rem; color: var(--ink-3); }
.sq-nums b { font-size: .9375rem; font-weight: 600; }
.sq-nums .sq-price b { color: var(--price); font-size: 1.0625rem; font-weight: 700; }
.sq-nums .sq-price b span { margin-left: 2px; font-size: .75rem; font-weight: 400; }
.sq-nums .sq-small { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.sq-nums .btn { margin-left: auto; padding: 7px 14px; }

/* 学校页 */
.sq-head { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin: 12px 0 16px; }
.sq-head-main { flex: 1; min-width: 240px; }
.sq-head h1 { margin: 8px 0 4px; font-size: 1.5rem; }
.sq-head-meta { margin: 0; color: var(--ink-3); font-size: .9375rem; }
.sq-head-meta b { color: var(--ink); font-weight: 700; }
.sq-head-act { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-zone { font-size: .9375rem; line-height: 1.85; color: var(--ink-2); }
.sq-empty-note {
  margin: 6px 0; padding: 10px 12px; border-radius: 8px;
  background: var(--warn-bg); color: var(--warn-fg); font-size: .9375rem;
}
.sq-sec { margin-top: 18px; }
.sq-sec-title, .sq-guide h2, .sq-side-title { font-size: 1.0625rem; margin: 0 0 8px; }
.sq-guide { margin-top: 16px; }
.sq-guide ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .9375rem; line-height: 1.9; }
.sq-side-title { font-size: 1rem; margin-bottom: 10px; }
.sq-side-text { margin: 0 0 10px; font-size: .9375rem; color: var(--ink-2); }

/* 学校名录 */
.sq-directory { margin: 16px 0 30px; }
.sq-directory h2 { margin: 0; font-size: 1.0625rem; }
.sq-dir-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sq-dir-cols h3 { margin: 0 0 8px; font-size: .9375rem; color: var(--ink-2); }
.sq-dir-cols h3 span { margin-left: 4px; font-size: .8125rem; font-weight: 400; color: var(--ink-3); }
.sq-dir-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-dir-list a {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fbfcfe;
  font-size: .875rem; color: var(--ink-2);
}
.sq-dir-list a:hover { border-color: var(--brand-line); background: var(--brand-light); color: var(--brand); text-decoration: none; }
.sq-dir-list a em { font-style: normal; font-size: .75rem; color: var(--ink-3); }

@media (min-width: 900px) {
  .sq-cards { grid-template-columns: 1fr 1fr; }
  .sq-dir-cols { grid-template-columns: 1fr 1fr; }
}

/* 小区卡片上的学区标签：与镇区标签区分开，颜色更淡 */
.comm-pill-school { background: #f1f7f2; color: #1d6b3f; }
