/* ============================================
   home.css — 华睿欣能商城 首页
   板块：Hero → 信任条 → 分类速览 → Bento精选(不规则) → 热门榜+推荐 → 入驻商家
   风格：多推荐/热门/不规则展示，业务文字克制
   配色：科技蓝 #EA6601 + 青 teal #F5A623 + 深藏蓝 #3D3737 + 浅天蓝底
   类名前缀：hr_h_
   ============================================ */

.hr_h_home { background: var(--hr-sky); }
.hr_h_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.hr_h_sec { padding: 54px 0; }

/* 区块标题 */
.hr_h_head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.hr_h_head_l { min-width: 0; }
.hr_h_eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; color: var(--hr-teal-deep); margin-bottom: 8px; }
.hr_h_title { font-size: 28px; font-weight: 800; color: var(--hr-navy); line-height: 1.25; }
.hr_h_title span { color: var(--hr-blue); }
.hr_h_title em { font-style: normal; color: var(--hr-teal-deep); }
.hr_h_sub { font-size: 13.5px; color: var(--hr-ink-2); margin-top: 6px; }
.hr_h_more { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--hr-blue); padding-bottom: 6px; }
.hr_h_more i { transition: transform .2s; }
.hr_h_more:hover { color: var(--hr-teal-deep); }
.hr_h_more:hover i { transform: translateX(4px); }

/* ============================================
   ① Hero —— banner 大图 + 左浮层
   ============================================ */
