/* ============================================
   layout.css — 在场花坊信息发布平台 公共头部 / 底部（新版）
   头部：居中精品店式（顶部细条 + 居中 logo 主行 + 居中 sticky 导航）
   底部：三段式（服务保障条 + 深橄榄绿主页脚含玫瑰粉招商带 + 版权）
   配色：橄榄绿 #5E6B45 + 玫瑰粉 #C15C6E + 奶油米 #FBF7F1 + 米金 #C9A96A
   类名前缀：hf_
   ============================================ */

/* ============================================
   公共头部 hf_hd
   ============================================ */
.hf_hd { position: relative; z-index: 1000; background: #fff; }

/* ① 顶部细条 —— 奶油米 + 下边线 */
.hf_top {
    background: var(--hf-cream);
    border-bottom: 1px solid var(--hf-line);
    font-size: 12.5px;
    color: var(--hf-ink-2);
}
.hf_top_in {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.hf_top_l { display: flex; align-items: center; gap: 22px; min-width: 0; overflow: hidden; flex: 1; }
.hf_top_l span {
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hf_top_l i { color: var(--hf-sage); }
.hf_top_tel strong { color: var(--hf-olive-deep); font-weight: 700; letter-spacing: .3px; }

.hf_top_r { display: flex; align-items: center; flex-shrink: 0; }
.hf_top_r a {
    padding: 0 12px; color: var(--hf-ink-2);
    position: relative; white-space: nowrap; line-height: 1; transition: color .18s;
}
.hf_top_r a + a::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 11px; background: var(--hf-line);
}
.hf_top_r a:hover { color: var(--hf-olive); }
.hf_top_r a i { margin-right: 5px; opacity: .8; }
.hf_top_r a.hf_top_join {
    color: #fff; background: var(--hf-grad-rose); border-radius: 999px;
    padding: 5px 16px; margin-left: 12px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(193,92,110,.28);
}
.hf_top_r a.hf_top_join::before { display: none; }
.hf_top_r a.hf_top_join:hover { color: #fff; filter: brightness(1.06); }
.hf_top_r a.hf_top_join i { opacity: 1; margin-right: 5px; }

/* ② 主行 —— 居中 logo，两侧对称 */
.hf_main {
    background: #fff;
    border-bottom: 1px solid var(--hf-line);
    position: relative;
}
/* 主行淡淡的花艺底纹（左右柔粉/柔绿光晕） */
.hf_main::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 8% 120%, rgba(243,210,214,.35) 0%, transparent 42%),
        radial-gradient(circle at 92% -20%, rgba(180,194,154,.28) 0%, transparent 42%);
    pointer-events: none;
}
.hf_main_in {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.hf_main_l { flex: 1 1 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.hf_main_r { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* logo 居中 */
.hf_logo { flex: 0 0 auto; display: block; text-align: center; }
.hf_logo img { height: 64px; width: auto; display: block; }

/* 搜索（桌面 pill） */
.hf_search {
    display: flex; align-items: stretch;
    width: 100%; max-width: 320px; height: 44px;
    border: 1.5px solid var(--hf-sage-soft);
    border-radius: 999px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.hf_search:focus-within { border-color: var(--hf-olive); box-shadow: 0 0 0 4px rgba(140,160,110,.15); }
.hf_search input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 0 6px 0 20px; font-size: 13.5px; color: var(--hf-ink);
    font-family: inherit; min-width: 0;
}
.hf_search input::placeholder { color: var(--hf-ink-3); }
.hf_search button {
    flex-shrink: 0; width: 48px; border: none; cursor: pointer;
    background: var(--hf-grad-olive); color: #fff; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 3px; border-radius: 999px; transition: filter .2s;
}
.hf_search button:hover { filter: brightness(1.08); }

/* 汉堡（移动端） */
.hf_burger {
    display: none;
    width: 42px; height: 42px; border: none; background: var(--hf-green-tint);
    color: var(--hf-olive-deep); border-radius: 12px; font-size: 18px;
    align-items: center; justify-content: center;
}

/* 右侧账户 / 购物车 */
.hf_act {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: var(--hf-green-tint); color: var(--hf-olive-deep);
    font-size: 13px; font-weight: 500; line-height: 1; transition: all .2s;
}
.hf_act i { color: var(--hf-olive); font-size: 14px; }
.hf_act:hover { background: var(--hf-olive); color: #fff; }
.hf_act:hover i { color: #fff; }

.hf_cart {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px 9px 16px; border-radius: 999px;
    background: var(--hf-grad-rose); color: #fff;
    font-size: 13px; font-weight: 600; line-height: 1;
    box-shadow: var(--hf-shadow-rose); transition: filter .2s;
}
.hf_cart i { color: #fff; font-size: 15px; }
.hf_cart:hover { color: #fff; filter: brightness(1.06); }
.hf_cart_badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--hf-olive-deep); color: #fff;
    border-radius: 20px; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; line-height: 1; font-style: normal;
}

.hf_msearch {
    display: none;
    width: 42px; height: 42px; border: none; background: var(--hf-green-tint);
    color: var(--hf-olive-deep); border-radius: 12px; font-size: 16px;
    align-items: center; justify-content: center;
}

/* ③ 导航行 —— 居中 sticky */
.hf_nav {
    position: sticky; top: 0; z-index: 900;
    background: rgba(251,247,241,.94);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--hf-line);
    border-bottom: 1px solid var(--hf-line);
    transition: box-shadow .25s, background .25s;
}
.hf_nav.is_stuck {
    background: rgba(255,255,255,.97);
    box-shadow: 0 6px 22px rgba(71,81,47,.10);
    border-top-color: transparent;
}
.hf_nav_in {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    height: 54px; display: flex; align-items: center; justify-content: center;
    position: relative;
}

/* sticky 时左侧显现的小 logo */
.hf_nav_mini {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity .25s;
}
.hf_nav_mini img { height: 34px; width: auto; }
.hf_nav.is_stuck .hf_nav_mini { opacity: 1; visibility: visible; }

.hf_nav_menu { display: flex; align-items: center; gap: 6px; }
.hf_nav_menu > a,
.hf_drop_t {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0 15px; height: 54px; line-height: 54px;
    color: var(--hf-ink); font-size: 15px; font-weight: 500;
    position: relative; white-space: nowrap; transition: color .2s;
}
.hf_nav_menu > a::after,
.hf_drop_t::after {
    content: ''; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    width: 0; height: 2px; border-radius: 2px; background: var(--hf-rose); transition: width .25s;
}
.hf_nav_menu > a:hover,
.hf_drop:hover .hf_drop_t,
.hf_nav_menu > a.active { color: var(--hf-olive-deep); }
.hf_nav_menu > a:hover::after,
.hf_drop:hover .hf_drop_t::after,
.hf_nav_menu > a.active::after { width: 20px; }
.hf_drop_t i { font-size: 11px; transition: transform .25s; }
.hf_drop:hover .hf_drop_t i { transform: rotate(180deg); }

/* 花店入驻按钮（导航行右端） */
.hf_nav_cta {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 999px;
    border: 1.5px solid var(--hf-sage); color: var(--hf-olive-deep);
    font-size: 13px; font-weight: 600; transition: all .2s;
}
.hf_nav_cta i { color: var(--hf-sage); transition: color .2s; }
.hf_nav_cta:hover { background: var(--hf-olive); border-color: var(--hf-olive); color: #fff; }
.hf_nav_cta:hover i { color: #fff; }

/* Mega 下拉 */
.hf_drop { position: relative; }
.hf_mega {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    width: min(1040px, 94vw);
    background: #fff; border: 1px solid var(--hf-line);
    border-radius: 18px; box-shadow: var(--hf-shadow-lg);
    padding: 22px; z-index: 80;
    opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s;
}
.hf_drop:hover .hf_mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.hf_mega_grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 20px;
}
.hf_mega_col { padding: 6px 0; }
.hf_mega_head {
    display: flex; align-items: center; gap: 9px;
    font-size: 14.5px; font-weight: 700; color: var(--hf-olive-deep);
    padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px dashed var(--hf-line);
}
.hf_mega_head i {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: var(--hf-green-tint); color: var(--hf-olive);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.hf_mega_head:hover { color: var(--hf-rose); }
.hf_mega_subs { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.hf_mega_subs a {
    font-size: 12.5px; color: var(--hf-ink-2); padding: 3px 10px;
    border-radius: 999px; background: var(--hf-cream); transition: all .18s;
}
.hf_mega_subs a:hover { background: var(--hf-blush); color: var(--hf-rose-deep); }
.hf_mega_all {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hf-line);
    color: var(--hf-olive); font-size: 13.5px; font-weight: 600;
}
.hf_mega_all:hover { color: var(--hf-rose); }
.hf_mega_all i { transition: transform .2s; }
.hf_mega_all:hover i { transform: translateX(4px); }

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

/* ① 服务保障条 */
.hf_ft_assure {
    background: #fff;
    border-top: 1px solid var(--hf-line);
    border-bottom: 1px solid var(--hf-line);
}
.hf_ft_assure_in {
    max-width: 1280px; margin: 0 auto; padding: 26px 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.hf_ft_assure_item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.hf_ft_assure_ic {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%;
    background: var(--hf-green-tint); color: var(--hf-olive);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.hf_ft_assure_item:nth-child(even) .hf_ft_assure_ic { background: var(--hf-rose-tint); color: var(--hf-rose); }
.hf_ft_assure_tx { display: flex; flex-direction: column; line-height: 1.4; }
.hf_ft_assure_tx strong { font-size: 15px; color: var(--hf-olive-deep); font-weight: 700; }
.hf_ft_assure_tx small { font-size: 12px; color: var(--hf-ink-3); }

/* ② 主页脚 —— 深橄榄绿 */
.hf_ft_main {
    background: var(--hf-grad-forest, linear-gradient(180deg, #2C3520 0%, #3B462C 100%));
    color: rgba(255,255,255,.78);
    position: relative;
    overflow: hidden;
}
.hf_ft_main::before {
    content: '\f06c'; /* leaf */
    font-family: 'Font Awesome 5 Free'; font-weight: 900;
    position: absolute; right: -30px; bottom: -40px;
    font-size: 260px; color: rgba(255,255,255,.03);
    pointer-events: none; line-height: 1;
}

/* 玫瑰粉招商细带 */
.hf_ft_cta {
    background: var(--hf-grad-rose);
    position: relative; z-index: 1;
}
.hf_ft_cta_in {
    max-width: 1280px; margin: 0 auto; padding: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hf_ft_cta_tx { display: flex; flex-direction: column; gap: 3px; }
.hf_ft_cta_tx strong { font-size: 18px; color: #fff; font-weight: 700; }
.hf_ft_cta_tx span { font-size: 13px; color: rgba(255,255,255,.85); }
.hf_ft_cta_btns { display: flex; gap: 12px; flex-shrink: 0; }
.hf_ft_cta_main, .hf_ft_cta_ghost {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.hf_ft_cta_main { background: #fff; color: var(--hf-rose-deep); }
.hf_ft_cta_main:hover { color: var(--hf-rose-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.hf_ft_cta_ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hf_ft_cta_ghost:hover { background: rgba(255,255,255,.26); color: #fff; }

.hf_ft_main_in {
    max-width: 1280px; margin: 0 auto; padding: 48px 20px 40px;
    display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px;
    position: relative; z-index: 1;
}
.hf_ft_logo { margin-bottom: 18px; }
.hf_ft_logo img { height: 56px; width: auto; filter: brightness(0) invert(1) opacity(.92); }
.hf_ft_desc { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.6); margin-bottom: 22px; max-width: 420px; }
.hf_ft_hot { display: inline-flex; align-items: center; gap: 12px; }
.hf_ft_hot_ic {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.1); color: var(--hf-blush);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.hf_ft_hot_tx { display: flex; flex-direction: column; line-height: 1.3; }
.hf_ft_hot_tx small { font-size: 11.5px; color: rgba(255,255,255,.55); }
.hf_ft_hot_tx strong { font-size: 20px; color: #fff; font-weight: 700; letter-spacing: .5px; }

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

/* ③ 版权区 */
.hf_ft_copy {
    background: var(--hf-forest-deep);
    color: rgba(255,255,255,.5);
    font-size: 12.5px;
}
.hf_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;
}
.hf_ft_copy_in a { color: rgba(255,255,255,.5); transition: color .18s; }
.hf_ft_copy_in a:hover { color: var(--hf-blush); }
.hf_ft_copy_pwd { color: rgba(255,255,255,.32); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
    .hf_nav { display: none; }
    .hf_search { display: none; }
    .hf_act { display: none; }
    .hf_burger { display: inline-flex; }
    .hf_msearch { display: inline-flex; }
    .hf_main_in { height: 76px; }
    .hf_logo img { height: 48px; }
    .hf_main_l, .hf_main_r { flex: 1 1 0; }
    .hf_top_l span.hf_top_ann { display: none; }
    .hf_ft_main_in { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hf_top_r a:not(.hf_top_join):not(#zh_feedback_btn) { display: none; }
    .hf_ft_assure_in { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .hf_ft_cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .hf_ft_cta_in { flex-direction: column; align-items: flex-start; }
    .hf_ft_cta_btns { width: 100%; }
    .hf_ft_cta_main, .hf_ft_cta_ghost { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .hf_top_in { padding: 0 14px; }
    .hf_top_tel { display: none; }
    .hf_main_in { padding: 0 14px; gap: 10px; }
    .hf_logo img { height: 42px; }
    .hf_act span { display: none; }
    .hf_cart span { display: none; }
    .hf_cart { padding: 9px 14px; }
    .hf_ft_cols { grid-template-columns: 1fr; }
    .hf_ft_assure_item { justify-content: flex-start; }
}
