/* ============================================
   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; }
}
