body > nav.navbar,
    body > footer.bg-primary {
        display: none !important;
    }

    body {
        background-color: #f5f5f5;
        padding-bottom: 85px;
        font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card, .list-group-item, .border-rounded {
        border-radius: 12px !important;
    }

    /* ===== 轮播推广区域 ===== */
    .slide-promo-section {
        background: #ffffff;
        padding: 8px 0 12px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 0;
    }

    .slide-promo-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px 8px 12px;
    }

    .slide-promo-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .slide-promo-title .icon {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 13px;
    }

    .slide-promo-title .text {
        font-size: 15px;
        font-weight: 700;
        color: #222;
    }

    .slide-promo-title .badge-count {
        background: #ff6b6b;
        color: #fff;
        font-size: 10px;
        padding: 2px 10px;
        border-radius: 20px;
    }

    .slide-promo-more {
        font-size: 12px;
        color: #999;
        text-decoration: none;
    }
    .slide-promo-more:hover {
        color: #dc3545;
    }

    /* ===== 轮播容器 - 默认手机端 ===== */
    .slide-carousel-container {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        margin: 0 12px;
        background: #f0f0f0;
        height: calc(100vw * 0.25);
        min-height: 100px;
        max-height: 160px;
        width: calc(100% - 24px);
    }

    .slide-carousel-container .carousel {
        height: 100%;
    }

    .slide-carousel-container .carousel-inner {
        height: 100%;
    }

    .slide-carousel-container .carousel-item {
        height: 100%;
    }

    .slide-carousel-container .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ===== 覆盖层 - 修复结构 ===== */
    .slide-carousel-container .carousel-item .slide-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px 10px;
        background: linear-gradient(transparent, rgba(0,0,0,0.6));
        color: #fff;
    }

    .slide-carousel-container .carousel-item .slide-overlay .slide-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 1px;
    }

    .slide-carousel-container .carousel-item .slide-overlay .slide-sub {
        font-size: 11px;
        opacity: 0.85;
    }

    .slide-carousel-container .carousel-item .slide-overlay .slide-badge {
        display: inline-block;
        background: rgba(220, 53, 69, 0.9);
        font-size: 9px;
        padding: 1px 10px;
        border-radius: 20px;
        margin-bottom: 2px;
        font-weight: 600;
    }

    .slide-carousel-container .carousel-item .slide-overlay .slide-badge.priority {
        background: rgba(255, 193, 7, 0.9);
        color: #333;
    }

    /* ===== 控制按钮 ===== */
    .slide-carousel-container .carousel-control-prev,
    .slide-carousel-container .carousel-control-next {
        position: absolute;
        width: 36px;
        height: 36px;
        top: 50% !important;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        opacity: 0.6;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        transition: all 0.3s;
        z-index: 10;
    }

    .slide-carousel-container:hover .carousel-control-prev,
    .slide-carousel-container:hover .carousel-control-next {
        opacity: 1;
    }

    .slide-carousel-container .carousel-control-prev {
        left: 8px;
    }
    .slide-carousel-container .carousel-control-next {
        right: 8px;
    }

    .slide-carousel-container .carousel-control-prev-icon,
    .slide-carousel-container .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    /* ===== 指示器 ===== */
    .slide-carousel-container .carousel-indicators {
        bottom: 4px;
        gap: 4px;
        margin-bottom: 0;
    }
    .slide-carousel-container .carousel-indicators button {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.4);
    }
    .slide-carousel-container .carousel-indicators button.active {
        background: #fff;
        width: 16px;
        border-radius: 4px;
    }

    /* ===== 空状态 ===== */
    .slide-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 100px;
        background: #f8f9fa;
        color: #bbb;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
    }
    .slide-empty .icon {
        font-size: 28px;
        opacity: 0.3;
    }

    /* ===== 行业资讯和活动板块 ===== */
    .info-section {
        padding: 8px 12px 12px;
        background: #f5f5f5;
    }
    .info-section-title {
        font-size: 15px;
        font-weight: 700;
        color: #222;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .info-section-title .title-icon {
        font-size: 18px;
    }
    .info-section-title .title-more {
        font-size: 12px;
        font-weight: 400;
        color: #999;
        margin-left: auto;
    }
    .info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .info-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        transition: transform 0.2s ease;
    }
    .info-card:active {
        transform: scale(0.98);
    }
    .info-card-img {
        background: linear-gradient(135deg, #e8e8e8, #d5d5d5);
        height: 100px;
        position: relative;
        overflow: hidden;
    }
    .info-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .info-card-img .tag {
        position: absolute;
        top: 8px;
        left: 8px;
        background: rgba(229, 57, 53, 0.9);
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 20px;
    }
    .info-card-img .tag.event {
        background: rgba(255, 152, 0, 0.9);
    }
    .info-card-body {
        padding: 8px 10px 10px;
    }
    .info-card-title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #222;
        margin-bottom: 4px;
    }
    .info-card-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #999;
    }
    .info-card-meta .avatar {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        color: #888;
    }

    /* ===== 搜索时折叠行业资讯 ===== */
    .info-section.is-collapsed {
        padding: 6px 12px;
        background: #fafafa;
        border-bottom: 1px solid #eee;
    }
    .info-section.is-collapsed .info-grid,
    .info-section.is-collapsed .info-section-footer {
        display: none;
    }
    .info-section.is-collapsed .info-section-title {
        cursor: pointer;
        margin-bottom: 0;
        padding: 2px 0;
        transition: color .2s;
    }
    .info-section.is-collapsed .info-section-title:hover {
        color: #d6334c;
    }
    .info-section .info-collapse-hint {
        font-size: 11px;
        color: #bbb;
        font-weight: 400;
        margin-left: 6px;
    }
    .info-section .info-collapse-arrow {
        margin-left: auto;
        font-size: 12px;
        color: #bbb;
        transition: transform .25s ease;
    }
    .info-section.is-collapsed .info-collapse-arrow {
        transform: rotate(-90deg);
    }
    /* 搜索结果区域留出 sticky header 的空间 */
    #pinnedAdsSection {
        scroll-margin-top: 12px;
    }
    /* 搜索结果标识条 */
    .search-result-bar {
        background: linear-gradient(90deg, #fff0f0, #fff8f8);
        border-left: 3px solid #e53935;
        border-radius: 0 8px 8px 0;
        padding: 8px 14px;
        margin: 0 0 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }
    .search-result-bar .sr-keyword {
        font-weight: 700;
        color: #e53935;
    }
    .search-result-bar .sr-count {
        font-size: 12px;
        color: #999;
        margin-left: auto;
    }
    .search-result-bar .sr-clear {
        font-size: 12px;
        color: #999;
        text-decoration: none;
        padding: 2px 8px;
        border-radius: 12px;
        background: #f0f0f0;
    }
    .search-result-bar .sr-clear:hover {
        background: #e53935;
        color: #fff;
    }

    /* ===== 分类区域 ===== */
    .category-section {
        background: white;
        padding: 8px 0 12px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 8px;
    }
    .category-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px 20px;
        padding: 0 16px 8px 16px;
        justify-content: flex-start;
    }
    .category-grid a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        width: auto;
        min-width: 70px;
        transition: transform 0.1s ease;
        flex-shrink: 0;
    }
    .category-grid a div {
        width: 54px;
        height: 54px;
        background: #ffe5e5;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 6px;
        font-size: 28px;
        color: #e53935;
    }
    .category-grid a span {
        font-size: 12px;
        color: #444;
        text-align: center;
        line-height: 1.3;
    }
    .extra-category {
        display: none !important;
    }

    .btn-more-categories {
        background: #f2f2f2;
        border: none;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 500;
        padding: 6px 16px;
    }

    /* ===== 搜索区域 ===== */
    #searchForm .row {
        background: white;
        padding: 8px 12px;
        border-radius: 20px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        flex-wrap: wrap;
    }

    /* ===== 最新广告区域（蓝色系） ===== */
