/* 新闻、展会、媒体和行业名录共用的响应式筛选入口，避免通用按钮样式拉伸尺寸。 */
@media (max-width: 1023px) {
    #filterTrigger.filter-trigger {
        position: fixed;
        left: 50%;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        z-index: 2000;
        box-sizing: border-box;
        width: 176px !important;
        max-width: calc(100vw - 40px) !important;
        height: 48px;
        min-height: 48px;
        margin: 0;
        padding: 0 20px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #e7d8c4;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        color: #1e293b;
        font-family: var(--ws-font-sans, sans-serif);
        font-size: 15px;
        font-weight: 600;
        line-height: 20px;
        letter-spacing: normal;
        white-space: nowrap;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow: hidden;
        appearance: none;
        cursor: pointer;
        touch-action: manipulation;
        transform: translateX(-50%);
        transition: opacity 0.2s, transform 0.2s;
    }

    #filterTrigger.filter-trigger::before {
        content: '';
        position: absolute;
        inset: -2px;
        z-index: -1;
        background: linear-gradient(45deg, #cba174, transparent, #cba174);
        border-radius: inherit;
        opacity: 0.3;
    }

    #filterTrigger.filter-trigger svg {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        transform: none;
    }

    #filterTrigger.filter-trigger:active {
        transform: translateX(-50%) scale(0.97);
    }

    #filterTrigger.filter-trigger.hide-trigger {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(20px);
    }

    #filterSidebar .sidebar-header-mobile {
        position: static;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 24px;
    }

    #filterSidebar .close-filter {
        box-sizing: border-box;
        width: 44px !important;
        max-width: 44px !important;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        flex: 0 0 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f5f9;
        color: #475569;
        font: 24px/1 Arial, sans-serif;
        touch-action: manipulation;
    }

    #filterTrigger:focus-visible,
    #filterSidebar .close-filter:focus-visible {
        outline: 3px solid #cba174;
        outline-offset: 3px;
    }

    @media (prefers-reduced-motion: reduce) {
        #filterTrigger.filter-trigger {
            transition: none;
        }
    }
}

@media (max-width: 767px) {
    #filterSidebar .filter-btn,
    #filterSidebar .toggle-type-btn {
        min-height: 44px;
        margin: 0;
    }

    #filterSidebar .toggle-type-btn {
        width: auto !important;
    }
}
