/* Hero 区域 */
.hero-section {
    background-image: url('../img/img.png'), linear-gradient(135deg, #165DFF 0%, #003399 100%);
    background-size: cover;
    background-position: center;
    padding: 8rem 0 7rem;
    margin-top: -70px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.search-box {
    display: flex;
    max-width: 600px;
}

.search-box input {
    border-radius: 4px 0 0 4px;
    border: none;
    padding: 0.75rem 1rem;
}

.search-btn {
    border-radius: 0 4px 4px 0;
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: #fff;
    padding: 0 1.5rem;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #e67e00;
    border-color: #e67e00;
    color: #fff;
}


/* 统计数据 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
    color: #fff;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 资讯卡片通用 */
.info-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.info-card .card-header {
    background: #fff;
    padding: 1rem 1.25rem;
}

.info-card .card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .dot-gray {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cccccc;
    margin-right: 8px;
    flex-shrink: 0;
}

.info-list a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 0.5rem;
    transition: color 0.2s;
}

.info-list li:hover a {
    color: #f99c34;
}

.info-list .date {
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
}

/* 服务网格 */
.service-grid .service-item {
    padding: 1rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: #f0f7ff;
}

.service-grid .service-item:hover {
    color: #165DFF;
}

/* 招投标模块专属样式 */
.tender-more-link {
    color: #666;
    text-decoration: none;
}
.tender-more-link:hover {
    color: #f98b0c;
}

/* 一级标签整体容器样式 */
.tab-nav-wrap {
    box-shadow: inset 0px -1px 0px 0px #f2f2f2;
    background: #fbfbfb;
}
/* 一级标签基础样式 */
.tab-nav-item {
    font-weight: 700;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
}
/* 带边框的标签 */
.tab-nav-item.has-border {
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}
/* 处理中间相邻标签的边框重叠，避免出现2px边框 */
.tab-nav-item.has-border + .tab-nav-item.has-border {
    margin-left: -1px;
}
/* 选中态样式 */
.tab-nav-item.tab-active {
    color: #f99c34 !important;
    background: #fff !important;
    border-top: 2px solid #f99c34 !important;
}
/* 中国旅游鼠标悬停效果（招标采购不生效） */
.tab-nav-item.tab-hover:hover {
    color: #f99c34;
    background: #fff;
    border-top: 2px solid #f99c34 !important;
}

/* 二级标签样式 */
.sub-tab-item {
    font-weight: 700;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}
.sub-tab-item-active{
    color: #f99c34;
}
.sub-tab-item:hover {
    color: #f99c34 !important;
}

/* 公告标题单行省略 */
.title-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.title-ellipsis:hover {
    color: #f99c34 !important;
    cursor: pointer;
}

/* 标签背景色 */
.bg-orange-light {
    background-color: #fff7ed;
    color: #f99c34;
}
.bg-blue-light {
    background-color: #eff6ff;
    color: #3b82f6;
}
.bg-gray-light {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 外层区块通用样式*/
.finance-wrap{
    padding: 4rem 0;
    background-color: #e3f0ff;
}
/* 卡片容器 */
.service-card{
    position: relative;
    border-radius: 0.6rem;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
}
.service-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 默认左下角文字标签，hover同步上移 */
.card-base-label{
    position: absolute;
    bottom: 24px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    z-index: 4;
    transition: transform 0.6s ease;
    padding-left: 2rem;
}
/* 鼠标悬浮时，左下角标题同步向上移动 */
.service-card:hover .card-base-label{
    transform: translateY(-270px);
}
/* 悬浮浮出面板 - 已完全移除遮罩背景 */
.card-hover-panel{
    position: absolute;
    inset: 0;
    z-index: 3;
    transform: translateY(100%);
    transition: transform 0.6s ease;
    padding: 2rem;
    /* 内部内容垂直水平居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff; /* 无遮罩改用深色文字 */
}
.service-card:hover .card-hover-panel{
    transform: translateY(0);
}
.panel-desc{
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 1rem 0 1.5rem;
}
.detail-btn{
    border: 1px solid #fff;
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 2.2rem;
    background: transparent;
    width: fit-content;
    transition: background .2s;
}
.detail-btn:hover{
    background: #f99c34 ;
}

.finance-wrap-sj {
    padding: 4rem 0;
    background-color: #fff;
}

.service-card-sj{
    position: relative;
    border-radius: 0.6rem;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
}

.service-card-sj img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-base-label-sj{
    position: absolute;
    bottom: 24px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    z-index: 4;
    transition: transform 0.6s ease;
    padding-left: 2rem;
}

/* 鼠标悬浮时，左下角标题同步向上移动 */
.service-card-sj:hover .card-base-label-sj{
    transform: translateY(-220px);
}
.service-card-sj:hover .card-hover-panel{
    transform: translateY(0);
}

.service-card-sj .panel-desc {
    line-height: 1 !important;
    margin-bottom: 0 !important;
}

.service-card-sj .detail-btn {
    padding: 0.4rem 1rem !important;
    margin-top: 2rem;
}
.dot-gray-sj {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 8px;
    flex-shrink: 0;
    margin-bottom: 2px;
}

/* 响应式适配 */
@media (min-width: 768px) {
    .margin-top-35 {
        margin-top: 35px;
    }
    .margin-top-80 {
        margin-top: -80px;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {


    .hero-section {
        padding: 5rem 0 4rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-card .nav-tabs .nav-item:nth-child(n+5) {
        display: none;
    }

    .group-tabs .nav-item:nth-child(n+3) {
        display: none;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    /* 移动端隐藏副标题 */
    .my-5 {
        margin-top: 0 !important;
    }

    .tender-sub-title {
        display: none !important;
    }
    /* 一级、二级标签自动换行 */
    .tab-nav-wrap,
    .sub-tab-wrap {
        overflow-x: visible;
        white-space: normal;
        flex-wrap: wrap;
    }
    /* 移动端标签缩小字号和内边距 */
    .tab-nav-item {
        font-size: 14px;
        padding: 8px 14px;
    }
    .sub-tab-item {
        font-size: 14px;
        padding: 6px 0;
    }
    .sub-tab-wrap {
        gap: 24px !important;
        padding: 1rem !important;
    }
    .px-5 {
        padding: 1rem !important;
    }

    .row div:nth-child(5) .pb-3 {
        border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    }

    /* 外层区块通用样式*/
    .finance-wrap, .finance-wrap-sj {
        padding: 2rem 0;
    }
    .finance-wrap .container .mb-5, .finance-wrap-sj .container .mb-5{
        margin-bottom: 2rem !important;
    }
    .service-card{
        margin-bottom: 1.25rem;
        height: 320px;
    }
    .service-card:hover .card-base-label{
        transform: translateY(-220px);
    }
    .panel-desc {
        line-height: 1.2;
        font-size: 1rem;
        margin: 1rem 0 1.5rem;
    }
}