/* ============================================
   merchants.css — 商家列表 + 商家详情（信言方兴新版）
   类名沿用 .zh_mc_*，配色藏蓝 + 橙
   ============================================ */

/* ============================================
   列表页 Hero
   ============================================ */
.xy_mc_hero { background: var(--xy-grad-navy); position: relative; overflow: hidden; }
.xy_mc_hero::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: url('/uploads/banner/banner.jpg') center right / cover no-repeat; opacity: .15; -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); }
.xy_mc_hero_in { max-width: 1280px; margin: 0 auto; padding: 44px 20px; position: relative; z-index: 1; }
.xy_mc_hero_crumb { font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.xy_mc_hero_crumb a { color: rgba(255,255,255,.7); }
.xy_mc_hero_crumb a:hover { color: #fff; }
.xy_mc_hero_eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--xy-orange); font-weight: 700; }
.xy_mc_hero h1 { font-size: 32px; font-weight: 800; color: #fff; margin: 8px 0 8px; }
.xy_mc_hero p { font-size: 14px; color: rgba(255,255,255,.82); }
.xy_mc_hero p strong { color: var(--xy-orange); }

/* 搜索栏 */
.zh_mc_search_bar { background: #fff; border-bottom: 1px solid var(--xy-line); }
.zh_mc_search_inner { max-width: 1280px; margin: 0 auto; padding: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.zh_mc_search_form { display: flex; align-items: stretch; height: 46px; width: 100%; max-width: 520px; border: 1.5px solid var(--xy-navy); border-radius: 999px; overflow: hidden; position: relative; background: #fff; }
.zh_mc_search_icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--xy-blue); font-size: 15px; pointer-events: none; }
.zh_mc_search_form input { flex: 1; border: none; outline: none; padding: 0 16px 0 44px; font-size: 14px; color: var(--xy-text); background: transparent; min-width: 0; }
.zh_mc_search_form button { flex-shrink: 0; width: 100px; border: none; background: var(--xy-grad-orange); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .2s; }
.zh_mc_search_form button:hover { filter: brightness(1.06); }
.zh_mc_search_active { font-size: 13px; color: var(--xy-text-2); display: flex; align-items: center; gap: 12px; }
.zh_mc_search_active a { color: var(--xy-orange); }

/* 商家网格 */
.zh_mc_list_wrap { background: var(--xy-bg); }
.zh_mc_list_inner { max-width: 1280px; margin: 0 auto; padding: 32px 20px 56px; }
.zh_mc_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zh_mc_card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--xy-line); border-radius: 18px; padding: 30px 24px 24px; transition: all .25s; position: relative; overflow: hidden; }
.zh_mc_card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--xy-grad-orange); transform: scaleX(0); transition: transform .25s; }
.zh_mc_card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(18,43,82,.12); border-color: transparent; }
.zh_mc_card:hover::before { transform: scaleX(1); }
.zh_mc_card_logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--xy-bg); border: 2px solid var(--xy-line); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.zh_mc_card_logo img { width: 100%; height: 100%; object-fit: cover; }
.zh_mc_card_logo_fallback { font-size: 32px; font-weight: 800; color: var(--xy-blue); }
.zh_mc_card_name { font-size: 17px; font-weight: 700; color: var(--xy-navy); margin-bottom: 8px; }
.zh_mc_card_tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--xy-orange); background: var(--xy-orange-tint); padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.zh_mc_card_tag_dark { color: #fff; background: var(--xy-navy); }
.zh_mc_card_desc { font-size: 13px; color: var(--xy-text-2); line-height: 1.7; margin-bottom: 18px; min-height: 44px; }
.zh_mc_card_stats { display: flex; width: 100%; border-top: 1px solid var(--xy-line); padding-top: 16px; margin-bottom: 16px; }
.zh_mc_card_stat { flex: 1; }
.zh_mc_card_stat strong { display: block; font-size: 18px; font-weight: 800; color: var(--xy-navy); font-family: "Arial"; }
.zh_mc_card_stat small { font-size: 11.5px; color: var(--xy-text-3); }
.zh_mc_card_btn { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--xy-blue); transition: gap .2s; }
.zh_mc_card:hover .zh_mc_card_btn { gap: 10px; color: var(--xy-orange); }
.zh_mc_card_btn_primary { color: #fff; background: var(--xy-grad-orange); padding: 9px 24px; border-radius: 999px; }
.zh_mc_card_join { background: var(--xy-blue-tint); border-color: transparent; }
.zh_mc_card_join_icon { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 2px dashed var(--xy-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 30px; color: var(--xy-orange); margin-bottom: 14px; }

/* 空态 */
.zh_mc_empty { background: #fff; border: 1px solid var(--xy-line); border-radius: 18px; padding: 60px 24px; text-align: center; }
.zh_mc_empty .zh_empty_state_icon { width: 96px; height: 96px; border-radius: 50%; background: var(--xy-blue-tint); color: var(--xy-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 42px; margin-bottom: 18px; }
.zh_mc_empty h3 { font-size: 19px; color: var(--xy-navy); margin-bottom: 8px; }
.zh_mc_empty p { font-size: 13.5px; color: var(--xy-text-3); margin-bottom: 20px; }
.zh_mc_empty_btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================
   详情页
   ============================================ */
.zh_mc_breadcrumb { background: #fff; border-bottom: 1px solid var(--xy-line); }
.zh_mc_breadcrumb_inner { max-width: 1280px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--xy-text-2); flex-wrap: wrap; }
.zh_mc_breadcrumb_inner a { color: var(--xy-text-2); }
.zh_mc_breadcrumb_inner a:hover { color: var(--xy-blue); }
.zh_mc_breadcrumb_inner .sep { color: var(--xy-text-3); }
.zh_mc_breadcrumb_inner .active { color: var(--xy-navy); font-weight: 600; }

.zh_mc_show_banner { height: 220px; background-size: cover; background-position: center; position: relative; }
.zh_mc_show_banner_overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(20,49,95,.86), rgba(47,111,224,.7)); }
.zh_mc_show_wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 56px; }

.zh_mc_show_card { background: #fff; border: 1px solid var(--xy-line); border-radius: 20px; box-shadow: 0 16px 40px rgba(18,43,82,.1); padding: 28px 32px; margin-top: -80px; position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; }
.zh_mc_show_card_logo { width: 104px; height: 104px; border-radius: 20px; overflow: hidden; background: var(--xy-bg); border: 1px solid var(--xy-line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zh_mc_show_card_logo img { width: 100%; height: 100%; object-fit: cover; }
.zh_mc_card_logo_fallback { font-size: 40px; font-weight: 800; color: var(--xy-blue); }
.zh_mc_show_card_main { min-width: 0; }
.zh_mc_show_card_head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.zh_mc_show_name { font-size: 26px; font-weight: 800; color: var(--xy-navy); }
.zh_mc_show_badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--xy-orange); background: var(--xy-orange-tint); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.zh_mc_show_card_meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.zh_mc_show_card_meta span { font-size: 13px; color: var(--xy-text-2); }
.zh_mc_show_card_meta i { color: var(--xy-blue); margin-right: 5px; }
.zh_mc_show_card_desc { font-size: 13.5px; color: var(--xy-text-2); line-height: 1.7; }
.zh_mc_show_card_actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.zh_mc_show_stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--xy-line); }
.zh_mc_show_stat { text-align: center; }
.zh_mc_show_stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--xy-orange); font-family: "Arial"; }
.zh_mc_show_stat small { font-size: 12px; color: var(--xy-text-3); }

