/* ============================================================
   宣城房产交易网 · 页面与业务组件样式
   ============================================================ */

/* ------------------------------ 顶部工具条 ------------------------------ */

.topbar {
  height: var(--topbar-h);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: inherit; transition: color 0.16s; }
.topbar a:hover { color: #fff; }
.topbar__city { display: inline-flex; align-items: center; gap: 4px; color: #fff; }
.topbar__divider { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.18); }

/* ------------------------------ 主导航 ------------------------------ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-nav.is-scrolled { box-shadow: 0 2px 12px rgba(14, 26, 43, 0.08); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__img { height: 46px; width: auto; border-radius: 9px; display: block; }
.logo__img--footer { height: 42px; }
.logo__img--side { height: 36px; }
.logo__mark {
  width: 32px; height: 32px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-7), var(--cyan-500));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-num); font-weight: 700; font-size: 15px; letter-spacing: -0.5px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 16px; letter-spacing: 0.2px; }
.logo__text span { font-size: 10px; color: var(--text-3); letter-spacing: 1.6px; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.16s, background 0.16s;
}
.nav-links a:hover { color: var(--brand-7); background: var(--brand-1); }
.nav-links a.is-active { color: var(--brand-7); font-weight: 500; }
.nav-links a.is-active::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--brand-7); border-radius: 1px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-1); color: var(--brand-7);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--brand-2);
}
.nav-user { position: relative; }
.nav-menu {
  position: absolute; right: 0; top: 46px; width: 176px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); display: none;
}
.nav-menu.is-open { display: block; }
.nav-menu a { display: block; padding: 9px 12px; border-radius: var(--r-md); font-size: 13px; color: var(--text-2); }
.nav-menu a:hover { background: var(--bg); color: var(--brand-7); }
.nav-menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }

.nav-toggle { display: none; width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-1); margin: 4px auto; border-radius: 2px; }

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #002D18 0%, #026336 46%, #049C44 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.28), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px; color: rgba(255, 255, 255, 0.9);
}
.hero__title { margin-top: 20px; font-size: 46px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 600; }
.hero__title em { font-style: normal; color: #A9EFC8; }
.hero__sub { margin-top: 16px; font-size: 16px; color: rgba(255, 255, 255, 0.78); max-width: 620px; }

.hero-search {
  margin-top: 32px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 8px;
  display: grid;
  grid-template-columns: 132px 120px 1fr 128px;
  gap: 6px;
  box-shadow: 0 16px 48px rgba(0, 12, 46, 0.28);
  max-width: 880px;
}
.hero-search .select, .hero-search .input { height: 48px; border: none; background: var(--bg-soft); }
.hero-search .select:focus, .hero-search .input:focus { box-shadow: none; background: var(--brand-1); }
.hero-search .btn { height: 48px; font-size: 15px; }

.hero-tags { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, 0.62); }
.hero-tags a {
  padding: 4px 10px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.86);
  transition: background 0.16s;
}
.hero-tags a:hover { background: rgba(255, 255, 255, 0.14); }

.hero__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat__num { font-family: var(--font-num); font-size: 30px; line-height: 1.1; }
.hero-stat__num small { font-size: 14px; margin-left: 4px; color: rgba(255, 255, 255, 0.6); }
.hero-stat__label { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.62); }

/* ------------------------------ 区块通用 ------------------------------ */

.band { background: #fff; }
.band--soft { background: var(--bg); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-head__title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.section-head__desc { color: var(--text-3); font-size: 13px; margin-top: 6px; }
.section-head__more { font-size: 13px; color: var(--brand-7); display: inline-flex; align-items: center; gap: 4px; }

.seg { display: inline-flex; padding: 3px; background: var(--bg); border-radius: var(--r-md); }
.seg button {
  height: 32px; padding: 0 16px; border: none; background: transparent;
  border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); cursor: pointer;
  transition: all 0.16s;
}
.seg button.is-active { background: #fff; color: var(--brand-7); font-weight: 500; box-shadow: var(--shadow-1); }

/* ------------------------------ 房源卡片 ------------------------------ */

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.listing-card { overflow: hidden; display: flex; flex-direction: column; }
.lc-media {
  position: relative;
  height: 176px;
  background: linear-gradient(135deg, #067C3C, #049C44);
  overflow: hidden;
}
.lc-media[data-v="2"] { background: linear-gradient(135deg, #004E8C, #00A0C6); }
.lc-media[data-v="3"] { background: linear-gradient(135deg, #123A63, #2C6FB5); }
.lc-media[data-v="4"] { background: linear-gradient(135deg, #06345F, #0F8FA8); }
.lc-media img { width: 100%; height: 100%; object-fit: cover; }
.lc-media__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; color: rgba(255, 255, 255, 0.94);
}
.lc-media__ph b { font-size: 26px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.95; }
.lc-media__ph span { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.lc-media__ph::after {
  content: ""; position: absolute; right: -40px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.05);
}
.lc-media__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.lc-media__status {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  padding: 2px 8px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.42); color: #fff; font-size: 11px;
}
.lc-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lc-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lc-title:hover { color: var(--brand-7); }
.lc-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.lc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; }
.lc-price { font-family: var(--font-num); color: var(--danger); font-size: 22px; line-height: 1; }
.lc-price small { font-size: 12px; color: var(--text-3); margin-left: 3px; font-family: var(--font-sans); }
.lc-price--sale { font-size: 20px; }
.lc-author { font-size: 12px; color: var(--text-3); text-align: right; line-height: 1.4; }

/* ------------------------------ 区域找房 ------------------------------ */

.district-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.district-card {
  padding: 18px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.18s ease;
}
.district-card:hover { border-color: var(--brand-2); background: var(--brand-1); transform: translateY(-2px); }
.district-card b { display: block; font-size: 14px; font-weight: 500; }
.district-card span { font-size: 12px; color: var(--text-3); font-family: var(--font-num); }

/* ------------------------------ 特性 / 资讯 / CTA ------------------------------ */

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 24px; }
.feature__icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--brand-1); color: var(--brand-7);
  display: grid; place-items: center; font-size: 18px; margin-bottom: 14px;
}
.feature h4 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--text-3); line-height: 1.7; }

.news-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.news-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }
.news-item__date {
  flex: none; width: 64px; text-align: center; padding-top: 2px;
}
.news-item__date b { display: block; font-family: var(--font-num); font-size: 22px; line-height: 1.1; color: var(--brand-7); }
.news-item__date span { font-size: 11px; color: var(--text-3); }
.news-item h4 { font-size: 15px; margin-bottom: 6px; }
.news-item h4:hover { color: var(--brand-7); }
.news-item p { font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-side { padding: 24px; }
.news-side h4 { font-size: 15px; margin-bottom: 16px; }

.cta {
  background: linear-gradient(115deg, #002D18, #037F38 70%, #049C44);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta h3 { font-size: 24px; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.72); font-size: 14px; }

/* ------------------------------ 页脚 ------------------------------ */

.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.6); padding: 56px 0 28px; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 32px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 500; }
.footer a { display: block; padding: 4px 0; color: inherit; }
.footer a:hover { color: #fff; }
.footer__brand .logo__text strong { color: #fff; }
.footer__brand p { margin-top: 14px; line-height: 1.9; max-width: 280px; }
.footer__qr { text-align: center; }
.footer__qr img {
  width: 92px; height: 92px; border-radius: 8px; background: #fff; padding: 4px; display: block;
}
.footer__qr p { font-size: 12px; color: inherit; opacity: 0.75; line-height: 1.6; margin-top: 8px; }

/* 首页「手机扫码」模块 */
.qr-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: stretch; }
.qr-showcase { display: grid; place-items: center; padding: 28px 24px; text-align: center; }
.qr-showcase__phone img {
  width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 45, 24, 0.08); background: #fff;
}
.qr-showcase__hint { display: block; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.qr-showcase__meta { margin-top: 18px; }
.qr-showcase__meta b { font-size: 15px; color: var(--text-1); }
.qr-showcase__meta span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); }
.qr-steps { padding: 26px 28px; }
.qr-steps h4 { font-size: 16px; margin-bottom: 18px; }
.qr-step { display: flex; gap: 14px; padding: 10px 0; }
.qr-step > b {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-family: var(--font-num);
}
.qr-step p { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.qr-step p b { color: var(--text-1); }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 16px;
  font-size: 12px; color: rgba(255, 255, 255, 0.42);
}
.footer__bottom .footer__icp { text-align: center; white-space: nowrap; }
.footer__bottom .footer__note { text-align: right; }

/* ------------------------------ 列表页 ------------------------------ */

.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
.crumb { font-size: 12px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.crumb a:hover { color: var(--brand-7); }
.page-head h1 { font-size: 28px; margin-top: 10px; }
.page-head p { color: var(--text-3); font-size: 13px; margin-top: 6px; }

.list-layout { display: grid; grid-template-columns: 264px 1fr; gap: 24px; padding: 32px 0 64px; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 20px 20px; align-self: start; position: sticky; top: 84px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group__title { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 12px; border-radius: var(--r-sm);
  font-size: 12px; color: var(--text-2); background: var(--bg);
  border: 1px solid transparent; cursor: pointer; transition: all 0.16s;
}
.chip:hover { color: var(--brand-7); }
.chip.is-active { background: var(--brand-1); color: var(--brand-7); border-color: var(--brand-2); font-weight: 500; }
.filter-price { display: flex; align-items: center; gap: 6px; }
.filter-price .input { height: 32px; padding: 0 8px; font-size: 12px; text-align: center; }

.list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 16px; margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.sort-tabs { display: flex; gap: 4px; }
.sort-tabs button {
  height: 30px; padding: 0 12px; border: none; background: transparent;
  border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); cursor: pointer;
}
.sort-tabs button.is-active { background: var(--brand-1); color: var(--brand-7); font-weight: 500; }
.list-result { font-size: 13px; color: var(--text-3); }
.list-result b { color: var(--danger); font-family: var(--font-num); }

/* ------------------------------ 详情页 ------------------------------ */

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 28px 0 64px; align-items: start; }
.detail-gallery { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, #067C3C, #049C44); height: 360px; position: relative; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: rgba(255, 255, 255, 0.9); gap: 6px; }
.detail-gallery__ph b { font-size: 34px; font-weight: 600; letter-spacing: 0.06em; }

.detail-card { padding: 24px; margin-top: 20px; }
.detail-price { font-family: var(--font-num); color: var(--danger); font-size: 34px; line-height: 1.1; }
.detail-price small { font-family: var(--font-sans); font-size: 14px; color: var(--text-3); margin-left: 4px; }
.detail-title { font-size: 22px; margin-top: 10px; }
.detail-meta { margin-top: 8px; color: var(--text-3); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 20px; }
.spec-item { background: #fff; padding: 16px; }
.spec-item span { display: block; font-size: 12px; color: var(--text-3); }
.spec-item b { font-size: 16px; font-weight: 500; }
.detail-section { margin-top: 28px; }
.detail-section h3 { font-size: 16px; margin-bottom: 12px; }
.detail-text { font-size: 14px; color: var(--text-2); line-height: 1.9; white-space: pre-wrap; }
.map-box {
  height: 200px; border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(4, 156, 68, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 156, 68, 0.06) 1px, transparent 1px),
    #F4FAF7;
  background-size: 28px 28px;
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 13px;
}

/* 地图选点 / 展示 */
.map-picker { height: 320px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: #F4FAF7; display: flex; flex-direction: column; }
.map-picker__search { display: flex; gap: 8px; padding: 8px; background: #fff; border-bottom: 1px solid var(--line); }
.map-picker__search .input { flex: 1; height: 32px; font-size: 13px; }
.map-picker__search .btn { height: 32px; padding: 0 14px; }
.map-picker__canvas { flex: 1; min-height: 0; }
.map-picker__loading { display: grid; place-items: center; flex: 1; color: var(--text-3); font-size: 13px; }
.map-picker__fallback { display: grid; place-items: center; flex: 1; padding: 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.map-picker__fallback a { color: var(--primary); }
.detail-map { height: 300px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }

/* 富文本编辑器 */
.rich-editor { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; }
.rich-editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(4, 156, 68, 0.15); }
.rich-editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #FAFBFC; border-radius: var(--r-md) var(--r-md) 0 0; }
.rich-editor__btn {
  min-width: 30px; height: 28px; padding: 0 8px; border: none; border-radius: 4px; background: transparent;
  cursor: pointer; font-size: 13px; color: var(--text-2); line-height: 28px; font-family: inherit;
}
.rich-editor__btn:hover { background: rgba(4, 156, 68, 0.08); color: var(--primary); }
.rich-editor__btn.is-active { background: rgba(4, 156, 68, 0.12); color: var(--primary); }
.rich-editor__sep { width: 1px; height: 18px; background: var(--line); margin: 5px 6px; }
.rich-editor__area {
  min-height: 280px; max-height: 480px; overflow-y: auto; padding: 14px 16px; font-size: 14px; line-height: 1.9;
  outline: none; color: var(--text-1);
}
.rich-editor__area:empty::before { content: attr(data-placeholder); color: var(--text-4); }
.rich-editor__area img { max-width: 100%; border-radius: var(--r-sm); }
.rich-editor__area h2, .rich-editor__area h3 { margin: 14px 0 8px; font-weight: 600; }
.rich-editor__area h2 { font-size: 18px; }
.rich-editor__area h3 { font-size: 16px; }
.rich-editor__area p { margin: 8px 0; }
.rich-editor__area blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--primary); background: #F4FAF7; color: var(--text-2); }
.rich-editor__area ul, .rich-editor__area ol { padding-left: 22px; margin: 8px 0; }
.rich-editor__area table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.rich-editor__area th, .rich-editor__area td { border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; }
.rich-editor__area a { color: var(--primary); }

/* 资讯正文渲染（详情页 HTML 安全展示） */
.news-content { font-size: 15px; line-height: 1.95; color: var(--text-1); word-break: break-word; }
.news-content h2, .news-content h3, .news-content h4 { font-weight: 600; margin: 20px 0 10px; }
.news-content h2 { font-size: 19px; }
.news-content h3 { font-size: 17px; }
.news-content p { margin: 10px 0; }
.news-content img { max-width: 100%; border-radius: var(--r-md); margin: 12px 0; }
.news-content blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--primary); background: #F4FAF7; color: var(--text-2); }
.news-content ul, .news-content ol { padding-left: 24px; margin: 10px 0; }
.news-content a { color: var(--primary); }
.news-content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.news-content th, .news-content td { border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; }
.news-content th { background: #F4FAF7; }


.aside-card { padding: 20px; position: sticky; top: 84px; }
.aside-author { display: flex; gap: 12px; align-items: center; }
.aside-author__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-1); color: var(--brand-7);
  display: grid; place-items: center; font-weight: 600;
}
.aside-author b { display: block; font-size: 15px; }
.aside-author span { font-size: 12px; color: var(--text-3); }
.aside-phone { margin-top: 18px; padding: 14px; background: var(--bg-soft); border-radius: var(--r-lg); }
.aside-phone__label { font-size: 12px; color: var(--text-3); }
.aside-phone__num { font-family: var(--font-num); font-size: 22px; color: var(--brand-7); letter-spacing: 0.5px; }
.aside-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.aside-note { margin-top: 16px; font-size: 12px; color: var(--text-4); line-height: 1.8; }

/* ------------------------------ 认证页 ------------------------------ */

.auth-page { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: linear-gradient(150deg, #002D18, #037F38 60%, #049C44);
  color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%);
}
.auth-aside__inner { position: relative; z-index: 1; max-width: 420px; }
.auth-aside h2 { font-size: 34px; line-height: 1.3; margin-bottom: 16px; }
.auth-aside p { color: rgba(255, 255, 255, 0.72); line-height: 1.9; }
.auth-points { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-point { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.auth-point i {
  width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; font-size: 10px; font-style: normal; flex: none; margin-top: 3px;
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card__sub { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button {
  position: relative; height: 40px; border: none; background: transparent;
  font-size: 15px; color: var(--text-3); cursor: pointer;
}
.auth-tabs button.is-active { color: var(--brand-7); font-weight: 500; }
.auth-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-7); }
.auth-switch { margin-top: 20px; font-size: 13px; color: var(--text-3); text-align: center; }
.auth-switch a { color: var(--brand-7); }
.code-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.code-btn { height: 40px; }

/* ------------------------------ 我的 ------------------------------ */

.me-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0 64px; align-items: start; }
.me-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; position: sticky; top: 84px; }
.me-side__user { padding: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.me-side__user b { display: block; font-size: 15px; }
.me-side__user span { font-size: 12px; color: var(--text-3); }
.me-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: var(--r-md); font-size: 13px; color: var(--text-2);
  cursor: pointer;
}
.me-nav a:hover { background: var(--bg); }
.me-nav a.is-active { background: var(--brand-1); color: var(--brand-7); font-weight: 500; }
.me-nav__label { display: flex; align-items: center; gap: 8px; }
.me-panel { min-height: 480px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.panel__head h2 { font-size: 18px; }

.info-list { display: grid; grid-template-columns: 120px 1fr; gap: 0; font-size: 14px; }
.info-list dt { padding: 14px 0; color: var(--text-3); border-bottom: 1px solid var(--line); }
.info-list dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt:last-of-type, .info-list dd:last-of-type { border-bottom: none; }

.quota-bar { display: flex; gap: 24px; padding: 16px 20px; background: var(--brand-1); border-radius: var(--r-lg); margin-bottom: 20px; }
.quota-item { font-size: 13px; color: var(--brand-7); }
.quota-item b { font-family: var(--font-num); font-size: 20px; }
.quota-item span { color: var(--text-3); }

.mini-listing { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; align-items: center; }
.mini-listing__thumb {
  width: 88px; height: 66px; border-radius: var(--r-md); flex: none;
  background: linear-gradient(135deg, #067C3C, #049C44);
  display: grid; place-items: center; color: #fff; font-size: 12px; text-align: center; padding: 4px;
}
.mini-listing__main { flex: 1; min-width: 0; }
.mini-listing__main b { font-size: 15px; display: block; }
.mini-listing__meta { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.mini-listing__price { font-family: var(--font-num); color: var(--danger); font-size: 17px; }
.mini-listing__ops { display: flex; gap: 8px; align-items: center; flex: none; }

.notice-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-7); margin-top: 8px; flex: none; }
.notice-dot--read { background: var(--line-strong); }
.notice-item__main b { font-size: 14px; display: block; }
.notice-item__main p { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.notice-item__time { margin-left: auto; font-size: 12px; color: var(--text-4); white-space: nowrap; }

/* ------------------------------ 发布页 ------------------------------ */

.form-page { padding: 28px 0 64px; max-width: 860px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.form-section-title { font-size: 15px; font-weight: 600; margin: 4px 0 18px; padding-left: 10px; border-left: 3px solid var(--brand-7); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 8px; }
.readonly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 16px; }
.readonly-item span { display: block; font-size: 12px; color: var(--text-3); }
.readonly-item b { font-size: 14px; font-weight: 500; }
.uploader { display: flex; gap: 12px; flex-wrap: wrap; }
.upload-btn {
  width: 96px; height: 96px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  display: grid; place-items: center; color: var(--text-3); font-size: 12px; cursor: pointer;
  background: var(--bg-soft); text-align: center; line-height: 1.5;
}
.upload-btn:hover { border-color: var(--brand-7); color: var(--brand-7); }
.upload-preview { position: relative; width: 96px; height: 96px; border-radius: var(--r-lg); overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview button {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; font-size: 12px; line-height: 1;
}

/* ------------------------------ 聊天 ------------------------------ */

.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: calc(100vh - var(--nav-h) - 48px); margin: 24px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-side { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-side__head { padding: 16px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
.chat-conv { display: flex; gap: 10px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--bg); }
.chat-conv:hover { background: var(--bg-soft); }
.chat-conv.is-active { background: var(--brand-1); }
.chat-conv__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-2); color: var(--brand-8); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.chat-conv__main { min-width: 0; flex: 1; }
.chat-conv__main b { font-size: 13px; display: block; }
.chat-conv__main p { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-window { display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 62%; display: flex; flex-direction: column; gap: 4px; }
.bubble__content { padding: 10px 14px; border-radius: var(--r-lg); font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.bubble--peer .bubble__content { background: #fff; border: 1px solid var(--line); border-top-left-radius: 2px; }
.bubble--mine { align-self: flex-end; align-items: flex-end; }
.bubble--mine .bubble__content { background: var(--brand-7); color: #fff; border-top-right-radius: 2px; }
.bubble__time { font-size: 11px; color: var(--text-4); }
.chat-input { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input .textarea { min-height: 44px; max-height: 120px; }

/* ------------------------------ 管理后台 ------------------------------ */

.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding: 20px 12px; }
.admin-side .logo { padding: 0 10px 18px; }
.admin-side .logo__text strong { color: #fff; font-size: 14px; }
.admin-side .logo__text span { color: rgba(255, 255, 255, 0.45); letter-spacing: 1px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-md);
  font-size: 13px; cursor: pointer; color: rgba(255, 255, 255, 0.7); margin-bottom: 2px;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-nav a.is-active { background: var(--brand-7); color: #fff; }
.admin-main { min-width: 0; }
.admin-top {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.admin-content { padding: 24px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stat-card__label { font-size: 13px; color: var(--text-3); }
.stat-card__value { font-family: var(--font-num); font-size: 30px; line-height: 1.2; margin-top: 6px; }
.stat-card__foot { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; gap: 12px; }
.stat-card--brand { background: linear-gradient(120deg, #037F38, #049C44); border-color: transparent; color: #fff; }
.stat-card--brand .stat-card__label, .stat-card--brand .stat-card__foot { color: rgba(255, 255, 255, 0.72); }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 16px 0; }
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart__bar { width: 60%; max-width: 34px; background: var(--brand-2); border-radius: 3px 3px 0 0; min-height: 4px; transition: height 0.4s ease; }
.bar-chart__bar.is-peak { background: var(--brand-7); }
.bar-chart__label { font-size: 11px; color: var(--text-4); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; height: 34px; font-size: 13px; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.chart-card h3 { font-size: 15px; margin-bottom: 4px; }
.chart-card p { font-size: 12px; color: var(--text-3); }

/* ------------------------------ 移动端底栏 / 抽屉 ------------------------------ */

.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  height: 56px; background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--text-3);
}
.tabbar a.is-active { color: var(--brand-7); }
.tabbar .tab-icon { font-size: 17px; line-height: 1; }

.drawer-mask { position: fixed; inset: 0; background: rgba(14, 26, 43, 0.4); z-index: 980; display: none; }
.drawer-mask.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: #fff; z-index: 990;
  transform: translateX(100%); transition: transform 0.24s ease; padding: 20px; overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1080px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .district-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 56px; }
  .topbar { display: none; }
  .nav-inner { gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; order: 3; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn--primary { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 14px; }
  .hero-search { grid-template-columns: 1fr 1fr; padding: 8px; }
  .hero-search .input { grid-column: span 2; }
  .hero-search .btn { grid-column: span 2; }
  .hero__stats { gap: 24px; margin-top: 28px; }
  .hero-stat__num { font-size: 24px; }
  .section { padding: 44px 0; }
  .listing-grid { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; padding: 20px 0 80px; }
  .filter-panel { position: static; }
  .me-layout { grid-template-columns: 1fr; }
  .me-side { position: static; }
  .me-nav { display: flex; overflow-x: auto; gap: 4px; }
  .me-nav a { white-space: nowrap; }
  .me-side__user { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 32px 20px 64px; }
  .chat-layout { grid-template-columns: 1fr; height: auto; margin: 12px 0 80px; }
  .chat-side { border-right: none; border-bottom: 1px solid var(--line); max-height: 220px; }
  .chat-body { min-height: 380px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 20px 16px; }
  .readonly-grid { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding-bottom: 84px; }
  .tabbar { display: flex; }
  .qr-layout { grid-template-columns: 1fr; }
  .footer__qr { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-content { padding: 16px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta { padding: 28px 24px; }
  .cta h3 { font-size: 20px; }
  .detail-gallery { height: 240px; }
  .detail-price { font-size: 28px; }
  .table { min-width: 720px; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .listing-card .lc-media { height: 160px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .mini-listing { flex-wrap: wrap; }
  .mini-listing__thumb { width: 72px; height: 56px; font-size: 11px; }
  .mini-listing__price { margin-left: auto; }
  .mini-listing__ops { width: 100%; justify-content: flex-end; }
  .lc-author { font-size: 11px; }
  .chip:disabled { opacity: 0.45; cursor: not-allowed; }
  .detail-meta { gap: 8px; }
  .filter-group { padding: 14px 0; }
  .hero__eyebrow { font-size: 11px; }
  .news-item__date { width: 52px; }
}

/* 打印：便于把房源详情存成 PDF 给客户 */
@media print {
  .site-nav, .topbar, .tabbar, .footer, .aside-actions, .drawer, .drawer-mask { display: none !important; }
  .detail-layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* ------------------------------ 客服 QQ（头像 + 点击聊天） ------------------------------ */
.qq-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  vertical-align: middle;
  line-height: 1;
}
.qq-chat__avatar {
  border-radius: 50%;
  border: 2px solid var(--brand-5, #049C44);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.qq-chat:hover .qq-chat__avatar {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.qq-chat__label { font-weight: 500; }
.qq-chat:hover .qq-chat__label { color: var(--brand-6, #04A458); }
.topbar .qq-chat { gap: 6px; }
.topbar .qq-chat:hover .qq-chat__label { color: #fff; }
.footer .qq-chat-footer { display: flex; align-items: center; margin: 0 0 10px; }
.footer .qq-chat { color: rgba(255, 255, 255, 0.85); }
.footer .qq-chat:hover .qq-chat__label { color: #fff; }
.info-list dd .qq-chat { gap: 10px; }
.footer__bottom .icp-badge {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-left: 4px;
}
.footer__bottom .icp-badge:hover { color: #fff; text-decoration: underline; }
@media (max-width: 768px) {
  .footer__bottom { grid-template-columns: 1fr; text-align: center; }
  .footer__bottom .footer__note { text-align: center; }
  .footer__bottom .footer__icp { white-space: normal; }
}
