/* ============================================
   category.css — 分类 / 搜索结果（信言方兴新版）
   分类：顶部横向筛选 + 全宽商品网格（区别旧版左侧栏）
   搜索：顶部搜索 Hero + 结果网格
   类名前缀：xy_cat_ / xy_sr_
   被 home/category.blade.php、home/search.blade.php 共用
   ============================================ */

.xy_cat_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 面包屑条 */
.xy_cat_crumb_bar { background: #fff; border-bottom: 1px solid var(--xy-line); }
.xy_cat_crumb { display: flex; align-items: center; gap: 8px; padding: 13px 0; font-size: 13px; color: var(--xy-text-2); flex-wrap: wrap; }
.xy_cat_crumb a { color: var(--xy-text-2); transition: color .2s; }
.xy_cat_crumb a:hover { color: var(--xy-blue); }
.xy_cat_crumb .sep { color: var(--xy-text-3); }
.xy_cat_crumb .cur { color: var(--xy-navy); font-weight: 600; }

/* 分类头部卡 */
.xy_cat_hero { background: var(--xy-grad-navy); position: relative; overflow: hidden; }
.xy_cat_hero::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
    background: url('/uploads/banner/banner.jpg') center right / cover no-repeat; opacity: .16;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%);
}
.xy_cat_hero_in { max-width: 1280px; margin: 0 auto; padding: 34px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; flex-wrap: wrap; }
.xy_cat_hero_l { display: flex; align-items: center; gap: 20px; min-width: 0; }
.xy_cat_hero_ic { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.16); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.xy_cat_hero_tt h1 { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.2; }
.xy_cat_hero_tt p { font-size: 13.5px; color: rgba(255,255,255,.8); margin-top: 6px; max-width: 620px; }
.xy_cat_hero_stat { text-align: center; flex-shrink: 0; padding: 10px 26px; background: rgba(255,255,255,.12); border-radius: 14px; }
.xy_cat_hero_stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; font-family: "Arial"; line-height: 1; }
.xy_cat_hero_stat span { font-size: 12.5px; color: rgba(255,255,255,.8); }

