/* ===================== 整站移动端补充适配 =====================
   加载顺序位于 frontend.css / h5.css / news.css 之后，只覆盖 ≤920px。 */

@media (max-width: 920px) {
    /* --- 顶部品牌与城市切换 --- */
    .tc-brand { min-width: 0; }
    .nb-brand-copy { min-width: 0; }
    .nb-brand-name {
        display: block;
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 16px;
    }
    .tc-city { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
    .tc-city a { margin-left: 4px; }
    .nb-mast { gap: 8px; }

    /* 顶栏热门关键词横向滚动 */
    .tc-hot {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tc-hot::-webkit-scrollbar { display: none; }
    .tc-hot a { flex: 0 0 auto; }

    /* --- 首页英雄区 --- */
    body.theme-news .hm-hero-copy h1 {
        font-size: clamp(20px, 5vw, 26px) !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    body.theme-news .hm-hero-hot {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.theme-news .hm-hero-hot::-webkit-scrollbar { display: none; }
    body.theme-news .hm-hero-hot a,
    body.theme-news .hm-hero-hot span { flex: 0 0 auto; }
    body.theme-news .hm-panel-actions { flex-wrap: wrap; }
    body.theme-news .hm-panel-actions .hm-btn {
        flex: 1 1 140px;
        justify-content: center;
    }

    /* --- 分类筛选：改为横向滚动，避免占满首屏 --- */
    body.theme-news .nl-filter-row {
        flex-wrap: nowrap;
        align-items: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.theme-news .nl-filter-row::-webkit-scrollbar { display: none; }
    body.theme-news .nl-filter-row > span {
        position: sticky;
        left: 0;
        z-index: 1;
        flex: 0 0 36px;
        background: #fff;
    }
    body.theme-news .nl-filter-links { flex-wrap: nowrap; }
    body.theme-news .nl-filter-links a { flex: 0 0 auto; white-space: nowrap; }

    /* --- 城市选择 --- */
    .city-head h1 { font-size: 24px; }
    .city-hot-list, .city-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .city-links a, .city-hot-list a {
        margin: 0;
        padding: 6px 12px;
        font-size: 13px;
    }

    /* --- 关于我们 / 网站简介 --- */
    .about-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-stats-grid div { padding: 18px 16px; }
    .about-stats-grid b { font-size: 24px; }
    .about-hero h1 { font-size: 30px; }

    /* --- 会员 / 商家中心 --- */
    .member-form-card { max-width: none; }
    .member-page-head .btn-default,
    .member-page-head .btn-primary { align-self: flex-start; }
    .mc-welcome-actions { flex-wrap: wrap; }
    .mc-welcome-actions .btn-primary,
    .mc-welcome-actions .btn-default {
        flex: 1 1 140px;
        justify-content: center;
    }
    .member-form-card form > .btn-primary { width: 100%; }
    .invoice-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .invoice-actions .btn-primary,
    .invoice-actions .btn-default {
        width: 100%;
        justify-content: center;
    }
    .member-table-actions, .head-actions-inline { flex-wrap: wrap; }
    .member-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    /* --- 表单 / 弹窗 --- */
    .form-grid-2 { grid-template-columns: 1fr; }
    .site-dialog-card { width: calc(100vw - 24px); }

    /* --- 登录 / 注册 --- */
    .auth-captcha .auth-input,
    .auth-sms .auth-input { min-width: 0; }
    .auth-input input { min-width: 0; }
    .auth-captcha img { width: 96px; }
    .auth-sms-btn { min-width: 104px; padding: 0 10px; }
}

@media (max-width: 480px) {
    body.theme-news .hm-hero-copy h1 {
        font-size: 21px;
        line-height: 1.3;
    }
    .nb-brand-name { max-width: 42vw; font-size: 15px; }
}
