/* 办公室页面样式 */
.office-container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 办公室介绍部分 */
.office-intro {
    background-color: #fff;
    padding-bottom: 20px;
    margin-bottom: 20px;
    /* border: 1px solid #f0f0f0; */
    background-image: url('../bgs/bgsbj.png');
    background-size: 102% 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.office-header {
    background-size: cover;
    background-position: center;
    padding-top: 15px;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.office-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.office-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    vertical-align: middle;
}

.office-staff {
    /* padding: 20px; */
    /* border-bottom: 1px solid #f0f0f0; */
    width: 81%;
    margin: 0 auto;
}

.office-staff p {
    color: #2f2e2e;
    margin-top: 15px;
    font-size: 20px;
}

.office-description {
    /* padding: 20px; */
    padding: 8px 0;
    font-size: 16px;
    color: #2f2e2e;
    line-height: 37px;
    text-align: justify;
    border-top: 1px solid #d8d8d8;
    width: 92%;
    margin: 0 auto;
    text-indent: 2em;
}

/* 部门动态部分 */
.office-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid #d8d8d8;
}

.office-news-title {
    height: 33px;
    font-weight: 500;
    font-size: 22px;
    color: #bc1906;
    line-height: 33px;
    letter-spacing: 2px;
    text-align: left;
    font-style: normal;
    position: relative;
    text-indent: 1em;
}

.office-news-title::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #d40000;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}

.office-news-more {
    display: flex;
    align-items: center;
    height: 28px;
    font-weight: 400;
    font-size: 18px;
    color: #d40000;
    line-height: 28px;
    text-align: left;
    cursor: pointer;
}
.office-news-more a{
    display: flex;
    align-items: center;
    height: 28px;
    font-weight: 400;
    font-size: 18px;
    color: #d40000;
    line-height: 28px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.office-news-list {
    padding: 10px 0;
}

.office-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    /* border-bottom: 1px dashed #e5e5e5; */
    cursor: pointer;
    text-decoration: none;
    /* 移除父容器默认color，避免优先级混乱 */
}

/* 修复核心：精准定位子元素，提高样式优先级 */
/* 1. hover 时修改 .office-news-content 文字颜色 */
.office-news-item:hover .office-news-content {
    color: #bc1906;
}

/* 2. hover 时修改 .office-news-date 文字颜色（可选，按需保留） */
.office-news-item:hover .office-news-date {
    color: #bc1906;
}

/* 3. 保留 hover 时伪元素的颜色变化（优化优先级） */
.office-news-item:hover .office-news-content::before {
    color: #bc1906;
}

.office-news-item:last-child {
    border-bottom: none;
}

.office-news-content {
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    color: #2f2e2e; /* 子元素默认颜色 */
    cursor: pointer;
}

.office-news-content::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #918f8f;
}

.office-news-date {
    color: #2f2e2e;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .office-container{
        width: 95%;
        padding: 0;
    }
    .office-staff{
        width: 90%;
    }
    .office-staff p{
        margin: 8px 0;
    }
    .office-description{
        line-height: 30px;
    }
    .office-staff>div{
        margin-bottom: 20px;
    }
    .office-news-content::before{
        display: none;
    }
    .office-news-item{
        padding: 10px 0;
    }
    .office-news-content{
        padding-left: 0;
        white-space: nowrap;      /* 禁止换行 */
        overflow: hidden;         /* 隐藏溢出内容 */
        text-overflow: ellipsis;  /* 显示省略号 */
        display: block;
        width: 70%;
        font-size: 18px;
    }
    .office-news-date{
        font-size: 15px;
    }
}