/* 小城好房 - 移动端优先响应式样式（红色系原生 App 风格） */
:root {
  --primary: #D93025;
  --primary-dark: #b0241b;
  --danger: #e5484d;
  --warn: #f59e0b;
  --success: #2e9e5b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #F5F3F1;
  --card: #ffffff;
  --border: #ece9e6;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --price: #D93025;
  --top-orange: #ff8f1f;
  --cert-green: #2e9e5b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 960px; margin: 0 auto; padding: 0 14px; }
.main { padding: 16px 0 60px; min-height: calc(100vh - 140px); }

/* 顶栏 */
.topbar { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.nav { display: flex; gap: 4px; font-size: 14px; }
.nav a { padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.16); }
@media (max-width: 480px) {
  .nav { font-size: 13px; gap: 2px; }
  .nav a { padding: 5px 6px; }
  .nav .hide-m { display: none; }
}

/* 提示 */
.flash-wrap { background: #ecfdf5; border-bottom: 1px solid #d1fae5; }
.flash { color: #047857; padding: 8px 0; font-size: 14px; }
.flash-error { color: var(--danger); }

/* 卡片通用 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.section-title { font-size: 17px; font-weight: 700; margin: 20px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.section-title .more { font-size: 13px; color: var(--primary); font-weight: 400; }

/* 公告 */
.notice-bar { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.notice-bar .n-title { font-weight: 600; color: #9a3412; font-size: 14px; }
.notice-bar .n-content { color: #7c2d12; font-size: 13px; margin-top: 2px; }

/* 搜索 */
.search-box { display: flex; gap: 8px; margin: 14px 0; }
.search-box input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 15px; outline: none; }
.search-box input:focus { border-color: var(--primary); }
.search-box button { background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font-size: 15px; cursor: pointer; }

/* 轮播广告 */
.carousel-root { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: #000; }
.carousel-viewport { overflow: hidden; }
.carousel { display: flex; transition: transform .35s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
@media (min-width: 600px) { .carousel-slide img { height: 260px; } }
.carousel-slide .ad-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 15px; font-weight: 600; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); color: #fff; border: 0; width: 32px; height: 40px; border-radius: 6px; font-size: 18px; cursor: pointer; z-index: 5; }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
.carousel-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; z-index: 5; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.carousel-dots span.active { background: #fff; }

/* 区域快捷 */
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 6px; }
.region-item { background: var(--card); border-radius: 10px; padding: 10px 4px; text-align: center; font-size: 13px; box-shadow: var(--shadow); }
.region-item:hover { color: var(--primary); }
@media (max-width: 420px) { .region-grid { grid-template-columns: repeat(4, 1fr); } }

/* 分类入口 */
.cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.cat-item { background: var(--card); border-radius: 12px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.cat-item .cat-name { font-size: 15px; font-weight: 600; }
.cat-item .cat-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 房源卡片（瀑布流 App 风格） */
.house-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .house-grid { grid-template-columns: repeat(3, 1fr); } }
.house-card { background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.house-card .thumb { position: relative; height: 0; padding-top: 128%; overflow: hidden; background: #eee; }
.house-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.house-card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 2; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; color: #fff; font-weight: 600; }
.badge.top { background: var(--top-orange); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.badge.cert { background: var(--cert-green); border-radius: 999px; }
.badge.new { background: var(--primary); }
.badge.rent { background: var(--success); }
.badge.second { background: #7c3aed; }
.house-card .type-flag { position: absolute; bottom: 6px; left: 8px; z-index: 2; font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.45); }
.house-card .body { padding: 9px 10px 11px; display: flex; flex-direction: column; flex: 1; }
.house-card .h-title { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #333; }
.house-card .h-meta { font-size: 12px; color: var(--text-light); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house-card .h-price { color: var(--price); font-weight: 700; font-size: 17px; margin-top: 6px; line-height: 1; }
.house-card .h-price small { font-size: 12px; font-weight: 400; color: var(--text-light); }
.house-card .h-price .unit { font-size: 11px; font-weight: 400; color: var(--price); }

/* 列表页 */
.list-layout { display: flex; gap: 16px; align-items: flex-start; }
.filter-panel { width: 230px; flex-shrink: 0; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); position: sticky; top: 68px; }
.filter-panel h4 { font-size: 14px; margin-bottom: 8px; color: var(--text-light); }
.filter-group { margin-bottom: 12px; }
.filter-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; background: #fff; color: var(--text); }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 9px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.sort-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sort-bar .count { font-size: 13px; color: var(--text-light); margin-right: auto; }
.sort-bar a { font-size: 13px; color: var(--text-light); padding: 4px 9px; border-radius: 8px; }
.sort-bar a.active { color: var(--primary); font-weight: 600; background: #e8f0fe; }
.filter-toggle { display: none; }
.list-right { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .list-layout { display: block; }
  .filter-panel { width: 100%; position: static; display: none; }
  .filter-panel.open { display: block; }
  .filter-toggle { display: inline-flex; margin-bottom: 10px; }
}
.empty { text-align: center; color: var(--text-light); padding: 40px 0; }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* 详情页 */
.detail-carousel { border-radius: var(--radius); overflow: hidden; position: relative; }
.detail-carousel img { width: 100%; height: 240px; object-fit: cover; }
@media (min-width: 600px) { .detail-carousel img { height: 360px; } }
.h-price-big { color: #e11d48; font-size: 26px; font-weight: 700; }
.h-price-big small { font-size: 14px; color: var(--text-light); font-weight: 400; }
.h-title-big { font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.h-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.h-tags .tag { background: #f1f5f9; color: #475569; font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.info-item { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.info-item .k { font-size: 12px; color: var(--text-light); }
.info-item .v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.desc-text { color: #374151; font-size: 14px; white-space: pre-wrap; }

/* 发布者卡片 */
.pub-card { display: flex; align-items: center; gap: 12px; }
.pub-logo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.pub-logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-name { font-weight: 700; font-size: 15px; }
.pub-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.pub-phone { font-size: 13px; color: var(--primary); margin-top: 2px; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .form-row-3 { grid-template-columns: 1fr 1fr; } }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* 登录注册 */
.auth-box { max-width: 380px; margin: 24px auto; }
.auth-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.auth-tip { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { background: #f8fafc; color: #475569; font-weight: 600; white-space: nowrap; }
.table td .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* 统计卡 */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-card .lbl { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* Tab */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab-btn { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 14px; cursor: pointer; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 420px; padding: 20px; max-height: 86vh; overflow-y: auto; }
.modal-box h3 { font-size: 17px; margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* 支付页 */
.pay-box { max-width: 420px; margin: 24px auto; text-align: center; }
.pay-amount { font-size: 40px; font-weight: 800; color: #e11d48; margin: 12px 0; }
.pay-meta { color: var(--text-light); font-size: 14px; }
.pay-wechat { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f1f5f9; border-radius: 10px; padding: 14px; margin: 16px 0; font-size: 14px; }

/* 置顶套餐 */
.top-plans { display: grid; gap: 10px; margin: 14px 0; }
.top-plan { border: 2px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.top-plan input { accent-color: var(--primary); }
.top-plan.selected { border-color: var(--primary); background: #eef4ff; }
.top-plan .p-name { font-weight: 600; }
.top-plan .p-price { color: #e11d48; font-weight: 700; }

/* 店铺页 */
.shop-hero { border-radius: var(--radius); padding: 22px 18px; color: #fff; margin-bottom: 16px; position: relative; }
.shop-hero .shop-logo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.7); margin-bottom: 10px; }
.shop-hero .shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero .shop-name { font-size: 20px; font-weight: 700; }
.shop-hero .shop-sub { font-size: 13px; opacity: .92; margin-top: 4px; }
.shop-hero .shop-contact { margin-top: 10px; font-size: 13px; background: rgba(255,255,255,.18); display: inline-block; padding: 5px 12px; border-radius: 8px; }

/* 后台布局 */
.admin-wrap { display: flex; min-height: calc(100vh - 52px); }
.admin-side { width: 180px; background: #111827; color: #d1d5db; flex-shrink: 0; padding: 16px 10px; }
.admin-side a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.active { background: #1f2937; color: #fff; }
.admin-main { flex: 1; padding: 18px; min-width: 0; }
.admin-main h2 { font-size: 18px; margin-bottom: 14px; }
@media (max-width: 720px) {
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .admin-side a { margin-bottom: 0; white-space: nowrap; }
}

/* 状态色 */
.status-tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.st-pending { background: #fef3c7; color: #92400e; }
.st-approved, .st-paid { background: #dcfce7; color: #166534; }
.st-rejected, .st-offline { background: #fee2e2; color: #991b1b; }
.st-draft { background: #e2e8f0; color: #475569; }
.st-disabled { background: #fee2e2; color: #991b1b; }

.footer { background: #fff; border-top: 1px solid var(--border); color: var(--text-light); font-size: 12px; padding: 16px 0 72px; text-align: center; }

/* ============ 首页 App 风格（参考 8777.png） ============ */
/* 首页全宽布局 */
.home-body .container { max-width: none; padding: 0; }
.home-body .main { padding: 0; min-height: calc(100vh - 120px); }
.home-content { max-width: 760px; margin: 0 auto; padding: 0 12px 90px; }

/* 顶部状态栏（移动端模拟） */
.app-status-bar { display: none; background: var(--primary); color: rgba(255,255,255,.9); font-size: 11px; }
.app-status-bar .status-inner { max-width: 760px; margin: 0 auto; padding: 4px 14px; display: flex; justify-content: space-between; align-items: center; }
.app-status-bar .sb-right { display: flex; gap: 6px; align-items: center; }
@media (max-width: 480px) { .app-status-bar { display: block; } }

/* 顶部品牌红幅 + 顶部导航 */
.home-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 8px rgba(160,30,20,.25); }
.home-head-inner { max-width: 760px; margin: 0 auto; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.home-logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo-icon { width: 30px; height: 30px; border-radius: 8px; background: #ff9d2e; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.logo-icon svg { width: 19px; height: 19px; fill: #fff; }
.logo-text { font-size: 17px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.home-search { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 0 12px; height: 34px; min-width: 0; }
.home-search input { flex: 1; border: 0; outline: 0; font-size: 14px; color: #333; background: transparent; min-width: 0; }
.home-search input::placeholder { color: #b0a8a4; }
.home-search button { border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; padding: 0 2px; }
.home-search button svg { width: 17px; height: 17px; fill: #b0a8a4; }
.head-icons { display: flex; gap: 4px; flex-shrink: 0; }
.head-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); }
.head-icon svg { width: 17px; height: 17px; fill: #fff; }

/* 内容 Tab 导航（选中红色下划线） */
.home-tabs { max-width: 760px; margin: 0 auto; display: flex; justify-content: space-around; padding: 0 6px; }
.htab { flex: 1; text-align: center; padding: 9px 0 8px; font-size: 14px; color: rgba(255,255,255,.82); position: relative; white-space: nowrap; }
.htab.active { color: #fff; font-weight: 700; }
.htab.active::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: #fff; }
.home-tabs .htab svg { width: 14px; height: 14px; fill: #fff; vertical-align: -2px; margin-right: 2px; }

/* 首页公告条 */
.home-notice { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 10px; margin: 12px 0 10px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.home-notice .notice-tag { flex-shrink: 0; background: var(--primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 5px; }
.home-notice .notice-text { font-size: 13px; color: #9a3412; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 轮播 Banner（红粉渐变卡片风格） */
.banner.carousel-root { border-radius: 12px; overflow: hidden; margin: 0 0 12px; background: #000; }
.banner .carousel-slide img { width: 100%; height: 150px; object-fit: cover; }
@media (min-width: 600px) { .banner .carousel-slide img { height: 220px; } }
.banner-slide a { position: relative; display: block; }
.banner-slide .banner-mask { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.62)); display: flex; align-items: center; gap: 10px; }
.banner-slide .banner-title { color: #fff; font-size: 16px; font-weight: 700; flex: 1; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.banner-slide .banner-cta { flex-shrink: 0; background: var(--primary); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; }

/* 快捷信息横排 */
.quick-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }
.quick-chip { flex-shrink: 0; background: #fff; color: #555; font-size: 13px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.quick-chip.active { background: #3d3a39; color: #fff; font-weight: 600; }

/* 2x2 功能入口 */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.feature-item { background: #fff; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.feature-icon svg { width: 21px; height: 21px; }
.feature-name { font-size: 15px; font-weight: 700; color: #333; }
.feature-desc { font-size: 12px; color: var(--text-light); }
.fi-blue { background: #e3f1ff; } .fi-blue svg { fill: #2f7ef7; }
.fi-purple { background: #efe6ff; } .fi-purple svg { fill: #7b4ff0; }
.fi-blue2 { background: #e0f4ff; } .fi-blue2 svg { fill: #1fa2d8; }
.fi-red { background: #ffe8e5; } .fi-red svg { fill: var(--primary); }

/* 筛选工具栏 */
.filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 8px; }
.filter-item { font-size: 14px; color: #333; display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.filter-item i { font-style: normal; font-size: 12px; color: #999; }
.filter-item .cnt { font-size: 12px; color: var(--text-light); margin-right: auto; }

/* 首页分区标题 */
.home-section-title { font-size: 17px; font-weight: 800; margin: 18px 0 10px; display: flex; align-items: center; justify-content: space-between; color: #333; }
.home-section-title .more { font-size: 13px; color: var(--primary); font-weight: 400; }

/* 双列瀑布流 */
.waterfall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .waterfall { grid-template-columns: repeat(3, 1fr); } }

/* ============ 底部 5Tab 浮动导航 ============ */
.app-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--border); display: flex; }
.app-tabbar .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 8px; color: #999; font-size: 11px; text-decoration: none; }
.app-tabbar .tab-item svg { width: 22px; height: 22px; fill: currentColor; }
.app-tabbar .tab-item.active { color: var(--primary); }
.app-tabbar .tab-publish { color: var(--primary); }
.app-tabbar .tab-publish .pub-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: -20px; box-shadow: 0 3px 10px rgba(217,48,37,.45); }
.app-tabbar .tab-publish .pub-btn svg { width: 24px; height: 24px; fill: #fff; }
@media (min-width: 641px) { .app-tabbar { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,.1); } }

/* 桌面端顶栏与首页协调 */
@media (min-width: 641px) {
  .home-header { position: relative; }
  .home-tabs { border-radius: 999px; background: rgba(255,255,255,.14); margin-top: 6px; margin-bottom: 0; width: fit-content; padding: 0; margin-left: auto; margin-right: auto; }
  .htab { padding: 8px 22px; }
}