/* 筛选区（chips 行 + 工具条） */
.xy_cat_panel { background: #fff; border-bottom: 1px solid var(--xy-line); }
.xy_cat_chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0 6px; }
.xy_cat_chips_label { font-size: 13px; color: var(--xy-text-3); align-self: center; margin-right: 4px; }
.xy_cat_chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px;
    background: var(--xy-bg); border: 1px solid var(--xy-line); color: var(--xy-text); font-size: 13px; transition: all .18s;
}
.xy_cat_chip em { font-style: normal; color: var(--xy-text-3); font-size: 12px; }
.xy_cat_chip:hover { border-color: var(--xy-orange); color: var(--xy-orange); }
.xy_cat_chip.active { background: var(--xy-grad-navy); border-color: transparent; color: #fff; }
.xy_cat_chip.active em { color: rgba(255,255,255,.8); }

.xy_cat_toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.xy_cat_total { font-size: 14px; color: var(--xy-text-2); }
.xy_cat_total strong { color: var(--xy-orange); font-size: 17px; font-weight: 800; }
.xy_cat_sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xy_cat_sort_label { font-size: 13px; color: var(--xy-text-3); }
.xy_cat_sort_btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border-radius: 8px; font-size: 13px; color: var(--xy-text-2); background: var(--xy-bg); transition: all .18s; }
.xy_cat_sort_btn i { font-size: 11px; }
.xy_cat_sort_btn:hover { color: var(--xy-blue); }
.xy_cat_sort_btn.active { background: var(--xy-orange); color: #fff; }

/* 商品网格 */
.xy_cat_body { padding: 30px 0 56px; }
.xy_cat_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* 空态 */
.xy_cat_empty { text-align: center; padding: 70px 20px; }
.xy_cat_empty_ic { font-size: 52px; color: var(--xy-line); margin-bottom: 16px; }
.xy_cat_empty h3 { font-size: 18px; color: var(--xy-text-2); margin-bottom: 8px; }
.xy_cat_empty p { font-size: 13px; color: var(--xy-text-3); margin-bottom: 18px; }
.xy_cat_empty_links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.xy_cat_empty_links a { padding: 8px 18px; border-radius: 999px; background: var(--xy-blue-tint); color: var(--xy-blue); font-size: 13px; font-weight: 600; transition: all .2s; }
.xy_cat_empty_links a:hover { background: var(--xy-orange); color: #fff; }

/* 底部推荐 */
.xy_cat_tail { margin-top: 50px; }
.xy_cat_tail_head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.xy_cat_tail_head h3 { font-size: 22px; font-weight: 800; color: var(--xy-navy); white-space: nowrap; }
.xy_cat_tail_head h3 small { display: block; font-size: 12px; letter-spacing: 2px; color: var(--xy-orange); font-weight: 700; margin-top: 2px; }
.xy_cat_tail_line { flex: 1; height: 1px; background: var(--xy-line); }
.xy_cat_tail_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.xy_cat_body .zh_pager { margin-top: 36px; }

/* ============================================
   搜索页 Hero
   ============================================ */
.xy_sr_hero { background: var(--xy-grad-navy); position: relative; overflow: hidden; }
.xy_sr_hero::after {
    content: ''; position: absolute; inset: 0;
    background: url('/uploads/banner/banner.jpg') center / cover no-repeat; opacity: .12;
}
.xy_sr_hero_in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.xy_sr_hero_eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--xy-orange); font-weight: 700; }
.xy_sr_hero h1 { font-size: 28px; font-weight: 800; color: #fff; margin: 10px 0 6px; }
.xy_sr_hero h1 em { font-style: normal; color: var(--xy-orange); }
.xy_sr_hero p { font-size: 13.5px; color: rgba(255,255,255,.8); margin-bottom: 22px; }
.xy_sr_form { display: flex; align-items: stretch; height: 52px; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 12px 30px rgba(12,30,60,.3); }
.xy_sr_form input { flex: 1; border: none; outline: none; padding: 0 24px; font-size: 15px; color: var(--xy-text); background: transparent; min-width: 0; }
.xy_sr_form button { flex-shrink: 0; padding: 0 30px; border: none; background: var(--xy-grad-orange); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: filter .2s; }
.xy_sr_form button:hover { filter: brightness(1.06); }
.xy_sr_hot { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); }
.xy_sr_hot a { color: #fff; background: rgba(255,255,255,.14); padding: 3px 12px; border-radius: 999px; transition: all .2s; }
.xy_sr_hot a:hover { background: var(--xy-orange); }

/* 搜索结果计数条 */
.xy_sr_count { padding: 20px 0 4px; font-size: 14px; color: var(--xy-text-2); }
.xy_sr_count strong { color: var(--xy-orange); font-weight: 800; }

/* 搜索空态 */
.xy_sr_empty { text-align: center; padding: 60px 20px; }
.xy_sr_empty_ic { width: 100px; height: 100px; border-radius: 50%; background: var(--xy-blue-tint); color: var(--xy-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 44px; margin-bottom: 18px; }
.xy_sr_empty h3 { font-size: 19px; color: var(--xy-navy); margin-bottom: 8px; }
.xy_sr_empty h3 em { font-style: normal; color: var(--xy-orange); }
.xy_sr_empty p { font-size: 13.5px; color: var(--xy-text-3); margin-bottom: 20px; }
.xy_sr_empty_cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1199px) {
    .xy_cat_grid, .xy_cat_tail_grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
    .xy_cat_grid, .xy_cat_tail_grid { grid-template-columns: repeat(3, 1fr); }
    .xy_cat_hero_in { padding: 26px 20px; }
    .xy_cat_hero_tt h1 { font-size: 23px; }
}
@media (max-width: 767px) {
    .xy_cat_grid, .xy_cat_tail_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .xy_cat_hero_ic { width: 50px; height: 50px; font-size: 22px; }
    .xy_cat_hero_stat { padding: 8px 18px; }
    .xy_cat_hero_stat b { font-size: 24px; }
    .xy_cat_toolbar { gap: 10px; }
    .xy_cat_body { padding: 22px 0 40px; }
    .xy_sr_hero h1 { font-size: 22px; }
    .xy_sr_form { height: 46px; }
    .xy_sr_form button { padding: 0 18px; }
    .xy_sr_form button span { display: none; }
    .xy_cat_tail_head h3 { font-size: 18px; }
}

/* ============================================================
   建康商城 分类页专属版式（jk_cat_，追加；搜索页仍用上方 xy_ 样式不受影响）
   侧栏(全部分类+服务保障+入驻) + 右主区(chips+排序+网格) —— 区别于旧全宽堆叠版式
   ============================================================ */
.jk_cat_page { background: var(--jk-cream); padding-bottom: 54px; }
.jk_cat_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 面包屑 */
.jk_cat_crumb_bar { background: #fff; border-bottom: 1px solid var(--jk-line); }
.jk_cat_crumb { display: flex; align-items: center; gap: 8px; padding: 13px 0; font-size: 13px; color: var(--jk-ink-2); flex-wrap: wrap; }
.jk_cat_crumb a { color: var(--jk-ink-2); transition: color .18s; }
.jk_cat_crumb a:hover { color: var(--jk-green); }
.jk_cat_crumb .sep { color: var(--jk-ink-3); }
.jk_cat_crumb .cur { color: var(--jk-green-deep); font-weight: 500; }

/* Hero 横幅 —— 炭灰底 + banner 隐纹 + 翡翠图标 */
.jk_cat_hero { position: relative; background: var(--jk-grad-graphite); overflow: hidden; }
.jk_cat_hero::before { content: ''; position: absolute; inset: 0; background-image: var(--jk-cat-bg); background-size: cover; background-position: center right; opacity: .14; }
.jk_cat_hero::after { content: '\f0d1'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: -10px; bottom: -30px; font-size: 180px; color: rgba(78,209,126,.06); line-height: 1; }
.jk_cat_hero_in { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; padding: 34px 20px; }
.jk_cat_hero_ic { width: 70px; height: 70px; flex-shrink: 0; border-radius: 20px; background: rgba(78,209,126,.16); color: var(--jk-lime); display: inline-flex; align-items: center; justify-content: center; font-size: 32px; border: 1px solid rgba(78,209,126,.3); }
.jk_cat_hero_tt { flex: 1; min-width: 0; }
.jk_cat_hero_eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; color: var(--jk-lime); }
.jk_cat_hero_tt h1 { font-size: 30px; font-weight: 800; color: #fff; margin: 4px 0 6px; }
.jk_cat_hero_tt p { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.6; max-width: 640px; }
.jk_cat_hero_stat { flex-shrink: 0; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 12px 26px; }
.jk_cat_hero_stat b { display: block; font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
.jk_cat_hero_stat span { font-size: 12px; color: rgba(255,255,255,.66); }

/* 布局 sidebar + main */
.jk_cat_layout { display: grid; grid-template-columns: 236px 1fr; gap: 24px; padding: 26px 20px 0; }

/* 侧栏 */
.jk_cat_side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 62px; align-self: start; }
.jk_cat_side_box { background: #fff; border: 1px solid var(--jk-line); border-radius: var(--jk-radius); overflow: hidden; }
.jk_cat_side_h { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--jk-graphite); padding: 14px 18px; border-bottom: 1px solid var(--jk-line-soft); }
.jk_cat_side_h i { color: var(--jk-green); }
.jk_cat_side_cats { padding: 6px; }
.jk_cat_side_cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--jk-ink); transition: all .18s; }
.jk_cat_side_cat i { width: 18px; text-align: center; color: var(--jk-green); font-size: 14px; }
.jk_cat_side_cat:hover { background: var(--jk-green-tint); color: var(--jk-green-deep); }
.jk_cat_side_cat.active { background: var(--jk-grad-green); color: #fff; }
.jk_cat_side_cat.active i { color: #fff; }
.jk_cat_side_subs { padding: 2px 6px 8px 14px; display: flex; flex-direction: column; gap: 2px; }
.jk_cat_side_subs a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 7px; font-size: 13px; color: var(--jk-ink-2); transition: all .16s; }
.jk_cat_side_subs a i { font-size: 10px; color: var(--jk-ink-3); }
.jk_cat_side_subs a:hover { background: var(--jk-cream-2); color: var(--jk-green-deep); }
.jk_cat_side_subs a.active { color: var(--jk-green-deep); font-weight: 700; }
.jk_cat_side_subs a.active i { color: var(--jk-green); }
.jk_cat_side_promise { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.jk_cat_side_promise li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--jk-ink-2); }
.jk_cat_side_promise li i { width: 28px; height: 28px; border-radius: 8px; background: var(--jk-green-tint); color: var(--jk-green); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.jk_cat_side_cta { background: var(--jk-grad-graphite); border-radius: var(--jk-radius); padding: 22px 20px; color: #fff; }
.jk_cat_side_cta_ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(78,209,126,.16); color: var(--jk-lime); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.jk_cat_side_cta strong { display: block; font-size: 16px; font-weight: 700; }
.jk_cat_side_cta p { font-size: 12.5px; color: rgba(255,255,255,.68); line-height: 1.7; margin: 6px 0 14px; }
.jk_cat_side_cta a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; background: var(--jk-grad-green); color: #fff; font-size: 13px; font-weight: 700; transition: filter .2s; }
.jk_cat_side_cta a:hover { filter: brightness(1.08); color: #fff; }

/* 主区 */
.jk_cat_main { min-width: 0; }
.jk_cat_chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.jk_cat_chips_label { font-size: 13px; color: var(--jk-ink-3); font-weight: 600; }
.jk_cat_chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--jk-line); font-size: 13px; color: var(--jk-ink); transition: all .18s; }
.jk_cat_chip em { font-style: normal; font-size: 11px; color: var(--jk-ink-3); }
.jk_cat_chip:hover { border-color: var(--jk-green); color: var(--jk-green-deep); }
.jk_cat_chip.active { background: var(--jk-grad-green); border-color: transparent; color: #fff; }
.jk_cat_chip.active em { color: rgba(255,255,255,.8); }

/* 工具条 */
.jk_cat_toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--jk-line); border-radius: var(--jk-radius); padding: 12px 18px; margin-bottom: 18px; }
.jk_cat_total { font-size: 13.5px; color: var(--jk-ink-2); }
.jk_cat_total strong { color: var(--jk-green-deep); font-weight: 800; font-size: 15px; }
.jk_cat_sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jk_cat_sort_label { font-size: 12.5px; color: var(--jk-ink-3); margin-right: 2px; }
.jk_cat_sort_btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 8px; font-size: 13px; color: var(--jk-ink-2); transition: all .18s; }
.jk_cat_sort_btn i { font-size: 11px; }
.jk_cat_sort_btn:hover { background: var(--jk-green-tint); color: var(--jk-green-deep); }
.jk_cat_sort_btn.active { background: var(--jk-graphite); color: #fff; }

/* 商品网格 */
.jk_cat_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jk_cat_page .zh_pager { margin-top: 34px; }

/* 空态 */
.jk_cat_empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--jk-line); border-radius: var(--jk-radius-lg); }
.jk_cat_empty_ic { width: 88px; height: 88px; border-radius: 50%; background: var(--jk-green-tint); color: var(--jk-green); display: inline-flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 16px; }
.jk_cat_empty h3 { font-size: 19px; color: var(--jk-graphite); margin-bottom: 8px; }
.jk_cat_empty p { font-size: 13.5px; color: var(--jk-ink-2); margin-bottom: 18px; }
.jk_cat_empty_links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.jk_cat_empty_links a { padding: 8px 18px; border-radius: 999px; background: var(--jk-green-tint); color: var(--jk-green-deep); font-size: 13px; font-weight: 600; transition: all .18s; }
.jk_cat_empty_links a:hover { background: var(--jk-green); color: #fff; }

/* 底部推荐 */
.jk_cat_tail { margin-top: 44px; }
.jk_cat_tail_head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-left: 14px; position: relative; }
.jk_cat_tail_head::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 4px; background: var(--jk-grad-green); }
.jk_cat_tail_head h3 { font-size: 20px; font-weight: 800; color: var(--jk-graphite); }
.jk_cat_tail_head small { font-size: 12px; font-weight: 600; color: var(--jk-ink-3); letter-spacing: 1px; }
.jk_cat_tail_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* 响应式 */
@media (max-width: 1100px) {
    .jk_cat_grid { grid-template-columns: repeat(3, 1fr); }
    .jk_cat_tail_grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .jk_cat_layout { grid-template-columns: 1fr; }
    .jk_cat_side { display: none; }
}
@media (max-width: 768px) {
    .jk_cat_hero_in { flex-wrap: wrap; gap: 16px; padding: 26px 20px; }
    .jk_cat_hero_ic { width: 54px; height: 54px; font-size: 24px; }
    .jk_cat_hero_tt h1 { font-size: 24px; }
    .jk_cat_hero_stat { padding: 8px 18px; }
    .jk_cat_hero_stat b { font-size: 24px; }
    .jk_cat_grid, .jk_cat_tail_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jk_cat_toolbar { gap: 10px; }
}
@media (max-width: 480px) {
    .jk_cat_grid, .jk_cat_tail_grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .jk_cat_hero_stat { display: none; }
}
