.news {
    position: relative;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: center;
    align-items: center; /* 强制flex容器内元素垂直居中 */
    color: #888;
    margin-bottom: 30px;
    gap: 20px; /* 固定间距 */
    height: 24px; /* 固定容器高度，避免内容撑开高度差异 */
}

.news-detail-time, .news-detail-views {
    display: inline-flex; /* 确保内部元素对齐 */
    align-items: center; /* 元素内部垂直居中 */
    line-height: 1; /* 严格控制行高 */
    height: 100%; /* 与容器高度一致 */
    margin: 0;
    padding: 0;
    font-size: 18px;
}

/* 单独调整图标与文字的对齐 */
.news-detail-views i {
    margin-right: 5px;
    font-size: 18px; /* 图标大小与文字一致 */
    vertical-align: middle; /* 图标基线与文字对齐 */
}

.news-image {
    width: 100%;
    height: auto;
}

.news-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.news-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* 左半部分 */
    height: 100%;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    padding: 20px;
    box-sizing: border-box;
}

.news-title {
    text-align: center;
    color: white; /* 根据图片调整文本颜色 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* 添加文本阴影增强可读性 */
}

.news-title span {
    display: block;
    margin-bottom: 10px; 
}

.news-title span:first-child {
    font-size: clamp(2rem, 4vw, 4rem); /* 响应式字体 */
    font-weight: bold;
}

.news-title span:nth-child(2) {
    font-size: clamp(1rem, 2vw, 1.5rem); /* 响应式字体 */
}


.news-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-detail-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.news-detail-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 6px;
}

.news-detail-content {
    font-size: 22px;
    line-height: 2;
    color: #333;
    text-indent: 2em;
}