.latest-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.latest-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f4fa 100%);
    padding: 6px 20px 6px 16px;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid rgba(79, 156, 209, 0.15);
}
.latest-icon-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 128, 0.25));
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.latest-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.latest-title-wrapper:hover .latest-icon-svg {
    transform: scale(1.05) rotate(-2deg);
}
.latest-headline {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(120deg, #1e6f9f, #3b9fcf);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.latest-sub {
    font-size: 0.7rem;
    color: #1e6f9f;
    font-weight: 500;
    background: rgba(30, 111, 159, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.latest-section-decoration {
    border-left: 3px solid #3b9fcf;
    margin-left: 4px;
    padding-left: 6px;
}

/* ===== 置顶广告标题（橙色系） ===== */
.pinned-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.pinned-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff6e8 0%, #fff0e0 100%);
    padding: 6px 20px 6px 16px;
    border-radius: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.pinned-icon-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(229,57,53,0.2));
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.pinned-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.pinned-title-wrapper:hover .pinned-icon-svg {
    transform: rotate(5deg) scale(1.02);
}
.pinned-headline {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(120deg, #e53935, #ff8a5c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.pinned-sub {
    font-size: 0.7rem;
    color: #ff8a5c;
    font-weight: 500;
    background: rgba(229,57,53,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.pinned-section-decoration {
    border-left: 3px solid #ff8a5c;
    margin-left: 4px;
    padding-left: 6px;
}

    /* ============================================================ */
    /* ===== 媒体查询 - 统一放在底部 ===== */
    /* ============================================================ */

    /* 手机端 (<= 480px) */
    @media (max-width: 480px) {
        .latest-title-wrapper {
            padding: 4px 14px 4px 12px;
        }
        .latest-headline {
            font-size: 1.2rem;
        }
        .latest-icon-svg {
            width: 24px;
            height: 24px;
        }
        .latest-sub {
            font-size: 0.65rem;
        }

        .pinned-title-wrapper {
            padding: 4px 14px 4px 12px;
        }
        .pinned-headline {
            font-size: 1.2rem;
        }
        .pinned-icon-svg {
            width: 24px;
            height: 24px;
        }
        .pinned-sub {
            font-size: 0.65rem;
        }
    }

    /* 桌面搜索 / 分类网格 (>= 992px) */
    @media (min-width: 992px) {
        .category-grid a {
            width: auto;
            min-width: 80px;
            flex: 0 0 auto;
        }
        .category-grid {
            justify-content: flex-start;
            gap: 24px 28px;
        }
    }

    /* 桌面搜索 (>= 769px) */
    @media (min-width: 769px) {
        #searchForm .row {
            flex-wrap: nowrap;
            background: transparent;
            padding: 0;
            box-shadow: none;
        }
        #searchForm .col-auto {
            width: auto;
            margin-bottom: 0;
        }
        .desktop-search-form {
            width: auto;
        }
    }

    /* ============================================================ */
    /* ===== 轮播区域响应式 ===== */
    /* ============================================================ */

    /* ===== 响应式：手机端 (<= 576px) ===== */
    @media (max-width: 576px) {
        #searchForm .col-auto {
            width: 100%;
            margin-bottom: 6px;
        }
        #searchForm .form-control,
        #searchForm .form-select,
        #searchForm button {
            width: 100%;
        }
        .desktop-search-form {
            margin-top: 8px;
            width: 100%;
        }

        .col-6 {
            width: 50%;
        }

        .slide-carousel-container {
            height: calc(100vw * 0.28);
            min-height: 80px;
            max-height: 140px;
            margin: 0 8px;
            border-radius: 10px;
            width: calc(100% - 16px);
        }

        .slide-carousel-container .carousel-item .slide-overlay .slide-title {
            font-size: 12px;
        }
        .slide-carousel-container .carousel-item .slide-overlay .slide-sub {
            font-size: 10px;
        }
        .slide-carousel-container .carousel-item .slide-overlay {
            padding: 8px 12px 6px;
        }

        .slide-carousel-container .carousel-control-prev,
        .slide-carousel-container .carousel-control-next {
            width: 28px;
            height: 28px;
        }
        .slide-carousel-container .carousel-control-prev {
            left: 4px;
        }
        .slide-carousel-container .carousel-control-next {
            right: 4px;
        }
        .slide-carousel-container .carousel-control-prev-icon,
        .slide-carousel-container .carousel-control-next-icon {
            width: 16px;
            height: 16px;
        }
    }

    /* ===== 响应式：平板 (768px - 991px) ===== */
    @media (min-width: 768px) and (max-width: 991px) {
        .slide-carousel-container {
            height: 180px;
            max-height: 200px;
            min-height: 140px;
            border-radius: 14px;
            margin: 0 16px;
            width: calc(100% - 32px);
        }

        .slide-carousel-container .carousel-item .slide-overlay .slide-title {
            font-size: 17px;
        }
        .slide-carousel-container .carousel-item .slide-overlay .slide-sub {
            font-size: 12px;
        }
    }

    /* ===== 响应式：桌面端 (>= 992px) ===== */
    @media (min-width: 992px) {
        .slide-promo-section {
            padding: 16px 0 20px;
            background: #ffffff;
            border-bottom: 1px solid #f0f0f0;
        }

        /* 标题区域 - 与轮播对齐 */
        .slide-promo-header {
            max-width: 900px;
            margin: 0 auto 12px;
            padding: 0 4px;
        }
        .slide-promo-title .text {
            font-size: 18px;
        }
        .slide-promo-title .icon {
            width: 34px;
            height: 34px;
            font-size: 15px;
        }
        .slide-promo-title .badge-count {
            font-size: 11px;
            padding: 3px 14px;
        }
        .slide-promo-more {
            font-size: 13px;
        }

        /* 轮播容器 - 居中 + 限制宽度 + 固定高度 */
        .slide-carousel-container {
            max-width: 900px;
            height: 150px !important;
            max-height: 150px !important;
            min-height: 150px !important;
            margin: 0 auto;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            width: 100%;
        }

        /* 图片保持比例 */
        .slide-carousel-container .carousel-item img {
            object-fit: cover;
            object-position: center;
        }

        /* 覆盖层 - 桌面更精致 */
        .slide-carousel-container .carousel-item .slide-overlay {
            padding: 18px 28px 16px;
            background: linear-gradient(transparent, rgba(0,0,0,0.65));
        }
        .slide-carousel-container .carousel-item .slide-overlay .slide-title {
            font-size: 20px;
            font-weight: 700;
        }
        .slide-carousel-container .carousel-item .slide-overlay .slide-sub {
            font-size: 14px;
            opacity: 0.9;
        }
        .slide-carousel-container .carousel-item .slide-overlay .slide-badge {
            font-size: 11px;
            padding: 2px 14px;
            margin-bottom: 4px;
        }

        /* 控制按钮 */
        .slide-carousel-container .carousel-control-prev,
        .slide-carousel-container .carousel-control-next {
            width: 46px;
            height: 46px;
            opacity: 0.7;
        }
        .slide-carousel-container .carousel-control-prev {
            left: 16px;
        }
        .slide-carousel-container .carousel-control-next {
            right: 16px;
        }
        .slide-carousel-container .carousel-control-prev:hover,
        .slide-carousel-container .carousel-control-next:hover {
            opacity: 1;
            background: rgba(0,0,0,0.75);
            transform: translateY(-50%) scale(1.06);
        }
        .slide-carousel-container .carousel-control-prev-icon,
        .slide-carousel-container .carousel-control-next-icon {
            width: 24px;
            height: 24px;
        }

        /* 指示器 */
        .slide-carousel-container .carousel-indicators {
            bottom: 10px;
            gap: 6px;
        }
        .slide-carousel-container .carousel-indicators button {
            width: 8px;
            height: 8px;
        }
        .slide-carousel-container .carousel-indicators button.active {
            width: 28px;
            border-radius: 4px;
        }
    }

    /* ===== 响应式：超大屏幕 (>= 1400px) ===== */
    @media (min-width: 1400px) {
        .slide-promo-header {
            max-width: 1100px;
        }
        .slide-promo-title .text {
            font-size: 20px;
        }

        .slide-carousel-container {
            max-width: 1100px;
            height: 340px;
            max-height: 340px;
            min-height: 240px;
            border-radius: 18px;
        }

        .slide-carousel-container .carousel-item .slide-overlay .slide-title {
            font-size: 24px;
        }
        .slide-carousel-container .carousel-item .slide-overlay .slide-sub {
            font-size: 16px;
        }

        .slide-carousel-container .carousel-control-prev,
        .slide-carousel-container .carousel-control-next {
            width: 52px;
            height: 52px;
        }
        .slide-carousel-container .carousel-control-prev {
            left: 20px;
        }
        .slide-carousel-container .carousel-control-next {
            right: 20px;
        }
        .slide-carousel-container .carousel-control-prev-icon,
        .slide-carousel-container .carousel-control-next-icon {
            width: 28px;
            height: 28px;
        }
    }
    /* ===== 首页入口（发布广告 + 优惠大厅 + 拍卖大厅）三栏并排 ===== */
    .home-entry-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 8px 12px;
    }
    /* 仅剩一张卡片（极窄屏退化）则占满整行，避免右侧留白 */
    .home-entry-card:only-child {
        grid-column: 1 / -1;
    }
    @media (max-width: 380px) {
        .home-entry-row { grid-template-columns: 1fr 1fr; }
    }
    .home-entry-card {
        border-radius: 20px;
        overflow: hidden;
        padding: 14px 14px 16px;
        color: #fff;
        min-height: 118px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .home-entry-card.ad {
        background: linear-gradient(135deg, #ff5252, #ff8a65);
    }
    .home-entry-card.coupon {
        background: linear-gradient(135deg, #16a34a, #22c55e);
    }
    .home-entry-card.auction {
        background: linear-gradient(135deg, #d97706, #f59e0b);
    }
    .home-entry-card .he-title {
        font-weight: 700;
        font-size: 15px;
    }
    .home-entry-card .he-sub {
        font-size: 11px;
        opacity: 0.92;
        margin-top: 4px;
        line-height: 1.45;
    }
    .home-entry-card .he-actions {
        margin-top: 10px;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }
    /* 极窄屏（<360px）才上下堆叠，常规手机保持左右并排 */
    @media (max-width: 359px) {
        .home-entry-row { grid-template-columns: 1fr; }
    }
