/*
 * 锁匠.CC 移动端 H5 应用样式
 * 完全重构手机端体验：底部导航栏 + App式布局 + 移动端卡片
 * 仅在 767px 及以下生效，不影响电脑端。
 * 版本: 3.6 — 重构详情页：折叠卡片、信息优先级重排、评价按钮触发
 */

/* ================================================================
 * 黑榜红黑渐变自定义类（Tailwind预构建CSS不含红色渐变类，需自定义）
 * ================================================================ */
.bl-gradient-r { background: linear-gradient(to right, #1f2937, #b91c1c); }
.bl-gradient-br { background: linear-gradient(to bottom right, #1f2937, #b91c1c); }
.bl-gradient-b { background: linear-gradient(to bottom, #1f2937, #b91c1c, #dc2626); }
.bl-gradient-r-hover { background: linear-gradient(to right, #1f2937, #b91c1c); transition: background 0.2s; }
.bl-gradient-r-hover:hover { background: linear-gradient(to right, #111827, #991b1b); }
.bl-high-risk { background: linear-gradient(to right, #dc2626, #991b1b); }
.bl-call-btn { background: linear-gradient(to right, #1f2937, #b91c1c); transition: background 0.2s; }
.bl-call-btn:hover { background: linear-gradient(to right, #111827, #991b1b); }

/* 绿榜渐变自定义类 */
.gl-gradient-r { background: linear-gradient(to right, #10b981, #f59e0b); }
.gl-call-btn { background: linear-gradient(to right, #10b981, #f59e0b); transition: background 0.2s; }
.gl-call-btn:hover { background: linear-gradient(to right, #059669, #d97706); }

/* ================================================================
 * 基础重置与全局设定
 * ================================================================ */

/* 桌面端默认隐藏移动端专属元素 */
.m-only, .m-only-flex, .m-only-grid, .m-only-inline {
    display: none !important;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: calc(var(--m-header-h, 67px) + 8px);
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    body {
        background: #f5f6f8;
        font-size: 14px;
        line-height: 1.55;
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
        padding-bottom: 64px; /* 底部导航栏高度 */
    }

    * {
        -webkit-tap-highlight-color: transparent;
    }

    input, select, textarea, button, a {
        touch-action: manipulation;
    }

    input, select, textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        border-radius: 12px;
    }

    button, a[href] {
        min-height: 44px;
    }

    .card-hover:hover {
        transform: none;
    }

    img {
        max-width: 100%;
    }

    /* 隐藏桌面端顶部导航 */
    body > nav.fixed.w-full {
        display: none !important;
    }

    /* 隐藏桌面端移动菜单抽屉 */
    #mobile-menu {
        display: none !important;
    }

    /* 安全区辅助 */
    .safe-area-pt {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    .safe-area-pb {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* ================================================================
 *  移动端顶部搜索栏（替代桌面导航）
 * ================================================================ */
@media (max-width: 767px) {
    .m-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: linear-gradient(135deg, #1a6dfc 0%, #0f55d8 60%, #0d4dbe 100%);
        padding: max(10px, env(safe-area-inset-top)) 14px 12px;
        box-shadow: 0 3px 16px rgba(26, 109, 252, 0.25);
        border-bottom: 1px solid rgba(255,255,255,.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .m-header-row {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .m-header-loc {
        display: flex;
        align-items: center;
        gap: 3px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        max-width: 72px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex-shrink: 0;
        text-decoration: none;
        padding: 4px 6px;
        border-radius: 8px;
        background: rgba(255,255,255,.1);
        -webkit-tap-highlight-color: transparent;
        transition: background .2s;
    }
    .m-header-loc:active { background: rgba(255,255,255,.2); }

    .m-header-loc i {
        font-size: 11px;
        flex-shrink: 0;
    }

    .m-header-search {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 22px;
        padding: 0 14px;
        height: 38px;
        gap: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
    }

    .m-header-search-link {
        text-decoration: none;
        font-size: 13px;
        color: #9ca3af;
        -webkit-tap-highlight-color: transparent;
    }
    .m-header-search-link:active { opacity: .7; }

    .m-header-search i {
        color: #9ca3af;
        font-size: 14px;
        flex-shrink: 0;
    }

    .m-header-search input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        color: #1f2937;
        width: 100%;
        min-height: auto !important;
        padding: 0;
    }

    .m-header-search input::placeholder {
        color: #9ca3af;
    }

    .m-header-logo {
        color: #fff;
        font-size: 17px;
        font-weight: 800;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        letter-spacing: .3px;
        text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }

    .m-header-logo i {
        font-size: 16px;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
    }

    .m-header-back {
        width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,.15);
        color: #fff; font-size: 16px;
        text-decoration: none;
        flex-shrink: 0;
        transition: background .2s, transform .15s;
        -webkit-tap-highlight-color: transparent;
    }
    .m-header-back:active {
        background: rgba(255,255,255,.25);
        transform: scale(.92);
    }

    .m-header-title {
        color: #fff;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: .5px;
        text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
}

/* ================================================================
 *  底部导航栏（App 式 Tab Bar）
 * ================================================================ */
@media (max-width: 767px) {
    .m-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        display: flex;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
    }

    .m-tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 0 8px;
        color: #9ca3af;
        font-size: 11px;
        font-weight: 500;
        text-decoration: none;
        min-height: 56px;
        transition: color 0.2s;
    }

    .m-tabbar a i {
        font-size: 20px;
        line-height: 1;
    }

    .m-tabbar a.active {
        color: #1a6dfc;
        font-weight: 700;
    }

    .m-tabbar a.active i {
        transform: scale(1.1);
        transition: transform 0.2s;
    }
}

/* ================================================================
 *  首页移动端布局
 * ================================================================ */
@media (max-width: 767px) {
    /* 隐藏桌面端 Hero 区域 */
    header.hero-soft-bg,
    header[class*="pt-28"],
    header[class*="pt-32"] {
        display: none !important;
    }

    /* 显示移动端首页内容区 */
    .m-home {
        /* 顶部搜索栏为 fixed，实际高度由 JS 写入 --m-header-h（含刘海屏安全区） */
        padding-top: var(--m-header-h, 67px);
    }

    /* ===== 蓝色品牌延伸区（门户型视觉主体） ===== */
    .m-hero-zone {
        background: linear-gradient(180deg, #0d4dbe 0%, #1a6dfc 45%, #3b82f6 100%);
        border-radius: 0 0 20px 20px;
        padding: 12px 0 16px;
    }

    .m-hero-zone .m-stats-bar {
        box-shadow: 0 6px 20px rgba(9, 46, 120, 0.15);
    }

    /* 蓝底区内的师傅推荐：标题白字适配 */
    .m-hero-zone .m-master-section { margin: 14px 0 0; }
    .m-hero-zone .m-section-title-v2 { color: #fff; }
    .m-hero-zone .m-section-title-v2 .m-section-icon.is-blue {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }
    .m-hero-zone .m-section-more-v2 { color: rgba(255, 255, 255, 0.85); }

    /* 金刚区 v2：白卡浮起、图标放大 */
    .m-category-grid.m-category-grid-v2 {
        margin: 0 12px;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(9, 46, 120, 0.18);
        padding: 16px 6px 12px;
    }
    .m-category-grid.m-category-grid-v2 .m-cat-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 23px;
        box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.04);
    }
    .m-category-grid.m-category-grid-v2 .m-cat-label {
        font-size: 12px;
        font-weight: 600;
        color: #1f2937;
    }

    /* 公告滚动条 v2：蓝底半透明白 + 纵向轮播 */
    .m-notice-bar.m-notice-bar-v2 {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.18);
        padding: 7px 12px;
        margin: 10px 12px 0;
        border-radius: 999px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .m-notice-bar.m-notice-bar-v2 > i {
        flex-shrink: 0;
        color: #fde68a;
        font-size: 13px;
    }
    .m-notice-viewport {
        flex: 1;
        min-width: 0;
        height: 18px;
        overflow: hidden;
    }
    .m-notice-line {
        height: 18px;
        line-height: 18px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.92);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .m-notice-track {
        animation: mNoticeScroll 14s infinite;
    }
    @keyframes mNoticeScroll {
        0%, 22%   { transform: translateY(0); }
        28%, 55%  { transform: translateY(-18px); }
        61%, 88%  { transform: translateY(-36px); }
        94%, 100% { transform: translateY(-54px); }
    }

    /* Banner v2：白卡样式（浮于蓝底） */
    .m-banner.m-banner-v2 {
        background: #fff;
        color: #1f2937;
        box-shadow: 0 6px 20px rgba(9, 46, 120, 0.15);
        min-height: 72px;
        padding: 14px 16px;
    }
    .m-banner.m-banner-v2 .m-banner-icon {
        background: linear-gradient(135deg, #dbeafe, #eff6ff);
        color: #1a6dfc;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .m-banner-v2 .m-banner-title { color: #111827; }
    .m-banner-v2 .m-banner-desc { color: #6b7280; }
    .m-banner-v2 .m-banner-arrow { color: #c2cbdb; }

    /* 平台信任保障条 */
    .m-trust-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin: 14px 12px 0;
        padding: 11px 6px;
        background: linear-gradient(135deg, #eff6ff, #f0f9ff);
        border: 1px solid #dbeafe;
        border-radius: 14px;
    }
    .m-trust-item {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        color: #1d4ed8;
    }
    .m-trust-item i { font-size: 13px; color: #1a6dfc; }

    /* 轮播提示条 */
    .m-notice-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        padding: 10px 14px;
        margin: 8px 12px 0;
        border-radius: 12px;
        font-size: 12px;
        color: #f97316;
        font-weight: 500;
    }

    .m-notice-bar i {
        flex-shrink: 0;
    }

    .m-notice-bar span {
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* 服务分类宫格 */
    .m-category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        background: #fff;
        margin: 8px 12px 0;
        padding: 14px 8px;
        border-radius: 16px;
    }

    .m-category-grid a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 4px;
        text-decoration: none;
        min-height: auto;
    }

    .m-category-grid .m-cat-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .m-category-grid .m-cat-label {
        font-size: 11px;
        color: #4b5563;
        font-weight: 500;
        text-align: center;
        line-height: 1.2;
    }

    /* 推荐师傅区域 */
    .m-section {
        margin: 16px 0 0;
        padding: 0 12px;
    }

    .m-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .m-section-title {
        font-size: 17px;
        font-weight: 800;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .m-section-title i {
        color: #1a6dfc;
        font-size: 15px;
    }

    .m-section-more {
        font-size: 12px;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    /* 横滑师傅卡片容器 */
    .m-master-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 12px 4px;
        margin: 0 -12px;
    }

    .m-master-scroll::-webkit-scrollbar {
        display: none;
    }

    .m-master-scroll > * {
        flex-shrink: 0;
        width: 260px;
        scroll-snap-align: start;
    }

    /* 安全提示卡片 */
    .m-safety-card {
        margin: 14px 12px 0;
        background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
        border: 1px solid #fde68a;
        border-radius: 14px;
        padding: 12px 14px;
        font-size: 12px;
        color: #92400e;
        line-height: 1.6;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .m-safety-card i {
        color: #f59e0b;
        flex-shrink: 0;
        margin-top: 1px;
    }

    /* 隐藏桌面端首页区块 */
    .m-home ~ main,
    .m-home ~ section {
        display: none !important;
    }

    /* 隐藏桌面端页脚 */
    footer {
        display: none !important;
    }
}

/* ================================================================
 *  移动端师傅卡片（横向布局）
 * ================================================================ */
@media (max-width: 767px) {
    .m-master-card {
        background: #fff;
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 10px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        position: relative;
        overflow: hidden;
    }

    .m-master-card.is-blacklisted {
        border: 2px solid #b91c1c;
        background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    }

    .m-master-card.is-whitelisted {
        border: 1.5px solid #86efac;
        background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
    }

    .m-master-card-top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1a6dfc, #60a5fa);
    }

    .m-master-card.is-blacklisted .m-master-card-top-bar {
        height: 4px;
        background: linear-gradient(90deg, #1f2937, #dc2626);
    }

    .m-master-card.is-whitelisted .m-master-card-top-bar {
        height: 3px;
        background: linear-gradient(90deg, #22c55e, #fbbf24);
    }

    .m-master-card-body {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .m-master-card-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 16px;
        color: #fff;
        background: linear-gradient(135deg, #1a6dfc 0%, #0f55d8 100%);
        box-shadow: 0 4px 12px rgba(26, 109, 252, 0.2);
        overflow: hidden;
    }

    .m-master-card-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .m-master-card-info {
        flex: 1;
        min-width: 0;
    }

    .m-master-card-name-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
        flex-wrap: nowrap;
        overflow: hidden;
        /* 右侧留出收藏星标位置，避免徽章被星标压住 */
        padding-right: 34px;
    }

    .m-master-card-name {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-master-card-badge {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .m-master-card-badge.is-featured {
        background: #fff7ed;
        color: #f97316;
    }

    .m-master-card-badge.is-pinned {
        background: #faf5ff;
        color: #7c3aed;
    }

    /* 锁匠币兑换的展示权益标识：醒目但不背书 */
    .m-master-card-badge.is-promoted {
        background: linear-gradient(135deg, #f5b301, #e08e00);
        color: #fff;
        box-shadow: 0 2px 6px rgba(224,142,0,.3);
    }

    /* 金牌身份：认证锁匠花币续费的展示权益，深金底白字与普通优先展示拉开档次 */
    .m-master-card-badge.is-gold {
        background: linear-gradient(135deg, #b8860b, #8a5a00);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(138,90,0,.35);
    }

    .m-master-card-badge.is-adslot {
        background: #eef2ff;
        color: #4338ca;
        border: 1px solid #c7d2fe;
    }

    .m-master-card-badge.is-verify {
        background: #ecfdf5;
        color: #059669;
        border: 1px solid #a7f3d0;
    }

    .m-master-card-badge.is-blacklisted {
        background: linear-gradient(135deg, #1f2937, #dc2626);
        color: #fff;
    }

    .m-master-card-badge.is-whitelisted {
        background: linear-gradient(135deg, #22c55e, #fbbf24);
        color: #fff;
    }

    .m-master-card-badge.is-claimed {
        background: #e8f1ff;
        color: #1a6dfc;
        border: 1px solid #c7ddff;
    }

    .m-master-card-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 6px;
        flex-wrap: wrap;
    }

    .m-master-card-rating {
        color: #f59e0b;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .m-master-card-rating i {
        font-size: 11px;
    }

    .m-master-card-divider {
        color: #e5e7eb;
    }

    .m-master-card-services {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 6px;
    }

    .m-master-card-service-tag {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 4px;
        background: #eff6ff;
        color: #1a6dfc;
        font-weight: 500;
    }

    .m-master-card-addr {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #9ca3af;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .m-master-card-addr i {
        flex-shrink: 0;
        font-size: 11px;
        color: #1a6dfc;
    }

    .m-master-card-addr span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-master-card-dist {
        flex-shrink: 0;
        color: #6b7280;
        font-weight: 500;
    }

    .m-master-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f3f4f6;
        /* 置于整卡命中层之上，确保电话/详情按钮可点且不被跳转拦截 */
        position: relative;
        z-index: 2;
    }

    /* 整卡命中层：覆盖卡片主体，点击跳转详情；收藏与操作按钮 z-index 更高，不受影响 */
    .m-master-card-hit {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: block;
        text-indent: -9999px;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    .m-master-card-call {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        border: none;
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
        text-decoration: none;
    }

    .m-master-card-call i {
        font-size: 14px;
    }

    .m-master-card-detail {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 44px;
        padding: 0 16px;
        border-radius: 12px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }

    /* 横滑卡片中的精简版（约 77% 视口宽，露出下一张卡片作滑动暗示） */
    .m-master-card.is-horizontal {
        width: 300px;
        margin-bottom: 0;
        padding: 16px;
    }

    .m-master-card.is-horizontal .m-master-card-body {
        gap: 14px;
    }

    .m-master-card.is-horizontal .m-master-card-avatar {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }

    .m-master-card.is-horizontal .m-master-card-name {
        font-size: 15px;
    }

    /* 横滑卡片：姓名独占一行，徽章换行放到第二行，避免姓名被挤成一两个字 */
    .m-master-card.is-horizontal .m-master-card-name-row {
        flex-wrap: wrap;
        padding-right: 30px;
        row-gap: 3px;
    }

    .m-master-card.is-horizontal .m-master-card-name {
        flex-basis: 100%;
    }

    .m-master-card.is-horizontal .m-master-card-meta {
        margin-bottom: 8px;
    }

    .m-master-card.is-horizontal .m-master-card-addr {
        margin-top: 2px;
    }

    .m-master-card.is-horizontal .m-master-card-actions {
        margin-top: 14px;
        padding-top: 14px;
        gap: 10px;
    }
}

/* ================================================================
 *  找师傅页移动端布局
 * ================================================================ */
@media (max-width: 767px) {
    /* 隐藏桌面端搜索头部 */
    .relative.pt-32,
    .relative[class*="pt-32"] {
        display: none !important;
    }

    /* 隐藏桌面端安全提示 */
    .max-w-7xl.mx-auto.px-4.-mt-6 {
        display: none !important;
    }

    /* 移动端筛选条 */
    .m-filter-bar {
        position: sticky;
        top: var(--m-header-h, 67px);
        z-index: 40;
        background: #fff;
        padding: 8px 12px;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .m-filter-chips {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .m-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .m-filter-chip {
        flex-shrink: 0;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        background: #f3f4f6;
        color: #6b7280;
        border: none;
        white-space: nowrap;
        min-height: 36px !important;
    }

    /* 举报入口 chip（替代原浮动按钮） */
    .m-filter-chip.is-report {
        background: #fef2f2;
        color: #dc2626;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .m-filter-chip.active {
        background: #1a6dfc;
        color: #fff;
        font-weight: 700;
    }

    /* 隐藏桌面端筛选排序栏 */
    .sticky.top-20 {
        display: none !important;
    }

    /* 筛选栏内的排序按钮 */
    .m-sort-toggle {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 10px 14px;
        background: #f3f4f6;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        color: #6b7280;
        border: none;
        white-space: nowrap;
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .m-sort-toggle i {
        font-size: 9px;
        transition: transform .2s;
    }
    .m-sort-toggle.open i {
        transform: rotate(180deg);
    }

    /* 区域筛选入口（城市/区县一步直达） */
    .m-region-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        height: 32px;
        padding: 0 10px;
        border-radius: 999px;
        background: #f6f8fb;
        border: 1px solid #edf1f5;
        color: #4b5563;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        max-width: 108px;
    }
    .m-region-btn > i.fa-location-dot { font-size: 11px; color: #9ca3af; }
    .m-region-btn > span {
        max-width: 68px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .m-region-btn .m-region-caret { font-size: 8px; opacity: .55; }
    .m-region-btn.is-active {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1a6dfc;
    }
    .m-region-btn.is-active > i.fa-location-dot { color: #1a6dfc; }

    /* 举报独立入口（移出服务分类横滑条） */
    .m-report-btn {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #f6f8fb;
        border: 1px solid #edf1f5;
        color: #b0b7c3;
        font-size: 12px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .m-report-btn:active {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }

    /* 区域选择面板 */
    .m-region-panel { max-height: 76vh; }
    .m-region-current {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        padding: 10px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #f1f5f9;
        font-size: 12px;
        color: #6b7280;
    }
    .m-region-current > i { color: #9ca3af; font-size: 11px; }
    .m-region-current b { color: #1a6dfc; font-weight: 700; }
    .m-region-clear {
        margin-left: auto;
        border: none;
        background: none;
        color: #dc2626;
        font-size: 12px;
        font-weight: 600;
        padding: 2px 4px;
        cursor: pointer;
    }
    .m-region-crumbs {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        padding: 10px 16px 0;
        font-size: 12px;
        color: #9ca3af;
    }
    .m-region-crumbs button {
        border: none;
        background: none;
        padding: 2px 0;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        cursor: pointer;
    }
    .m-region-crumbs button.is-current {
        color: #1a6dfc;
        font-weight: 700;
    }
    .m-region-crumbs i {
        font-size: 8px;
        color: #d1d5db;
    }
    .m-region-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .m-region-cell {
        padding: 10px 4px;
        border-radius: 8px;
        background: #f6f8fb;
        border: 1px solid #edf1f5;
        color: #4b5563;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .m-region-cell.active {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1a6dfc;
        font-weight: 800;
    }
    .m-region-empty {
        padding: 16px 0;
        font-size: 12px;
        color: #9ca3af;
        text-align: center;
    }

    /* 排序下拉面板 */
    .m-sort-panel {
        position: fixed;
        top: 100px;
        right: 12px;
        z-index: 45;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        overflow: hidden;
        display: none;
        min-width: 140px;
    }
    .m-sort-panel.show {
        display: block;
    }
    .m-sort-option {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: #fff;
        font-size: 14px;
        color: #374151;
        text-align: left;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        -webkit-tap-highlight-color: transparent;
    }
    .m-sort-option:last-child {
        border-bottom: none;
    }
    .m-sort-option:active {
        background: #f9fafb;
    }
    .m-sort-option.active {
        color: #1a6dfc;
        font-weight: 700;
    }

    /* 定位信息条 */
    .m-location-strip {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        z-index: 35;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 14px;
        background: #fff;
        border-bottom: 1px solid #f3f4f6;
    }
    .m-location-strip-info {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #6b7280;
    }
    .m-location-strip-info i {
        color: #1a6dfc;
        font-size: 12px;
    }
    .m-location-strip-info span {
        font-weight: 600;
        color: #1f2937;
    }
    .m-location-strip-actions {
        display: flex;
        gap: 6px;
    }
    .m-location-strip-btn {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 5px 10px;
        background: #eff6ff;
        color: #1a6dfc;
        border: 1px solid #dbeafe;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .m-location-strip-btn:active {
        background: #dbeafe;
    }

    /* 城市选择面板 */
    .m-city-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
        max-height: 60vh;
        display: none;
        flex-direction: column;
    }
    .m-city-panel.show {
        display: flex;
        animation: slideUp .2s ease;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .m-city-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
    }
    .m-city-panel-header button {
        border: none;
        background: none;
        font-size: 16px;
        color: #9ca3af;
        cursor: pointer;
    }
    .m-city-panel-body {
        flex: 1;
        overflow-y: auto;
        padding: 12px 16px 20px;
    }
    .m-city-group {
        margin-bottom: 16px;
    }
    .m-city-group-title {
        font-size: 12px;
        font-weight: 700;
        color: #9ca3af;
        margin-bottom: 8px;
    }
    .m-city-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .m-city-item {
        padding: 8px 14px;
        background: #f3f4f6;
        border-radius: 8px;
        font-size: 13px;
        color: #374151;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .m-city-item.active {
        background: #1a6dfc;
        color: #fff;
        font-weight: 600;
    }

    /* 城市面板遮罩 */
    .m-city-mask {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(0,0,0,0.4);
        display: none;
    }
    .m-city-mask.show {
        display: block;
    }

    /* 附近推荐分组标题 */
    .m-nearby-header {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 12px 14px 6px;
        font-size: 13px;
        font-weight: 700;
        color: #1a6dfc;
    }
    .m-nearby-header i {
        font-size: 12px;
    }
    .m-nearby-header .m-nearby-count {
        font-size: 11px;
        color: #9ca3af;
        font-weight: 400;
        margin-left: auto;
    }

    /* 师傅卡片收藏按钮 */
    .m-master-card-fav {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border: none;
        background: rgba(0,0,0,0.04);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        color: #d1d5db;
        cursor: pointer;
        z-index: 2;
        -webkit-tap-highlight-color: transparent;
        transition: transform .15s;
    }
    .m-master-card-fav:active {
        transform: scale(0.85);
    }
    .m-master-card-fav.is-fav {
        color: #f59e0b;
        background: rgba(245,158,11,0.1);
    }

    /* 隐藏桌面端师傅列表区域（移动端使用独立容器），但不影响详情页 */
    .max-w-7xl.mx-auto.px-4.py-8.flex-grow {
        display: none !important;
    }
    #detail-page > .max-w-7xl.mx-auto.px-4.py-8.flex-grow {
        display: block !important;
    }

    /* 移动端排序栏 */
    .m-sort-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 14px;
        background: #fff;
        border-bottom: 1px solid #f3f4f6;
    }

    .m-sort-bar-count {
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
    }

    .m-sort-bar-select {
        font-size: 12px;
        color: #1a6dfc;
        font-weight: 600;
        background: #eff6ff;
        border: none;
        border-radius: 8px;
        padding: 4px 10px;
        min-height: auto !important;
    }

    /* 师傅列表容器 */
    .m-master-list {
        padding: 10px 12px 20px;
    }

    /* 隐藏桌面端分页 */
    #pagination {
        display: none !important;
    }

    /* 移动端加载更多 */
    .m-load-more {
        display: block;
        width: 100%;
        padding: 14px;
        text-align: center;
        font-size: 14px;
        color: #6b7280;
        font-weight: 500;
        background: #fff;
        border-radius: 12px;
        margin-top: 8px;
        border: 1px solid #f3f4f6;
    }

    .m-load-more:active {
        background: #f9fafb;
    }

    /* 空状态 */
    #empty-result {
        padding: 48px 20px !important;
    }
}

/* 详情页「已认领 / 资料待更新」信息条 */
.md-claim-bar {
    padding: 14px 16px 0;
}

/* ================================================================
 *  师傅详情页移动端布局
 * ================================================================ */
@media (max-width: 767px) {
    /* 顶部导航 fixed，信息条需自行避让，否则标题会被压在导航下面 */
    .md-claim-bar {
        padding-top: calc(var(--m-header-h, 67px) + 12px) !important;
    }
    #detail-page {
        padding-top: var(--m-header-h, 67px) !important;
    }
    /* 信息条已占出导航高度时，正文不再重复留白 */
    body:has(#md-claim-bar:not(.is-empty)) #detail-page {
        padding-top: 12px !important;
    }

    #detail-page .pt-10,
    #detail-page .md\:pt-12 {
        padding-top: 16px !important;
    }

    #detail-page h1 {
        font-size: 22px !important;
        line-height: 30px !important;
    }

    #detail-page .max-w-7xl.py-8 {
        padding-top: 14px !important;
        padding-bottom: 16px !important;
    }

    #detail-page .rounded-xl.p-6,
    #detail-page .rounded-xl .p-6 {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    #detail-page h2 {
        font-size: 16px !important;
    }

    #detail-page .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 底部操作栏 */
    .m-detail-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 10px 14px max(10px, env(safe-area-inset-bottom));
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
    }

    .m-detail-bar-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 18px;
        flex-shrink: 0;
        text-decoration: none;
    }

    .m-detail-bar-call {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border-radius: 14px;
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        border: none;
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    }

    .m-detail-bar-call i {
        font-size: 16px;
    }

    /* 隐藏详情页内重复的电话按钮（移动端用底部栏代替） */
    #detail-page .m-hide-on-mobile {
        display: none !important;
    }

    /* v9.9：这里原本还有一条 #detail-page > div:first-child { padding-top: 67px !important }
       给「首个子块」再让一次导航高度。但 #detail-page 自己已经 padding-top: var(--m-header-h)
       让过 67px，而渲染后的首个子块正是 hero 本身 —— 两条叠加成 134px，蓝区顶上凭空多出一大块空白。
       现删除该重复规则，坐标只由 #detail-page 单点决定。 */

    body.detail-bar-active {
        padding-bottom: 80px;
    }

    /* === 详情页重构：折叠卡片 === */

    /* 快速信息条 — 紧跟 Hero 下方 */
    .m-quick-info {
        margin: -20px 12px 0;
        position: relative;
        z-index: 10;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 14px 16px;
    }
    .m-quick-info-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .m-quick-info-item {
        text-align: center;
    }
    .m-quick-info-value {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
        /* v9.8：单行省略，防止「营业时间请电话确认」这类长文案换行把三格卡撑变形 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .m-quick-info-label {
        font-size: 11px;
        color: #6b7280;
        margin-top: 2px;
    }

    /* 折叠卡片容器 */
    .m-section {
        margin: 12px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.04);
        overflow: hidden;
    }

    /* 折叠卡片标题栏（可点击） */
    .m-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: background .15s;
    }
    .m-section-header:active {
        background: #f3f4f6;
    }
    .m-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
    }
    .m-section-title i {
        color: #1a6dfc;
        font-size: 14px;
    }
    .m-section-toggle {
        font-size: 12px;
        color: #9ca3af;
        transition: transform .25s ease;
    }
    .m-section.collapsed .m-section-toggle {
        transform: rotate(-90deg);
    }

    /* 折叠卡片内容区 */
    .m-section-body {
        padding: 0 16px 16px;
        max-height: 2000px;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease, opacity .2s ease;
        opacity: 1;
    }
    .m-section.collapsed .m-section-body {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }

    /* 安全提示卡片 — 紧凑横向排列，蓝色调统一
       v9.8：左右边距 8px→12px，与 m-quick-info / m-section 对齐（此前三层缩进 16/12/8 不等值） */
    .m-safety-card {
        background: #fff;
        border: 1px solid #dbeafe;
        border-left: 4px solid #1a6dfc;
        margin: 10px 12px;
    }
    .m-safety-card .m-section-header {
        background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
        white-space: nowrap;
        padding: 10px 12px;
    }
    .m-safety-card .m-section-title {
        font-size: 14px;
        min-width: 0;
        white-space: nowrap;
    }
    .m-safety-card .m-section-title i {
        color: #1a6dfc;
        font-size: 14px;
        flex-shrink: 0;
    }
    .m-safety-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: #dbeafe;
        color: #1a6dfc;
        font-size: 11px;
        font-weight: 700;
        border-radius: 9px;
        margin-left: 6px;
        flex-shrink: 0;
        line-height: 1;
    }
    .m-safety-card .m-section-toggle {
        flex-shrink: 0;
        margin-left: 6px;
    }
    .m-safety-card .m-section-body {
        padding: 10px 16px 12px;
    }

    /* 安全提示条目 — 单行紧凑卡片 */
    .m-safety-tip {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 10px;
        margin-bottom: 6px;
        background: #f0f7ff;
        border-radius: 8px;
    }
    .m-safety-tip:last-of-type {
        margin-bottom: 8px;
    }
    .m-safety-tip-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        background: #1a6dfc;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        border-radius: 50%;
        flex-shrink: 0;
        margin-top: 1px;
    }
    .m-safety-tip-text {
        flex: 1;
        min-width: 0;
        font-size: 12px;
        color: #4b5563;
        line-height: 1.5;
    }
    .m-safety-tip-text strong {
        color: #1e3a5f;
        font-weight: 700;
    }

    /* 服务项标签 */
    .m-service-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .m-service-tag {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f3f4f6;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        color: #374151;
        font-weight: 500;
    }
    .m-service-tag i {
        color: #1a6dfc;
        font-size: 12px;
    }

    /* 评价摘要 */
    .m-review-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    .m-review-score {
        text-align: center;
    }
    .m-review-score-num {
        font-size: 28px;
        font-weight: 800;
        color: #f59e0b;
        line-height: 1;
    }
    .m-review-score-text {
        font-size: 11px;
        color: #6b7280;
        margin-top: 2px;
    }
    .m-review-rate {
        flex: 1;
        font-size: 13px;
        color: #374151;
    }

    /* 评价条目 */
    .m-review-item {
        border-bottom: 1px solid #f3f4f6;
        padding: 12px 0;
    }
    .m-review-item:last-child {
        border-bottom: none;
    }
    .m-review-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
    }
    .m-review-item-user {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .m-review-item-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #dbeafe;
        color: #1a6dfc;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .m-review-item-name {
        font-size: 13px;
        font-weight: 600;
        color: #1f2937;
    }
    .m-review-item-date {
        font-size: 11px;
        color: #9ca3af;
    }
    .m-review-item-stars {
        color: #f59e0b;
        font-size: 11px;
        margin-bottom: 4px;
    }
    .m-review-item-content {
        font-size: 13px;
        color: #4b5563;
        line-height: 1.5;
    }
    .m-review-item-dims {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 6px;
        font-size: 11px;
        color: #9ca3af;
    }

    /* 评价表单触发按钮 */
    .m-review-toggle-btn {
        width: 100%;
        padding: 12px;
        background: #1a6dfc;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }
    .m-review-toggle-btn:active {
        background: #1554cc;
    }
    .m-review-form-wrap {
        display: none;
        margin-top: 12px;
    }
    .m-review-form-wrap.show {
        display: block;
    }

    /* 评价表单：更多评分（可选展开） */
    .m-review-advanced-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        margin-bottom: 0;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .m-review-advanced-toggle:active {
        background: #f3f4f6;
    }
    .m-review-advanced-toggle .m-adv-arrow {
        font-size: 10px;
        transition: transform .25s ease;
    }
    .m-review-advanced {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .2s ease, margin .2s ease;
    }
    form.expanded .m-review-advanced {
        max-height: 600px;
        opacity: 1;
        margin-top: 12px;
        margin-bottom: 12px;
    }
    form.expanded .m-review-advanced-toggle .m-adv-arrow {
        transform: rotate(180deg);
    }

    /* "查看全部" 按钮 */
    .m-view-all-btn {
        display: block;
        text-align: center;
        padding: 10px;
        margin-top: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #1a6dfc;
        background: #eff6ff;
        border-radius: 8px;
        cursor: pointer;
    }
    .m-view-all-btn:active {
        background: #dbeafe;
    }
    .m-view-all-btn i {
        margin-right: 4px;
        font-size: 11px;
    }

    /* 评价列表折叠：仅显示前3条 */
    .m-reviews-list.collapsed .m-review-item:nth-child(n+4) {
        display: none;
    }

    /* 安全提示内举报按钮 */
    .m-safety-report-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
        padding: 10px;
        background: #eff6ff;
        color: #1a6dfc;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }
    .m-safety-report-btn:active {
        background: #dbeafe;
    }

    /* 位置地址栏 */
    .m-location-address {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
        padding: 10px 12px;
        background: #f0f7ff;
        border-radius: 8px;
    }
    .m-location-address > i {
        color: #1a6dfc;
        font-size: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* 位置卡片 */
    .m-location-map {
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        background: #e8f0fe;
        margin-bottom: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .m-location-map-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(26,109,252,0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(26,109,252,0.06) 1px, transparent 1px);
        background-size: 24px 24px;
    }
    .m-location-map-roads {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(45deg, transparent 48%, #cbd5e1 48%, #cbd5e1 52%, transparent 52%),
            linear-gradient(-30deg, transparent 48%, #d1d5db 48%, #d1d5db 52%, transparent 52%),
            linear-gradient(90deg, transparent 49%, #d1d5db 49%, #d1d5db 51%, transparent 51%);
        background-size: 120px 120px, 100px 100px, 80px 80px;
        opacity: 0.5;
    }
    .m-location-map-pin {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
        z-index: 2;
        width: 32px;
        height: 32px;
        background: #ef4444;
        border-radius: 50% 50% 50% 0;
        transform: translate(-50%, -100%) rotate(-45deg);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    .m-location-map-pin i {
        color: #fff;
        font-size: 14px;
        transform: rotate(45deg);
    }
    .m-location-map-pin::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background: radial-gradient(ellipse at center, rgba(239,68,68,0.3), transparent 70%);
    }
    .m-location-map-label {
        position: absolute;
        bottom: 12px;
        left: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        color: #374151;
        font-weight: 500;
        z-index: 3;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        text-align: center;
    }
    .m-location-map-overlay {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 3;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        color: #1a6dfc;
        text-decoration: none;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .m-location-map-overlay:active {
        background: rgba(255,255,255,1);
    }
    .m-location-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .m-location-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .m-location-btn:active {
        transform: scale(0.97);
    }
    .m-location-btn.amap { background: linear-gradient(135deg, #1a6dfc, #1448a8); }
    .m-location-btn.baidu { background: linear-gradient(135deg, #3b82f6, #2563eb); }

    /* 近期动态 */
    .m-activity-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        border-bottom: 1px solid #f3f4f6;
        font-size: 12px;
        color: #6b7280;
    }
    .m-activity-item:last-child { border-bottom: none; }
    .m-activity-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        flex-shrink: 0;
    }

    /* 底部信息入口（卡片式） */
    .m-info-entry-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 12px;
    }
    .m-info-entry-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border-radius: 14px;
        padding: 14px 16px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.04);
        text-decoration: none;
        cursor: pointer;
        border: none;
        width: 100%;
        text-align: left;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
        transition: background .15s;
    }
    .m-info-entry-card:active {
        background: #f9fafb;
    }
    .m-info-entry-card.owner {
        background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
        border: 1px solid #fed7aa;
    }
    .m-info-entry-card.user {
        background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
        border: 1px solid #bfdbfe;
    }
    .m-info-entry-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }
    .m-info-entry-card.owner .m-info-entry-icon {
        background: #ffedd5;
        color: #f97316;
    }
    .m-info-entry-card.user .m-info-entry-icon {
        background: #dbeafe;
        color: #1a6dfc;
    }
    .m-info-entry-text {
        flex: 1;
        min-width: 0;
    }
    .m-info-entry-title {
        font-size: 14px;
        font-weight: 700;
        color: #1f2937;
    }
    .m-info-entry-desc {
        font-size: 12px;
        color: #6b7280;
        margin-top: 1px;
    }
    .m-info-entry-arrow {
        font-size: 12px;
        color: #d1d5db;
        flex-shrink: 0;
    }
}

/* ================================================================
 *  通用移动端页面适配
 * ================================================================ */
@media (max-width: 767px) {
    /* 页面主容器间距 */
    main > section,
    main > div,
    section.max-w-7xl,
    div.max-w-7xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    main section.py-16 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* 网格变单列 */
    #featured-masters,
    #master-list-grid {
        gap: 10px !important;
    }

    /* 表单页面 */
    #form {
        padding-top: calc(var(--m-header-h, 67px) + 4px) !important;
        padding-bottom: 24px !important;
    }

    #form .text-center.mb-10 {
        margin-bottom: 18px !important;
        text-align: left !important;
    }

    #form h2 {
        font-size: 22px !important;
    }

    #join-form,
    #quality-report-form,
    #report-form,
    #report-form-section > div {
        padding: 14px !important;
        border-radius: 16px !important;
        background: #fff !important;
    }

    #join-form > div,
    #report-form > div {
        padding: 12px !important;
        border: 1px solid #f3f4f6;
        border-radius: 14px;
        background: #f9fafb;
    }

    #join-form input,
    #join-form select,
    #join-form textarea,
    #quality-report-form input,
    #quality-report-form select,
    #quality-report-form textarea,
    #report-form input,
    #report-form select,
    #report-form textarea,
    #report-form-section input,
    #report-form-section select,
    #report-form-section textarea {
        min-height: 46px;
        border-radius: 12px !important;
    }

    #join-form textarea,
    #quality-report-form textarea,
    #report-form textarea {
        min-height: 100px;
    }

    #join-form button[type="submit"],
    #report-form button[type="submit"] {
        width: 100%;
        min-height: 50px;
        border-radius: 14px !important;
        font-size: 16px !important;
    }

    .step-line::after {
        display: none !important;
    }

    .image-upload-zone {
        min-height: 120px;
        border-radius: 14px !important;
    }

    #join-map-container {
        height: 240px !important;
    }

    /* 违规类型选项 */
    .violation-chip {
        min-height: 40px;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* 模态框 */
    #quality-report-modal .max-w-2xl,
    #wechat-modal .max-w-md {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 28px);
        border-radius: 16px !important;
    }

    /* 红黑榜页面 */
    .m-blacklist-list {
        padding: 10px 12px 20px;
    }

    /* 地图页面 */
    .m-map-container {
        height: calc(100vh - var(--m-header-h, 67px) - 64px);
    }
}

/* ================================================================
 *  v3.0 新增：Banner 横幅区
 * ================================================================ */
@media (max-width: 767px) {
    .m-banner {
        margin: 8px 12px 0;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, #1a6dfc 0%, #0f55d8 50%, #0ea5e9 100%);
        padding: 16px 18px;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 76px;
    }

    .m-banner-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        flex-shrink: 0;
        backdrop-filter: blur(8px);
    }

    .m-banner-content {
        flex: 1;
        min-width: 0;
    }

    .m-banner-title {
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .m-banner-desc {
        font-size: 12px;
        opacity: 0.9;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .m-banner-arrow {
        font-size: 18px;
        opacity: 0.8;
        flex-shrink: 0;
    }
}

/* ================================================================
 *  v3.0 新增：平台数据栏
 * ================================================================ */
@media (max-width: 767px) {
    .m-stats-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin: 10px 12px 0;
        padding: 12px 8px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    }

    .m-stats-item {
        text-align: center;
        flex: 1;
    }

    .m-stats-num {
        font-size: 18px;
        font-weight: 800;
        color: #1a6dfc;
        line-height: 1.2;
    }

    .m-stats-num.is-red { color: #ef4444; }
    .m-stats-num.is-green { color: #22c55e; }
    .m-stats-num.is-orange { color: #f97316; }
    .m-stats-num.is-black { color: #dc2626; }

    .m-stats-label {
        font-size: 11px;
        color: #6b7280;
        margin-top: 2px;
    }

    .m-stats-divider {
        width: 1px;
        height: 28px;
        background: #f3f4f6;
    }
}

/* ================================================================
 *  v3.0 新增：热门城市横滑
 * ================================================================ */
@media (max-width: 767px) {
    .m-hot-cities {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 12px 4px;
        white-space: nowrap;
    }

    .m-hot-cities::-webkit-scrollbar {
        display: none;
    }

    .m-hot-city-chip {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        border-radius: 22px;
        background: #fff;
        font-size: 13px;
        font-weight: 600;
        color: #4b5563;
        text-decoration: none;
        border: 1px solid #f3f4f6;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
        min-height: auto !important;
        transition: all 0.2s;
    }

    .m-hot-city-chip:active {
        background: #eff6ff;
        border-color: #1a6dfc;
        color: #1a6dfc;
    }

    .m-hot-city-chip i {
        font-size: 11px;
        color: #9ca3af;
    }

    .m-hot-city-chip.is-hot {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        border-color: #fbbf24;
        color: #92400e;
    }

    .m-hot-city-chip.is-hot i {
        color: #ef4444;
    }
}

/* ================================================================
 *  v3.0 新增：多维度师傅推荐区
 * ================================================================ */
@media (max-width: 767px) {
    /* 通用 section 容器 */
    .m-master-section {
        margin: 18px 0 0;
        padding: 0 12px;
    }

    .m-master-section + .m-master-section {
        margin-top: 4px;
    }

    /* 带背景色的 section */
    .m-master-section.is-card {
        margin: 14px 12px 0;
        background: #fff;
        border-radius: 16px;
        padding: 14px 12px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    }

    /* section 标题增强 */
    .m-section-header-v2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .m-section-title-v2 {
        font-size: 17px;
        font-weight: 800;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .m-section-title-v2 .m-section-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .m-section-title-v2 .m-section-icon.is-blue { background: #dbeafe; color: #1a6dfc; }
    .m-section-title-v2 .m-section-icon.is-orange { background: #ffedd5; color: #f97316; }
    .m-section-title-v2 .m-section-icon.is-green { background: #d1fae5; color: #22c55e; }
    .m-section-title-v2 .m-section-icon.is-red { background: #fee2e2; color: #ef4444; }
    .m-section-title-v2 .m-section-icon.is-purple { background: #f3e8ff; color: #7c3aed; }

    .m-section-subtitle {
        font-size: 12px;
        color: #9ca3af;
        margin-left: 36px;
        margin-top: -8px;
        margin-bottom: 10px;
    }

    .m-section-more-v2 {
        font-size: 12px;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .m-section-more-v2:active {
        background: #f3f4f6;
    }

    /* 师傅网格（2列） */
    .m-master-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* 师傅列表（1列大卡片） */
    .m-master-list-v2 {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* 横滑区域增强 */
    .m-master-scroll-v2 {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 0 6px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .m-master-scroll-v2::-webkit-scrollbar {
        display: none;
    }

    .m-master-scroll-v2 > * {
        flex-shrink: 0;
        width: 260px;
        scroll-snap-align: start;
    }
}

/* ================================================================
 *  v3.0 新增：增强版师傅卡片
 * ================================================================ */
@media (max-width: 767px) {
    /* 紧凑型卡片（2列网格用） */
    .m-master-card.is-compact {
        padding: 12px;
        margin-bottom: 0;
    }

    .m-master-card.is-compact .m-master-card-avatar {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .m-master-card.is-compact .m-master-card-name {
        font-size: 14px;
    }

    .m-master-card.is-compact .m-master-card-meta {
        font-size: 11px;
        gap: 6px;
        margin-bottom: 4px;
    }

    .m-master-card.is-compact .m-master-card-services {
        margin-bottom: 4px;
    }

    .m-master-card.is-compact .m-master-card-service-tag {
        font-size: 10px;
        padding: 1px 6px;
    }

    .m-master-card.is-compact .m-master-card-actions {
        margin-top: 8px;
        padding-top: 8px;
    }

    .m-master-card.is-compact .m-master-card-call,
    .m-master-card.is-compact .m-master-card-detail {
        height: 36px;
        font-size: 12px;
        border-radius: 10px;
    }

    /* 师傅卡片附加信息 */
    .m-master-card-extra {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
        flex-wrap: wrap;
    }

    .m-master-card-extra-tag {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .m-master-card-extra-tag.is-verified {
        background: #d1fae5;
        color: #059669;
    }

    .m-master-card-extra-tag.is-24h {
        background: #fef3c7;
        color: #d97706;
    }

    .m-master-card-extra-tag.is-distance {
        background: #eff6ff;
        color: #1a6dfc;
    }

    /* 营业状态指示器 */
    .m-master-card-status {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 10px;
        font-weight: 600;
    }

    .m-master-card-status::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #22c55e;
    }

    .m-master-card-status.is-closed::before {
        background: #9ca3af;
    }

    .m-master-card-status.is-closed {
        color: #9ca3af;
    }
}

/* ================================================================
 *  v3.0 浮动操作按钮（FAB）已移除：
 *  固定悬浮球会遮挡列表卡片"详情"按钮触控区，
 *  举报入口改为 find-masters 筛选条末尾 chip + 首页快捷宫格。
 * ================================================================ */

/* ================================================================
 *  v3.0 新增：服务专区入口
 * ================================================================ */
@media (max-width: 767px) {
    .m-service-zone {
        margin: 14px 12px 0;
        background: #fff;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    }

    .m-service-zone-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .m-service-zone-title {
        font-size: 15px;
        font-weight: 800;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .m-service-zone-title i {
        color: #f97316;
        font-size: 14px;
    }

    .m-service-zone-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .m-service-zone-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        background: #f9fafb;
        text-decoration: none;
        transition: background 0.2s;
        min-height: auto !important;
    }

    .m-service-zone-item:active {
        background: #f3f4f6;
    }

    .m-service-zone-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .m-service-zone-text {
        flex: 1;
        min-width: 0;
    }

    .m-service-zone-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        line-height: 1.3;
    }

    .m-service-zone-desc {
        font-size: 11px;
        color: #9ca3af;
        margin-top: 1px;
    }

    .m-service-zone-arrow {
        color: #d1d5db;
        font-size: 12px;
        flex-shrink: 0;
    }
}

/* ================================================================
 *  v3.0 新增：安全提示增强
 * ================================================================ */
@media (max-width: 767px) {
    .m-safety-section {
        margin: 14px 12px 0;
    }

    .m-safety-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .m-safety-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.4;
        font-weight: 500;
    }

    .m-safety-item.is-blue {
        background: #eff6ff;
        color: #1e40af;
    }

    .m-safety-item.is-orange {
        background: #fff7ed;
        color: #9a3412;
    }

    .m-safety-item.is-green {
        background: #f0fdf4;
        color: #166534;
    }

    .m-safety-item.is-red {
        background: #fef2f2;
        color: #991b1b;
    }

    .m-safety-item i {
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 1px;
    }
}

/* ================================================================
 *  v3.0 新增：找师傅页增强
 * ================================================================ */
@media (max-width: 767px) {
    /* 移动端师傅列表容器 v2 */
    .m-master-list-v2-page {
        padding: 10px 12px 20px;
    }

    /* 筛选弹层 */
    .m-filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: none;
    }

    .m-filter-panel.is-open {
        display: block;
    }

    .m-filter-panel-mask {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .m-filter-panel-body {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 82%;
        max-width: 340px;
        background: #fff;
        overflow-y: auto;
        padding: 16px;
        animation: m-slide-in 0.25s ease;
    }

    @keyframes m-slide-in {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    .m-filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f3f4f6;
    }

    .m-filter-panel-title {
        font-size: 17px;
        font-weight: 800;
        color: #111827;
    }

    .m-filter-panel-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        font-size: 16px;
        border: none;
    }

    .m-filter-group {
        margin-bottom: 18px;
    }

    .m-filter-group-title {
        font-size: 14px;
        font-weight: 700;
        color: #374151;
        margin-bottom: 10px;
    }

    .m-filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .m-filter-option {
        padding: 8px 16px;
        border-radius: 10px;
        background: #f9fafb;
        font-size: 13px;
        color: #4b5563;
        border: 1px solid #f3f4f6;
        font-weight: 500;
        min-height: auto !important;
    }

    .m-filter-option.is-active {
        background: #1a6dfc;
        color: #fff;
        border-color: #1a6dfc;
    }

    .m-filter-panel-footer {
        display: flex;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 0;
        border-top: 1px solid #f3f4f6;
    }

    .m-filter-reset {
        flex: 1;
        height: 44px;
        border-radius: 12px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 14px;
        font-weight: 600;
        border: none;
    }

    .m-filter-confirm {
        flex: 2;
        height: 44px;
        border-radius: 12px;
        background: #1a6dfc;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        border: none;
    }

    /* 筛选按钮（在排序栏中） */
    .m-filter-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 4px 10px;
        border-radius: 8px;
        background: #f3f4f6;
        font-size: 12px;
        color: #4b5563;
        font-weight: 600;
        border: none;
        min-height: auto !important;
    }

    .m-filter-btn.is-active {
        background: #eff6ff;
        color: #1a6dfc;
    }
}

/* ================================================================
 *  v3.0 新增：详情页增强
 * ================================================================ */
@media (max-width: 767px) {
    /* 详情页信息卡 */
    .m-detail-info-card {
        margin: 10px 12px 0;
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    }

    /* 详情页服务标签 */
    .m-detail-services {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .m-detail-service-tag {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 8px;
        background: #eff6ff;
        color: #1a6dfc;
        font-weight: 500;
    }

    /* 详情页信息行 */
    .m-detail-info-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 0;
        border-bottom: 1px solid #f9fafb;
        font-size: 13px;
    }

    .m-detail-info-row:last-child {
        border-bottom: none;
    }

    .m-detail-info-label {
        color: #6b7280;
        width: 70px;
        flex-shrink: 0;
        font-weight: 500;
    }

    .m-detail-info-value {
        color: #1f2937;
        flex: 1;
        font-weight: 500;
    }

    /* 详情页底部操作栏增强 */
    .m-detail-bar-v2 {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .m-detail-bar-icon-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 48px;
        gap: 2px;
        color: #6b7280;
        font-size: 10px;
        text-decoration: none;
        flex-shrink: 0;
    }

    .m-detail-bar-icon-btn i {
        font-size: 18px;
    }

    .m-detail-bar-call-v2 {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border-radius: 14px;
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        border: none;
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    }
}

/* ================================================================
 *  移动端区块显示/隐藏控制
 * ================================================================ */
@media (max-width: 767px) {
    /* 桌面端仅显示元素在移动端隐藏 */
    .md\:show, .desktop-only {
        display: none !important;
    }

    /* 移动端仅显示元素 */
    .m-only {
        display: block !important;
    }

    .m-only-flex {
        display: flex !important;
    }

    .m-only-grid {
        display: grid !important;
    }
}

/* ================================================================
 *  找师傅页：清爽扁平化列表风格
 *  仅作用于包含 #m-master-list 的移动端页面，不影响电脑端。
 * ================================================================ */
@media (max-width: 767px) {
    body:has(#m-master-list) {
        background: #f6f8fb !important;
        padding-bottom: 72px;
    }

    body:has(#m-master-list) .m-header {
        background: #fff !important;
        color: #111827;
        box-shadow: none;
        border-bottom: 1px solid #edf1f5;
        padding: max(8px, env(safe-area-inset-top)) 12px 10px;
    }

    body:has(#m-master-list) .m-header-row {
        gap: 10px;
    }

    body:has(#m-master-list) .m-header-logo {
        color: #1a6dfc;
        font-size: 17px;
        font-weight: 900;
    }

    body:has(#m-master-list) .m-header-search {
        height: 40px;
        border-radius: 20px;
        background: #f6f8fb;
        border: 1px solid #edf1f5;
        padding: 0 12px;
    }

    body:has(#m-master-list) .m-header-search i {
        color: #9ca3af;
    }

    body:has(#m-master-list) .m-header-search input {
        color: #111827;
        font-size: 14px !important;
    }

    body:has(#m-master-list) .m-header-loc {
        color: #1a6dfc;
    }

    body:has(#m-master-list) .m-filter-bar {
        background: #fff !important;
        border-bottom: 1px solid #edf1f5;
        box-shadow: none;
        padding: 8px 12px;
    }

    body:has(#m-master-list) .m-filter-chips {
        gap: 8px;
        padding: 0;
    }

    body:has(#m-master-list) .m-filter-chip {
        height: 32px;
        padding: 0 13px;
        border-radius: 999px;
        background: #f6f8fb;
        color: #4b5563;
        border: 1px solid #edf1f5;
        font-size: 13px;
        font-weight: 600;
    }

    body:has(#m-master-list) .m-filter-chip.active {
        color: #1a6dfc;
        background: #eff6ff;
        border-color: #bfdbfe;
        font-weight: 800;
    }

    body:has(#m-master-list) .m-sort-bar {
        background: #fff !important;
        border-bottom: 1px solid #edf1f5;
        box-shadow: none;
        padding: 8px 12px;
    }

    body:has(#m-master-list) .m-sort-bar-count {
        color: #6b7280;
        font-size: 12px;
        font-weight: 600;
        max-width: 62%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    body:has(#m-master-list) .m-sort-bar-select {
        height: 30px;
        color: #1a6dfc;
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-radius: 999px;
        padding: 0 10px;
        font-size: 12px !important;
        font-weight: 700;
    }

    body:has(#m-master-list) .m-master-list {
        background: #f6f8fb;
        padding-top: 136px !important;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 24px;
    }

    body:has(#m-master-list) .m-master-card {
        margin-bottom: 10px;
        padding: 13px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #edf1f5;
        box-shadow: none;
    }

    body:has(#m-master-list) .m-master-card-top-bar {
        display: none;
    }

    body:has(#m-master-list) .m-master-card.is-blacklisted {
        border: 1px solid #fca5a5;
        background: #fff;
    }

    body:has(#m-master-list) .m-master-card.is-whitelisted {
        border: 1px solid #bbf7d0;
        background: #fff;
    }

    body:has(#m-master-list) .m-master-card-body {
        gap: 11px;
    }

    body:has(#m-master-list) .m-master-card-avatar {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        color: #1a6dfc;
        background: #eff6ff;
        box-shadow: none;
        font-size: 16px;
        font-weight: 900;
    }

    body:has(#m-master-list) .m-master-card-name {
        font-size: 16px;
        font-weight: 900;
        color: #111827;
    }

    /* 新增「已认领」角标后徽章变多，原先 nowrap + min-width:0 会把店名压成一两个字。
       这里给店名保留最小可读宽度，放不下的徽章自动换到第二行。 */
    body:has(#m-master-list) .m-master-card-name-row {
        flex-wrap: wrap;
        overflow: visible;
        row-gap: 5px;
    }
    body:has(#m-master-list) .m-master-card-name {
        flex: 1 1 auto;
        min-width: 130px;
    }

    body:has(#m-master-list) .m-master-card-badge {
        border-radius: 999px;
        padding: 2px 7px;
        font-size: 10px;
        font-weight: 800;
    }

    body:has(#m-master-list) .m-master-card-badge.is-featured,
    body:has(#m-master-list) .m-master-card-badge.is-pinned {
        color: #1a6dfc;
        background: #eff6ff;
    }

    /* 花币权益标识在桌面端保持醒目，不被统一蓝色吞掉 */
    body:has(#m-master-list) .m-master-card-badge.is-promoted {
        color: #fff;
        background: linear-gradient(135deg, #f5b301, #e08e00);
    }

    body:has(#m-master-list) .m-master-card-badge.is-whitelisted {
        color: #047857;
        background: #ecfdf5;
    }

    body:has(#m-master-list) .m-master-card-badge.is-blacklisted {
        color: #dc2626;
        background: #fef2f2;
    }

    body:has(#m-master-list) .m-master-card-meta {
        margin-bottom: 7px;
        color: #6b7280;
    }

    body:has(#m-master-list) .m-master-card-rating {
        color: #f59e0b;
        font-weight: 800;
    }

    body:has(#m-master-list) .m-master-card-service-tag {
        border-radius: 999px;
        background: #eff6ff;
        color: #1a6dfc;
        padding: 3px 8px;
        font-size: 11px;
        font-weight: 700;
    }

    body:has(#m-master-list) .m-master-card-extra {
        margin-top: 2px;
        margin-bottom: 6px;
    }

    body:has(#m-master-list) .m-master-card-extra-tag {
        border-radius: 999px;
        font-weight: 700;
    }

    body:has(#m-master-list) .m-master-card-addr {
        color: #9ca3af;
        font-size: 12px;
    }

    body:has(#m-master-list) .m-master-card-actions {
        margin-top: 11px;
        padding-top: 11px;
        border-top: 1px solid #f3f4f6;
        gap: 9px;
    }

    body:has(#m-master-list) .m-master-card-call {
        height: 40px;
        border-radius: 999px;
        background: #16a34a;
        box-shadow: none;
        font-size: 14px;
        font-weight: 800;
    }

    body:has(#m-master-list) .m-master-card-detail {
        height: 40px;
        min-width: 84px;
        border-radius: 999px;
        background: #f6f8fb;
        color: #4b5563;
        border: 1px solid #edf1f5;
        font-weight: 800;
    }

    body:has(#m-master-list) .m-load-more {
        border-radius: 16px;
        background: #fff;
        border: 1px solid #edf1f5;
        box-shadow: none;
    }

    body:has(#m-master-list) .m-tabbar {
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid rgba(15, 23, 42, .06);
        box-shadow: none;
    }

    body:has(#m-master-list) .m-tabbar a.active {
        color: #1a6dfc;
    }
}

/* ================================================================
 *  v3.1 新增：表单页面 App 式布局（统一全站体验）
 *  适用于 report / master-join / appeal / info-correction
 * ================================================================ */
@media (max-width: 767px) {

    /* === 表单页面 body padding（配合 m-app-header） === */
    body:has(.m-app-header) {
        padding-top: calc(52px + env(safe-area-inset-top));
    }

    /* === 通用 App 顶栏（带返回按钮） === */
    .m-app-header {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 50;
        height: 52px;
        display: flex !important;
        align-items: center;
        padding: 0 12px;
        background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #2b5481 100%);
        color: #fff;
        box-shadow: 0 3px 12px rgba(30,58,95,.35);
        padding-top: env(safe-area-inset-top);
        height: calc(52px + env(safe-area-inset-top));
        border-bottom: 1px solid rgba(255,255,255,.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .m-app-header-back {
        width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        color: #fff; font-size: 16px;
        text-decoration: none;
        flex-shrink: 0;
        transition: background .2s, transform .15s;
        -webkit-tap-highlight-color: transparent;
    }
    .m-app-header-back:active {
        background: rgba(255,255,255,.22);
        transform: scale(.92);
    }
    .m-app-header-title {
        flex: 1;
        text-align: center;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: .5px;
        margin: 0 36px 0 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 1px 2px rgba(0,0,0,.15);
    }

    /* === 表单页主体容器 === */
    .m-app-body {
        padding-top: calc(52px + env(safe-area-inset-top));
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        min-height: 100vh;
        background: #f5f6f8;
    }

    /* === 表单卡片分组 === */
    .m-app-card {
        background: #fff;
        border-radius: 14px;
        margin: 12px;
        padding: 16px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    .m-app-card-title {
        font-size: 15px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .m-app-card-title i { color: #2c5282; font-size: 16px; }

    /* === 表单元素 App 风格 === */
    .m-app-body input[type="text"],
    .m-app-body input[type="tel"],
    .m-app-body input[type="email"],
    .m-app-body input[type="password"],
    .m-app-body input[type="number"],
    .m-app-body select,
    .m-app-body textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: #f9fafb;
        margin-bottom: 10px;
        transition: border-color .2s, background .2s;
        -webkit-appearance: none;
    }
    .m-app-body input:focus,
    .m-app-body select:focus,
    .m-app-body textarea:focus {
        border-color: #2c5282;
        background: #fff;
        outline: none;
    }
    .m-app-body select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 36px;
    }
    .m-app-body label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #4b5563;
        margin-bottom: 6px;
    }
    .m-app-body .required { color: #ef4444; margin-left: 2px; }

    .m-app-body input[type="radio"],
    .m-app-body input[type="checkbox"] {
        width: 20px; height: 20px;
        margin-right: 8px;
        accent-color: #2c5282;
        vertical-align: middle;
    }

    /* === 上传区域 === */
    .m-app-upload {
        border: 2px dashed #d1d5db;
        border-radius: 12px;
        padding: 24px 16px;
        text-align: center;
        background: #f9fafb;
        margin-bottom: 10px;
    }
    .m-app-upload:active { border-color: #2c5282; background: #eff6ff; }
    .m-app-upload-icon { font-size: 28px; color: #9ca3af; margin-bottom: 8px; }
    .m-app-upload-text { font-size: 14px; color: #6b7280; }
    .m-app-upload-hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }

    /* === 底部固定提交按钮 === */
    .m-app-submit {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 50;
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #f0f0f0;
    }
    .m-app-submit-btn {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 14px;
        background: linear-gradient(135deg, #1e3a5f, #2c5282);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .m-app-submit-btn:active { opacity: .85; }

    /* === 提示信息 === */
    .m-app-hint {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.6;
        padding: 10px 12px;
        background: #f0f9ff;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    .m-app-hint i { color: #3b82f6; margin-right: 4px; }

    /* === 步骤指示器 === */
    .m-steps {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 14px 0 8px;
    }
    .m-step {
        display: flex; align-items: center; gap: 6px;
        font-size: 13px; color: #9ca3af;
    }
    .m-step-num {
        width: 22px; height: 22px;
        border-radius: 50%;
        background: #e5e7eb;
        color: #9ca3af;
        font-size: 12px; font-weight: 600;
        display: flex; align-items: center; justify-content: center;
    }
    .m-step.active .m-step-num { background: #2c5282; color: #fff; }
    .m-step.active { color: #2c5282; font-weight: 500; }
    .m-step-line { width: 24px; height: 2px; background: #e5e7eb; margin: 0 4px; }

    /* === 通用页面适配：隐藏桌面端导航 === */
    .m-app-body > nav.fixed,
    .m-app-body > .desktop-only,
    .m-app-body > header.desktop-only {
        display: none !important;
    }

    /* === appeal.html 专属适配 === */
    #appeal-form .form-group,
    #appeal-form .mb-4 {
        margin-bottom: 14px;
    }
    #appeal-form input,
    #appeal-form select,
    #appeal-form textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: #f9fafb;
    }
    #appeal-form input:focus,
    #appeal-form select:focus,
    #appeal-form textarea:focus {
        border-color: #2c5282;
        background: #fff;
        outline: none;
    }
    #appeal-form label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #4b5563;
        margin-bottom: 6px;
    }
    #appeal-form button[type="submit"],
    #appeal-form .btn-primary {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 14px;
        background: linear-gradient(135deg, #1e3a5f, #2c5282);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }
    /* appeal 上传区 */
    #appeal-upload-area {
        border-radius: 12px !important;
        border-width: 2px !important;
        border-color: #d1d5db !important;
        padding: 20px 16px !important;
        background: #f9fafb !important;
    }
    #appeal-upload-area:active {
        border-color: #2c5282 !important;
        background: #eff6ff !important;
    }
    #appeal-evidence-preview img {
        border-radius: 10px;
    }
    /* appeal 主区域卡片化 */
    body:has(.m-app-header) main {
        max-width: 100% !important;
        padding: 10px 0 0 !important;
        margin: 0 !important;
        grid-template-columns: 1fr !important;
    }
    body:has(.m-app-header) main > section {
        background: #fff;
        border-radius: 14px;
        margin: 10px 12px;
        padding: 16px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    body:has(.m-app-header) main > section > h2 {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a2e;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 14px;
    }
    body:has(.m-app-header) main > section > p {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 14px;
    }
    /* 状态查询区 */
    body:has(.m-app-header) #status-query-section,
    body:has(.m-app-header) .bg-white.rounded-2xl {
        border-radius: 14px;
        margin: 10px 12px;
        padding: 16px;
    }
    /* 材料选择卡片 */
    #appeal-form .bg-gray-50 {
        border-radius: 10px !important;
        padding: 10px 12px !important;
    }

    /* === info-correction.html 专属适配 === */
    #correction-form .form-group,
    #correction-form .mb-4 {
        margin-bottom: 14px;
    }
    #correction-form input,
    #correction-form select,
    #correction-form textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: #f9fafb;
    }
    #correction-form input:focus,
    #correction-form select:focus,
    #correction-form textarea:focus {
        border-color: #2c5282;
        background: #fff;
        outline: none;
    }
    #correction-form label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #4b5563;
        margin-bottom: 6px;
    }
    #correction-form button[type="submit"],
    #correction-form .btn-primary {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 14px;
        background: linear-gradient(135deg, #1e3a5f, #2c5282);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }

    /* === report.html 专属增强 === */
    #report-form input,
    #report-form select,
    #report-form textarea {
        border-radius: 12px;
        font-size: 16px;
        padding: 12px 14px;
        border-width: 1.5px;
        border-color: #e5e7eb;
        background: #f9fafb;
    }
    #report-form input:focus,
    #report-form select:focus,
    #report-form textarea:focus {
        border-color: #2c5282;
        background: #fff;
    }
    #report-form label {
        font-size: 14px;
        font-weight: 500;
        color: #4b5563;
    }
    #report-form .border-gray-100 {
        border-color: #f0f0f0;
    }
    #report-form .bg-white.rounded-xl {
        border-radius: 14px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    #report-upload-area {
        border-radius: 12px !important;
        border-width: 2px !important;
        border-color: #d1d5db !important;
        padding: 20px 16px !important;
        background: #f9fafb !important;
    }
    #report-upload-area:active {
        border-color: #2c5282 !important;
        background: #eff6ff !important;
    }
    #report-evidence-preview img {
        border-radius: 10px;
    }
    .violation-chip {
        border-radius: 100px !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
    }
    /* report/appeal 主体背景 */
    body:has(.m-app-header) {
        background: #f5f6f8;
    }
    body:has(.m-app-header) #report-form-section > div,
    body:has(.m-app-header) #phone-search-section,
    body:has(.m-app-header) #track-section {
        background: #fff;
        border-radius: 14px;
        margin: 10px 12px;
        padding: 16px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    body:has(.m-app-header) #phone-search-section > h2,
    body:has(.m-app-header) #track-section > h2,
    body:has(.m-app-header) #report-form-section h2 {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a2e;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    body:has(.m-app-header) #phone-search-section > h2 i,
    body:has(.m-app-header) #track-section > h2 i,
    body:has(.m-app-header) #report-form-section h2 i {
        color: #2c5282;
        font-size: 15px;
    }
    body:has(.m-app-header) > div:not(.m-only):not(#mobile-menu):not(.m-app-submit):not(#m-tabbar-container) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body:has(.m-app-header) .max-w-4xl {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 移动端步骤说明简化 */
    body:has(.m-app-header) .bg-blue-50.rounded-lg {
        border-radius: 10px;
        padding: 12px;
        font-size: 13px;
    }
    /* 状态追踪区表单 */
    body:has(.m-app-header) #track-section .grid {
        gap: 10px;
    }
    body:has(.m-app-header) #track-section input {
        font-size: 15px;
    }

    /* === master-join.html 专属增强 === */
    #join-form input,
    #join-form select,
    #join-form textarea {
        border-radius: 12px;
    }
    #join-form .upload-area {
        border-radius: 12px;
        border-width: 2px;
    }

    /* === 页面过渡动画 === */
    .m-app-body {
        animation: mFadeIn .3s ease;
    }
    @keyframes mFadeIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* ============================================================
     *  骨架屏 Skeleton
     * ============================================================ */
    @keyframes shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }
    .skeleton-block {
        background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 50%, #eceef1 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s ease-in-out infinite;
        border-radius: 6px;
    }
    .sk-circle, .sk-bar, .sk-tag, .sk-banner, .sk-list-item .sk-circle {
        background: linear-gradient(90deg, #eceef1 25%, #f5f6f8 50%, #eceef1 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s ease-in-out infinite;
    }
    /* 卡片骨架 */
    .sk-card {
        background: #fff;
        border-radius: 14px;
        padding: 14px;
        margin: 10px 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    .m-skeleton-wrap .sk-card:first-child { margin-top: 0; }
    .sk-card-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .sk-circle {
        width: 48px; height: 48px;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .sk-circle.sm { width: 40px; height: 40px; }
    .sk-card-info { flex: 1; }
    .sk-bar {
        height: 14px;
        border-radius: 4px;
    }
    .sk-w30 { width: 30%; }
    .sk-w40 { width: 40%; }
    .sk-w50 { width: 50%; }
    .sk-w60 { width: 60%; }
    .sk-w80 { width: 80%; }
    .sk-mt6 { margin-top: 6px; }
    .sk-mt8 { margin-top: 8px; }
    .sk-tag {
        width: 52px; height: 22px;
        border-radius: 11px;
    }
    /* 详情骨架 */
    .sk-detail { background: #fff; }
    .sk-banner {
        width: 100%;
        height: 180px;
        border-radius: 0 0 16px 16px;
    }
    .sk-detail-body { padding: 16px; }
    .sk-gap { height: 16px; }
    /* 列表骨架 */
    .sk-list-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-bottom: 1px solid #f5f6f8;
    }
    .sk-list-info { flex: 1; }

    /* 详情页骨架屏 */
    .m-skeleton { padding: 0 0 20px; }
    .m-skeleton-hero {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 60px 16px 24px;
        background: linear-gradient(135deg, #eef4ff, #f0f7ff);
    }
    .m-skeleton-avatar {
        width: 80px; height: 80px;
        border-radius: 16px;
        flex-shrink: 0;
        background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s ease-in-out infinite;
    }
    .m-skeleton-hero-info { flex: 1; }
    .m-skeleton-line {
        border-radius: 6px;
        background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s ease-in-out infinite;
    }
    .m-skeleton-card {
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        margin: 10px 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }

    /* ============================================================
     *  下拉刷新 Pull to Refresh
     * ============================================================ */
    .m-pull-refresh {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        overflow: hidden;
        transition: height .2s ease, opacity .2s ease;
        background: #f5f6f8;
    }
    .m-pull-refresh-icon {
        width: 28px; height: 28px;
        display: flex; align-items: center; justify-content: center;
        color: #9ca3af;
        font-size: 16px;
    }
    .m-pull-refresh-icon i {
        transition: transform .2s ease;
    }
    .m-pull-refresh-text {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 4px;
    }

    /* ============================================================
     *  上拉加载 Infinite Scroll
     * ============================================================ */
    .m-infinite-sentinel { padding: 4px 0; }
    .m-infinite-loading {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 16px 0;
    }
    .m-infinite-loading span {
        width: 8px; height: 8px;
        border-radius: 50%;
        background: #2c5282;
        animation: mBounce 1.2s infinite ease-in-out;
    }
    .m-infinite-loading span:nth-child(2) { animation-delay: .15s; }
    .m-infinite-loading span:nth-child(3) { animation-delay: .3s; }
    @keyframes mBounce {
        0%, 80%, 100% { transform: scale(.6); opacity: .4; }
        40% { transform: scale(1); opacity: 1; }
    }
    .m-infinite-end {
        text-align: center;
        padding: 16px 0;
        font-size: 13px;
        color: #9ca3af;
    }
    .m-infinite-end i { margin-right: 4px; font-size: 11px; }

    /* ============================================================
     *  底部 ActionSheet
     * ============================================================ */
    .m-actionsheet-mask {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 9999;
        opacity: 0;
        transition: opacity .25s ease;
    }
    .m-actionsheet-mask.show { opacity: 1; }
    .m-actionsheet {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 10000;
        background: #f5f6f8;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform .3s cubic-bezier(.32,.72,1,1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .m-actionsheet.show { transform: translateY(0); }
    .m-actionsheet-title {
        text-align: center;
        font-size: 13px;
        color: #8a8a8e;
        padding: 14px 16px 10px;
        border-bottom: 0.5px solid rgba(0,0,0,.08);
    }
    .m-actionsheet-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        font-size: 17px;
        background: #fff;
        color: #1a1a2e;
        border-bottom: 0.5px solid rgba(0,0,0,.06);
        cursor: pointer;
        transition: background .15s;
    }
    .m-actionsheet-item:active { background: #f0f0f0; }
    .m-actionsheet-item.danger { color: #ef4444; }
    .m-actionsheet-item-icon { margin-right: 8px; font-size: 15px; }
    .m-actionsheet-confirm {
        margin-top: 8px;
        background: #1a6dfc;
        text-align: center;
        padding: 16px;
        font-size: 17px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
        transition: background .15s;
    }
    .m-actionsheet-confirm:active { background: #1558d4; }
    .m-actionsheet-cancel {
        margin-top: 8px;
        background: #fff;
        text-align: center;
        padding: 16px;
        font-size: 17px;
        font-weight: 500;
        color: #1a1a2e;
        cursor: pointer;
    }
    .m-actionsheet-cancel:active { background: #f0f0f0; }

    /* ============================================================
     *  按钮按压微交互
     * ============================================================ */
    .m-app-body button:not(.no-scale):active,
    .m-app-body .m-app-submit-btn:active,
    .m-master-card:active,
    .m-category-item:active,
    .m-tabbar-item:active {
        transform: scale(.97);
        transition: transform .1s ease;
    }
    .m-master-card { transition: transform .15s ease; }
    .m-category-item { transition: transform .15s ease; }
}

@media (min-width: 768px) {
    /* 桌面端隐藏移动端专属元素 */
    .m-only, .m-only-flex, .m-only-grid,
    .m-header, .m-tabbar, .m-home, .m-detail-bar,
    .m-filter-bar, .m-sort-bar, .m-master-list,
    .m-category-grid, .m-section,
    .m-notice-bar, .m-safety-card, .m-master-scroll,
    .m-blacklist-list, .m-map-container, .m-load-more,
    .m-banner, .m-stats-bar, .m-hot-cities,
    .m-master-section, .m-master-scroll-v2,
    .m-master-grid-2, .m-master-list-v2,
    .m-service-zone, .m-safety-section,
    .m-safety-grid, .m-filter-panel, .m-master-list-v2-page,
    .m-detail-info-card, .m-detail-bar-v2,
    .m-section-header-v2, .m-section-title-v2,
    .m-section-subtitle, .m-section-more-v2,
    .m-app-header, .m-app-card,
    .m-app-submit, .m-app-upload, .m-steps,
    .sk-card, .sk-detail, .sk-list-item,
    .m-pull-refresh, .m-infinite-sentinel,
    .m-actionsheet-mask, .m-actionsheet {
        display: none !important;
    }
}

/* ============================================================
 *  收藏按钮
 * ============================================================ */
.m-fav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 100px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.m-fav-btn.favorited {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #f59e0b;
}
.m-fav-btn:active { transform: scale(.95); }

/* ============================================================
 *  搜索历史面板
 * ============================================================ */
.m-search-history {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.m-search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.m-search-history-header span {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}
.m-search-history-clear {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}
.m-search-history-clear:active { color: #ef4444; }
.m-search-history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.m-search-history-tag {
    background: #f3f4f6;
    border: none;
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all .15s;
}
.m-search-history-tag:active {
    background: #e5e7eb;
    transform: scale(.95);
}
.m-search-city-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.m-search-city-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}
.m-search-city-item:active {
    background: #f3f4f6;
}
.m-search-city-item > span:first-of-type {
    flex: 1;
    font-weight: 500;
}
.m-search-city-prov {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}
.m-search-master-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.m-search-master-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}
.m-search-master-item:active { background: #f3f4f6; }
.m-search-master-item > span:first-of-type {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
 *  分享按钮
 * ============================================================ */
.m-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 100px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.m-share-btn:active { transform: scale(.95); }

/* ============================================================
 *  错误重试
 * ============================================================ */
.m-error-retry {
    text-align: center;
    padding: 48px 24px;
}
.m-error-retry-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ef4444;
}
.m-error-retry-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}
.m-error-retry-desc {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}
.m-error-retry-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #1a6dfc;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}
.m-error-retry-btn:active {
    transform: scale(.95);
    background: #1558d4;
}

/* ============================================================
 *  "未找到"状态
 * ============================================================ */
.m-not-found {
    text-align: center;
    padding: 64px 24px;
}
.m-not-found-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #9ca3af;
}
.m-not-found-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.m-not-found-desc {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.6;
}
.m-not-found-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.m-not-found-actions a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.m-not-found-actions a:active { transform: scale(.95); }
.m-not-found-actions .btn-primary {
    background: #1a6dfc;
    color: #fff;
}
.m-not-found-actions .btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

/* ============================================================
 *  首次使用引导
 * ============================================================ */
.m-onboard-mask {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.m-onboard-mask.show { opacity: 1; }
.m-onboard-card {
    background: #fff;
    border-radius: 20px;
    margin: 0 32px;
    max-width: 360px;
    width: 100%;
    padding: 32px 24px 24px;
    text-align: center;
    transform: scale(.9);
    transition: transform .3s cubic-bezier(.32,.72,1,1);
}
.m-onboard-mask.show .m-onboard-card { transform: scale(1); }
.m-onboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}
.m-onboard-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}
.m-onboard-steps {
    text-align: left;
    margin-bottom: 24px;
}
.m-onboard-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.m-onboard-step:last-child { border-bottom: none; }
.m-onboard-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a6dfc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.m-onboard-step-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    padding-top: 4px;
}
.m-onboard-step-text strong { color: #1f2937; }
.m-onboard-close {
    width: 100%;
    padding: 14px;
    background: #1a6dfc;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}
.m-onboard-close:active { transform: scale(.97); background: #1558d4; }

/* ============================================================
 *  "我的" Tab 页面
 * ============================================================ */
.m-profile-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #1a6dfc, #4f8df7);
    color: #fff;
}
.m-profile-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}
.m-profile-user-info {
    flex: 1;
    min-width: 0;
}
.m-profile-user-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}
.m-profile-user-desc {
    font-size: 12px;
    opacity: .85;
}
.m-profile-section {
    padding: 16px;
}
.m-profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.m-profile-section-title .clear-btn {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
    cursor: pointer;
    border: none;
    background: none;
}
.m-profile-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 13px;
}
.m-profile-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    color: #d1d5db;
}
.m-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: all .2s;
}
.m-profile-card:active { background: #f9fafb; }
.m-profile-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}
.m-profile-card-info {
    flex: 1;
    min-width: 0;
}
.m-profile-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.m-profile-card-meta {
    font-size: 12px;
    color: #9ca3af;
}
.m-profile-card-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #d1d5db;
    font-size: 16px;
    cursor: pointer;
}
.m-profile-card-remove:active { color: #ef4444; }

/* ================================================================
 *  v3.6 锁匠地图 APP 风格移动端页面
 * ================================================================ */
@media (max-width: 767px) {
    .desktop-only { display: none !important; }
    body:has(.m-cities-page) { padding-top: var(--m-header-h, 67px); padding-bottom: 60px; background: #f5f7fa; }
    body:has(.m-cities-page) main { padding-top: 0 !important; padding-bottom: 0 !important; }

    .m-cities-page { display: block; }

    /* 顶栏搜索入口按钮 */
    .m-header-search-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        background: #f3f4f6;
        border-radius: 100px;
        padding: 7px 14px;
        font-size: 13px;
        color: #9ca3af;
        text-decoration: none;
        font-weight: 500;
        -webkit-tap-highlight-color: transparent;
    }
    .m-header-search-btn:active { background: #e5e7eb; }

    /* 骨架屏 */
    .m-skeleton-row {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    .m-skeleton-city-card {
        flex-shrink: 0;
        width: 86px;
        height: 62px;
        border-radius: 14px;
        background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
        background-size: 200% 100%;
        animation: m-shimmer 1.5s infinite;
    }
    .m-skeleton-province {
        height: 50px;
        border-radius: 14px;
        margin-bottom: 8px;
        background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
        background-size: 200% 100%;
        animation: m-shimmer 1.5s infinite;
    }
    @keyframes m-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    /* 数据概览条：三卡等分铺满，不滚动 */
    .m-cities-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }
    .m-cities-stat-card {
        min-width: 0;
        background: #fff;
        border-radius: 14px;
        padding: 12px 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,.04);
    }
    .m-cities-stat-card.blue { border-left: 3px solid #1a6dfc; }
    .m-cities-stat-card.green { border-left: 3px solid #10b981; }
    .m-cities-stat-card.orange { border-left: 3px solid #f59e0b; }
    .m-cities-stat-num {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .m-cities-stat-card.blue .m-cities-stat-num { color: #1a6dfc; }
    .m-cities-stat-card.green .m-cities-stat-num { color: #059669; }
    .m-cities-stat-card.orange .m-cities-stat-num { color: #f59e0b; }
    .m-cities-stat-label {
        font-size: 11px;
        color: #9ca3af;
        font-weight: 500;
    }
    .m-cities-stat-icon {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .m-cities-stat-card.blue .m-cities-stat-icon { color: #1a6dfc; }
    .m-cities-stat-card.green .m-cities-stat-icon { color: #10b981; }
    .m-cities-stat-card.orange .m-cities-stat-icon { color: #f59e0b; }

    /* 热门城市横滑 */
    .m-cities-section {
        padding: 0 12px;
        margin-bottom: 16px;
    }
    .m-cities-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0 10px;
    }
    .m-cities-section-title {
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .m-cities-section-title i { color: #1a6dfc; font-size: 14px; }
    .m-cities-section-more {
        font-size: 12px;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 2px;
        text-decoration: none;
    }
    .m-cities-hot-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2px 0 4px;
    }
    .m-cities-hot-scroll::-webkit-scrollbar { display: none; }
    .m-city-hot-card {
        flex-shrink: 0;
        width: 86px;
        background: #fff;
        border-radius: 14px;
        padding: 14px 8px 10px;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
        transition: transform .15s;
        position: relative;
        overflow: hidden;
    }
    .m-city-hot-card:active { transform: scale(.95); }
    .m-city-hot-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1a6dfc, #60a5fa);
    }
    .m-city-hot-card.vacant::before {
        background: linear-gradient(90deg, #f59e0b, #fbbf24);
    }
    .m-city-hot-name {
        font-size: 14px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 2px;
    }
    .m-city-hot-count {
        font-size: 11px;
        color: #1a6dfc;
        font-weight: 600;
    }
    .m-city-hot-card.vacant .m-city-hot-count { color: #f59e0b; }

    /* 地图卡片 */
    .m-cities-map-wrap {
        margin: 0 12px 16px;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0,0,0,.06);
    }
    .m-cities-map-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px 8px;
    }
    .m-cities-map-head-title {
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .m-cities-map-head-title i { color: #1a6dfc; }
    .m-cities-map-head-count {
        font-size: 12px;
        color: #6b7280;
        background: #eff6ff;
        padding: 3px 10px;
        border-radius: 100px;
        font-weight: 600;
    }
    .m-cities-map-chart {
        width: 100%;
        height: 240px;
    }
    .m-cities-map-foot {
        padding: 8px 14px 12px;
        font-size: 11px;
        color: #9ca3af;
        text-align: center;
    }
    .m-cities-map-foot i { color: #fbbf24; }

    /* 城市搜索 */
    .m-cities-search {
        padding: 12px;
    }
    .m-cities-search-box {
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,.04);
    }
    .m-cities-search-box i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 14px;
    }
    .m-cities-search-input {
        width: 100%;
        border: none;
        background: transparent;
        padding: 11px 12px 11px 36px;
        font-size: 14px;
        border-radius: 12px;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }
    .m-cities-search-input::placeholder { color: #c0c6cc; }

    /* 省市折叠列表：两列省卡网格，展开的省跨整行 */
    .m-cities-list {
        padding: 0 12px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .m-province-group {
        background: #fff;
        border: 1px solid #eef1f5;
        border-radius: 12px;
        overflow: hidden;
        min-width: 0;
        transition: border-color .15s;
    }
    .m-province-group.open {
        grid-column: 1 / -1;
        background: #fafcff;
        border-color: #d5e3f8;
    }
    .m-province-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 13px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    .m-province-header:active { background: #f6f8fb; }
    .m-province-name {
        font-size: 13.5px;
        font-weight: 700;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        overflow: hidden;
    }
    .m-province-name i {
        font-size: 10px;
        color: #b6bfcc;
        transition: transform .25s;
        width: 11px;
        flex-shrink: 0;
    }
    .m-province-group.open .m-province-name i { transform: rotate(180deg); color: #1a6dfc; }
    .m-province-badge {
        font-size: 11px;
        color: #9ca3af;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .m-province-badge .covered { color: #1a6dfc; }
    .m-province-badge .vacant { color: #9ca3af; }
    .m-province-badge .sep { color: #d1d5db; }
    .m-province-badge .unit { color: #b6bfcc; font-weight: 500; }
    .m-province-cities {
        display: none;
        padding: 10px 11px 12px;
        border-top: 1px solid #eef2f8;
    }
    /* 展开区两列城市 chips 网格：扫一眼全貌，触控目标 ~40px */
    .m-province-group.open .m-province-cities {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .m-city-chip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        min-width: 0;
    }
    .m-city-chip .m-city-chip-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .m-city-chip b {
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 700;
    }
    .m-city-chip.is-covered {
        background: #fff;
        border: 1px solid #e0eaf8;
        color: #1a6dfc;
        font-weight: 600;
    }
    .m-city-chip.is-covered b { color: #85aef7; }
    .m-city-chip.is-covered:active { background: #f0f6ff; }
    .m-city-chip.is-vacant {
        background: #f6f8fb;
        border: 1px solid #eef1f5;
        color: #9aa5b4;
        font-weight: 500;
    }
    .m-city-chip.is-vacant b { color: #c3ccd8; font-weight: 500; }
    .m-city-chip.is-vacant:active { background: #fff3e6; color: #c2410c; border-color: #fcd9b8; }
    .m-city-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 0;
        text-decoration: none;
        border-bottom: 1px solid #f9fafb;
        -webkit-tap-highlight-color: transparent;
    }
    .m-city-item:last-child { border-bottom: none; }
    .m-city-item:active { background: #f9fafb; }
    .m-city-item-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .m-city-item-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
    }
    .m-city-item-icon.covered {
        background: #eff6ff;
        color: #1a6dfc;
    }
    .m-city-item-icon.vacant {
        background: #fffbeb;
        color: #f59e0b;
    }
    .m-city-item-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
    }
    .m-city-item-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .m-city-item-count {
        font-size: 12px;
        font-weight: 600;
        color: #1a6dfc;
    }
    .m-city-item-count.vacant { color: #f59e0b; }
    .m-city-item-arrow {
        font-size: 11px;
        color: #d1d5db;
    }

    /* 入驻横幅 */
    .m-cities-join-banner {
        margin: 0 12px 16px;
        background: linear-gradient(135deg, #f59e0b, #f97316);
        border-radius: 14px;
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(245,158,11,.25);
    }
    .m-cities-join-banner:active { transform: scale(.98); }
    .m-cities-join-text {
        color: #fff;
    }
    .m-cities-join-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 2px;
    }
    .m-cities-join-desc {
        font-size: 12px;
        opacity: .85;
    }
    .m-cities-join-btn {
        background: #fff;
        color: #f59e0b;
        font-size: 13px;
        font-weight: 700;
        padding: 8px 16px;
        border-radius: 100px;
        white-space: nowrap;
    }
}

/* ================================================================
 *  LocationSheet - 统一定位城市选择弹窗
 * ================================================================ */
.loc-sheet-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    transition: background 0.3s ease;
}
.loc-sheet-mask.show {
    background: rgba(0, 0, 0, 0.45);
}
.loc-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    border-radius: 20px 20px 0 0;
    z-index: 10000;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}
.loc-sheet.show {
    transform: translateY(0);
}
.loc-sheet-handle {
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 100px;
    margin: 8px auto 4px;
    flex-shrink: 0;
}
.loc-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    flex-shrink: 0;
}
.loc-sheet-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}
.loc-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.loc-sheet-close:active { background: #e5e7eb; }
.loc-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 24px;
    flex: 1;
}
.loc-sheet-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    margin-bottom: 12px;
}
.loc-sheet-search i {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}
.loc-sheet-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    color: #1f2937;
    -webkit-appearance: none;
}
.loc-sheet-search input::placeholder {
    color: #9ca3af;
}
.loc-sheet-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.loc-sheet-search-results .loc-sheet-city {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
}
.loc-sheet-city-prov {
    font-size: 12px;
    color: #9ca3af;
    font-weight: normal;
}
.loc-sheet-no-result {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 0;
}
.loc-sheet-locate {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.loc-sheet-locate:active { background: #f9fafb; }
.loc-sheet-locate.is-loading {
    opacity: 0.7;
}
.loc-sheet-locate-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a6dfc 0%, #0f55d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.loc-sheet-locate-text {
    flex: 1;
    min-width: 0;
}
.loc-sheet-locate-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}
.loc-sheet-locate-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.loc-sheet-locate-badge {
    font-size: 11px;
    color: #f59e0b;
    background: #fef3c7;
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 600;
    flex-shrink: 0;
}
.loc-sheet-locate.is-loading .loc-sheet-locate-icon i {
    animation: loc-spin 0.8s linear infinite;
}
@keyframes loc-spin {
    to { transform: rotate(360deg); }
}
.loc-sheet-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 13px;
    padding: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.loc-sheet-reset:active { color: #1a6dfc; }
.loc-sheet-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    margin: 16px 0 10px;
}
.loc-sheet-hot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.loc-sheet-city {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.loc-sheet-city:active { background: #f3f4f6; }
.loc-sheet-city.is-active {
    background: #1a6dfc;
    border-color: #1a6dfc;
    color: #fff;
    font-weight: 600;
}
.loc-sheet-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 4px;
    text-decoration: none;
    color: #1a6dfc;
    font-size: 14px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
}
.loc-sheet-all-link:active { background: #f9fafb; }
.loc-sheet-all-link i {
    font-size: 12px;
    color: #9ca3af;
}

/* find-masters 白色顶栏下的定位文字颜色 */
body:has(#m-master-list) .m-header-loc {
    color: #1a6dfc;
}
body:has(#m-master-list) .m-header-loc i.fa-chevron-down {
    color: #1a6dfc;
}

/* ================================================================
 *  入驻页移动端常驻CTA（一键直达表单，滚动到表单区自动隐藏）
 * ================================================================ */
.m-join-cta { display: none; }
@media (max-width: 767px) {
    .m-join-cta {
        display: flex;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        z-index: 40;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 50px;
        border-radius: 25px;
        background: linear-gradient(135deg, #1a6dfc 0%, #0f55d8 100%);
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(26, 109, 252, 0.35);
        -webkit-tap-highlight-color: transparent;
    }
    .m-join-cta i { font-size: 13px; }
    .m-join-cta.is-hidden { display: none; }
}

/* ================================================================
 *  我的页游客引导横幅（认领店铺）
 * ================================================================ */
.m-profile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    border: 1px solid #dbeafe;
}
.m-profile-cta-text { min-width: 0; }
.m-profile-cta-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 3px;
}
.m-profile-cta-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.m-profile-cta-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 20px;
    background: #1a6dfc;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.m-profile-cta-btn:active { background: #0f55d8; }
