/* ============================================
   category.css — 中科艾灸商城 栏目页 / 搜索页
   栏目：面包屑 → 栏目头部卡(白底金边) → 粘性筛选条 → 全宽 5 列网格 → 栏目说明 → 底部推荐
        （取消旧版左侧栏，改为顶部横向筛选 + 全宽网格）
   搜索：宣纸米白搜索区(大搜索框居中) → 结果条 → 网格 → 推荐
   配色：墨绿 #14331F + 艾草绿 #4C7A3C + 麦芒金 #C8A24A + 宣纸米白 #F8F5EC
   类名前缀：az_c_ / az_sr_
   ============================================ */

.az_c_page { background: var(--az-paper); padding-bottom: 56px; }
.az_c_in { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   ① 面包屑条
   ============================================ */
.az_c_crumb_bar { background: #fff; border-bottom: 1px solid var(--az-line); }
.az_c_crumb {
    max-width: 1280px; margin: 0 auto; padding: 13px 20px;
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--az-ink-2); flex-wrap: wrap;
}
.az_c_crumb a { color: var(--az-ink-2); }
.az_c_crumb a:hover { color: var(--az-green); }
.az_c_crumb .sep { color: var(--az-ink-3); }
.az_c_crumb .cur { color: var(--az-dark); font-weight: 600; }

/* ============================================
   ② 栏目头部卡（白底 + 左金边方章图标 + 右数据三格）
   ============================================ */
.az_c_head_wrap { background: var(--az-paper-2); padding: 26px 0 0; }
.az_c_head {
    position: relative; display: flex; align-items: center; gap: 22px;
    background: #fff; border: 1px solid var(--az-line); border-radius: var(--az-radius);
    padding: 24px 28px; box-shadow: var(--az-shadow-sm); overflow: hidden;
}
.az_c_head::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--az-grad-gold);
}
.az_c_head::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
    background: var(--az-c-bg, none) center right / cover no-repeat; opacity: .10;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%);
}
.az_c_head_ic {
    width: 66px; height: 66px; flex-shrink: 0; border-radius: var(--az-radius);
    background: var(--az-grad-dark); color: var(--az-gold-light);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    position: relative; z-index: 1;
}
.az_c_head_tt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.az_c_head_eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 2.5px; color: var(--az-gold-deep); margin-bottom: 6px;
}
.az_c_head_eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--az-gold); }
.az_c_head_tt h1 {
    font-family: var(--az-serif); font-size: 27px; font-weight: 700;
    color: var(--az-dark); letter-spacing: 1.5px; line-height: 1.35; margin-bottom: 7px;
}
.az_c_head_tt p { font-size: 13px; color: var(--az-ink-2); line-height: 1.8; }
.az_c_head_stats { display: flex; flex-shrink: 0; position: relative; z-index: 1; }
.az_c_head_stat { text-align: center; padding: 0 22px; position: relative; }
.az_c_head_stat + .az_c_head_stat::before {
    content: ''; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: var(--az-line);
}
.az_c_head_stat b {
    font-family: var(--az-serif); display: block; font-size: 24px; font-weight: 700;
    color: var(--az-green-deep); line-height: 1.2;
}
.az_c_head_stat span { font-size: 12px; color: var(--az-ink-3); }

/* ============================================
   ③ 粘性筛选条（子栏目 chips + 排序）
   ============================================ */
