/* ===== 移动端搜索页面样式 v2.0 ===== */

/* ─────────────────────────────────────────
   Header 内嵌搜索框
   ───────────────────────────────────────── */
.search-header-container {
    gap: 12px;
    padding: 0 8px 0 4px;
}

.search-header-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    padding: 0 8px;
    height: 34px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    min-width: 0;
}

.search-header-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-header-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    margin-right: 6px;
}

.search-header-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    padding: 0;
    min-width: 0;
}

.search-header-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* 清除搜索类型特有的 × 按钮 */
.search-header-input::-webkit-search-cancel-button {
    display: none;
}

.search-header-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.search-header-clear:active {
    color: #fff;
}

.search-header-submit {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--border-radius-md);
    padding: 0 14px;
    height: 34px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.search-header-submit:active {
    background: rgba(255, 255, 255, 0.35);
}

/* ─────────────────────────────────────────
   页面主容器
   ───────────────────────────────────────── */
.mobile-search-page {
    padding-bottom: 20px;
    min-height: calc(100vh - 48px);
}

/* ─────────────────────────────────────────
   发现态独立搜索框（默认状态专属）
   ───────────────────────────────────────── */
.discovery-search-bar {
    background: #fff;
    padding: 14px 16px;
}

.discovery-search-group {
    display: flex;
    align-items: center;
    background: #f4f5f9;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    padding: 5px 5px 5px 12px;
    height: 48px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.discovery-search-group:focus-within {
    border-color: var(--primary-color, #1A4FBE);
    background: #fff;
}

.discovery-search-icon {
    font-size: 18px;
    color: #1A4FBE;
    flex-shrink: 0;
    margin-right: 8px;
}

.discovery-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    padding: 0;
    min-width: 0;
}

.discovery-search-input::placeholder {
    color: #aaa;
}

.discovery-search-input::-webkit-search-cancel-button {
    display: none;
}

.discovery-clear-btn {
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 15px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.discovery-clear-btn:active {
    color: #888;
}

.discovery-submit-btn {
    background: #1A4FBE;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 0 18px;
    height: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.discovery-submit-btn:active {
    background: #1240A0;
}

/* ─────────────────────────────────────────
   默认状态（未搜索）
   ───────────────────────────────────────── */
.search-default-state {
    padding: 0;
}

.search-section {
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 1px;
}

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

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title i {
    font-size: 15px;
    color: #2B57A5;
}

.btn-clear {
    background: transparent;
    border: none;
    color: #999;
    font-size: 13px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.btn-clear:active {
    color: #666;
}

.search-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* search.js 动态注入的标签：search-hint-tag，search-tag 作别名 */
.search-hint-tag,
.search-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f4f5f9;
    border-radius: var(--border-radius-sm);
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-hint-tag:hover,
.search-hint-tag:active,
.search-tag:hover,
.search-tag:active {
    background: #F0F4FB;
    color: #1A4FBE;
}

.search-tips {
    background: #fff;
    padding: 16px;
    margin-top: 1px;
}

.tips-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tips-title i {
    color: #999;
    font-size: 15px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 4px 0 4px 14px;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    position: relative;
}

.tips-list li:before {
    content: "·";
    position: absolute;
    left: 0;
    color: #bbb;
}

/* ─────────────────────────────────────────
   热门排行榜
   ───────────────────────────────────────── */
.search-section--ranking {
    padding-left: 0;
    padding-right: 0;
}

.search-section--ranking .section-header {
    padding: 0 16px;
}

.ranking-list {
    padding: 8px 16px 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ranking-list::-webkit-scrollbar {
    display: none;
}

.ranking-item {
    display: block;
    padding: 14px;
    border-radius: var(--border-radius-md);
    min-width: 240px;
    max-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #f0f2f5;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ranking-item:active {
    background: #f9fafb;
    border-color: rgba(26, 79, 190, 0.2);
}

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

.ranking-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ranking-year {
    font-size: 12px;
    color: #8c9aaf;
}

.ranking-preview {
    display: flex;
    flex-direction: column;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.preview-row:last-child {
    border-bottom: none;
}

.preview-rank {
    width: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
    font-family: var(--font-ui);
    font-feature-settings: "tnum" on, "lnum" on;
    flex-shrink: 0;
}

.preview-name {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-value {
    color: #333;
    font-weight: 500;
    font-family: var(--font-ui);
    font-feature-settings: "tnum" on, "lnum" on;
    flex-shrink: 0;
}

.preview-trend {
    font-size: 11px;
    font-family: var(--font-ui);
    font-feature-settings: "tnum" on, "lnum" on;
    flex-shrink: 0;
    margin-left: auto;
}

.preview-trend.up   { color: #0A7C4E; }
.preview-trend.down { color: #BA2A20; }

/* 频道 Tab 行已撤（单频道无切换意义） */

/* ─────────────────────────────────────────
   筛选栏：分类 | 排序 | 筛选（3列）
   ───────────────────────────────────────── */
.search-filter-bar {
    display: flex;
    align-items: center;
    background: #fff;
    height: 40px;
}

.filter-quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    background: transparent;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.filter-quick-btn.active {
    color: #1A4FBE;
    font-weight: 500;
}

.filter-quick-btn:active {
    background: #f4f5f9;
}

.filter-arrow {
    font-size: 10px;
    color: #aaa;
    transition: transform 0.2s ease, color 0.15s ease;
}

.filter-bar-sep {
    width: 1px;
    height: 16px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.filter-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.filter-more-btn .iconfont {
    font-size: 14px;
}

.filter-more-btn.active,
.filter-more-btn.filter-btn-open {
    color: #1A4FBE;
    font-weight: 500;
}

.filter-more-btn:active {
    background: #f4f5f9;
}

.filter-more-count {
    position: absolute;
    top: 7px;
    right: 10px;
    background: #BA2A20;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ─────────────────────────────────────────
   结果统计
   ───────────────────────────────────────── */
.search-results-info {
    background: #fff;
    padding: 8px 16px;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #f0f2f5;
}

.search-results-info strong {
    color: #1A4FBE;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   加载骨架屏
   ───────────────────────────────────────── */
.search-skeleton-mobile {
    background: #fff;
}

.skeleton-item {
    padding: 16px 16px;
    border-bottom: 1px solid #f0f2f5;
    animation: skeleton-fade 1.2s ease-in-out var(--delay, 0ms) infinite;
}

.skeleton-item::before {
    content: '';
    display: block;
    height: 15px;
    width: 70%;
    background: #f0f2f5;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
}

.skeleton-item::after {
    content: '';
    display: block;
    height: 11px;
    width: 45%;
    background: #f4f5f9;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-fade {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* ─────────────────────────────────────────
   搜索结果列表
   ───────────────────────────────────────── */
.search-results-list-mobile {
    background: #fff;
}

.search-results-list-mobile .ntable {
    width: 100%;
    border-collapse: collapse;
}

.search-results-list-mobile .ntable tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.15s ease;
}

.search-results-list-mobile .ntable tbody tr:last-child {
    border-bottom: none;
}

.search-results-list-mobile .ntable tbody tr:active {
    background-color: #f0f4fa;
}

.search-results-list-mobile .ntable td {
    padding: 14px 12px;
    vertical-align: top;
}

.search-results-list-mobile .ntable td.w-60 {
    padding-right: 0;
    text-align: center;
}

.search-results-list-mobile .ntable td.w-60 input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    accent-color: #1A4FBE;
}

.search-results-list-mobile .ntable td.data-title-col {
    padding-left: 8px;
}

.search-results-list-mobile .title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-results-list-mobile .data-name {
    font-size: 15px!important;
    font-weight: 500;
    color: #000000!important;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-results-list-mobile .data-name .highlight {
    font-style: normal;
    color: #BA2A20;
}

.search-results-list-mobile .data-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.search-results-list-mobile .title-link:active .data-name {
    color: #1A4FBE;
}

/* ─────────────────────────────────────────
   无结果
   ───────────────────────────────────────── */

.no-results{
    border: none;
    justify-content: center;
    display: flex;
    align-items: center;
}

.no-results-mobile {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
}

.no-results-icon {
    font-size: 56px;
    color: #d0d0d0;
    margin-bottom: 16px;
}

.no-results-title {
    font-size: 15px;
    color: #999;
    margin-bottom: 6px;
}

.no-results-hint {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 20px;
}

.no-results-btn {
    margin-top: 16px; 
    border: 1px solid #1A4FBE;
    border-radius: 40px;
    color: #1A4FBE;
    width: 200px;
}

/* ─────────────────────────────────────────
   批量操作栏
   ───────────────────────────────────────── */
.batch-operations-mobile {
    background: #fff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 100;
    border-top: 1px solid #f0f2f5;
}

.batch-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.batch-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1A4FBE;
    cursor: pointer;
}

.batch-actions-mobile {
    display: flex;
    gap: 8px;
}

.batch-action-btn {
    font-size: 13px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #C9CDD4;
    border-radius: var(--border-radius-sm);
    color: #4A5568;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.batch-action-btn:active {
    border-color: #1A4FBE;
    color: #1A4FBE;
}

/* ─────────────────────────────────────────
   移动端翻页（大按钮，替代数字分页）
   ───────────────────────────────────────── */
.search-pagination-mobile {
    background: #fff;
    border-top: 1px solid #f0f2f5;
}

.mobile-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 30px 16px;
}

.mobile-page-btn {
    flex: 1;
    height: 44px;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-md);
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mobile-page-btn:disabled {
    color: #bbb;
    cursor: default;
    border-color: #eee;
}

.mobile-page-btn:not(:disabled):active {
    background: #F0F4FB;
    border-color: #1A4FBE;
    color: #1A4FBE;
}

.mobile-page-btn--next {
    background: #1A4FBE;
    border-color: #1A4FBE;
    color: #fff;
}

.mobile-page-btn--next:not(:disabled):active {
    background: #1240A0;
    border-color: #1240A0;
    color: #fff;
}

.mobile-page-btn--next:disabled {
    background: #f4f5f9;
    border-color: #eee;
    color: #bbb;
}

.mobile-page-info {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    font-family: var(--font-ui);
    font-feature-settings: "tnum" on, "lnum" on;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   筛选弹窗（底部滑出）
   ───────────────────────────────────────── */
.modal-dialog-bottom {
    margin: 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
}

.modal.show .modal-dialog-bottom {
    transform: translateY(0);
}

.modal-dialog-bottom .modal-content {
    border-radius: 6px 6px 0 0;
    max-height: 82vh;
    overflow-y: auto;
}

.modal-dialog-bottom .modal-header {
    border-bottom: 1px solid #f0f2f5;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.modal-dialog-bottom .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2329;
}

.modal-dialog-bottom .modal-body {
    padding: 0;
}

/* ─────────────────────────────────────────
   遮罩层（全屏，filter panel 打开时）
   ───────────────────────────────────────── */
#filterPanelOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 199;
}

/* ─────────────────────────────────────────
   更多筛选面板布局
   ───────────────────────────────────────── */
#filterInlineMore {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.more-filter-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    background-color: #ededed99;
}

.more-filter-group {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    background-color: #ffffff;
    border-radius: var(--border-radius-md);   /* 4px：原 12px 超规范上限(禁大圆角/消费级App感) */
    margin-bottom: 12px;
}

.more-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #8A9099;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.more-filter-sublabel {
    display: block;
    font-size: 12px;
    color: #8A9099;
    margin-bottom: 4px;
}

.mf-field {
    margin-bottom: 10px;
}

.mf-field:last-child {
    margin-bottom: 0;
}

/* ── 境内/境外轻量 tag ── */
.region-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.region-type-tab {
    padding: 5px 16px;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-sm);
    color: #4A5568;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.region-type-tab.active {
    background: #EBF0FB;
    color: #1A4FBE;
    font-weight: 500;
}

.region-type-tab:active {
    background: #dce6f8;
}

/* ── Select 封装 ── */
.mobile-select-wrap {
    position: relative;
}

.mobile-select-wrap::after {
    content: '\e8ca';
    font-family: 'iconfont';
    font-size: 12px;
    color: #aaa;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.mobile-select-wrap select {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 12px;
    appearance: none;
    -webkit-appearance: none;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: #1F2329;
    cursor: pointer;
    outline: none;
}

.mobile-select-wrap select:disabled {
    color: #aaa;
    cursor: not-allowed;
}

/* 区域筛选：原生 select 换 ActionPicker 抽屉触发器（点开底部抽屉选，替代 PC 式原生下拉）。
   外观与原 select 保持一致（同底色/高度/圆角），只是交互改为移动抽屉。JS 在 ActionPicker 可用时才启用。 */
.mobile-select-wrap .mf-ap {
    width: 100%;
    height: 38px;
    justify-content: space-between;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0 12px;
    font-size: 13px;
    color: #1F2329;
}
.mobile-select-wrap .mf-ap .ap-trigger-arrow { color: #aaa; }
.mobile-select-wrap .mf-ap.ap-disabled { color: #aaa; pointer-events: none; }
.mobile-select-wrap.has-ap::after { display: none; }  /* 触发器自带箭头，隐去 wrap 原箭头避免重叠 */

/* 数据洞察（发现态：置顶洞察卡 + 社区推荐；样式移植自 mobile-index.css，与首页同源）。
   外层用搜索页 .search-section（已含 16px 内边距），故此处去横向内边距避免双重缩进。 */
.di-track { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.di-card { display: block; text-decoration: none; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; background: #fff; }
.di-card:active { background: #fafbfc; }
.di-card-img { aspect-ratio: 16 / 10; background: #f3f5f8; }
.di-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.di-card-body { padding: 8px 10px; }
.di-card-title { margin: 0; font-size: 14px; color: var(--text-dark); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.di-reco { padding-top: 6px; }
.di-reco-list { display: flex; flex-direction: column; }
.di-reco-item { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #e8ebf0; text-decoration: none; }
.di-reco-item:last-child { border-bottom: none; }
.di-reco-item:active { opacity: 0.7; }
.di-reco-no { font-size: 12px; color: #9aa4b5; flex-shrink: 0; width: 14px; font-family: var(--font-ui); font-feature-settings: "tnum" on, "lnum" on; }
.di-reco-tt { font-size: 13px; color: var(--text-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─────────────────────────────────────────
   AI 搜索：入口按钮 + 底部抽屉
   ───────────────────────────────────────── */
/* 结果态：筛选栏（40px 分类|排序|筛选）右端按钮（对齐 PC .pf-ai-btn 的 outline 次要样式，✦ 前缀暗示 AI） */
.search-ai-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: center;
    height: 26px;
    margin: 0 16px;
    padding: 0 10px;
    background: #fff;
    color: #1A4FBE;
    border: 1px solid #1A4FBE;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.search-ai-btn.active { background: #1A4FBE; color: #fff; }
.ai-spark { font-size: 12px; line-height: 1; }

/* AI 抽屉外壳已收归公共 .gha-sheet（ai-assistant.css，六频道共用），本文件不再自留一套 */

.region-filter-content {
    margin-top: 4px;
}

/* ── 关键词输入框 + 清空按钮 ── */
.keyword-input-wrap {
    position: relative;
}

.keyword-input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 12px;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: #1F2329;
    outline: none;
    box-sizing: border-box;
}

.keyword-input::placeholder {
    color: #aaa;
}

.keyword-input:focus {
    background: #EBF0FB;
}

.keyword-clear-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 12px;
}

.keyword-clear-btn:active {
    color: #4A5568;
}

/* ── 统一底部操作栏（sticky） ── */
.more-filter-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    flex-shrink: 0;
}

.mf-footer-reset {
    width: 30%;
    height: 42px;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: #4A5568;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mf-footer-reset:active {
    background: #e4e6eb;
}

.mf-footer-confirm {
    flex: 1;
    height: 42px;
    background: #1A4FBE;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mf-footer-confirm:active {
    background: #1240A0;
}

/* ─────────────────────────────────────────
   筛选栏容器 + 下拉面板
   ───────────────────────────────────────── */
.filter-bar-wrap {
    position: relative;
    z-index: 200;
}

.filter-inline-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #EBEDF0;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 分类/排序面板内边距 */
#filterInlineCategory,
#filterInlineSort {
    padding: 12px;
    background-color: #ededed99;
}

/* 分类/排序面板：一行一个选项 */
#filterInlineCategory .filter-options-mobile,
#filterInlineSort .filter-options-mobile {
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
    border-radius: var(--border-radius-md);   /* 4px：原 12px 超规范上限 */
}

#filterInlineCategory .filter-option-btn,
#filterInlineSort .filter-option-btn {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: transparent;
    border-radius: 0;
    color: #1F2329;
    font-size: 14px;
    font-weight: 400;
    justify-content: flex-start;
    border-bottom: 1px solid #F5F6F8;
}

#filterInlineCategory .filter-option-btn:last-child,
#filterInlineSort .filter-option-btn:last-child {
    border-bottom: none;
}

#filterInlineCategory .filter-option-btn:active,
#filterInlineSort .filter-option-btn:active {
    background: #F5F6F8;
    color: #1F2329;
}

#filterInlineCategory .filter-option-btn.active,
#filterInlineSort .filter-option-btn.active {
    background: transparent;
    color: #1A4FBE;
    font-weight: 500;
    justify-content: space-between;
}


/* 筛选栏按钮展开态 */
.filter-quick-btn.filter-btn-open {
    color: #1A4FBE;
}

.filter-quick-btn.filter-btn-open .filter-arrow {
    transform: rotate(180deg);
    color: #1A4FBE;
}

.filter-options-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    background: #f4f5f9;
    border: none;
    border-radius: var(--border-radius-sm);
    color: #4A5568;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.filter-option-btn:active {
    background: #e8eef9;
    color: #1A4FBE;
}

.filter-option-btn.active {
    background: #EBF0FB;
    color: #1A4FBE;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   响应式
   ───────────────────────────────────────── */
@media (max-width: 360px) {
    .filter-more-btn {
        width: 68px;
    }
    .mobile-page-btn {
        font-size: 13px;
        height: 42px;
    }
}

/* ── 区域/频道意图区（手机端，与 PC 同结构） ─────────────────────────────
   认出地名时出「已按 X 筛选（可取消）」+ 区域卡片 + 频道入口；认不出整块为空不占位。
   手机端触控目标放大到 30px，其余克制原则与 PC 一致：细边框、圆角 2px、无阴影。 */
#pfIntent:empty { display: none; }

.pf-intent-applied {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-size: 12px; color: #5a6270;
  background: #f7f8fa; border-radius: 2px;
}
.pf-intent-applied b { color: #1A4FBE; font-weight: 600; }
.pf-intent-undo { margin-left: auto; color: #8a909c; font-size: 12px; padding: 2px 6px; }

.pf-region-card {
  margin: 8px 0 0; padding: 10px 12px;
  border-radius: 2px; background: #fff;
}
.pf-region-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pf-region-name { font-size: 15px; font-weight: 600; color: #1f2329; }
.pf-region-path { font-size: 12px; color: #8a909c; }
.pf-region-count { font-size: 12px; color: #8a909c; margin-left: auto; }

/* 频道十几个，全铺开会把结果列表挤到屏幕外。收起时只留前几个 + 「更多」，点开才全展开。
   「更多」跟在芯片后、同在 chips 里；展开后随芯片换行。 */
/* 区域+频道组合主入口（「福州房价」）：与 PC 同一套层级，浅主色底 + 主色描边，
   比灰底芯片重一级但不做实心按钮 */
.pf-region-entry {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 10px 12px;
  background: #f2f6fd; border: 1px solid #c9d6ef; border-radius: 2px;
}
.pf-region-entry-title { font-size: 14px; font-weight: 600; color: #1A4FBE; }
.pf-region-entry-go { margin-left: auto; font-size: 12px; color: #1A4FBE; }
.pf-region-entry-go .iconfont { font-size: 11px; }

.pf-region-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 8px; min-width: 0; overflow: hidden; }
.pf-region-chips.expanded { flex-wrap: wrap; overflow: visible; }
.pf-region-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px;
  font-size: 13px; color: #5a6270;
  background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 2px;
}
.pf-region-chip em { font-style: normal; color: #a8adb7; margin-left: 4px; }

/* 「更多 / 收起」：与芯片同尺寸，主色描边区分它是操作不是频道 */
.pf-region-more {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 3px;
  height: 30px; padding: 0 12px;
  font-size: 13px; line-height: 1;
  color: #1A4FBE;
  background: #fff;
  border: 1px solid #c9d6ef; border-radius: 2px;
}
.pf-region-more .iconfont { font-size: 11px; }

.pf-intent-channel {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin: 8px 0 0;
  font-size: 13px; color: #5a6270;
  background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 2px;
}
.pf-intent-go { margin-left: auto; color: #1A4FBE; font-size: 13px; }
