/* ============================================
   layout.css — 建康商城 公共头部 / 底部
   头部：炭灰顶栏 + 白底品牌行(logo·大搜索·账户购物车) + 满宽翡翠绿导航条(sticky，左「全部分类」mega)
   底部：薄荷服务保障条 + 石墨炭灰主页脚(含翡翠绿招商带) + 版权
   配色：翡翠绿 #16A34A + 石墨炭灰 #1F2A26 + 薄荷白底 #F4FBF6（去橙）
   类名前缀：jk_ （交互 ID 沿用 xy_hd_bar / zh_mb_* / xy_msearch / zh_feedback_btn 不变）
   ============================================ */

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

/* ============================================
   ① 顶部细条 —— 石墨炭灰
   ============================================ */
.jk_top {
    background: var(--jk-graphite);
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
    position: relative;
}
.jk_top::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--jk-green) 30%, var(--jk-lime) 50%, var(--jk-green) 70%, transparent);
    opacity: .55;
}
.jk_top_in {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.jk_top_l { display: flex; align-items: center; gap: 22px; min-width: 0; overflow: hidden; flex: 1; }
.jk_top_ann {
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jk_top_ann i { color: var(--jk-lime); }
.jk_top_r { display: flex; align-items: center; flex-shrink: 0; }
.jk_top_r a, .jk_top_tel {
    padding: 0 13px; color: rgba(255,255,255,.72);
    position: relative; white-space: nowrap; line-height: 1;
}
.jk_top_tel { display: inline-flex; align-items: center; gap: 6px; }
.jk_top_tel strong { color: #fff; font-weight: 700; letter-spacing: .3px; }
.jk_top_r a { transition: color .18s; }
.jk_top_r a + a::before, .jk_top_tel + a::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 11px; background: rgba(255,255,255,.16);
}
.jk_top_r a:hover { color: #fff; }
.jk_top_r a i { margin-right: 5px; opacity: .8; }
.jk_top_r a.jk_top_join {
    color: #fff; background: var(--jk-grad-green); border-radius: 999px;
    padding: 5px 16px; margin-left: 16px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(22,163,74,.32);
}
.jk_top_r a.jk_top_join::before { display: none; }
.jk_top_r a.jk_top_join:hover { color: #fff; filter: brightness(1.08); }
.jk_top_r a.jk_top_join i { opacity: 1; color: #fff; }

/* ============================================
   ② 品牌行 —— 白底：logo + 大搜索 + 账户/购物车
   ============================================ */
.jk_main { background: #fff; position: relative; }
.jk_main_in {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    height: 94px; display: flex; align-items: center; gap: 30px;
}

/* logo */
.jk_logo { flex: 0 0 auto; display: block; }
.jk_logo img { height: 54px; width: auto; display: block; }

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

/* 搜索（圆角矩形，绿实心按钮） */
.jk_search {
    flex: 1 1 auto; max-width: 600px;
    position: relative;
    display: flex; align-items: stretch;
    height: 48px;
    border: 2px solid var(--jk-green);
    border-radius: var(--jk-radius); background: #fff;
    transition: box-shadow .2s;
}
.jk_search:focus-within { box-shadow: 0 0 0 4px rgba(22,163,74,.14); }
.jk_search input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 0 8px 0 20px; font-size: 14px; color: var(--jk-ink);
    font-family: inherit; min-width: 0;
}
.jk_search input::placeholder { color: var(--jk-ink-3); }
.jk_search button {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 28px; border: none; cursor: pointer;
    background: var(--jk-grad-green); color: #fff;
    font-size: 14.5px; font-weight: 700; letter-spacing: 1px;
    margin: 3px; border-radius: calc(var(--jk-radius) - 4px); transition: filter .2s;
}
.jk_search button:hover { filter: brightness(1.07); }
.jk_search button i { font-size: 15px; }
.jk_search_hot {
    position: absolute; top: calc(100% + 8px); left: 4px;
    display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--jk-ink-3); white-space: nowrap;
}
.jk_search_hot a { color: var(--jk-ink-2); transition: color .18s; }
.jk_search_hot a:hover { color: var(--jk-green-deep); }

/* 右侧 —— 客服热线 chip + 账户 + 购物车 */
.jk_main_r { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; margin-left: auto; }
.jk_hot {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--jk-cream);
}
.jk_hot_ic {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--jk-grad-green); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
    box-shadow: var(--jk-shadow-green);
}
.jk_hot_tx { display: flex; flex-direction: column; line-height: 1.25; }
.jk_hot_tx small { font-size: 11px; color: var(--jk-ink-3); }
.jk_hot_tx strong { font-size: 16px; color: var(--jk-green-deep); font-weight: 700; letter-spacing: .3px; }
.jk_act {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    background: var(--jk-green-tint); color: var(--jk-green-deep);
    font-size: 13px; font-weight: 600; line-height: 1; transition: all .2s;
}
.jk_act i { color: var(--jk-green); font-size: 14px; transition: color .2s; }
.jk_act:hover { background: var(--jk-green); color: #fff; }
.jk_act:hover i { color: #fff; }
.jk_cart {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px 10px 18px; border-radius: 999px;
    background: var(--jk-graphite); color: #fff;
    font-size: 13px; font-weight: 700; line-height: 1;
    box-shadow: var(--jk-shadow-graphite); transition: all .2s;
}
.jk_cart i { color: var(--jk-lime); font-size: 15px; transition: color .2s; }
.jk_cart:hover { color: #fff; background: var(--jk-green-deep); }
.jk_cart:hover i { color: #fff; }
.jk_cart_badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--jk-green); 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;
}
.jk_msearch {
    display: none;
    width: 42px; height: 42px; border: none; background: var(--jk-green-tint);
    color: var(--jk-green-deep); border-radius: 12px; font-size: 16px;
    align-items: center; justify-content: center;
}

/* ============================================
   ③ 导航行 —— 满宽翡翠绿条（sticky）
   ============================================ */
.jk_nav {
    position: sticky; top: 0; z-index: 900;
    background: var(--jk-grad-green);
    transition: box-shadow .25s;
}
.jk_nav.is_stuck { box-shadow: 0 6px 22px rgba(14,80,40,.28); }
.jk_nav_in {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    height: 50px; display: flex; align-items: center; gap: 6px;
    position: relative;
}

/* 全部分类 —— 炭灰块 + Mega */
.jk_allcat { position: relative; flex: 0 0 auto; align-self: stretch; }
.jk_allcat_btn {
    height: 100%; display: inline-flex; align-items: center; gap: 10px;
    padding: 0 22px; border: none; cursor: pointer;
    background: var(--jk-graphite); color: #fff;
    font-size: 14.5px; font-weight: 700; font-family: inherit;
    border-radius: 0;
}
.jk_allcat_btn > i:first-child { color: var(--jk-lime); }
.jk_allcat_btn .jk_allcat_ar { font-size: 11px; transition: transform .25s; opacity: .8; }
.jk_allcat:hover .jk_allcat_btn .jk_allcat_ar { transform: rotate(180deg); }
.jk_mega {
    position: absolute; top: 100%; left: 0;
    width: min(940px, 92vw);
    background: #fff; border: 1px solid var(--jk-line);
    border-radius: 0 0 16px 16px; box-shadow: var(--jk-shadow-lg);
    padding: 22px; z-index: 80;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}
.jk_allcat:hover .jk_mega { opacity: 1; visibility: visible; transform: translateY(0); }
.jk_mega_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 22px; }
.jk_mega_col { padding: 4px 0; }
.jk_mega_head {
    display: flex; align-items: center; gap: 9px;
    font-size: 14.5px; font-weight: 700; color: var(--jk-green-deep);
    padding-bottom: 8px; margin-bottom: 7px; border-bottom: 1px dashed var(--jk-line);
}
.jk_mega_head i {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: var(--jk-green-tint); color: var(--jk-green);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.jk_mega_head:hover { color: var(--jk-green); }
.jk_mega_subs { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.jk_mega_subs a {
    font-size: 12.5px; color: var(--jk-ink-2); padding: 3px 10px;
    border-radius: 999px; background: var(--jk-cream-2); transition: all .18s;
}
.jk_mega_subs a:hover { background: var(--jk-green-tint); color: var(--jk-green-deep); }
.jk_mega_all {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--jk-line);
    color: var(--jk-green); font-size: 13.5px; font-weight: 700;
}
.jk_mega_all:hover { color: var(--jk-green-deep); }
.jk_mega_all i { transition: transform .2s; }
.jk_mega_all:hover i { transform: translateX(4px); }

/* 横排导航（白字） */
.jk_nav_menu { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow: hidden; padding-left: 6px; }
.jk_nav_menu > a {
    display: inline-flex; align-items: center;
    padding: 0 16px; height: 50px; line-height: 50px;
    color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500;
    position: relative; white-space: nowrap; transition: color .2s, background .2s;
}
.jk_nav_menu > a::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 8px;
    height: 3px; border-radius: 3px; background: var(--jk-lime);
    transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.jk_nav_menu > a:hover { color: #fff; background: rgba(255,255,255,.10); }
.jk_nav_menu > a.active { color: #fff; font-weight: 700; }
.jk_nav_menu > a:hover::after, .jk_nav_menu > a.active::after { transform: scaleX(1); }

/* 商家入驻按钮（导航行右端） —— 白底翡翠字 pill */
.jk_nav_cta {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 999px;
    background: #fff; color: var(--jk-green-deep);
    font-size: 13px; font-weight: 700; transition: all .2s;
    box-shadow: 0 4px 12px rgba(14,80,40,.18);
}
.jk_nav_cta i { color: var(--jk-green); transition: color .2s; }
.jk_nav_cta:hover { background: var(--jk-graphite); color: #fff; }
.jk_nav_cta:hover i { color: var(--jk-lime); }

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

/* ① 服务保障条 —— 薄荷底 + 翡翠圆标 */
.jk_ft_assure {
    background: linear-gradient(180deg, var(--jk-cream) 0%, #fff 100%);
    border-top: 1px solid var(--jk-line);
}
.jk_ft_assure_in {
    max-width: 1280px; margin: 0 auto; padding: 30px 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.jk_ft_assure_item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.jk_ft_assure_ic {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
    background: var(--jk-green-tint); color: var(--jk-green);
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
    border: 1px solid var(--jk-green-tint2); transition: all .22s;
}
.jk_ft_assure_item:hover .jk_ft_assure_ic { background: var(--jk-grad-green); color: #fff; border-color: transparent; }
.jk_ft_assure_tx { display: flex; flex-direction: column; line-height: 1.4; }
.jk_ft_assure_tx strong { font-size: 15px; color: var(--jk-green-deep); font-weight: 700; }
.jk_ft_assure_tx small { font-size: 12px; color: var(--jk-ink-3); }

/* ② 主页脚 —— 石墨炭灰 */
.jk_ft_main {
    background: var(--jk-grad-graphite);
    color: rgba(255,255,255,.72);
    position: relative; overflow: hidden;
}
.jk_ft_main::before {
    content: '\f0d1'; /* truck */
    font-family: 'Font Awesome 5 Free'; font-weight: 900;
    position: absolute; right: -24px; bottom: -34px;
    font-size: 230px; color: rgba(78,209,126,.045);
    pointer-events: none; line-height: 1;
}

/* 翡翠绿招商细带 */
.jk_ft_cta { background: var(--jk-grad-green); position: relative; z-index: 1; overflow: hidden; }
.jk_ft_cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 88% 30%, rgba(255,255,255,.18) 0%, transparent 45%);
    pointer-events: none;
}
.jk_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;
}
.jk_ft_cta_tx { display: flex; align-items: center; gap: 16px; }
.jk_ft_cta_tx > i {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: rgba(255,255,255,.16); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.jk_ft_cta_txt { display: flex; flex-direction: column; gap: 3px; }
.jk_ft_cta_txt strong { font-size: 18px; color: #fff; font-weight: 700; }
.jk_ft_cta_txt span { font-size: 13px; color: rgba(255,255,255,.9); }
.jk_ft_cta_btns { display: flex; gap: 12px; flex-shrink: 0; }
.jk_ft_cta_main, .jk_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;
}
.jk_ft_cta_main { background: #fff; color: var(--jk-green-deep); }
.jk_ft_cta_main:hover { color: var(--jk-green-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.jk_ft_cta_ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.jk_ft_cta_ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

.jk_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;
}
/* 品牌区 —— logo 放白色 chip（绿+炭黑 logo 不做反白） */
.jk_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,.2);
}
.jk_ft_logo img { height: 44px; width: auto; display: block; }
.jk_ft_desc { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.56); margin-bottom: 22px; max-width: 460px; }
.jk_ft_hot { display: inline-flex; align-items: center; gap: 12px; }
.jk_ft_hot_ic {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: rgba(78,209,126,.12); color: var(--jk-lime);
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
    border: 1px solid rgba(78,209,126,.28);
}
.jk_ft_hot_tx { display: flex; flex-direction: column; line-height: 1.3; }
.jk_ft_hot_tx small { font-size: 11.5px; color: rgba(255,255,255,.5); }
.jk_ft_hot_tx strong { font-size: 20px; color: #fff; font-weight: 700; letter-spacing: .5px; }

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

/* ③ 版权区 */
.jk_ft_copy {
    background: var(--jk-graphite-deep);
    color: rgba(255,255,255,.48);
    font-size: 12.5px;
}
.jk_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;
}
.jk_ft_copy_in a { color: rgba(255,255,255,.48); transition: color .18s; }
.jk_ft_copy_in a:hover { color: var(--jk-lime); }
.jk_ft_copy_pwd { color: rgba(255,255,255,.3); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
    .jk_nav { display: none; }
    .jk_search { display: none; }
    .jk_hot { display: none; }
    .jk_act { display: none; }
    .jk_burger { display: inline-flex; }
    .jk_msearch { display: inline-flex; }
    .jk_main_in { height: 66px; gap: 12px; }
    .jk_logo img { height: 42px; }
    .jk_top_ann { font-size: 12px; }
    .jk_ft_main_in { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .jk_top_r a:not(.jk_top_join):not(#zh_feedback_btn), .jk_top_tel { display: none; }
    .jk_ft_assure_in { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .jk_ft_cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .jk_ft_cta_in { flex-direction: column; align-items: flex-start; }
    .jk_ft_cta_btns { width: 100%; }
    .jk_ft_cta_main, .jk_ft_cta_ghost { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .jk_top_in { padding: 0 14px; }
    .jk_main_in { padding: 0 14px; gap: 10px; }
    .jk_logo img { height: 38px; }
    .jk_cart span { display: none; }
    .jk_cart { padding: 10px 14px; }
    .jk_ft_cols { grid-template-columns: 1fr; }
    .jk_ft_assure_item { justify-content: flex-start; }
}
