/* ============================================
   merchants.css — 商家列表 + 商家详情
   ============================================ */

.zh_mr_wrap {
    max-width: 1240px;
    margin: 28px auto 60px;
    padding: 0 20px;
}

/* ========== 商家列表页 ========== */
.zh_mr_toolbar {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.zh_mr_search {
    display: flex;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-sm);
    overflow: hidden;
    min-width: 320px;
}
.zh_mr_search input {
    flex: 1;
    border: none;
    padding: 9px 14px;
    font-size: 13px;
    outline: none;
}
.zh_mr_search button {
    width: 80px;
    border: none;
    background: var(--zh-primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.zh_mr_search button:hover { background: var(--zh-primary-deep); }

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

/* 商家卡片网格 */
.zh_mr_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.zh_mr_card {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.zh_mr_card:hover {
    transform: translateY(-6px);
    border-color: var(--zh-gold);
    box-shadow: var(--zh-shadow-lg);
}

.zh_mr_cover {
    height: 120px;
    background: var(--zh-grad-primary);
    position: relative;
    overflow: hidden;
    border-radius: var(--zh-radius-lg) var(--zh-radius-lg) 0 0;
}

.zh_mr_cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/uploads/banner/banner.jpg') center / cover no-repeat;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.zh_mr_cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,42,80,0.3) 0%, rgba(18,42,80,0.7) 100%);
}

.zh_mr_card_logo {
    position: absolute;
    top: 84px;
    left: 28px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--zh-grad-primary);
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(18,42,80,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    overflow: hidden;
    z-index: 3;
}
.zh_mr_card_logo img { width: 100%; height: 100%; object-fit: cover; }

.zh_mr_card_badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: rgba(212,168,58,0.2);
    border: 1px solid var(--zh-gold);
    color: var(--zh-gold-light);
    font-size: 11px;
    border-radius: 14px;
    z-index: 2;
}

.zh_mr_card_body {
    padding: 44px 28px 24px;
}

.zh_mr_card_name {
    font-size: 17px;
    font-weight: 700;
    color: var(--zh-primary);
    margin: 0 0 8px;
    line-height: 1.4;
}

.zh_mr_card_desc {
    font-size: 13px;
    color: var(--zh-text-2);
    line-height: 1.7;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_mr_card_foot {
    padding: 16px 28px;
    border-top: 1px solid var(--zh-line);
    background: var(--zh-bg-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--zh-text-3);
    border-radius: 0 0 var(--zh-radius-lg) var(--zh-radius-lg);
}

.zh_mr_card_foot .zh_btn {
    padding: 7px 18px;
    font-size: 12px;
}

/* ========== 商家详情页 ========== */
.zh_mr_banner {
    background: var(--zh-grad-primary);
    position: relative;
    overflow: hidden;
    padding: 46px 0;
}

.zh_mr_banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/uploads/banner/banner.jpg') right center / cover no-repeat;
    opacity: 0.2;
    mix-blend-mode: screen;
}

.zh_mr_banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--zh-grad-gold);
}

.zh_mr_banner_inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.zh_mr_logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--zh-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zh-primary);
    font-size: 40px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.zh_mr_logo img { width: 100%; height: 100%; object-fit: cover; }

.zh_mr_banner_info { color: #fff; flex: 1; min-width: 0; }

.zh_mr_banner_info h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.zh_mr_banner_badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212,168,58,0.2);
    border: 1px solid var(--zh-gold);
    color: var(--zh-gold-light);
    font-size: 12px;
    border-radius: 14px;
    font-weight: 500;
}

.zh_mr_banner_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zh_mr_banner_meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    flex-wrap: wrap;
}
.zh_mr_banner_meta span strong { color: var(--zh-gold-light); font-weight: 700; margin: 0 2px; font-family: "Arial", sans-serif; font-size: 15px; }

.zh_mr_banner_actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* 信息条 */
.zh_mr_info_bar {
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius);
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.zh_mr_info_bar_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 20px;
    border-right: 1px solid var(--zh-line);
}
.zh_mr_info_bar_item:last-child { border-right: none; }

.zh_mr_info_bar_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--zh-bg-soft);
    color: var(--zh-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.zh_mr_info_bar_k { font-size: 11px; color: var(--zh-text-3); }
.zh_mr_info_bar_v { font-size: 14px; color: var(--zh-primary); font-weight: 600; margin-top: 2px; }

/* 商家简介 */
.zh_mr_about {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--zh-line);
    border-radius: var(--zh-radius-lg);
    padding: 28px 32px;
}

.zh_mr_about h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--zh-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.zh_mr_about h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--zh-gold);
    border-radius: 2px;
}

.zh_mr_about_body {
    font-size: 14px;
    color: var(--zh-text-2);
    line-height: 2;
}

/* 商家商品 */
.zh_mr_products {
    margin-top: 24px;
}

.zh_mr_products_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--zh-line);
    margin-bottom: 22px;
}

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

.zh_mr_products_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
    .zh_mr_grid { grid-template-columns: repeat(2, 1fr); }
    .zh_mr_banner_inner { gap: 20px; }
    .zh_mr_banner_info h1 { font-size: 22px; }
    .zh_mr_info_bar { grid-template-columns: repeat(2, 1fr); }
    .zh_mr_info_bar_item { border-right: none; padding-right: 0; }
    .zh_mr_products_grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .zh_mr_wrap { margin-top: 16px; }
    .zh_mr_toolbar { padding: 12px 16px; }
    .zh_mr_search { min-width: 0; width: 100%; }
    .zh_mr_grid { grid-template-columns: 1fr; }
    .zh_mr_banner { padding: 28px 0; }
    .zh_mr_banner_inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .zh_mr_logo { width: 80px; height: 80px; font-size: 30px; }
    .zh_mr_info_bar { grid-template-columns: 1fr; padding: 14px; }
    .zh_mr_about { padding: 20px; }
    .zh_mr_products_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