.hr_h_hero { position: relative; background: var(--hr-sky); overflow: hidden; }
.hr_h_hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hr-hero-bg); background-size: cover; background-position: center right; }
.hr_h_hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,248,241,.97) 0%, rgba(255,248,241,.9) 30%, rgba(255,248,241,.5) 55%, rgba(255,248,241,0) 78%); }
.hr_h_hero_in { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 64px 20px 70px; }
.hr_h_hero_c { max-width: 560px; }
.hr_h_hero_eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--hr-blue-deep); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; box-shadow: var(--hr-shadow-sm); margin-bottom: 20px; }
.hr_h_hero_eyebrow i { color: var(--hr-teal-deep); }
.hr_h_hero_title { font-size: 46px; font-weight: 900; color: var(--hr-navy); line-height: 1.12; letter-spacing: 1px; }
.hr_h_hero_title span { color: var(--hr-blue); }
.hr_h_hero_slogan { font-size: 19px; font-weight: 700; color: var(--hr-teal-deep); margin-top: 12px; letter-spacing: .5px; }
.hr_h_hero_desc { font-size: 14.5px; line-height: 1.85; color: var(--hr-ink-2); margin-top: 14px; max-width: 500px; }
.hr_h_hero_search { display: flex; align-items: stretch; height: 52px; max-width: 500px; margin-top: 26px; background: #fff; border: 2px solid var(--hr-blue); border-radius: 999px; box-shadow: var(--hr-shadow); overflow: hidden; }
.hr_h_hero_search input { flex: 1; border: none; outline: none; background: transparent; padding: 0 10px 0 24px; font-size: 14.5px; color: var(--hr-ink); font-family: inherit; min-width: 0; }
.hr_h_hero_search input::placeholder { color: var(--hr-ink-3); }
.hr_h_hero_search button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; border: none; cursor: pointer; background: var(--hr-grad-blue); color: #fff; font-size: 15px; font-weight: 700; transition: filter .2s; }
.hr_h_hero_search button:hover { filter: brightness(1.06); }
.hr_h_hero_hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; font-size: 13px; }
.hr_h_hero_hot > span { color: var(--hr-ink-3); }
.hr_h_hero_hot a { color: var(--hr-ink-2); padding: 3px 12px; background: rgba(255,255,255,.75); border-radius: 999px; transition: all .18s; }
.hr_h_hero_hot a:hover { background: var(--hr-blue); color: #fff; }
.hr_h_hero_stats { display: flex; gap: 36px; margin-top: 32px; }
.hr_h_hero_stat b { display: flex; align-items: baseline; font-size: 32px; font-weight: 900; color: var(--hr-navy); line-height: 1; }
.hr_h_hero_stat b i { font-size: 17px; color: var(--hr-teal-deep); font-style: normal; margin-left: 2px; }
.hr_h_hero_stat span { font-size: 13px; color: var(--hr-ink-2); }

/* ============================================
   ② 信任条（极简）
   ============================================ */
.hr_h_trust { background: #fff; border-top: 1px solid var(--hr-line); border-bottom: 1px solid var(--hr-line); }
.hr_h_trust_in { max-width: 1280px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hr_h_trust_item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.hr_h_trust_item > i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--hr-blue-tint); color: var(--hr-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.hr_h_trust_item:nth-child(even) > i { background: var(--hr-teal-tint); color: var(--hr-teal-deep); }
.hr_h_trust_tx b { display: block; font-size: 14px; color: var(--hr-ink); font-weight: 700; }
.hr_h_trust_tx span { font-size: 12px; color: var(--hr-ink-3); }

/* ============================================
   ③ 分类速览
   ============================================ */
.hr_h_cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hr_h_cat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); transition: all .22s; }
.hr_h_cat:hover { border-color: var(--hr-blue); transform: translateY(-3px); box-shadow: var(--hr-shadow); }
.hr_h_cat_ic { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; background: var(--hr-blue-tint); color: var(--hr-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; transition: all .22s; }
.hr_h_cat:nth-child(even) .hr_h_cat_ic { background: var(--hr-teal-tint); color: var(--hr-teal-deep); }
.hr_h_cat:hover .hr_h_cat_ic { background: var(--hr-grad-blue-teal); color: #fff; }
.hr_h_cat_tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hr_h_cat_tx strong { font-size: 15px; font-weight: 700; color: var(--hr-ink); }
.hr_h_cat_tx small { font-size: 12px; color: var(--hr-ink-3); }

/* ============================================
   ④ Bento 精选（不规则）
   ============================================ */
.hr_h_bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }

/* 大促 tile（2×2，banner2 图 + 文案） */
.hr_h_bento_promo { grid-column: span 2; grid-row: span 2; position: relative; border-radius: var(--hr-radius-lg); overflow: hidden; background: var(--hr-grad-blue-teal); color: #fff; padding: 30px; display: flex; flex-direction: column; }
.hr_h_bento_promo::after { content: ''; position: absolute; right: -30px; top: -30px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%); }
.hr_h_bento_promo_img { position: absolute; right: 10px; bottom: 8px; width: 62%; max-width: 300px; border-radius: 16px; box-shadow: 0 12px 30px rgba(42,38,38,.28); z-index: 1; }
.hr_h_bento_promo_eyebrow { position: relative; z-index: 2; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.9); }
.hr_h_bento_promo h3 { position: relative; z-index: 2; font-size: 26px; font-weight: 800; line-height: 1.3; margin-top: 12px; max-width: 62%; }
.hr_h_bento_promo p { position: relative; z-index: 2; font-size: 13.5px; color: rgba(255,255,255,.9); margin-top: 10px; max-width: 55%; line-height: 1.7; }
.hr_h_bento_promo_btn { position: relative; z-index: 2; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 999px; background: #fff; color: var(--hr-blue-deep); font-size: 14px; font-weight: 700; transition: all .2s; }
.hr_h_bento_promo_btn:hover { color: var(--hr-blue-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42,38,38,.28); }
.hr_h_bento_promo_btn i { transition: transform .2s; }
.hr_h_bento_promo_btn:hover i { transform: translateX(4px); }

/* 商品 tile（1×1） */
.hr_h_btile { grid-column: span 1; grid-row: span 1; position: relative; background: #fff; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); overflow: hidden; display: flex; flex-direction: column; transition: all .22s; }
.hr_h_btile:hover { border-color: var(--hr-blue); box-shadow: var(--hr-shadow-lg); transform: translateY(-3px); }
.hr_h_btile_tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.hr_h_btile_tag_new { background: var(--hr-blue); }
.hr_h_btile_tag_hot { background: var(--hr-grad-blue-teal); }
.hr_h_btile_tag_sale { background: var(--hr-teal-deep); }
.hr_h_btile_img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; background: #fff; }
.hr_h_btile_img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s; }
.hr_h_btile:hover .hr_h_btile_img img { transform: scale(1.06); }
.hr_h_btile_ft { padding: 9px 14px 12px; border-top: 1px solid var(--hr-line-soft); }
.hr_h_btile_name { font-size: 13px; color: var(--hr-ink); line-height: 1.4; height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr_h_btile:hover .hr_h_btile_name { color: var(--hr-blue); }
.hr_h_btile_price { font-size: 16px; font-weight: 800; color: var(--hr-teal-deep); margin-top: 4px; font-family: Arial, sans-serif; }
.hr_h_btile_price::before { content: '¥'; font-size: 12px; margin-right: 1px; }

/* 查看更多 tile */
.hr_h_bento_more { grid-column: span 1; grid-row: span 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--hr-blue-tint); border: 1px dashed var(--hr-blue-soft); border-radius: var(--hr-radius); color: var(--hr-blue-deep); font-weight: 700; font-size: 14px; transition: all .22s; }
.hr_h_bento_more i { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--hr-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: var(--hr-shadow-sm); transition: all .22s; }
.hr_h_bento_more:hover { background: var(--hr-grad-blue-teal); border-color: transparent; color: #fff; }
.hr_h_bento_more:hover i { transform: translateX(3px); }

.hr_h_empty { grid-column: 1 / -1; text-align: center; padding: 54px 20px; background: #fff; border: 1px dashed var(--hr-line); border-radius: var(--hr-radius-lg); color: var(--hr-ink-3); }
.hr_h_empty i { font-size: 40px; color: var(--hr-blue-soft); margin-bottom: 14px; }
.hr_h_empty h3 { font-size: 17px; color: var(--hr-ink); margin-bottom: 6px; }

/* ============================================
   ⑤ 热门榜 + 推荐
   ============================================ */
.hr_h_hot_wrap { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: stretch; }
.hr_h_hotcol { display: flex; flex-direction: column; gap: 16px; }
.hr_h_rank { background: #fff; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-lg); overflow: hidden; }
/* 热门榜下方入驻卡：flex-grow 填满左列，与右侧推荐等高 */
.hr_h_rank_cta { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 150px; padding: 26px 22px; border-radius: var(--hr-radius-lg); background: var(--hr-grad-blue-teal); color: #fff; position: relative; overflow: hidden; }
.hr_h_rank_cta::before { content: ''; position: absolute; right: -30px; top: -30px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%); }
.hr_h_rank_cta_ic { width: 50px; height: 50px; border-radius: 15px; background: rgba(255,255,255,.18); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; position: relative; z-index: 1; }
.hr_h_rank_cta strong { font-size: 17px; font-weight: 800; position: relative; z-index: 1; }
.hr_h_rank_cta p { font-size: 12.5px; color: rgba(255,255,255,.88); line-height: 1.7; position: relative; z-index: 1; }
.hr_h_rank_cta a { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 10px 22px; border-radius: 999px; background: #fff; color: var(--hr-blue-deep); font-size: 13.5px; font-weight: 700; transition: all .2s; position: relative; z-index: 1; }
.hr_h_rank_cta a:hover { color: var(--hr-blue-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42,38,38,.28); }
.hr_h_rank_cta a i { transition: transform .2s; }
.hr_h_rank_cta a:hover i { transform: translateX(3px); }
.hr_h_rank_hd { background: var(--hr-grad-navy); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 11px; }
.hr_h_rank_hd i { color: var(--hr-teal-bright); font-size: 19px; }
.hr_h_rank_hd strong { font-size: 17px; font-weight: 800; }
.hr_h_rank_hd small { font-size: 12px; color: rgba(255,255,255,.6); margin-left: auto; }
.hr_h_rank_list { padding: 8px; }
.hr_h_rank_item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; transition: background .18s; }
.hr_h_rank_item:hover { background: var(--hr-sky); }
.hr_h_rank_no { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--hr-ink-3); font-family: Arial, sans-serif; }
.hr_h_rank_item:nth-child(1) .hr_h_rank_no { background: var(--hr-grad-blue-teal); }
.hr_h_rank_item:nth-child(2) .hr_h_rank_no { background: var(--hr-blue); }
.hr_h_rank_item:nth-child(3) .hr_h_rank_no { background: var(--hr-teal-deep); }
.hr_h_rank_thumb { width: 50px; height: 50px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--hr-sky); display: flex; align-items: center; justify-content: center; }
.hr_h_rank_thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hr_h_rank_tx { flex: 1; min-width: 0; }
.hr_h_rank_name { font-size: 13px; color: var(--hr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr_h_rank_item:hover .hr_h_rank_name { color: var(--hr-blue); }
.hr_h_rank_meta { font-size: 11.5px; color: var(--hr-ink-3); margin-top: 2px; }
.hr_h_rank_meta i { color: var(--hr-teal-deep); margin-right: 3px; }
.hr_h_rank_price { font-size: 14px; font-weight: 800; color: var(--hr-teal-deep); flex-shrink: 0; font-family: Arial, sans-serif; }
.hr_h_rank_price::before { content: '¥'; font-size: 11px; }
.hr_h_rec_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: start; }

/* ============================================
   ⑥ 栏目专区（各分类商品循环）
   ============================================ */
.hr_h_zone_head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 20px 24px; border-radius: var(--hr-radius-lg); background: linear-gradient(120deg, var(--hr-blue-tint) 0%, rgba(234,242,255,.4) 100%); border: 1px solid var(--hr-line); }
.hr_h_zone_head_dark { background: var(--hr-grad-navy); border-color: transparent; }
.hr_h_zone_ic { width: 54px; height: 54px; flex-shrink: 0; border-radius: 15px; background: var(--hr-grad-blue-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.hr_h_zone_head_dark .hr_h_zone_ic { background: rgba(255,200,92,.16); color: var(--hr-teal-bright); }
.hr_h_zone_tt { flex: 1; min-width: 0; }
.hr_h_zone_tt h3 { font-size: 22px; font-weight: 800; color: var(--hr-blue-deep); }
.hr_h_zone_tt p { font-size: 13px; color: var(--hr-ink-2); margin-top: 3px; }
.hr_h_zone_head_dark .hr_h_zone_tt h3 { color: #fff; }
.hr_h_zone_head_dark .hr_h_zone_tt p { color: rgba(255,255,255,.72); }
.hr_h_zone_more { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--hr-line); font-size: 13px; font-weight: 600; color: var(--hr-blue-deep); transition: all .2s; }
.hr_h_zone_more:hover { background: var(--hr-grad-blue-teal); color: #fff; border-color: transparent; }
.hr_h_zone_head_dark .hr_h_zone_more { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.hr_h_zone_head_dark .hr_h_zone_more:hover { background: var(--hr-grad-blue-teal); border-color: transparent; }
.hr_h_zone_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }

/* ============================================
   ⑦ 入驻商家
   ============================================ */
.hr_h_merch_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.hr_h_mcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px 18px; background: #fff; border: 1px solid var(--hr-line); border-radius: var(--hr-radius-lg); transition: all .22s; }
.hr_h_mcard:hover { transform: translateY(-4px); box-shadow: var(--hr-shadow-lg); border-color: transparent; }
.hr_h_mcard_logo { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--hr-blue-tint); color: var(--hr-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.hr_h_mcard_logo img { width: 100%; height: 100%; object-fit: cover; }
.hr_h_mcard_name { font-size: 14.5px; font-weight: 700; color: var(--hr-ink); margin-bottom: 9px; }
.hr_h_mcard_meta { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; color: var(--hr-ink-2); margin-bottom: 12px; }
.hr_h_mcard_badge { display: inline-flex; align-items: center; gap: 4px; color: var(--hr-teal-deep); font-weight: 600; }
.hr_h_mcard_btn { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13px; font-weight: 600; color: var(--hr-blue-deep); transition: all .2s; }
.hr_h_mcard:hover .hr_h_mcard_btn { color: var(--hr-teal-deep); }
.hr_h_mcard_join { background: var(--hr-blue-tint); border-style: dashed; border-color: var(--hr-blue-soft); justify-content: center; }
.hr_h_mcard_join .hr_h_mcard_logo { background: #fff; color: var(--hr-blue); }
.hr_h_mcard_join .hr_h_mcard_meta { color: var(--hr-ink-3); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1100px) {
    .hr_h_hot_wrap { grid-template-columns: 320px 1fr; }
    .hr_h_rec_grid { grid-template-columns: repeat(2, 1fr); }
    .hr_h_merch_grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .hr_h_hero_title { font-size: 38px; }
    .hr_h_cats { grid-template-columns: repeat(2, 1fr); }
    .hr_h_bento { grid-auto-rows: 180px; }
    .hr_h_hot_wrap { grid-template-columns: 1fr; }
    .hr_h_rec_grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .hr_h_sec { padding: 40px 0; }
    .hr_h_title { font-size: 24px; }
    .hr_h_hero_in { padding: 46px 20px 50px; }
    .hr_h_hero_title { font-size: 32px; }
    .hr_h_hero::after { background: linear-gradient(100deg, rgba(255,248,241,.97) 0%, rgba(255,248,241,.92) 54%, rgba(255,248,241,.6) 80%, rgba(255,248,241,.34) 100%); }
    .hr_h_hero_stats { gap: 24px; }
    .hr_h_trust_in { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .hr_h_bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
    .hr_h_bento_promo { grid-column: span 2; }
    .hr_h_bento_promo h3, .hr_h_bento_promo p { max-width: 100%; }
    .hr_h_rec_grid { grid-template-columns: repeat(2, 1fr); }
    .hr_h_merch_grid { grid-template-columns: repeat(2, 1fr); }
    .hr_h_head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .hr_h_hero_title { font-size: 27px; }
    .hr_h_hero_search { height: 48px; }
    .hr_h_hero_search button span { display: none; }
    .hr_h_cats { grid-template-columns: 1fr; }
    .hr_h_bento_promo_img { width: 48%; }
    .hr_h_rec_grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
