/* 富文本内容中的图片响应式处理 */
.news-content img,
#editor-text-area img,
#content img {
    max-width: 100% !important; /* 图片最大宽度不超过容器 */
    height: auto !important; /* 保持图片比例 */
    display: block; /* 块级元素 */
    margin: 10px auto; /* 居中显示，上下间距 */
    border-radius: 0; /* 去除圆角，去卡片化 */
    box-shadow: none; /* 移除阴影效果 */
}

/* 富文本编辑器容器样式优化 */
.news-content,
#editor-text-area {
    font-size: 16px; /* 内容字体大小 */
    color: #555; /* 内容颜色 */
    line-height: 1.6; /* 行高 */
    margin-bottom: 20px; /* 下边距 */
    max-width: 100%; /* 最大宽度为100% */
    overflow-wrap: break-word; /* 处理长单词的换行 */
    word-wrap: break-word; /* 处理长单词的换行 */
    word-break: break-all; /* 强制换行 */
    overflow-x: auto; /* 水平溢出时显示滚动条 */
}

/* 富文本内容中的其他元素响应式处理 */
.news-content table,
#editor-text-area table {
    max-width: 100% !important;
    table-layout: fixed;
    word-wrap: break-word;
}

.news-content video,
#editor-text-area video {
    max-width: 100% !important;
    height: auto !important;
}

.news-detail-container {
    max-width: 1400px; /* 增加最大宽度 */
    margin: 60px auto 20px; /* 居中 */
    background-color: #fff; /* 背景颜色 */
    /* 去除卡片化设计 */
    overflow-x: hidden; /* 防止内容水平溢出 */
}

.news-header {
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
    justify-content: center; /* 水平居中 */
}

.return-icon {
    font-size: 24px; /* 图标大小 */
    color: #007bff; /* 图标颜色 */
    margin-right: 10px; /* 图标与标题之间的间距 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
    transition: color 0.3s; /* 添加颜色变化效果 */
}

.return-icon:hover {
    color: #0056b3; /* 悬停时的颜色 */
}

.news-title {
    font-size: 32px; /* 增加标题字体大小 */
    font-weight: bold; /* 加粗 */
    color: #333; /* 标题颜色 */
    text-align: center; /* 标题居中对齐 */
    flex: 1; /* 使标题占据剩余空间 */
}

.news-meta {
    font-size: 16px; /* 增加元数据字体大小 */
    color: #6c757d; /* 使用更柔和的颜色 */
    text-align: center; /* 居中对齐 */
}

.news-date {
    font-style: italic; /* 斜体 */
    margin-top: 5px; /* 上边距 */
}

@media (max-width: 768px) {
    .news-detail-container {
        margin: 10px !important;
        /* 移动端去除边框 */
        border: none;
    }
    
    .news-title {
        font-size: 24px; /* 移动端减小标题字体 */
    }
    
    .news-content,
    #editor-text-area {
        font-size: 14px; /* 移动端减小字体 */
    }
    
    /* 移动端图片额外优化 */
    .news-content img,
    #editor-text-area img,
    #content img {
        margin: 8px auto; /* 移动端减小图片间距 */
    }
}