/* ============================================================
   悦享方舟 · 入驻服务商列表 v4.0
   布局：渐变页头（含统计）+ 工具条 + 四列紧凑卡片
   ============================================================ */

/* ---------- 页头 ---------- */
.yf_mhead {
    position: relative;
    background: var(--yf-grad-cta);
    padding: 32px 0 34px;
    overflow: hidden;
}
.yf_mhead::before {
    content: "";
    position: absolute;
    top: -180px; right: -40px;
    width: 470px; height: 470px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 188, 240, .26) 0%, transparent 68%);
    pointer-events: none;
}
.yf_mhead > .zh_container { position: relative; z-index: 2; }
.yf_mhead .zh_breadcrumb { display: flex; color: rgba(226, 238, 252, .66); margin-bottom: 14px; }
.yf_mhead .zh_breadcrumb a { color: rgba(226, 238, 252, .82); }
.yf_mhead .zh_breadcrumb a:hover { color: #fff; }
.yf_mhead .zh_breadcrumb i { color: rgba(226, 238, 252, .45); }
.yf_mhead .zh_crumb_current { color: #fff; }

.yf_mhead_row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}
.yf_mhead_text { min-width: 0; }
.yf_mhead_text h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: .5px;
}
.yf_mhead_text p {
    font-size: 14px;
    color: rgba(226, 238, 252, .78);
    margin: 0;
    max-width: 700px;
}

.yf_mhead_stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.yf_mhead_stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--yf-radius-lg);
    text-align: center;
}
.yf_mhead_stats strong {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.yf_mhead_stats span { font-size: 11.5px; color: rgba(226, 238, 252, .76); margin-top: 2px; }

/* ---------- 工具条 ---------- */
.yf_mtool {
    background: #fff;
    border-bottom: 1px solid var(--yf-border);
}
.yf_mtool_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 62px;
}
.yf_mtool_count { font-size: 13.5px; color: var(--yf-text-muted); }
.yf_mtool_count strong { color: var(--yf-primary); font-size: 16px; font-weight: 800; margin: 0 2px; }
.yf_mtool_search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 270px;
    padding: 4px 4px 4px 15px;
    background: var(--yf-bg);
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius-pill);
    transition: all .22s ease;
}
.yf_mtool_search:focus-within { background: #fff; border-color: var(--yf-cyan); box-shadow: 0 0 0 3px rgba(22, 162, 224, .12); }
.yf_mtool_search > i { color: var(--yf-text-light); font-size: 12.5px; flex-shrink: 0; }
.yf_mtool_search input {
    flex: 1; min-width: 0; height: 30px;
    border: none; background: transparent; outline: none;
    font-size: 13.5px; font-family: inherit; color: var(--yf-text);
}
.yf_mtool_search button {
    flex-shrink: 0; width: 30px; height: 30px;
    border: none; border-radius: 50%;
    background: var(--yf-primary); color: #fff;
    font-size: 11px; cursor: pointer;
    transition: background .2s ease;
}
.yf_mtool_search button:hover { background: var(--yf-cyan); }

/* ---------- 四列卡片 ---------- */
.yf_mbody { padding: 36px 0 20px; }
.yf_mgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.yf_mcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius-xl);
    padding: 26px 22px 18px;
    transition: all .26s ease;
    position: relative;
    overflow: hidden;
}
.yf_mcard::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--yf-grad-line);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.yf_mcard:hover { transform: translateY(-5px); box-shadow: var(--yf-shadow-md); border-color: transparent; }
.yf_mcard:hover::before { transform: scaleX(1); }

