/* 三大模块 */
.main-modules {
    display: flex;
    width: 100%;
    padding: 0 15px;
    gap: 15px;
    margin-top: 0;
    align-items: stretch;
}
.module-left {
    width: 20%;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}
.category-list {
    flex: 1;
}
.category-list .list-group-item {
    border: 0;
    padding: 14px 20px;
    color: #000;
    font-weight: 500;
    background-color: #fff !important;
    position: relative;
}
.category-list .list-group-item::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 1px;
    background-color: #f5f5f5;
}
.category-list .list-group-item:last-child::after {
    display: none;
}
.category-list .list-group-item a {
    color: #222;
}
.category-list .list-group-item:hover {
    background-color: #0066cc !important;
    cursor: pointer;
}
.category-list .list-group-item:hover a {
    color: #fff;
}

.module-middle {
    width: 58%;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#carouselExampleAutoplaying {
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    flex: 1;
}
.carousel-item img {
    /*width: 100%;*/
    /*height: 100%;*/
    /*min-height: 280px;*/
    object-fit: cover;
}
.service-hotline {
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    color: #000;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.service-hotline .zx-title {
    font-size: 24px;
    color: #fff;
    background-color: #0066cc;
    padding: 10px 20px;
    font-weight: bold;
}
.service-hotline .zx-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-left: 20px;
    line-height: 25px;
    color: #4c4545;
}
.zx-content-more {
    color: #9e9595;
}
.zx-content-title div:hover, .zx-content-more:hover {
    color: #0066cc;
    cursor: pointer;
}
.module-right {
    width: 22%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    flex: 1;
}
.right-top {
    background-color: #fff;
    border-radius: 6px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.welcome-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}
.user-avatar {
    font-size: 52px;
    color: #ccc;
    margin-bottom: 20px;
}
.btn-group {
    display: flex;
    gap: 10px;
}
.login-btn, .register-btn {
    padding: 8px 22px;
    border: 1px solid #0066cc;
    border-radius: 20px;
    color: #0066cc;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.login-btn:hover, .register-btn:hover {
    background-color: #0066cc;
    color: #fff;
}
.right-bottom {
    background-color: #fff;
    border-radius: 6px;
    padding: 25px 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    flex: 1;
}
.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.shortcut-icon {
    font-size: 36px;
    color: #0066cc;
}
.shortcut-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ===================== 招标政采公告板块 ===================== */
.bidding-notice {
    width: 100%;
    padding: 20px 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.notice-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.notice-top-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
}
.notice-top-icon {
    font-size: 20px;
}
.notice-top-more {
    color: #0066cc;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.notice-top-more:hover {
    color: #004999;
    text-decoration: underline;
}

.notice-content-wrap {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    align-items: stretch;
}