.az_c_bar_wrap { background: var(--az-paper-2); padding: 18px 0 0; }
.az_c_bar {
    position: sticky; top: 52px; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--az-line); border-radius: var(--az-radius);
    padding: 11px 18px; box-shadow: var(--az-shadow-sm);
}
.az_c_chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.az_c_chips_label { font-size: 12.5px; color: var(--az-ink-3); margin-right: 4px; flex-shrink: 0; }
.az_c_chip {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 15px;
    border: 1px solid var(--az-line); border-radius: 999px; background: var(--az-paper);
    font-size: 13px; color: var(--az-ink-2); transition: all .22s; white-space: nowrap;
}
.az_c_chip em {
    font-style: normal; font-size: 11px; color: var(--az-ink-3);
    background: #fff; border-radius: 999px; padding: 1px 7px;
}
.az_c_chip:hover { border-color: var(--az-sage); color: var(--az-green-deep); background: var(--az-green-tint); }
.az_c_chip.active { background: var(--az-grad-green); border-color: transparent; color: #fff; }
.az_c_chip.active em { background: rgba(255,255,255,.2); color: #fff; }

.az_c_sort { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.az_c_sort_label { font-size: 12.5px; color: var(--az-ink-3); margin-right: 5px; }
.az_c_sort_btn {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px;
    border-radius: var(--az-radius-sm); font-size: 13px; color: var(--az-ink-2); transition: all .2s;
}
.az_c_sort_btn i { font-size: 11px; }
.az_c_sort_btn:hover { background: var(--az-green-tint); color: var(--az-green-deep); }
.az_c_sort_btn.active { background: var(--az-dark); color: var(--az-gold-light); }

.az_c_total { font-size: 13px; color: var(--az-ink-2); }
.az_c_total strong { color: var(--az-red); font-size: 15px; font-weight: 700; margin: 0 2px; }

/* ============================================
   ④ 商品网格（全宽 5 列）
   ============================================ */
.az_c_body { padding-top: 22px; }
.az_c_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* 分页 */
.zh_pager { display: flex; justify-content: center; margin-top: 34px; }

/* 空状态 */
.az_c_empty {
    padding: 66px 20px; text-align: center;
    background: #fff; border: 1px dashed var(--az-line); border-radius: var(--az-radius);
}
.az_c_empty_ic {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--az-green-tint); color: var(--az-sage);
    display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.az_c_empty h3 { font-family: var(--az-serif); font-size: 19px; color: var(--az-dark); margin-bottom: 8px; }
.az_c_empty h3 em { font-style: normal; color: var(--az-green); }
.az_c_empty p { font-size: 13.5px; color: var(--az-ink-3); margin-bottom: 20px; }
.az_c_empty_links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.az_c_empty_links a {
    padding: 8px 20px; border: 1px solid var(--az-line); border-radius: 999px;
    font-size: 13px; color: var(--az-ink-2); background: var(--az-paper); transition: all .22s;
}
.az_c_empty_links a:hover { background: var(--az-green); border-color: var(--az-green); color: #fff; }

/* ============================================
   ⑤ 栏目说明条
   ============================================ */
.az_c_note {
    margin-top: 34px; padding: 16px 22px; border-radius: var(--az-radius);
    background: var(--az-paper-2); border: 1px dashed var(--az-line);
    font-size: 12.5px; color: var(--az-ink-3); line-height: 1.95;
}
.az_c_note i { color: var(--az-sage); margin-right: 6px; }

/* ============================================
   ⑥ 底部推荐
   ============================================ */
.az_c_tail { margin-top: 44px; }
.az_c_tail_head {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.az_c_tail_head h3 {
    font-family: var(--az-serif); font-size: 21px; font-weight: 700; color: var(--az-dark);
    letter-spacing: 1px; flex-shrink: 0;
}
.az_c_tail_head small { font-size: 11.5px; letter-spacing: 2px; color: var(--az-gold-deep); flex-shrink: 0; }
.az_c_tail_head::after { content: ''; flex: 1; height: 1px; background: var(--az-line); }
.az_c_tail_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* ============================================
   搜索页 —— 宣纸米白搜索区
   ============================================ */
.az_sr_hero {
    background: var(--az-paper-2); border-bottom: 1px solid var(--az-line);
    position: relative; overflow: hidden;
}
.az_sr_hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--az-grad-line); opacity: .7;
}
.az_sr_hero_in { max-width: 820px; margin: 0 auto; padding: 46px 20px 42px; text-align: center; position: relative; z-index: 1; }
.az_sr_hero_eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 3px; color: var(--az-gold-deep); margin-bottom: 12px;
}
.az_sr_hero_eyebrow::before, .az_sr_hero_eyebrow::after { content: ''; width: 20px; height: 1px; background: var(--az-gold); }
.az_sr_hero_in h1 {
    font-family: var(--az-serif); font-size: 30px; font-weight: 700;
    color: var(--az-dark); letter-spacing: 1.5px; margin-bottom: 10px;
}
.az_sr_hero_in h1 em { font-style: normal; color: var(--az-green); }
.az_sr_hero_in > p { font-size: 13.5px; color: var(--az-ink-2); margin-bottom: 22px; }
.az_sr_hero_in > p strong { color: var(--az-red); font-weight: 700; }
.az_sr_form { display: flex; height: 50px; max-width: 600px; margin: 0 auto; }
.az_sr_form input {
    flex: 1; min-width: 0; height: 100%; padding: 0 22px; font-size: 14px; color: var(--az-ink);
    border: 1px solid var(--az-gold); border-right: none; border-radius: var(--az-radius) 0 0 var(--az-radius);
    background: #fff; outline: none;
}
.az_sr_form input::placeholder { color: var(--az-ink-3); }
.az_sr_form button {
    flex-shrink: 0; padding: 0 30px; border: none; border-radius: 0 var(--az-radius) var(--az-radius) 0;
    background: var(--az-grad-gold); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px;
    display: inline-flex; align-items: center; gap: 8px; transition: filter .2s;
}
.az_sr_form button:hover { filter: brightness(1.06); }
.az_sr_hot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; font-size: 12.5px; color: var(--az-ink-3); }
.az_sr_hot a {
    padding: 4px 13px; background: #fff; border: 1px solid var(--az-line); border-radius: 999px;
    color: var(--az-ink-2); transition: all .2s;
}
.az_sr_hot a:hover { background: var(--az-green); border-color: var(--az-green); color: #fff; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1200px) {
    .az_c_grid, .az_c_tail_grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .az_c_bar { top: 0; }
    .az_c_head { flex-wrap: wrap; gap: 16px; padding: 20px 22px; }
    .az_c_head_stats { width: 100%; justify-content: flex-start; border-top: 1px solid var(--az-line); padding-top: 14px; }
    .az_c_head_stat:first-child { padding-left: 0; }
    .az_c_grid, .az_c_tail_grid { grid-template-columns: repeat(3, 1fr); }
    .az_sr_hero_in { padding: 34px 20px 30px; }
    .az_sr_hero_in h1 { font-size: 24px; }
}

@media (max-width: 768px) {
    .az_c_head_ic { width: 52px; height: 52px; font-size: 21px; }
    .az_c_head_tt h1 { font-size: 21px; }
    .az_c_bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
    .az_c_chips, .az_c_sort { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
    .az_c_chips::-webkit-scrollbar, .az_c_sort::-webkit-scrollbar { height: 0; }
    .az_c_chip, .az_c_chips_label, .az_c_sort_btn, .az_c_sort_label { flex-shrink: 0; white-space: nowrap; }
    .az_c_grid, .az_c_tail_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .az_sr_form { height: 44px; }
    .az_sr_form button { padding: 0 20px; font-size: 13.5px; letter-spacing: 1px; }
    .az_sr_hero_in h1 { font-size: 20px; }
    .az_c_tail_head h3 { font-size: 18px; }
    .az_c_tail_head small { display: none; }
}

@media (max-width: 560px) {
    .az_c_head_stat { padding: 0 14px; }
    .az_c_head_stat b { font-size: 20px; }
    .az_c_empty { padding: 44px 16px; }
    .az_c_note { padding: 14px 16px; }
}