.yf_mcard_top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.yf_mcard_ava {
    width: 64px; height: 64px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--yf-grad-brand);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800;
    margin-bottom: 13px;
    box-shadow: 0 8px 20px rgba(11, 58, 141, .18);
}
.yf_mcard_top h2 {
    margin: 0 0 7px;
    font-size: 17px; font-weight: 700; color: var(--yf-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.yf_mcard:hover .yf_mcard_top h2 { color: var(--yf-primary); }
.yf_mcard_ok {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 11px;
    border-radius: var(--yf-radius-pill);
    background: var(--yf-green-soft);
    color: #3E8A38;
    font-size: 11.5px; font-weight: 600;
}
.yf_mcard_ok i { font-size: 11px; }

.yf_mcard_desc {
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--yf-text-muted);
    text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 46px;
}

.yf_mcard_nums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0 0;
    padding: 14px 0;
    border-top: 1px dashed var(--yf-border);
    border-bottom: 1px dashed var(--yf-border);
}
.yf_mcard_nums div { text-align: center; }
.yf_mcard_nums strong {
    display: block;
    font-size: 19px; font-weight: 800; color: var(--yf-primary); line-height: 1.2;
}
.yf_mcard_nums span { font-size: 11.5px; color: var(--yf-text-muted); }

.yf_mcard_last {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 9px 12px;
    background: var(--yf-bg);
    border-radius: var(--yf-radius);
    font-size: 12.5px;
    color: var(--yf-text-body);
    min-width: 0;
}
.yf_mcard_last i { color: var(--yf-cyan); font-size: 11px; flex-shrink: 0; }
.yf_mcard_last span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yf_mcard_last:hover { color: var(--yf-primary); background: var(--yf-cyan-soft); }

.yf_mcard_act {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.yf_mcard_tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    border-radius: var(--yf-radius-pill);
    background: var(--yf-grad-cyan);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: box-shadow .22s ease;
}
.yf_mcard_tel:hover { color: #fff; box-shadow: var(--yf-shadow-cyan); }
.yf_mcard_tel i { font-size: 12px; }
.yf_mcard_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    border-radius: var(--yf-radius-pill);
    border: 1px solid var(--yf-border-strong);
    color: var(--yf-primary);
    font-size: 13.5px;
    font-weight: 600;
    transition: all .22s ease;
}
.yf_mcard_more i { font-size: 11px; transition: transform .22s ease; }
.yf_mcard_more:hover { color: var(--yf-cyan-deep); border-color: var(--yf-cyan); background: var(--yf-cyan-soft); }
.yf_mcard_more:hover i { transform: translateX(3px); }

/* ---------- 入驻说明 ---------- */
.yf_mrule { padding: 26px 0 60px; }
.yf_mrule_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--yf-border);
    border-left: 4px solid var(--yf-cyan);
    border-radius: var(--yf-radius-xl);
}
.yf_mrule_text { min-width: 0; }
.yf_mrule_text h3 {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 10px;
    font-size: 17px; font-weight: 700; color: var(--yf-text);
}
.yf_mrule_text h3 i { color: var(--yf-cyan); font-size: 15px; }
.yf_mrule_text p { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--yf-text-muted); }
.yf_mrule_act { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.yf_mrule_act .zh_btn { white-space: nowrap; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
    .yf_mgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .yf_mhead_row { flex-direction: column; align-items: flex-start; gap: 22px; }
    .yf_mhead_stats { width: 100%; }
    .yf_mhead_stats li { flex: 1; min-width: 0; }
    .yf_mgrid { grid-template-columns: repeat(2, 1fr); }
    .yf_mrule_box { flex-direction: column; align-items: stretch; gap: 20px; }
    .yf_mrule_act { flex-direction: row; }
    .yf_mrule_act .zh_btn { flex: 1; }
}
@media (max-width: 768px) {
    .yf_mhead { padding: 24px 0 26px; }
    .yf_mhead_stats { gap: 8px; }
    .yf_mhead_stats li { padding: 10px 8px; min-width: 0; }
    .yf_mhead_stats strong { font-size: 19px; }
    .yf_mhead_stats span { font-size: 10.5px; }
    .yf_mtool_inner { flex-direction: column; align-items: stretch; gap: 12px; height: auto; padding-top: 14px; padding-bottom: 14px; }
    .yf_mtool_search { width: 100%; }
    .yf_mbody { padding: 24px 0 10px; }
    .yf_mgrid { grid-template-columns: 1fr; gap: 14px; }
    .yf_mcard { padding: 22px 20px 16px; }
    .yf_mcard_desc { min-height: 0; }
    .yf_mrule { padding: 20px 0 44px; }
    .yf_mrule_box { padding: 20px 20px; }
    .yf_mrule_act { flex-direction: column; }
}
