/* 企业动态页面样式 */

/* 页面主体 */
.about {
    width: 100%;
    background: #eef3f9;
    padding-bottom: 8rem;
}

/* 标签栏 */
.tabs {
    width: 100%;
    padding: 12rem 15rem 0rem;
}

.tab {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.88rem;
    color: #000000;
    cursor: pointer;
    margin-right: 8rem;
}

.tab_a {
    font-weight: bold;
    font-size: 1.5rem;
    color: #0075c1;
    line-height: 1.88rem;
    border-bottom: 0.06rem solid #0075c1;
    padding-bottom: 0.3rem;
    cursor: pointer;
}

/* 新闻列表 */
.news-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 3.5rem;
    margin-top: 4rem;
    width: 100%;
    padding: 0 15rem;
}

.news-box-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 39.66rem;
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-box-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-image-container {
    width: 100%;
    height: 25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.news-box-item:hover .news-image {
    transform: scale(1.05);
    cursor: pointer;
}

.news-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 1.3rem;
    color: #000000;
    line-height: 3rem;
    height: 7rem;
    border-bottom: 0.06rem solid #e5e5e5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.news-category {
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-size: 1.1rem;
    color: #0075c1;
    cursor: pointer;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 30rem);
    margin: 5rem auto 0rem;
    height: 6.75rem;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 0 3rem;
}

.pagination ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 0.4rem;
}

.pagination li:first-child,
.pagination li:last-child {
    margin: 0 10rem;
}

.pagination li span,
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 0.8rem;
    background: #f4faff;
    border-radius: 50%;
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 1.38rem;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}


.pagination li:first-child span {
    background: #fff!important;
    min-width: 9.25rem;
}

.pagination li:first-child a {
    background: #fff!important;
    min-width: 9.25rem;
}

/* 最后一个 li 去掉下边框和下圆角 */
.pagination li:last-child span{
    background: #fff!important;
    min-width: 9.25rem;
}

/* 最后一个 li 去掉下边框和下圆角 */
.pagination li:last-child a{
    background: #fff!important;
    min-width: 9.25rem;
}


.pagination li a:hover {
    background: #e6f2ff;
    color: #0075c1;
}

.pagination li.active span {
    background: #0075c1 !important;
    color: #ffffff;
}

.pagination li.disabled span {
    color: #cccccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination .page-nav {
    background: transparent !important;
    min-width: auto;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
}

.pagination .page-nav:hover {
    background: transparent !important;
    color: #0075c1;
}

/* 辅助类 */
.f1 {
    font-family: Microsoft YaHei;
    font-weight: 400;
    font-size: 1.19rem;
    color: #999999;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tabs {
        padding: 0 10rem;
    }
    
    .news-box {
        padding: 0 10rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        width: calc(100% - 20rem);
    }
}

@media (max-width: 992px) {
    .tabs {
        padding: 0 5rem;
        flex-direction: column;
        height: auto;
    }
    
    .tabs .flex-row {
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .tab {
        margin-right: 5rem;
    }
    
    .news-box {
        padding: 0 5rem;
        grid-template-columns: 1fr;
    }
    
    .pagination {
        width: calc(100% - 10rem);
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .tabs {
        padding: 0 2rem;
        margin-top: 5rem;
    }
    
    .tabs div:first-child {
        font-size: 2rem;
    }
    
    .tab {
        font-size: 1.2rem;
        margin-right: 3rem;
    }
    
    .tab_a {
        font-size: 1.2rem;
    }
    
    .news-box {
        padding: 0 2rem;
        grid-gap: 2rem;
    }
    
    .news-box-item {
        height: 35rem;
    }
    
    .news-image-container {
        height: 20rem;
    }
    
    .pagination {
        width: calc(100% - 4rem);
        height: auto;
        padding: 1rem 1.5rem;
    }
    
    .pagination ul {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
}

/* 确保与公共组件样式不冲突 */
.dynamic-page .header {
    position: relative;
    z-index: 99;
    background: transparent;
}

.dynamic-page .home {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dynamic-page .pagination {
    margin-bottom: auto;
}

.dynamic-page .footer {
    position: relative;
    z-index: 10;
}

.dynamic-page .message-board-container {
    position: fixed;
    z-index: 999;
}

.jump-detail {
    text-decoration: none;
    color: inherit;
}