/* elaiban-web/pages/home.html · 由 scripts/split_page_assets.py 从页面内联样式抽取，勿在页面内重写 */

/* ---------- 内联块 1：基础与商业化主题 ---------- */
/* 2026-11 H5 商业化改版：banner 加高容纳搜索层，下方补数据背书条与图文信息流 */
* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",sans-serif;
  background:#f4f5f7; color: var(--h5-ink-2, #24262b); -webkit-font-smoothing:antialiased;
}
/* 固定 tabbar + 凸起的发布按钮会盖住页面末尾：按最高遮挡预留空间 */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- 顶部：品牌 + 右侧紧凑搜索，正常流置顶 ---------- */
.header {
  position:relative; z-index:2;
  background:var(--h5-surface-1, #fff);
  padding:10px 16px 10px;
  padding-top:max(10px, calc(10px + env(safe-area-inset-top, 0px)));
  color:var(--h5-ink-2, #24262b);
  border-bottom:1px solid #eef0f3;
}
.header-row { display:flex; align-items:center; gap:12px; }
.brand { display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--h5-ink-2, #24262b); min-height:40px; flex:none; }
.brand-logo {
  width:30px; height:30px; border-radius:8px; background:transparent;
  display:block; flex:none; object-fit:contain;
  box-shadow:0 1px 3px rgba(0,0,0,.14);
}
.brand-name { font-size:18px; font-weight:800; letter-spacing:.02em; }

/* ---------- 顶部大图 Banner（高度 200px） ---------- */
.banner-wrap {
  margin:0; height:200px; position:relative; overflow:hidden; isolation:isolate;
  border-radius:0; background:#14161a;
}
/* 上下渐变压暗，保证浮层白字可读 */
.banner-wrap::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(12,14,18,.22) 0%, rgba(12,14,18,0) 30%, rgba(12,14,18,.76) 100%);
}
.banner-slide { position:absolute; inset:0; opacity:0; transition:opacity .55s ease; border-radius:0; }
.banner-slide.active { opacity:1; }
.banner-slide img { width:100%; height:100%; object-fit:cover; display:block; border-radius:0; }

/* ---------- LOGO 右侧紧凑搜索条 ---------- */
.hero-search {
  position:relative; z-index:4;
  margin:0 0 0 auto; flex:0 1 320px; width:320px; max-width:320px; min-width:0; height:44px;
  display:flex; align-items:center; gap:8px;
  padding:0 4px 0 10px;
  background:#f5f6f8;
  border:1px solid #e7e9ee;
  border-radius:8px;
}
.hero-search__city {
  display:flex; align-items:center; gap:1px; flex-shrink:0;
  font-size:12px; font-weight:600; color: var(--h5-ink-2, #24262b);
  padding-right:6px; border-right:1px solid #e1e5ea;
}
.hero-search__city svg { width:13px; height:13px; color: var(--h5-ink-5, #9aa1ab); }
.hero-search input {
  flex:1; min-width:0; height:100%; border:0; background:transparent; outline:none;
  font-size:12.5px; color: var(--h5-ink-2, #24262b); -webkit-appearance:none; appearance:none;
}
.hero-search input::placeholder { color: var(--h5-ink-5, #9aa1ab); }
.hero-search input::-webkit-search-cancel-button { display:none; }
.hero-search__btn {
  width:44px; height:44px; border-radius:7px; flex-shrink:0; text-decoration:none;
  background:linear-gradient(140deg,#e8402c,#bd2e2e); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px -4px rgba(189,46,46,.6);
}
.hero-search__btn:active { transform:scale(.94); }
.hero-search__btn svg { width:17px; height:17px; }

@media (max-width:389px) {
  .header { padding:8px 12px 8px; padding-top:max(8px, calc(8px + env(safe-area-inset-top, 0px))); }
  .header-row { gap:8px; }
  .brand { gap:7px; }
  .brand-logo { width:28px; height:28px; }
  .brand-name { font-size:17px; }
  .hero-search { height:40px; gap:6px; padding-left:8px; }
  .hero-search__btn { width:44px; height:44px; }
}
@media (max-width:359px) {
  .hero-search__city { display:none; }
}

/* 图上文案：主标题 + 副标题 + 行动按钮 */
.hero-copy { position:absolute; left:16px; right:90px; bottom:16px; z-index:3; color:#fff; }
.hero-title {
  font-size:22px; font-weight:800; line-height:1.28; letter-spacing:.01em;
  text-shadow:0 2px 12px rgba(0,0,0,.32);
}
.hero-sub { margin-top:5px; font-size:12.5px; line-height:1.4; color:rgba(255,255,255,.9); text-shadow:0 1px 6px rgba(0,0,0,.3); }
.hero-cta {
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:11px; height:36px; padding:0 17px; border-radius:8px;
  background:var(--h5-surface-1, #fff); color: var(--h5-brand, #bd2e2e); font-size:13px; font-weight:700; text-decoration:none;
  box-shadow:0 8px 20px -8px rgba(0,0,0,.55);
}
.hero-cta:active { transform:scale(.97); }
.hero-cta { display:inline-flex; align-items:center; min-height:44px; }
.brand { min-height:44px; }

.banner-dots { position:absolute; bottom:16px; right:16px; z-index:3; display:flex; gap:5px; padding:4px 7px; border-radius:8px; background:rgba(20,20,20,.26); }
.dot { width:5px; height:5px; border-radius:8px; background:rgba(255,255,255,.6); transition:width .2s ease,background .2s ease; }
.dot.active { width:14px; border-radius:8px; background:var(--h5-surface-1, #fff); }

/* ---------- 服务宫格 ---------- */
/* 2026-11-24：首页「数据背书条 .stats」已下线，这里补回原本由 .stats 提供的 12px 顶部间距 */
.services { background:var(--h5-surface-1, #fff); margin:12px 12px 10px; padding:0; border-radius:8px; box-shadow:0 1px 2px rgba(24,32,48,.05); }
.section-title {
  font-size:15px; font-weight:800; margin-bottom:14px;
  display:flex; justify-content:space-between; align-items:center;
  border-left:3px solid #bd2e2e; padding-left:9px; line-height:1.2;
}
.section-more {
  display:inline-flex; align-items:center; gap:1px; min-height:44px; padding:4px 4px 4px 8px;
  font-size:12px; color: var(--h5-ink-4, #8a919c); font-weight:400; text-decoration:none; border-radius:8px;
}
.section-more svg { width:13px; height:13px; }
.section-more:active { background:#f4f5f7; }
.service-viewport {
  display:flex; overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.service-viewport::-webkit-scrollbar { display:none; }
.service-page { flex:0 0 100%; min-width:100%; display:grid; grid-template-columns:repeat(5,1fr); gap:16px 2px; scroll-snap-align:start; scroll-snap-stop:always; }
.item { display:flex; flex-direction:column; align-items:center; gap:7px; text-decoration:none; color: var(--h5-ink-2, #24262b); padding:2px 0 4px; border-radius:8px; transition:opacity .14s ease; }
.icon-circle {
  width:46px; height:46px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 5px rgba(24,32,48,.16), inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .14s ease, box-shadow .14s ease;
}
.icon-circle svg { width:20px; height:20px; color:#fff; fill:none; stroke:#fff; stroke-width:2; }
.c1 { background:linear-gradient(155deg,#b64b38,#8f2d23); }
.c2 { background:linear-gradient(155deg,#a9423d,#872724); }
.c3 { background:linear-gradient(155deg,#9f4c59,#7b2f3e); }
.c4 { background:linear-gradient(155deg,#ab6239,#824322); }
.c5 { background:linear-gradient(155deg,#997230,#745015); }
.c6 { background:linear-gradient(155deg,#70628f,#4d426e); }
.c7 { background:linear-gradient(155deg,#4b7397,#2d4f6c); }
.c8 { background:linear-gradient(155deg,#3e7a6b,#265447); }
.c9 { background:linear-gradient(155deg,#3d7483,#24515e); }
.c10 { background:linear-gradient(155deg,#4a7452,#2c4e34); }
.c11 { background:linear-gradient(155deg,#476182,#2b3e57); }
.c12 { background:linear-gradient(155deg,#645888,#443b62); }
.label { font-size:12px; text-align:center; line-height:1.2; color:#3b3f47; }
.service-pager { display:flex; align-items:center; justify-content:center; gap:2px; padding:7px 0 3px; }
.service-pager button {
  width:38px; height:36px; padding:0; border:0; background:transparent;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.service-pager button::after {
  content:""; width:6px; height:6px; border-radius:50%;
  background:#d2d6dd; transition:width .2s ease,background .2s ease,border-radius .2s ease;
}
.service-pager button.is-active::after { width:16px; border-radius:4px; background:#bd2e2e; }

/* 统一按压反馈：移动端无 hover，:active 是主要的交互确认信号 */
.item:active { opacity:.82; }
.item:active .icon-circle { transform:scale(.95); box-shadow:0 1px 3px rgba(24,32,48,.14); }
.quick-card:active { background:var(--h5-surface-2, #fafbfc); }
.news-item:active { background:var(--h5-surface-2, #fafbfc); }
.tab:active, .tab-publish:active { opacity:.6; }

/* 窄屏（<360px）宫格微调：缩小图标与字号，避免 5 列挤压换行 */
@media (max-width: 359px) {
  .service-page { gap:13px 2px; }
  .icon-circle { width:42px; height:42px; border-radius:8px; }
  .icon-circle svg { width:19px; height:19px; }
  .label { font-size:11px; }
  .hero-title { font-size:20px; }
  .hero-copy { right:64px; }
  .hero-sub { font-size:11.5px; }
}

/* ---------- 快捷入口 ---------- */
.quick-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 12px 10px; }
.quick-card {
  background:var(--h5-surface-1, #fff); padding:12px 11px; display:flex; align-items:center; gap:10px;
  border-radius:8px; text-decoration:none; color: var(--h5-ink-2, #24262b);
  box-shadow:0 1px 2px rgba(24,32,48,.05);
}
.quick-icon {
  width:40px; height:40px; border-radius:8px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 8px rgba(24,32,48,.12);
}
.quick-icon--pub { background:linear-gradient(150deg,#bd4437 0%,#912a24 100%); }
.quick-icon--man { background:linear-gradient(150deg,#55718f 0%,#354d6a 100%); border-radius:8px; }
.quick-icon svg { width:22px; height:22px; }

.quick-text { min-width:0; }
.quick-text .title { font-size:14px; font-weight:700; margin-bottom:3px; }
.quick-text .desc { font-size:11.5px; color: var(--h5-ink-4, #8a919c); }

/* ---------- 同城分类信息 ---------- */
.conv-card { padding-bottom:6px; }
.conv-item {
  display:flex; gap:11px; padding:11px 0; border-bottom:1px solid #f2f3f5;
  text-decoration:none; color: var(--h5-ink-2, #24262b);
}
.conv-item:last-child { border-bottom:none; }
.conv-thumb {
  position:relative; width:82px; height:82px; border-radius:8px; overflow:hidden; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(145deg,#a85b5b,#7c3333);
}
.conv-thumb img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
}
.conv-thumb__glyph {
  font-size:22px; font-weight:800; line-height:1; color:rgba(255,255,255,.95);
  text-shadow:0 2px 8px rgba(0,0,0,.26); letter-spacing:.04em;
}
.conv-thumb__badge {
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  height:20px; line-height:20px; padding:0 6px;
  font-size:9.5px; color:#fff; letter-spacing:.02em;
  background:linear-gradient(180deg,rgba(12,14,18,0),rgba(12,14,18,.72));
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.conv-thumb--t1 { background:linear-gradient(145deg,#d95c3f,#a93127); }
.conv-thumb--t2 { background:linear-gradient(145deg,#ef8a3d,#b85a17); }
.conv-thumb--t3 { background:linear-gradient(145deg,#d99b3c,#986211); }
.conv-thumb--t4 { background:linear-gradient(145deg,#b58b5a,#795022); }
.conv-thumb--t10 { background:linear-gradient(145deg,#c99b2e,#8e690f); }
.conv-thumb--t12 { background:linear-gradient(145deg,#4f8fd6,#20579b); }
.conv-thumb--t13 { background:linear-gradient(145deg,#d46a8e,#973958); }
.conv-thumb--t14 { background:linear-gradient(145deg,#36a892,#0f6b58); }
.conv-thumb--t19 { background:linear-gradient(145deg,#a36ae0,#653ba3); }
.conv-thumb--t20 { background:linear-gradient(145deg,#7f75d8,#4d409c); }
.conv-thumb--t33 { background:linear-gradient(145deg,#c25a74,#842b45); }

.conv-info { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:space-between; padding:2px 0 1px; }
.conv-title {
  font-size:14.5px; line-height:1.4; font-weight:700; color:#24262b;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.conv-title .conv-pin {
  display:inline-block; vertical-align:1px; margin-right:5px; padding:0 4px;
  height:16px; line-height:16px; border-radius:8px; background:#fff1ee;
  color:#bd2e2e; font-size:10px; font-weight:600;
}
.conv-meta { display:flex; align-items:center; gap:6px; min-width:0; font-size:11.5px; color:#8a919c; }
.conv-price { font-size:14px; font-weight:800; color:#c2342b; font-variant-numeric:tabular-nums; flex-shrink:0; }
.conv-price--free { color:#16805f; font-size:12.5px; }
.conv-price--nego { color:#6f7681; font-size:12px; font-weight:600; }
.conv-meta__dot { width:2px; height:2px; border-radius:8px; background:#c9ced6; flex-shrink:0; }
.conv-region { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conv-time { margin-left:auto; flex-shrink:0; color:#a3a9b2; }

.conv-skeleton { display:flex; gap:11px; padding:11px 0; border-bottom:1px solid #f2f3f5; }
.conv-skeleton:last-child { border-bottom:none; }
.conv-skeleton__thumb { width:82px; height:82px; border-radius:8px; background:#eff1f4; flex-shrink:0; }
.conv-skeleton__lines { flex:1; display:flex; flex-direction:column; gap:9px; padding-top:8px; }
.conv-skeleton__lines i { display:block; height:11px; border-radius:8px; background:#eff1f4; }
.conv-skeleton__lines i:first-child { width:86%; }
.conv-skeleton__lines i:last-child { width:46%; }
.conv-empty { display:block; padding:22px 0 20px; text-align:center; font-size:13px; color:#8a919c; text-decoration:none; }
.conv-empty b { color:#bd2e2e; font-weight:600; }

/* ---------- 资讯信息流 ---------- */
.card { background:var(--h5-surface-1, #fff); margin:0 12px 10px; padding:15px 14px 4px; border-radius:8px; box-shadow:0 1px 2px rgba(24,32,48,.05); }
.news-item { display:flex; gap:11px; padding:12px 0; border-bottom:1px solid #f2f3f5; text-decoration:none; color: var(--h5-ink-2, #24262b); }
.news-item:last-child { border-bottom:none; }
/* 无封面时按栏目匹配武汉实景图兜底，左上角标注“资讯”，避免通用线框图标的模板感 */
.news-thumb {
  position:relative; width:96px; height:74px; border-radius:8px; flex-shrink:0; overflow:hidden;
  background:#dfe4ea url('/static/news-cover-city.webp?v=1') center/cover no-repeat;
}
.news-thumb--bridge { background-image:url('/static/news-cover-bridge.webp?v=1'); }
.news-thumb--street { background-image:url('/static/news-cover-street.webp?v=1'); }
.news-thumb--hall   { background-image:url('/static/news-cover-hall.webp?v=1'); }
.news-thumb--lake   { background-image:url('/static/news-cover-lake.webp?v=1'); }
.news-thumb--modern { background-image:url('/static/news-cover-modern.webp?v=1'); }
.news-thumb--cover { background:#eef1f5; }
.news-thumb:not(.news-thumb--cover)::before {
  content:"资讯"; position:absolute; left:6px; top:6px; z-index:2;
  padding:1px 5px 2px; border-radius:2px; background:rgba(176,38,36,.92);
  color:#fff; font-size:9px; line-height:1.4; letter-spacing:.06em; font-weight:600;
}
.news-thumb:not(.news-thumb--cover)::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,16,24,0) 46%, rgba(10,16,24,.22) 100%);
}
.news-thumb--cover img { width:100%; height:100%; object-fit:cover; display:block; }
.news-info { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:7px; }
.news-title {
  font-size:15px; line-height:1.42; font-weight:600; color: var(--h5-ink-2, #24262b);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.news-meta { font-size:11.5px; color: var(--h5-ink-4, #8a919c); display:flex; align-items:center; gap:6px; }

/* 底部平台信息 / 备案 / 免责声明：白底信息卡，避免裸文字贴在页面末尾 */
.site-footer {
  margin:14px 12px 0; padding:12px 12px 10px;
  background:var(--h5-surface-1, #fff); border:1px solid #eceef2; border-radius:8px;
  box-shadow:0 1px 2px rgba(24,32,48,.04);
}
.site-footer__brand { display:flex; align-items:center; gap:8px; padding-bottom:9px; border-bottom:1px solid #f0f1f4; }
.site-footer__logo { width:26px; height:26px; border-radius:6px; display:block; flex:0 0 26px; }
.site-footer__brand-text { min-width:0; display:flex; flex-direction:column; gap:1px; }
.site-footer__brand-text strong { font-size:13px; line-height:1.2; font-weight:800; letter-spacing:.02em; color:#24262b; }
.site-footer__brand-text span { font-size:10.5px; line-height:1.4; color:#8a919c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-footer__info { margin:9px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:6px 8px; }
.site-footer__info > div { min-width:0; display:flex; align-items:baseline; gap:4px; padding:6px 7px; background:#f8f9fb; border-radius:6px; }
.site-footer__info dt { margin:0; flex:0 0 auto; font-size:9.5px; line-height:1.35; color:#9a9ea7; white-space:nowrap; }
.site-footer__info dd { margin:0; font-size:10.5px; line-height:1.35; color:#3b3f47; word-break:break-all; }
.site-footer__info dd a { color:#bd2e2e; text-decoration:none; }
.site-footer__legal { margin-top:9px; padding-top:9px; border-top:1px solid #f0f1f4; display:flex; flex-wrap:wrap; gap:2px 9px; font-size:10px; line-height:1.55; color:#8a919c; }
.site-footer__legal a { color:#7f858f; text-decoration:none; }
.h5-disclaimer { margin:7px 0 0; padding:0; font-size:10.5px; line-height:1.6; color:#9a9ea7; text-align:left; }
.h5-disclaimer__label { margin-right:3px; font-weight:600; color:#7c828c; }
.h5-disclaimer a { color:#bd2e2e; text-decoration:none; }

@media (max-width: 389px) {
  .site-footer { margin:12px 12px 0; padding:11px 10px 9px; }
  .site-footer__brand { padding-bottom:8px; }
  .site-footer__info { gap:5px 6px; }
  .site-footer__info > div { display:block; padding:5px 6px; }
  .site-footer__info dt { margin-bottom:1px; }
  .site-footer__brand-text span { white-space:normal; }
}

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position:fixed; bottom:0; left:0; right:0; z-index:60;
  background:rgba(255,255,255,.96); backdrop-filter:blur(8px);
  border-top:1px solid #eceef2; display:flex; align-items:flex-end;
  padding:6px 0 max(10px, calc(10px + env(safe-area-inset-bottom, 0px)));
}
.tab {
  flex:1; min-height:46px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  text-decoration:none; color: var(--h5-ink-4, #8a919c); font-size:11px; border-radius:8px; margin:0 2px;
}
.tab.active { color: var(--h5-brand, #bd2e2e); font-weight:600; }
.tab svg { width:21px; height:21px; }
.tab-publish {
  flex:1; min-height:46px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-decoration:none; color: var(--h5-ink-4, #8a919c); font-size:11px; position:relative;
}
.publish-btn {
  width:46px; height:46px; border-radius:8px; color:#fff;
  background:linear-gradient(140deg,#ff6f5e,#e8402c);
  display:flex; align-items:center; justify-content:center;
  margin-top:-22px;
  box-shadow:0 8px 18px -6px rgba(232,64,44,.6), inset 0 -3px 8px rgba(0,0,0,.14);
}
.publish-btn svg { width:23px; height:23px; color:#fff; }
.tab-publish span { margin-top:2px; }


/* 常用服务：扁平色块 + 白色线性图标（对齐信息粘贴栏型宫格） */
.icon-circle { width: 44px; height: 44px; border-radius:8px; }
.icon-circle svg { width: 21px; height: 21px; color:#fff; fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.icon-circle i[data-lucide] { display:block; width:21px; height:21px; }
.quick-icon svg { width: 22px; height: 22px; }
