/* ============================================================
   惠房甄选 v7 · 首页（前缀 hf_）
   结构：大图首屏 + 找房卡 → 数据条 → 两栏目大卡 → 最新房源页签
        → 正方形配图平台介绍 → 经纪服务商 → 看房流程
   ============================================================ */

/* ---------- ① 首屏 ---------- */
.hf_hero { position: relative; min-height: 560px; background-size: cover; background-position: center right; display: flex; align-items: center; }
.hf_hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 34%, rgba(255, 255, 255, .15) 62%, rgba(255, 255, 255, 0) 80%); }
.hf_hero_in { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 86px; }
.hf_hero_tag {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; margin-bottom: 18px; border-radius: 999px;
    background: var(--hf-mint); color: var(--hf-teal); font-size: 13px; font-weight: 600; border: 1px solid #CFE3DE;
}
.hf_hero h1 { margin: 0 0 14px; font-size: 44px; line-height: 1.28; font-weight: 900; color: var(--hf-ink); letter-spacing: 1px; }
.hf_hero h1 em { font-style: normal; color: var(--hf-orange); position: relative; }
.hf_hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: rgba(240, 138, 36, .18); z-index: -1; }
.hf_hero > .hf_wrap > p { max-width: 520px; margin: 0 0 26px; font-size: 15px; line-height: 1.9; color: var(--hf-text); }

