/* 新闻动态 */
.news {
    padding: 40px 20px;
    background-image: url("../img/index/news.png");
}

.news-container {
    width: 80%;
    margin: 50px auto;
    overflow: hidden;
    display: flex;
    gap: 30px;
    /* 新增：垂直居中对齐 */
    align-items: center;
}

/* 左侧标题区域 */
.news-title {
    width: 20%;
    flex-shrink: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.news-title h2 {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 15px;
}

.news-title p {
    font-size: 20px;
    color: #333;
}

/* 右侧内容区域 */
.news-content {
    width: 80%;
}

.news-item {
    overflow: hidden;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.news-item img {
    width: 30%;
    float: left;
    margin-right: 2%;
    height: 180px;
}

.news-text {
    width: 68%;
    float: left;
}

.news-text h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.news-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-text .date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.news-text a {
    text-decoration: none;
    color: #007bff;
    float: right;
}

.more-btn {
    text-align: left;
    margin-top: 30px;
}

.more-btn a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* 水平排列的新闻项样式 */
.news-row {
    display: flex;
    margin-bottom: 30px;
    gap: 20px;
}

.news-row .news-item {
    flex: 1;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-row .news-text {
    width: 100%;
    float: none;
    flex-grow: 1;
}

.news-row .news-text a {
    margin-top: auto;
}