/* 通用小标题（替代旧 zh_hh_secthead_eyebrow） */
.zh_mc_eyebrow, .zh_hh_secthead_eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--xy-orange); font-weight: 700; }

.zh_mc_show_products { margin-top: 36px; }
.zh_mc_show_products_head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.zh_mc_show_products_title h2 { font-size: 22px; font-weight: 800; color: var(--xy-navy); margin-top: 4px; }
.zh_mc_show_products_count { font-size: 13.5px; color: var(--xy-text-2); }
.zh_mc_show_products_count strong { color: var(--xy-orange); font-size: 16px; }
.zh_mc_show_products_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.zh_mc_show_about { margin-top: 40px; background: #fff; border: 1px solid var(--xy-line); border-radius: 18px; padding: 28px 30px; }
.zh_mc_show_about_head h2 { font-size: 20px; font-weight: 800; color: var(--xy-navy); margin-top: 4px; }
.zh_mc_show_about_body { font-size: 14px; color: var(--xy-text-2); line-height: 1.9; margin-top: 16px; }

@media (max-width: 991px) {
    .zh_mc_list { grid-template-columns: repeat(2, 1fr); }
    .zh_mc_show_products_grid { grid-template-columns: repeat(3, 1fr); }
    .zh_mc_show_card { grid-template-columns: auto 1fr; }
    .zh_mc_show_card_actions { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 767px) {
    .xy_mc_hero h1 { font-size: 24px; }
    .zh_mc_list { grid-template-columns: 1fr; }
    .zh_mc_show_products_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .zh_mc_show_card { grid-template-columns: 1fr; text-align: center; padding: 22px; margin-top: -60px; }
    .zh_mc_show_card_logo { margin: 0 auto; }
    .zh_mc_show_card_head, .zh_mc_show_card_meta { justify-content: center; }
    .zh_mc_show_card_actions { flex-direction: column; }
    .zh_mc_show_banner { height: 160px; }
}
