/* ============================================
   layout.css — 华睿欣能商城 公共头部 / 底部
   头部：通透浅蓝顶栏 + 白底品牌行(logo·大搜索·账户购物车) + 白底sticky导航行(蓝下划线，无满宽色条)
   底部：浅蓝保障条 + 深藏蓝主页脚(含蓝青招商带) + 版权
   配色：科技蓝 #EA6601 + 青 teal #F5A623 + 深藏蓝 #3D3737 + 浅天蓝底 #FFF8F1
   类名前缀：hr_ （交互 ID 沿用 xy_hd_bar / zh_mb_* / xy_msearch / zh_feedback_btn 不变）
   ============================================ */

.hr_hd { position: relative; z-index: 1000; background: #fff; }

/* ============================================
   ① 顶部细条 —— 浅蓝通透
   ============================================ */
.hr_top { background: var(--hr-sky-2); color: var(--hr-ink-2); font-size: 12.5px; border-bottom: 1px solid var(--hr-line); }
.hr_top_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hr_top_l { display: flex; align-items: center; gap: 22px; min-width: 0; overflow: hidden; flex: 1; }
.hr_top_ann { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr_top_ann i { color: var(--hr-teal-deep); }
.hr_top_r { display: flex; align-items: center; flex-shrink: 0; }
.hr_top_r a, .hr_top_tel { padding: 0 13px; color: var(--hr-ink-2); position: relative; white-space: nowrap; line-height: 1; }
.hr_top_tel { display: inline-flex; align-items: center; gap: 6px; }
.hr_top_tel strong { color: var(--hr-blue-deep); font-weight: 700; letter-spacing: .3px; }
.hr_top_r a { transition: color .18s; }
.hr_top_r a + a::before, .hr_top_tel + a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 11px; background: var(--hr-line); }
.hr_top_r a:hover { color: var(--hr-blue); }
.hr_top_r a i { margin-right: 5px; opacity: .85; color: var(--hr-blue); }
.hr_top_r a.hr_top_join { color: #fff; background: var(--hr-grad-blue-teal); border-radius: 999px; padding: 4px 16px; margin-left: 14px; font-weight: 700; box-shadow: 0 3px 10px rgba(234,102,1,.3); }
.hr_top_r a.hr_top_join::before { display: none; }
.hr_top_r a.hr_top_join:hover { color: #fff; filter: brightness(1.08); }
.hr_top_r a.hr_top_join i { opacity: 1; color: #fff; }

/* ============================================
   ② 品牌行 —— 白底：logo + 大搜索 + 客服·账户·购物车
   ============================================ */
.hr_main { background: #fff; position: relative; }
.hr_main::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 97% -50%, rgba(245,166,35,.10) 0%, transparent 42%),
        radial-gradient(circle at 2% 150%, rgba(234,102,1,.08) 0%, transparent 40%);
}
.hr_main_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 92px; display: flex; align-items: center; gap: 30px; position: relative; z-index: 1; }

.hr_logo { flex: 0 0 auto; display: block; }
.hr_logo img { height: 50px; width: auto; display: block; }

.hr_burger { display: none; width: 42px; height: 42px; border: none; background: var(--hr-blue-tint); color: var(--hr-blue-deep); border-radius: 12px; font-size: 18px; align-items: center; justify-content: center; flex: 0 0 auto; }

/* 搜索（pill，蓝实心按钮） */
.hr_search { flex: 1 1 auto; max-width: 600px; position: relative; display: flex; align-items: stretch; height: 48px; border: 2px solid var(--hr-blue); border-radius: 999px; background: #fff; transition: box-shadow .2s; }
.hr_search:focus-within { box-shadow: 0 0 0 4px rgba(234,102,1,.14); }
.hr_search input { flex: 1; border: none; outline: none; background: transparent; padding: 0 8px 0 22px; font-size: 14px; color: var(--hr-ink); font-family: inherit; min-width: 0; }
.hr_search input::placeholder { color: var(--hr-ink-3); }
.hr_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: 14.5px; font-weight: 700; letter-spacing: 1px; margin: 3px; border-radius: 999px; transition: filter .2s; }
.hr_search button:hover { filter: brightness(1.07); }
.hr_search button i { font-size: 15px; }
.hr_search_hot { position: absolute; top: calc(100% + 8px); left: 18px; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--hr-ink-3); white-space: nowrap; }
.hr_search_hot a { color: var(--hr-ink-2); transition: color .18s; }
.hr_search_hot a:hover { color: var(--hr-blue); }

/* 右侧 —— 客服热线 chip + 账户 + 购物车 */
.hr_main_r { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hr_hot { display: inline-flex; align-items: center; gap: 11px; padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--hr-sky); }
.hr_hot_ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: var(--hr-grad-blue-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: var(--hr-shadow-blue); }
.hr_hot_tx { display: flex; flex-direction: column; line-height: 1.25; }
.hr_hot_tx small { font-size: 11px; color: var(--hr-ink-3); }
.hr_hot_tx strong { font-size: 16px; color: var(--hr-blue-deep); font-weight: 700; letter-spacing: .3px; }
.hr_act { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--hr-blue-tint); color: var(--hr-blue-deep); font-size: 13px; font-weight: 600; line-height: 1; transition: all .2s; }
.hr_act i { color: var(--hr-blue); font-size: 14px; transition: color .2s; }
.hr_act:hover { background: var(--hr-blue); color: #fff; }
.hr_act:hover i { color: #fff; }
.hr_cart { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 18px; border-radius: 999px; background: var(--hr-grad-blue-teal); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: var(--hr-shadow-blue); transition: all .2s; }
.hr_cart i { color: #fff; font-size: 15px; }
.hr_cart:hover { color: #fff; filter: brightness(1.08); }
.hr_cart_badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; background: var(--hr-teal-bright); color: var(--hr-navy); border-radius: 20px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; line-height: 1; font-style: normal; }
.hr_msearch { display: none; width: 42px; height: 42px; border: none; background: var(--hr-blue-tint); color: var(--hr-blue-deep); border-radius: 12px; font-size: 16px; align-items: center; justify-content: center; }

/* ============================================
   ③ 导航行 —— 白底 sticky，蓝下划线（无满宽色条）
   ============================================ */
.hr_nav { position: sticky; top: 0; z-index: 900; background: #fff; border-top: 1px solid var(--hr-line); border-bottom: 1px solid var(--hr-line); transition: box-shadow .25s; }
.hr_nav.is_stuck { box-shadow: 0 6px 22px rgba(61,55,55,.09); }
.hr_nav_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 50px; display: flex; align-items: center; gap: 8px; position: relative; }

/* 全部分类 —— 蓝青 pill 按钮 + Mega */
.hr_allcat { position: relative; flex: 0 0 auto; align-self: center; }
.hr_allcat_btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border: none; cursor: pointer; background: var(--hr-grad-blue-teal); color: #fff; font-size: 14.5px; font-weight: 700; font-family: inherit; border-radius: 999px; box-shadow: var(--hr-shadow-blue); }
.hr_allcat_btn > i:first-child { font-size: 14px; }
.hr_allcat_btn .hr_allcat_ar { font-size: 11px; transition: transform .25s; opacity: .85; }
.hr_allcat:hover .hr_allcat_btn .hr_allcat_ar { transform: rotate(180deg); }
.hr_mega { position: absolute; top: calc(100% + 10px); left: 0; width: min(940px, 92vw); background: #fff; border: 1px solid var(--hr-line); border-radius: 16px; box-shadow: var(--hr-shadow-lg); padding: 22px; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.hr_allcat:hover .hr_mega { opacity: 1; visibility: visible; transform: translateY(0); }
.hr_mega_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 22px; }
.hr_mega_col { padding: 4px 0; }
.hr_mega_head { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--hr-blue-deep); padding-bottom: 8px; margin-bottom: 7px; border-bottom: 1px dashed var(--hr-line); }
.hr_mega_head i { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: var(--hr-blue-tint); color: var(--hr-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.hr_mega_head:hover { color: var(--hr-teal-deep); }
.hr_mega_subs { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.hr_mega_subs a { font-size: 12.5px; color: var(--hr-ink-2); padding: 3px 10px; border-radius: 999px; background: var(--hr-sky-2); transition: all .18s; }
.hr_mega_subs a:hover { background: var(--hr-blue-tint); color: var(--hr-blue-deep); }
.hr_mega_all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hr-line); color: var(--hr-blue); font-size: 13.5px; font-weight: 700; }
.hr_mega_all:hover { color: var(--hr-teal-deep); }
.hr_mega_all i { transition: transform .2s; }
.hr_mega_all:hover i { transform: translateX(4px); }

/* 横排导航（蓝下划线） */
.hr_nav_menu { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow: hidden; padding-left: 8px; }
.hr_nav_menu > a { display: inline-flex; align-items: center; padding: 0 18px; height: 50px; line-height: 50px; color: var(--hr-ink); font-size: 15px; font-weight: 500; position: relative; white-space: nowrap; transition: color .2s; }
.hr_nav_menu > a::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 3px; border-radius: 3px; background: var(--hr-grad-blue-teal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.hr_nav_menu > a:hover { color: var(--hr-blue); }
.hr_nav_menu > a.active { color: var(--hr-blue-deep); font-weight: 700; }
.hr_nav_menu > a:hover::after, .hr_nav_menu > a.active::after { transform: scaleX(1); }

/* 商家入驻按钮（导航行右端） —— 蓝描边 pill */
.hr_nav_cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--hr-blue); color: var(--hr-blue-deep); font-size: 13px; font-weight: 700; transition: all .2s; }
.hr_nav_cta i { color: var(--hr-blue); transition: color .2s; }
.hr_nav_cta:hover { background: var(--hr-grad-blue-teal); border-color: transparent; color: #fff; }
.hr_nav_cta:hover i { color: #fff; }

/* ============================================
   公共底部
   ============================================ */

/* ① 服务保障条 —— 浅蓝底 + 蓝/青圆标 */
.hr_ft_assure { background: linear-gradient(180deg, var(--hr-sky) 0%, #fff 100%); border-top: 1px solid var(--hr-line); }
.hr_ft_assure_in { max-width: 1280px; margin: 0 auto; padding: 30px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hr_ft_assure_item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.hr_ft_assure_ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; 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_ft_assure_item:nth-child(even) .hr_ft_assure_ic { background: var(--hr-teal-tint); color: var(--hr-teal-deep); }
.hr_ft_assure_item:hover .hr_ft_assure_ic { background: var(--hr-grad-blue-teal); color: #fff; }
.hr_ft_assure_tx { display: flex; flex-direction: column; line-height: 1.4; }
.hr_ft_assure_tx strong { font-size: 15px; color: var(--hr-blue-deep); font-weight: 700; }
.hr_ft_assure_tx small { font-size: 12px; color: var(--hr-ink-3); }

/* ② 主页脚 —— 深藏蓝 */
.hr_ft_main { background: var(--hr-grad-navy); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.hr_ft_main::before { content: '\f109'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: -20px; bottom: -30px; font-size: 210px; color: rgba(255,200,92,.05); pointer-events: none; line-height: 1; }

/* 蓝青招商细带 */
.hr_ft_cta { background: var(--hr-grad-blue-teal); position: relative; z-index: 1; overflow: hidden; }
.hr_ft_cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 30%, rgba(255,255,255,.2) 0%, transparent 45%); pointer-events: none; }
.hr_ft_cta_in { max-width: 1280px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.hr_ft_cta_tx { display: flex; align-items: center; gap: 16px; }
.hr_ft_cta_tx > i { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; background: rgba(255,255,255,.18); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.hr_ft_cta_txt { display: flex; flex-direction: column; gap: 3px; }
.hr_ft_cta_txt strong { font-size: 18px; color: #fff; font-weight: 700; }
.hr_ft_cta_txt span { font-size: 13px; color: rgba(255,255,255,.9); }
.hr_ft_cta_btns { display: flex; gap: 12px; flex-shrink: 0; }
.hr_ft_cta_main, .hr_ft_cta_ghost { display: inline-flex; align-items: center; gap: 7px; padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: all .2s; }
.hr_ft_cta_main { background: #fff; color: var(--hr-blue-deep); }
.hr_ft_cta_main:hover { color: var(--hr-blue-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hr_ft_cta_ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.hr_ft_cta_ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

.hr_ft_main_in { max-width: 1280px; margin: 0 auto; padding: 50px 20px 42px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; position: relative; z-index: 1; }
.hr_ft_logo { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.hr_ft_logo img { height: 44px; width: auto; display: block; }
.hr_ft_desc { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.56); margin-bottom: 22px; max-width: 460px; }
.hr_ft_hot { display: inline-flex; align-items: center; gap: 12px; }
.hr_ft_hot_ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: rgba(255,200,92,.12); color: var(--hr-teal-bright); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid rgba(255,200,92,.28); }
.hr_ft_hot_tx { display: flex; flex-direction: column; line-height: 1.3; }
.hr_ft_hot_tx small { font-size: 11.5px; color: rgba(255,255,255,.5); }
.hr_ft_hot_tx strong { font-size: 20px; color: #fff; font-weight: 700; letter-spacing: .5px; }

.hr_ft_cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hr_ft_col h4 { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.hr_ft_col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--hr-teal-bright); }
.hr_ft_col ul { display: flex; flex-direction: column; gap: 11px; }
.hr_ft_col li a, .hr_ft_col li .hr_ft_li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); transition: color .18s; }
.hr_ft_col li a i, .hr_ft_col li .hr_ft_li i { font-size: 11px; color: rgba(255,255,255,.36); }
.hr_ft_col li a:hover { color: #fff; }
.hr_ft_col li a:hover i { color: var(--hr-teal-bright); }

/* ③ 版权区 */
.hr_ft_copy { background: var(--hr-navy-deep); color: rgba(255,255,255,.48); font-size: 12.5px; }
.hr_ft_copy_in { max-width: 1280px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.hr_ft_copy_in a { color: rgba(255,255,255,.48); transition: color .18s; }
.hr_ft_copy_in a:hover { color: var(--hr-teal-bright); }
.hr_ft_copy_pwd { color: rgba(255,255,255,.3); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
    .hr_nav { display: none; }
    .hr_search { display: none; }
    .hr_hot { display: none; }
    .hr_act { display: none; }
    .hr_burger { display: inline-flex; }
    .hr_msearch { display: inline-flex; }
    .hr_main_in { height: 66px; gap: 12px; }
    .hr_logo img { height: 40px; }
    .hr_top_ann { font-size: 12px; }
    .hr_ft_main_in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .hr_top_r a:not(.hr_top_join):not(#zh_feedback_btn), .hr_top_tel { display: none; }
    .hr_ft_assure_in { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .hr_ft_cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .hr_ft_cta_in { flex-direction: column; align-items: flex-start; }
    .hr_ft_cta_btns { width: 100%; }
    .hr_ft_cta_main, .hr_ft_cta_ghost { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
    .hr_top_in { padding: 0 14px; }
    .hr_main_in { padding: 0 14px; gap: 10px; }
    .hr_logo img { height: 38px; }
    .hr_cart span { display: none; }
    .hr_cart { padding: 10px 14px; }
    .hr_ft_cols { grid-template-columns: 1fr; }
    .hr_ft_assure_item { justify-content: flex-start; }
}
