/* ============================================
   category.css — 分类页 / 搜索页
   ============================================ */

.zh_cat_layout {
    max-width: 1240px;
    margin: 36px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

/* ========== 左侧栏 ========== */
.zh_cat_sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zh_cs_block {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius);
    overflow: hidden;
}

.zh_cs_head {
    padding: 14px 18px;
    background: var(--zh-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zh_cs_head i { color: var(--zh-gold); }

.zh_cs_body { padding: 10px 0; }

.zh_cs_body a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: var(--zh-text);
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.zh_cs_body a:hover,
.zh_cs_body a.active {
    background: var(--zh-bg-soft);
    color: var(--zh-primary);
    border-left-color: var(--zh-gold);
    padding-left: 22px;
}
.zh_cs_body a i { color: var(--zh-text-3); font-size: 11px; }

.zh_cs_price {
    padding: 14px 18px;
}
.zh_cs_price_row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.zh_cs_price_row input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--zh-line);
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}
.zh_cs_price_row input:focus { border-color: var(--zh-primary-soft); }
.zh_cs_price_row span { color: var(--zh-text-3); font-size: 12px; }
.zh_cs_price_btn {
    width: 100%;
    padding: 8px;
    background: var(--zh-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.zh_cs_price_btn:hover { background: var(--zh-gold); color: var(--zh-primary-deep); }

.zh_cs_support {
    background: var(--zh-grad-primary);
    color: #fff;
    padding: 22px 18px;
    text-align: center;
    border-radius: var(--zh-radius);
    position: relative;
    overflow: hidden;
}
.zh_cs_support::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(212,168,58,0.15);
}
.zh_cs_support i {
    font-size: 28px;
    color: var(--zh-gold);
    margin-bottom: 10px;
    position: relative;
}
.zh_cs_support h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
}
.zh_cs_support p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    position: relative;
}
.zh_cs_support strong {
    display: block;
    font-size: 18px;
    color: var(--zh-gold-light);
    position: relative;
    font-family: "Arial", sans-serif;
}

/* ========== 右侧主体 ========== */
.zh_cat_main {
    min-width: 0;
}

/* 工具条 */
.zh_cat_toolbar {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.zh_cat_sort {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    overflow: hidden;
}

.zh_cat_sort a {
    padding: 8px 18px;
    color: var(--zh-text-2);
    font-size: 13px;
    background: #fff;
    border-right: 1px solid var(--zh-line);
    transition: all 0.2s;
}
.zh_cat_sort a:last-child { border-right: none; }
.zh_cat_sort a:hover { color: var(--zh-primary); background: var(--zh-bg-soft); }
.zh_cat_sort a.active {
    background: var(--zh-primary);
    color: #fff;
    font-weight: 600;
}

.zh_cat_total {
    font-size: 13px;
    color: var(--zh-text-3);
}
.zh_cat_total strong { color: var(--zh-accent); font-size: 16px; font-weight: 700; margin: 0 3px; }

/* 结果头 */
.zh_cat_intro {
    background: linear-gradient(135deg, rgba(27,58,107,0.04) 0%, rgba(212,168,58,0.08) 100%);
    border: 1px solid var(--zh-line);
    border-left: 4px solid var(--zh-gold);
    border-radius: var(--zh-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.zh_cat_intro h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--zh-primary);
    margin-bottom: 6px;
}
.zh_cat_intro p {
    font-size: 13px;
    color: var(--zh-text-2);
    line-height: 1.7;
    margin: 0;
}

/* 商品网格（4 列） */
.zh_cat_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ========== 底部推荐 ========== */
.zh_cat_tail {
    max-width: 1240px;
    margin: 60px auto 0;
    padding: 40px 20px 60px;
    border-top: 1px solid var(--zh-line);
}

.zh_cat_tail_head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.zh_cat_tail_head h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--zh-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.zh_cat_tail_head h3::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--zh-grad-gold);
    border-radius: 2px;
}

.zh_cat_tail_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
    .zh_cat_grid { grid-template-columns: repeat(3, 1fr); }
    .zh_cat_tail_grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .zh_cat_layout { grid-template-columns: 1fr; }
    .zh_cat_sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .zh_cs_block { flex: 1; min-width: 260px; }
    .zh_cs_support { display: none; }
    .zh_cat_grid { grid-template-columns: repeat(3, 1fr); }
    .zh_cat_tail_grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .zh_cat_layout { margin-top: 20px; }
    .zh_cat_sidebar { display: none; }
    .zh_cat_toolbar { padding: 10px 12px; gap: 10px; }
    .zh_cat_sort a { padding: 6px 12px; font-size: 12px; }
    .zh_cat_grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .zh_cat_intro { padding: 16px; }
    .zh_cat_intro h2 { font-size: 18px; }
    .zh_cat_tail_grid { grid-template-columns: repeat(2, 1fr); }
}