/* 左侧分类：严格 2个 = 右侧1个高度 */
.notice-left {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    border-radius: 4px;
    background: linear-gradient(to right, #0066cc, #0099ff) border-box;
    border: 1px solid transparent;
    height: 100%;
}
.notice-left-item {
    background-color: #fff;
    padding: 28px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-height: 110px;
}
.notice-left-item:hover {
    background-color: #f8f9ff;
    border-color: #0066cc;
    transform: translateY(-2px);
}
.notice-left-icon {
    font-size: 18px;
    color: #0066cc;
    width: 24px;
    text-align: center;
}
.notice-left-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.notice-right {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    border-radius: 4px;
    background: linear-gradient(to right, #0066cc, #0099ff) border-box;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 102, 200, 0.1);
    height: 100%;
}
.notice-category {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
    min-height: 235px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.notice-category:hover {
    box-shadow: 0 2px 8px rgba(0, 102, 200, 0.08);
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 8px;
}
.category-title {
    font-size: 16px;
    font-weight: bold;
    color: #0066cc;
    position: relative;
    padding-left: 12px;
}
.category-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0066cc;
}
.category-tabs {
    display: flex;
    gap: 8px;
}
.category-tab {
    padding: 3px 10px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.category-tab:hover {
    background-color: #004999;
}
.category-tab.secondary {
    background-color: #f0f0f0;
    color: #666;
}
.category-tab.secondary:hover {
    background-color: #e0e0e0;
    color: #333;
}
.notice-list {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.notice-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
    transition: color 0.2s ease;
}
.notice-list-item:hover {
    color: #0066cc;
}
.notice-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-item-tag {
    font-size: 12px;
    color: #0066cc;
    margin: 0 5px;
}
.notice-item-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ===================== 热门服务板块 ===================== */
.hot-service {
    width: 100%;
    padding: 20px 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.hot-service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.hot-service-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
}
.hot-service-title-icon {
    font-size: 20px;
}
.hot-service-more {
    color: #0066cc;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.hot-service-more:hover {
    color: #004999;
    text-decoration: underline;
}

.hot-service-content {
    display: flex;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    align-items: stretch;
    padding: 15px;
}

/* 左侧蓝色区块 */
.hot-service-left {
    width: 20%;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 10px;
    flex-shrink: 0;
    border-radius: 4px;
}
.hot-service-left-item {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
}

/* 右侧轮播区域：间距完全对称 */
.hot-service-right {
    width: 80%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
}
.hot-service-arrow {
    width: 30px;
    flex-shrink: 0;
    font-size: 26px;
    color: #0066cc;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-service-arrow:hover {
    color: #004999;
}
.hot-service-track-wrap {
    flex: 1;
    overflow: hidden;
}
.hot-service-track {
    display: flex;
    flex-direction: column;
    width: 250%;
    transition: transform 0.35s ease;
}

.service-row {
    display: flex;
    width: 100%;
    position: relative;
}
.service-row + .service-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2%;
    right: 2%;
    height: 1px;
    background-color: #979797;
}

.service-item {
    width: 10%;
    padding: 28px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #979797;
}
.service-row .service-item:last-child::after {
    display: none;
}
.service-item:hover {
    color: #0066cc;
}

/* HOT标签 */
.service-hot {
    position: absolute;
    top: 8px;
    right: 10px;
    background-color: #0066cc;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    line-height: 1.2;
    font-weight: normal;
}

/* ===================== 全国政采交易平台 模块 ===================== */
.gov-platform {
    width: 100%;
    padding: 20px 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.platform-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.platform-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
}
.platform-title-icon {
    font-size: 20px;
}
.platform-more {
    color: #0066cc;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.platform-more:hover {
    color: #004999;
    text-decoration: underline;
}

.platform-content {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    padding: 15px;
}
.platform-track-wrap {
    width: 100%;
    overflow: hidden;
}
.platform-track {
    display: flex;
    flex-direction: column;
    width: 200%;
    transition: transform 0.35s ease;
}
.platform-row {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-bottom: 15px;
}
.platform-row:last-child {
    margin-bottom: 0;
}
.platform-card {
    width: 12.5%;
    border: 1px solid #0066cc;
    border-radius: 4px;
    padding: 15px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}
.platform-card:hover {
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}
.platform-card-icon {
    font-size: 32px;
    width: 36px;
    text-align: center;
}
.platform-card .icon {
    width: 100%;
}
.platform-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}
.platform-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.platform-card-sub {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.platform-card-sub-icon {
    font-size: 14px;
    width: 28px;
}

/* ===================== 最近入驻供应商 新增模块 ===================== */
.supplier-section {
    width: 100%;
    padding: 20px 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.supplier-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.supplier-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.supplier-title-icon {
    font-size: 20px;
    color: #0066cc;
}
.supplier-title {
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
}
.supplier-subtitle {
    font-size: 14px;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
}
.supplier-more {
    color: #0066cc;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.supplier-more:hover {
    color: #004999;
    text-decoration: underline;
}

.supplier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.supplier-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 18px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}
.supplier-card:hover {
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.1);
}
.supplier-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.supplier-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.supplier-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.supplier-meta span {
    white-space: nowrap;
}
.supplier-imgs {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.supplier-img-item {
    flex: 1;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fafafa;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px; /* 调大字号，更饱满铺满 */
    line-height: 1;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .supplier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .supplier-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 招标政采信息公告：隐藏左侧分类 + 最近入驻供应商：隐藏介绍 + 隐藏热门服务 + 全国政采交易平台 */
    .hotline-area,
    .all-category-item,
    .module-left,
    .module-right,
    .notice-left,
    .category-tabs,
    .supplier-subtitle,
    .hot-service,
    .gov-platform,.header-inner .w-50 {
        display: none !important;
    }

    .module-middle {
        width: 100%;
    }
    .service-hotline {
        padding: 10px;
    }
    .service-hotline .zx-title {
        font-size: 18px;
    }
    .service-hotline .zx-content {
        width: 70%;
    }

    .service-hotline .zx-content .zx-content-title{
        width: 75%;
    }

    .service-hotline .zx-content .zx-content-title div {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* 招标政采信息公告：仅展示内容区 */
    .notice-right {
        width: 100%;
    }
}