.hf_finder { width: 600px; max-width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(11, 59, 55, .14); padding: 0 18px 16px; }
.hf_finder_tabs { display: flex; gap: 4px; padding-top: 8px; border-bottom: 1px solid var(--hf-line); margin-bottom: 14px; }
.hf_finder_tabs button { position: relative; border: none; background: transparent; padding: 10px 16px; font-size: 15px; font-weight: 700; color: var(--hf-muted); cursor: pointer; }
.hf_finder_tabs button i { margin-right: 4px; }
.hf_finder_tabs button.on { color: var(--hf-teal); }
.hf_finder_tabs button.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hf-teal); }
.hf_finder_box { display: flex; align-items: center; height: 52px; border: 2px solid var(--hf-teal); border-radius: 12px; overflow: hidden; padding-left: 16px; }
.hf_finder_box i { color: var(--hf-muted); }
.hf_finder_box input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 12px; font-size: 15px; color: var(--hf-ink); }
.hf_finder_box button { height: 100%; border: none; padding: 0 28px; background: var(--hf-orange); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.hf_finder_box button:hover { background: var(--hf-orange-d); }
.hf_finder_quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--hf-muted); }
.hf_finder_quick a { padding: 3px 12px; border-radius: 999px; background: var(--hf-mint-2); color: #3E6A63; }
.hf_finder_quick a:hover { background: var(--hf-teal); color: #fff; }

/* 数据条：压在首屏下沿 */
.hf_stats {
    position: relative; z-index: 2; display: flex; align-items: center; margin-top: -44px; background: #fff; border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 59, 55, .10); border: 1px solid var(--hf-line); overflow: hidden;
}
.hf_stats > div { padding: 18px 32px; text-align: center; position: relative; }
.hf_stats > div + div::before { content: ''; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: var(--hf-line); }
.hf_stats b { display: block; font-size: 28px; font-weight: 900; line-height: 1.15; color: var(--hf-teal); }
.hf_stats span { font-size: 13px; color: var(--hf-muted); }
.hf_stats .hf_stats_note { margin-left: auto; font-size: 13.5px; color: var(--hf-teal); background: var(--hf-mint-2); align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 0 28px; }
.hf_stats .hf_stats_note::before { display: none; }

/* ---------- 区块标题 ---------- */
.hf_sec { margin-top: 54px; }
.hf_hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.hf_hd h2 { margin: 0 0 4px; font-size: 26px; font-weight: 900; color: var(--hf-ink); position: relative; padding-left: 16px; }
.hf_hd h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--hf-teal) 0%, var(--hf-orange) 100%); }
.hf_hd p { margin: 0; padding-left: 16px; font-size: 13.5px; color: var(--hf-muted); }
.hf_more { font-size: 14px; color: var(--hf-teal); font-weight: 600; white-space: nowrap; }
.hf_tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--hf-line); border-radius: 10px; padding: 4px; }
.hf_tabs button { border: none; background: transparent; padding: 7px 18px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--hf-text); cursor: pointer; }
.hf_tabs button.on { background: var(--hf-teal); color: #fff; }
.hf_tab_panel { display: none; }
.hf_tab_panel.on { display: block; }
.hf_more_line { text-align: center; margin-top: 22px; }
.hf_more_line a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 30px; border-radius: 10px; border: 1.5px solid var(--hf-teal); color: var(--hf-teal); font-size: 15px; font-weight: 700; background: #fff; }
.hf_more_line a:hover { background: var(--hf-teal); color: #fff; }

/* ---------- ② 两个栏目 ---------- */
.hf_cats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hf_cat { display: grid; grid-template-columns: 44% minmax(0, 1fr); background: #fff; border: 1px solid var(--hf-line); border-radius: 16px; overflow: hidden; min-height: 250px; transition: box-shadow .2s ease, border-color .2s ease; }
.hf_cat:hover { border-color: #BFDDD6; box-shadow: var(--zh-shadow-card-hover); }
.hf_cat_img { background-size: cover; background-position: center; transition: transform .5s ease; }
.hf_cat:hover .hf_cat_img { transform: scale(1.04); }
.hf_cat_body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; position: relative; background: #fff; min-width: 0; }
.hf_cat_ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--hf-mint); color: var(--hf-teal); font-size: 18px; }
.hf_cat_body strong { font-size: 21px; font-weight: 900; color: var(--hf-ink); }
.hf_cat_body em { font-style: normal; font-size: 13px; line-height: 1.75; color: var(--hf-muted); }
.hf_cat_list { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.hf_cat_list span { font-size: 13px; color: var(--hf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf_cat_list i { color: var(--hf-orange); margin-right: 6px; font-size: 11px; }
.hf_cat_more { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--hf-teal); border-top: 1px dashed var(--hf-line); }

/* ---------- ④ 平台介绍 ---------- */
.hf_about { display: grid; grid-template-columns: 460px 1fr; gap: 56px; align-items: center; background: #fff; border: 1px solid var(--hf-line); border-radius: 20px; padding: 34px 44px 34px 34px; }
.hf_about_img { position: relative; }
.hf_about_img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
.hf_about_img::before { content: ''; position: absolute; left: -12px; top: -12px; width: 120px; height: 120px; border-radius: 16px; background: var(--hf-mint); z-index: -1; }
.hf_about_badge {
    position: absolute; right: -22px; bottom: 26px; padding: 14px 18px; border-radius: 14px; background: var(--hf-orange); color: #fff;
    font-size: 13px; line-height: 1.6; box-shadow: 0 12px 26px rgba(240, 138, 36, .35);
}
.hf_about_badge b { font-size: 26px; font-weight: 900; margin-right: 4px; }
.hf_kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--hf-orange-soft); color: var(--hf-orange-d); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.hf_about_txt h2 { margin: 0 0 14px; font-size: 28px; font-weight: 900; color: var(--hf-ink); }
.hf_about_txt > p { margin: 0 0 18px; font-size: 15px; line-height: 1.95; color: var(--hf-text); }
.hf_about_pts { padding: 0; margin: 0 0 24px; }
.hf_about_pts li { list-style: none; display: flex; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--hf-line); }
.hf_about_pts i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--hf-mint); color: var(--hf-teal); font-size: 16px; }
.hf_about_pts span { font-size: 13.5px; color: var(--hf-muted); line-height: 1.7; }
.hf_about_pts b { display: block; font-size: 15px; color: var(--hf-ink); }
.hf_btn_teal { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 10px; background: var(--hf-teal); color: #fff; font-size: 15px; font-weight: 700; }
.hf_btn_teal:hover { background: var(--hf-teal-d); color: #fff; }

/* ---------- ⑤ 经纪服务商 ---------- */
.hf_agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hf_agent { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--hf-line); border-radius: 14px; transition: border-color .2s ease, transform .2s ease; }
.hf_agent:hover { border-color: #BFDDD6; transform: translateY(-3px); }
.hf_agent_ava { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--hf-teal) 0%, var(--hf-teal-2) 100%); color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 0 0 4px var(--hf-mint); }
.hf_agent_txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hf_agent_txt strong { font-size: 17px; color: var(--hf-ink); }
.hf_agent_txt strong i { color: var(--hf-teal); font-size: 13px; margin-left: 4px; }
.hf_agent_txt em { font-style: normal; font-size: 13px; line-height: 1.7; color: var(--hf-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hf_agent_txt > span { font-size: 12.5px; color: var(--hf-text); }
.hf_agent_txt > span i { color: var(--hf-orange); }

/* ---------- ⑥ 看房流程 ---------- */
.hf_flow { background: linear-gradient(120deg, #0B3B37 0%, #0F6E66 100%); border-radius: 20px; padding: 34px 40px 28px; color: #CFE6E1; }
.hf_flow_hd h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; color: #fff; }
.hf_flow_hd p { margin: 0 0 26px; font-size: 14px; }
.hf_flow ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; counter-reset: hfstep; }
.hf_flow li { list-style: none; position: relative; padding: 20px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); counter-increment: hfstep; }
.hf_flow li::after { content: '0' counter(hfstep); position: absolute; right: 16px; top: 12px; font-size: 26px; font-weight: 900; color: rgba(255, 255, 255, .12); }
.hf_flow li i { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--hf-orange); color: #fff; font-size: 17px; margin-bottom: 12px; }
.hf_flow li b { display: block; font-size: 16px; color: #fff; margin-bottom: 4px; }
.hf_flow li span { font-size: 13px; line-height: 1.7; color: #A9CDC6; }
.hf_flow_tip { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; background: rgba(240, 138, 36, .14); color: #FFD7AE; font-size: 13px; }
.hf_flow_tip i { margin-right: 6px; }

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 1100px) {
    .hf_about { grid-template-columns: 1fr; padding: 24px; }
    .hf_about_img { max-width: 460px; }
    .hf_agents { grid-template-columns: 1fr 1fr; }
    .hf_stats { flex-wrap: wrap; }
}
@media (max-width: 860px) {
    .hf_hero h1 { font-size: 32px; }
    .hf_cats, .hf_agents { grid-template-columns: 1fr; }
    .hf_cat { grid-template-columns: 1fr; }
    .hf_cat_img { min-height: 180px; }
    .hf_flow ol { grid-template-columns: 1fr 1fr; }
    .hf_hd { flex-direction: column; align-items: flex-start; }
}
