Kaynağa Gözat

统一文章预览与学院红色模板栏目样式,并完善本地建站能力。

文章信息与三端预览改为服务端生成 PC 预览 HTML,修复正文图片对齐;学院红色模板各栏目名称和列表标题对齐大屏红站点字体规范,并补充车辆学院本地建站脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
非繁 4 ay önce
ebeveyn
işleme
5ee66006a4

+ 1 - 0
WebRoot/WEB-INF/apps/website/config/services/article.service.xml

@@ -61,6 +61,7 @@
 				<service name="article_getCopyNavList" desc="获取可抄送的栏目" title="获取可抄送的栏目" class="space.apps.moudules.website.services.ArticleService" method="getCopyNavigation" />
 				<service name="article_preview" desc="文章正文预览" title="文章正文预览" class="space.apps.moudules.website.services.ArticleService" method="preview" />
 				<service name="article_preview_view" desc="文章正文预览内容" title="文章正文预览内容" class="space.apps.moudules.website.services.ArticleService" method="previewView" />
+				<service name="article_info_preview" desc="文章信息PC预览" title="文章信息PC预览" class="space.apps.moudules.website.services.ArticleService" method="infoPreviewView" />
 			</service>
 			
 			<!-- 流程 -->

+ 157 - 0
WebRoot/apps/space/css/space.editor.css

@@ -153,6 +153,30 @@
 	pointer-events: auto !important;
 }
 
+.space-editor-wrap .ck-content img,
+.space-editor-wrap .ck-content .image img {
+	display: block;
+	width: 100% !important;
+	max-width: 100% !important;
+	height: auto !important;
+	margin: 18px 0;
+	box-sizing: border-box;
+}
+
+.space-editor-wrap .ck-content .image {
+	display: block;
+	width: 100%;
+	margin: 18px 0;
+	text-align: left;
+}
+
+.space-editor-wrap .ck-content p:has(img),
+.space-editor-wrap .ck-content div:has(img),
+.space-editor-wrap .ck-content figure:has(img) {
+	text-align: left !important;
+	text-indent: 0 !important;
+}
+
 .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > video,
 .space-editor-wrap .ck-content figure.media.space-editor-playable-media-widget .ck-media__wrapper > iframe {
 	pointer-events: auto !important;
@@ -259,3 +283,136 @@
 	background: #fff;
 	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
 }
+
+.article-info-pc-preview-stage {
+	box-sizing: border-box;
+	display: flex;
+	flex-direction: column;
+	align-items: center;
+	height: 100%;
+	min-height: 0;
+	overflow: hidden;
+	text-align: center;
+	background: #f5f7fa;
+	border: 1px solid #e4e7ed;
+	padding: 16px;
+}
+
+.article-info-pc-preview-frame {
+	display: block;
+	width: 1200px;
+	max-width: 100%;
+	flex: 1 1 auto;
+	min-height: 0;
+	height: auto !important;
+	margin: 0 auto;
+	background: #fff;
+	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
+	border: 0;
+}
+
+.urge-tbs iframe.article-info-pc-preview-frame,
+iframe.article-info-pc-preview-frame {
+	width: 1200px;
+	max-width: 100%;
+	flex: 1 1 auto;
+	min-height: 0;
+	height: auto !important;
+}
+
+html.article-info-layer-page,
+html.article-info-layer-page body {
+	height: 100%;
+	overflow: hidden;
+}
+
+.preview-article-body .ck-content,
+.article-body .ck-content {
+	width: 100%;
+	margin: 0;
+	padding: 0;
+}
+
+.preview-article-body .ck-content .image,
+.preview-article-body .ck-content figure.image,
+.article-body .ck-content .image,
+.article-body .ck-content figure.image {
+	display: block !important;
+	width: 100% !important;
+	max-width: 100% !important;
+	margin: 18px 0 !important;
+	padding: 0 !important;
+	text-align: left !important;
+}
+
+.preview-article-body .ck-content .image img,
+.preview-article-body .ck-content img,
+.article-body .ck-content .image img,
+.article-body .ck-content img {
+	display: block !important;
+	width: 100% !important;
+	max-width: 100% !important;
+	height: auto !important;
+	margin: 18px 0 !important;
+	box-sizing: border-box;
+}
+
+.preview-article-body img,
+.preview-article-body .article-body img,
+.article-body img {
+	display: block;
+	width: 100% !important;
+	max-width: 100% !important;
+	height: auto !important;
+	margin: 18px 0;
+	box-sizing: border-box;
+}
+
+.preview-article-body figure.image,
+.preview-article-body figure:has(img),
+.article-body figure.image,
+.article-body figure:has(img) {
+	display: block !important;
+	width: 100% !important;
+	max-width: 100% !important;
+	margin: 18px 0;
+	text-align: left !important;
+}
+
+.preview-article-body p:has(img),
+.preview-article-body div:has(img),
+.preview-article-body figure:has(img),
+.article-body p:has(img),
+.article-body div:has(img),
+.article-body figure:has(img) {
+	text-align: left !important;
+	text-indent: 0 !important;
+}
+
+/* 后台文章信息查看页正文图片对齐标准 */
+.article-info-content img {
+	display: block;
+	width: 100% !important;
+	max-width: 100% !important;
+	height: auto !important;
+	margin: 18px 0 !important;
+	box-sizing: border-box;
+}
+
+.article-info-content p:has(img),
+.article-info-content div:has(img),
+.article-info-content figure:has(img) {
+	text-align: left !important;
+	text-indent: 0 !important;
+}
+
+.article-info-content figure.image {
+	display: block;
+	width: 100%;
+	margin: 18px 0;
+	text-align: left;
+}
+
+.article-info-content figure.image img {
+	margin: 0 !important;
+}

+ 20 - 3
WebRoot/apps/space/js/space.vue.subassembly.js

@@ -907,7 +907,7 @@ Vue.component('spaceEditor', {
 				var blockHasMedia = textBlock.querySelector("img, video, iframe, object, embed, table, .space-editor-pdf-viewer");
 				var blockText = (textBlock.textContent || "").replace(/\u00a0/g, "").trim();
 				if (blockHasMedia) {
-					textBlock.style.textAlign = "center";
+					textBlock.style.textAlign = "left";
 					textBlock.style.textIndent = "0";
 				} else if (blockText != "") {
 					textBlock.style.textAlign = "justify";
@@ -919,20 +919,37 @@ Vue.component('spaceEditor', {
 
 			var images = wrapper.querySelectorAll("img");
 			for (var imgIndex = 0; imgIndex < images.length; imgIndex++) {
+				images[imgIndex].style.width = "100%";
 				images[imgIndex].style.maxWidth = "100%";
 				images[imgIndex].style.height = "auto";
 				images[imgIndex].style.display = "block";
-				images[imgIndex].style.margin = "12px auto";
+				images[imgIndex].style.margin = "18px 0";
+			}
+
+			var figures = wrapper.querySelectorAll("figure.image, figure");
+			for (var figureIndex = 0; figureIndex < figures.length; figureIndex++) {
+				var figure = figures[figureIndex];
+				if (!figure.querySelector("img")) {
+					continue;
+				}
+				figure.removeAttribute("width");
+				figure.removeAttribute("height");
+				figure.style.display = "block";
+				figure.style.width = "100%";
+				figure.style.maxWidth = "100%";
+				figure.style.margin = "18px 0";
+				figure.style.textAlign = "left";
 			}
 
 			var videos = wrapper.querySelectorAll("video, iframe, object, embed");
 			for (var v = 0; v < videos.length; v++) {
+				videos[v].style.width = "100%";
 				videos[v].style.maxWidth = "100%";
 				if (videos[v].tagName.toLowerCase() == "video") {
 					videos[v].setAttribute("controls", "controls");
 					videos[v].setAttribute("playsinline", "playsinline");
 					videos[v].style.display = "block";
-					videos[v].style.margin = "12px auto";
+					videos[v].style.margin = "18px 0";
 				}
 			}
 

+ 251 - 7
WebRoot/main/ffkj-portal/portal-source.css

@@ -327,6 +327,171 @@ body.screen-red-theme .screen-shell .campus-news-list a > .screen-record-copy st
   line-clamp: 2;
 }
 
+/* 学院红色模板:所有栏目列表标题对齐大屏红首页 */
+body.screen-red-theme .college-red-page,
+.college-red-page.screen-red-theme,
+.college-red-page {
+  --screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
+  --screen-red-section-title-size: clamp(29px, 1.98vw, 35px);
+}
+
+body.screen-red-theme .college-red-page .department-feature-news h3,
+body.screen-red-theme .college-red-page .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-list b,
+body.screen-red-theme .college-red-page .department-plain-list b,
+body.screen-red-theme .college-red-page .department-life .department-plain-list b,
+body.screen-red-theme .college-red-page .department-notice-panel ul b,
+body.screen-red-theme .college-red-page .department-section-copy b,
+body.screen-red-theme .college-red-page .department-section-media-grid b,
+body.screen-red-theme .college-red-page .department-section-slide strong,
+body.screen-red-theme .college-red-page .department-column-list strong,
+body.screen-red-theme .college-red-page .article-media-grid strong,
+body.screen-red-theme .college-red-page .article-graphic-title,
+body.screen-red-theme .college-red-page .inner-news-list strong,
+.college-red-page.screen-red-theme .department-feature-news h3,
+.college-red-page.screen-red-theme .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-list b,
+.college-red-page.screen-red-theme .department-plain-list b,
+.college-red-page.screen-red-theme .department-life .department-plain-list b,
+.college-red-page.screen-red-theme .department-notice-panel ul b,
+.college-red-page.screen-red-theme .department-section-copy b,
+.college-red-page.screen-red-theme .department-section-media-grid b,
+.college-red-page.screen-red-theme .department-section-slide strong,
+.college-red-page.screen-red-theme .department-column-list strong,
+.college-red-page.screen-red-theme .article-media-grid strong,
+.college-red-page.screen-red-theme .article-graphic-title,
+.college-red-page.screen-red-theme .inner-news-list strong,
+.college-red-page .department-feature-news h3,
+.college-red-page .department-news-list strong,
+.college-red-page .department-news-layout .department-news-list strong,
+.college-red-page .department-news-list b,
+.college-red-page .department-plain-list b,
+.college-red-page .department-life .department-plain-list b,
+.college-red-page .department-notice-panel ul b,
+.college-red-page .department-section-copy b,
+.college-red-page .department-section-media-grid b,
+.college-red-page .department-section-slide strong,
+.college-red-page .department-column-list strong,
+.college-red-page .article-media-grid strong,
+.college-red-page .article-graphic-title,
+.college-red-page .inner-news-list strong {
+  color: #333333;
+  font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
+  font-size: var(--screen-red-record-title-size);
+  font-weight: 400;
+  line-height: 1.3;
+  letter-spacing: 0;
+  transition: color 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
+  will-change: transform;
+}
+
+body.screen-red-theme .college-red-page .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-list b,
+body.screen-red-theme .college-red-page .department-plain-list b,
+body.screen-red-theme .college-red-page .department-life .department-plain-list b,
+body.screen-red-theme .college-red-page .department-notice-panel ul b,
+body.screen-red-theme .college-red-page .department-section-copy b,
+body.screen-red-theme .college-red-page .department-section-media-grid b,
+body.screen-red-theme .college-red-page .department-section-slide strong,
+.college-red-page.screen-red-theme .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-list b,
+.college-red-page.screen-red-theme .department-plain-list b,
+.college-red-page.screen-red-theme .department-life .department-plain-list b,
+.college-red-page.screen-red-theme .department-notice-panel ul b,
+.college-red-page.screen-red-theme .department-section-copy b,
+.college-red-page.screen-red-theme .department-section-media-grid b,
+.college-red-page.screen-red-theme .department-section-slide strong,
+.college-red-page .department-news-list strong,
+.college-red-page .department-news-layout .department-news-list strong,
+.college-red-page .department-news-list b,
+.college-red-page .department-plain-list b,
+.college-red-page .department-life .department-plain-list b,
+.college-red-page .department-notice-panel ul b,
+.college-red-page .department-section-copy b,
+.college-red-page .department-section-media-grid b,
+.college-red-page .department-section-slide strong {
+  display: -webkit-box;
+  width: 100%;
+  min-width: 0;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: normal;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  line-clamp: 2;
+}
+
+body.screen-red-theme .college-red-page .department-feature-news:hover h3,
+body.screen-red-theme .college-red-page .department-news-list a:hover strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list a:hover strong,
+body.screen-red-theme .college-red-page .department-news-list a:hover b,
+body.screen-red-theme .college-red-page .department-life .department-plain-list a:hover b,
+body.screen-red-theme .college-red-page .department-plain-list a:hover b,
+body.screen-red-theme .college-red-page .department-notice-panel ul a:hover b,
+body.screen-red-theme .college-red-page .department-section-graphic-list a:hover .department-section-copy b,
+body.screen-red-theme .college-red-page .department-section-media-grid a:hover b,
+body.screen-red-theme .college-red-page .department-section-slide:hover strong,
+body.screen-red-theme .college-red-page .article-media-grid a:hover strong,
+body.screen-red-theme .college-red-page .department-column-list a:hover strong,
+body.screen-red-theme .college-red-page .inner-news-list a:hover strong,
+body.screen-red-theme .college-red-page .article-graphic-list a:hover .article-graphic-title,
+.college-red-page.screen-red-theme .department-feature-news:hover h3,
+.college-red-page.screen-red-theme .department-news-list a:hover strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list a:hover strong,
+.college-red-page.screen-red-theme .department-news-list a:hover b,
+.college-red-page.screen-red-theme .department-life .department-plain-list a:hover b,
+.college-red-page.screen-red-theme .department-plain-list a:hover b,
+.college-red-page.screen-red-theme .department-notice-panel ul a:hover b,
+.college-red-page.screen-red-theme .department-section-graphic-list a:hover .department-section-copy b,
+.college-red-page.screen-red-theme .department-section-media-grid a:hover b,
+.college-red-page.screen-red-theme .department-section-slide:hover strong,
+.college-red-page.screen-red-theme .article-media-grid a:hover strong,
+.college-red-page.screen-red-theme .department-column-list a:hover strong,
+.college-red-page.screen-red-theme .inner-news-list a:hover strong,
+.college-red-page.screen-red-theme .article-graphic-list a:hover .article-graphic-title,
+.college-red-page .department-feature-news:hover h3,
+.college-red-page .department-news-list a:hover strong,
+.college-red-page .department-news-layout .department-news-list a:hover strong,
+.college-red-page .department-news-list a:hover b,
+.college-red-page .department-life .department-plain-list a:hover b,
+.college-red-page .department-plain-list a:hover b,
+.college-red-page .department-notice-panel ul a:hover b,
+.college-red-page .department-section-graphic-list a:hover .department-section-copy b,
+.college-red-page .department-section-media-grid a:hover b,
+.college-red-page .department-section-slide:hover strong,
+.college-red-page .article-media-grid a:hover strong,
+.college-red-page .department-column-list a:hover strong,
+.college-red-page .inner-news-list a:hover strong,
+.college-red-page .article-graphic-list a:hover .article-graphic-title {
+  color: #b51624;
+  transform: translateX(6px);
+}
+
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list a:hover strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list a:focus-visible strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list a:hover strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list a:focus-visible strong,
+.college-red-page .department-news-layout .department-news-list a:hover strong,
+.college-red-page .department-news-layout .department-news-list a:focus-visible strong {
+  color: #b51624;
+  transform: translateX(6px);
+}
+
+body.screen-red-theme .college-red-page .department-section-title h2,
+.college-red-page.screen-red-theme .department-section-title h2,
+.college-red-page .department-section-title h2,
+.college-red-page.college-blue-page .department-section-title h2 {
+  color: var(--hx-red);
+  font-family: "FZDBSJW--GB1-0", "FZDaBiaoSong-B06S", "FZDaBiaoSong-B06", "方正大标宋简体", "方正大标宋_GBK", "FZDaBiao-S15S", "STZhongsong", "Songti SC", SimSun, serif;
+  font-size: var(--screen-red-section-title-size);
+  font-weight: 800;
+  line-height: 1.12;
+}
+
 body.screen-red-theme .screen-shell .media-report-list a {
   grid-template-columns: 110px minmax(0, 1fr);
 }
@@ -4904,8 +5069,13 @@ body.screen-red-theme .screen-qr-image {
 }
 
 .department-news-list a {
-  display: block;
-  padding: 11px 0 14px;
+  display: flex;
+  flex-direction: column;
+  align-items: flex-start;
+  justify-content: center;
+  gap: 8px;
+  min-height: 80px;
+  padding: 15px 0;
 }
 
 .department-news-list strong {
@@ -4925,6 +5095,17 @@ body.screen-red-theme .screen-qr-image {
   transform: translateX(6px);
 }
 
+.college-red-page .department-news-layout .department-news-list a {
+  justify-content: center;
+  gap: 8px;
+  min-height: 80px;
+}
+
+.college-red-page .department-news-layout .department-news-list time {
+  position: static;
+  top: auto;
+}
+
 .department-news-list p {
   height: 24px;
   margin: 7px 0 4px;
@@ -5519,12 +5700,19 @@ body.screen-red-theme .screen-qr-image {
   }
 
   .college-blue-page .department-news-layout .department-news-list a {
-    padding: 8px 0 9px;
+    display: flex;
+    flex-direction: column;
+    align-items: flex-start;
+    justify-content: center;
+    gap: 8px;
+    min-height: 80px;
+    padding: 15px 0;
   }
 
   .college-blue-page .department-news-layout .department-news-list strong {
     font-size: 16px;
     line-height: 1.32;
+    text-align: left;
   }
 
   .college-blue-page .department-news-layout .department-news-list p {
@@ -5534,8 +5722,8 @@ body.screen-red-theme .screen-qr-image {
   }
 
   .college-blue-page .department-news-layout .department-news-list time {
-    position: relative;
-    top: -6px;
+    position: static;
+    top: auto;
   }
 
   .college-blue-page .department-life .department-plain-list {
@@ -6300,8 +6488,64 @@ body.screen-red-theme .screen-qr-image {
 }
 
 .article-body img {
-  height: auto;
-  margin: 18px auto;
+  display: block;
+  width: 100% !important;
+  max-width: 100% !important;
+  height: auto !important;
+  margin: 18px 0;
+  box-sizing: border-box;
+}
+
+.article-body .ck-content {
+  width: 100%;
+  margin: 0;
+  padding: 0;
+}
+
+.article-body .ck-content .image,
+.article-body .ck-content figure.image {
+  display: block !important;
+  width: 100% !important;
+  max-width: 100% !important;
+  margin: 18px 0 !important;
+  padding: 0 !important;
+  text-align: left !important;
+}
+
+.article-body .ck-content .image img,
+.article-body .ck-content img {
+  display: block !important;
+  width: 100% !important;
+  max-width: 100% !important;
+  height: auto !important;
+  margin: 18px 0 !important;
+  box-sizing: border-box;
+}
+
+.article-body p:has(img),
+.article-body div:has(img),
+.article-body figure:has(img) {
+  text-align: left !important;
+  text-indent: 0 !important;
+}
+
+.article-body figure:has(img) {
+  width: 100% !important;
+  max-width: 100% !important;
+  margin: 18px 0;
+  text-align: left !important;
+}
+
+.article-body figure.image {
+  display: block !important;
+  width: 100% !important;
+  max-width: 100% !important;
+  margin: 18px 0;
+  text-align: left !important;
+}
+
+.article-body figure img {
+  margin: 0;
 }
 
 .article-body figure.media,

+ 6 - 3
WebRoot/web/subassembly/app/pc/10021/10106/1002110106_edit.jsp

@@ -1,6 +1,7 @@
 <html>
 
 <head>
+	<link rel="stylesheet" type="text/css" href="/apps/space/css/space.editor.css?v=20260703-article-image-fit">
 	<style>
 		html,
 		body {
@@ -47,8 +48,10 @@
 			word-break: break-all;
 		}
 
-		.article-info-content img {
-			max-width: 100% !important;
+		.article-info-content p {
+			margin: 0 0 16px;
+			text-indent: 2em;
+			line-height: 1.9;
 		}
 
 		/* 缩略图遮罩 */
@@ -410,4 +413,4 @@
 
 
 
-
+

+ 122 - 78
WebRoot/web/subassembly/app/pc/10021/10106/1002110106_run.jsp

@@ -1,74 +1,101 @@
-<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
-<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
-<%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
-<% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "website"); %>
-<!DOCTYPE html >
-<html>
-
-<head> <!-- HEAD --> 
- <link rel="stylesheet" type="text/css" href="/css/reset.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css"> 
- <link rel="stylesheet" type="text/css" href="/css/components.css"> 
- <link rel="stylesheet" href="/css/ckeditor.css"> 
- <script>var space = { vars: {} };</script> 
- <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script> 
- <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.vue.pc.subassembly.js"></script> 
- <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
+<% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "website"); %>
+<!DOCTYPE html >
+<html class="article-info-layer-page">
+
+<head> <!-- HEAD --> 
+ <link rel="stylesheet" type="text/css" href="/css/reset.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css"> 
+ <link rel="stylesheet" type="text/css" href="/css/components.css"> 
+ <link rel="stylesheet" href="/css/ckeditor.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/css/space.editor.css?v=20260703-article-image-fit">
+ <script>var space = { vars: {} };</script> 
+ <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script> 
+ <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.vue.pc.subassembly.js"></script> 
+ <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
  <style>
 		html,
 		body {
 			height: 100%;
 			width: 100%;
+			overflow: hidden;
 		}
 
-		/*文章查看页面
- 			*左边 */
-
-		.article-info {
+		#space-content,
+		.space-tbs,
+		.space-tbs .el-tabs {
 			height: 100%;
-			overflow: hidden;
+			box-sizing: border-box;
 		}
 
-		.article-info-title {
-			text-align: center;
-			border-bottom: 1px dashed #dddee0;
-			margin: 20px 20px 0px 20px;
+		.space-tbs .el-tabs {
+			display: flex;
+			flex-direction: column;
 		}
 
-		.article-info-title h2 {
-			font-size: 18px;
-			font-weight: bold;
-			line-height: 34px;
+		.space-tbs .el-tabs__header {
+			flex-shrink: 0;
 		}
 
-		.article-info-title p {
-			color: #989898;
-			font-size: 12px;
-			line-height: 34px;
-			height: 34px;
+		.space-tbs .el-tabs__content {
+			flex: 1 1 auto;
+			height: auto !important;
+			min-height: 0;
+			overflow: hidden;
 		}
 
-		.article-info-title p span {
-			margin-right: 16px;
+		.space-tbs .el-tab-pane {
+			height: 100%;
+			overflow: hidden;
 		}
 
-		.article-info-content {
-			height: calc(100% - 90px);
-			padding: 10px 22px 0 30px;
-			margin-bottom: 10px;
+		.space-check-infor {
+			height: 100%;
 			overflow-y: auto;
-			word-break: break-all;
 		}
 
-		.article-info-content img {
-			max-width: 100% !important;
+		.article-info-pc-preview-stage {
+			box-sizing: border-box;
+			display: flex;
+			flex-direction: column;
+			align-items: center;
+			height: 100%;
+			min-height: 0;
+			overflow: hidden;
+			text-align: center;
+			background: #f5f7fa;
+			border: 1px solid #e4e7ed;
+			padding: 16px;
+		}
+
+		.article-info-pc-preview-frame {
+			display: block;
+			width: 1200px;
+			max-width: 100%;
+			flex: 1 1 auto;
+			min-height: 0;
+			height: auto !important;
+			margin: 0 auto;
+			background: #fff;
+			box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
+			border: 0;
+		}
+
+		.urge-tbs iframe.article-info-pc-preview-frame {
+			width: 1200px;
+			max-width: 100%;
+			flex: 1 1 auto;
+			min-height: 0;
+			height: auto !important;
 		}
 
 		/* 缩略图遮罩 */
@@ -138,8 +165,8 @@
 			color: #999aaa;
 			margin: 12px 0px 0px 0px;
 		}
-	</style> 
- <title>文章信息</title>
+	</style> 
+ <title>文章信息</title>
 </head>
 
 <body>
@@ -147,30 +174,13 @@
 		<div class="space-tbs urge-tbs">
 			<el-tabs v-model="activeName">
 				<el-tab-pane label="内容" name="first">
-					<div class="article-info">
-						<div class="article-info-title">
-							<h2>${article.title}</h2>
-							<p>
-								来源:<span>${article.source}</span>
-								<span v-if="'${article.releaseTime}'">
-									发布时间:
-									<span>
-										<app:dateTime type="format" value="${article.releaseTime}" />
-									</span>
-								</span>
-							</p>
-						</div>
-						<div class="article-info-content niceScroll">
-							<c:if test="${not empty article.desc}">
-								<span class="article-desc">摘要:${article.desc}</span>
-							</c:if>
-							${body}
-						</div>
+					<div class="article-info-pc-preview-stage">
+						<iframe class="article-info-pc-preview-frame" data-preview-b64="${infoPreviewHtmlB64}" frameborder="0" scrolling="yes"></iframe>
 					</div>
 				</el-tab-pane>
 				<el-tab-pane label="属性" name="second">
 
-					<div class="space-check-infor niceScroll">
+					<div class="space-check-infor">
 						<el-row>
 							<el-col :span="4">
 								<div class="infor-label">
@@ -418,21 +428,55 @@
 				activeName: 'first',
 				disable: space.utils.parseBoolean("${article.dcode == '61' }"),
 				copyNavigation: JSON.parse('${copyNav}'),
-				popFmt: false //查看缩略图大图
+				popFmt: false
 			};
+		},
+		mounted: function () {
+			try {
+				if (window.frameElement) {
+					window.frameElement.setAttribute('scrolling', 'no');
+					window.frameElement.style.overflow = 'hidden';
+				}
+			} catch (e) {}
+
+			var frame = this.$el.querySelector('.article-info-pc-preview-frame');
+			if (!frame) {
+				return;
+			}
+			var previewB64 = frame.getAttribute('data-preview-b64');
+			if (!previewB64) {
+				return;
+			}
+			try {
+				frame.srcdoc = decodeURIComponent(escape(atob(previewB64)));
+			} catch (e) {
+				console.error(e);
+			}
+
+			var _this = this;
+			window.setTimeout(function () {
+				try {
+					jQuery(_this.$el).find('.space-check-infor, .article-info-attribute').each(function () {
+						var nice = jQuery(this).getNiceScroll();
+						if (nice && nice.length) {
+							nice.remove();
+						}
+					});
+				} catch (e) {}
+			}, 0);
 		}
 	})
 
 </script>
 
-<script type="text/javascript">space.vars.pageTypeCode = "10004";</script>
-<script type="text/javascript">space.vars.pageHashCode = "dBBdNzpxtRftZQyqu5wsuA==";</script>
-<script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
+<script type="text/javascript">space.vars.pageTypeCode = "10004";</script>
+<script type="text/javascript">space.vars.pageHashCode = "dBBdNzpxtRftZQyqu5wsuA==";</script>
+<script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
 </html>
 
 
 
 
 
-
-
+
+

+ 2 - 5
WebRoot/web/subassembly/app/pc/10021/10156/1002110156_edit.jsp

@@ -1,6 +1,7 @@
 <html>
 
 <head>
+	<link rel="stylesheet" type="text/css" href="/apps/space/css/space.editor.css?v=20260703-article-image-fit">
 	<style>
 		html,
 		body {
@@ -66,11 +67,7 @@
 		.article-info-content p {
 			font-size: 16px;
 			line-height: 30px;
-		}
-
-		.article-info-content img {
-			margin: 6px auto;
-			max-width: 100%;
+			text-indent: 2em;
 		}
 
 		/*右边*/

+ 92 - 97
WebRoot/web/subassembly/app/pc/10021/10156/1002110156_run.jsp

@@ -1,26 +1,27 @@
-<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
-<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
-<%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
-<% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "website"); %>
-<!DOCTYPE html >
-<html>
-
-<head> <!-- HEAD --> 
- <link rel="stylesheet" type="text/css" href="/css/reset.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css"> 
- <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css"> 
- <link rel="stylesheet" type="text/css" href="/css/components.css"> 
- <link rel="stylesheet" href="/css/ckeditor.css"> 
- <script>var space = { vars: {} };</script> 
- <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script> 
- <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.vue.pc.subassembly.js"></script> 
- <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script> 
- <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ taglib uri="/WEB-INF/SpaceCoreApp.tld" prefix="app"%>
+<% pageContext.setAttribute(space.core.apps.common.ConstVars.MODULE_DM_KEY, "website"); %>
+<!DOCTYPE html >
+<html class="article-info-layer-page">
+
+<head> <!-- HEAD --> 
+ <link rel="stylesheet" type="text/css" href="/css/reset.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/element-ui@2.13.0/index.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/plug-in/layui/dist/css/layui.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/css/SpaceIcon/iconfont.css"> 
+ <link rel="stylesheet" type="text/css" href="/css/components.css"> 
+ <link rel="stylesheet" href="/css/ckeditor.css"> 
+ <link rel="stylesheet" type="text/css" href="/apps/space/css/space.editor.css?v=20260703-article-image-fit">
+ <script>var space = { vars: {} };</script> 
+ <script src="/js/jquery1.11.3.min.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/apps/space/plug-in/element-resize-detector/element-resize-detector.min.js"></script> 
+ <script src="/apps/space/plug-in/vue/vue.min.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/apps/space/plug-in/element-ui@2.13.0/index.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.vue.pc.subassembly.js"></script> 
+ <script src="/apps/space/plug-in/layui/dist/layui.all.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.recycle.js" type="text/javascript" charset="utf-8"></script> 
+ <script src="/js/space.display.js" type="text/javascript" charset="utf-8"></script>
  <style>
 		html,
 		body {
@@ -39,58 +40,46 @@
 			/*padding-left: 20px;*/
 		}
 
+		#space-content,
 		.el-row,
 		.el-col {
 			height: 100%;
+			min-height: 0;
 		}
 
-		/*文章查看页面
- 			*左边 */
-
-		.article-info {
+		.article-info-pc-preview-stage {
+			box-sizing: border-box;
+			display: flex;
+			flex-direction: column;
+			align-items: center;
 			height: 100%;
+			min-height: 0;
 			overflow: hidden;
-		}
-
-		.article-info-title {
 			text-align: center;
-			border-bottom: 1px dashed #dddee0;
-			margin: 0 20px;
-		}
-
-		.article-info-title h2 {
-			font-weight: bold;
-			line-height: 34px;
-			font-size: 26px;
-			margin-bottom: 12px;
+			background: #f5f7fa;
+			border: 1px solid #e4e7ed;
+			padding: 16px;
 		}
 
-		.article-info-title p {
-			color: #989898;
-			font-size: 12px;
-			line-height: 34px;
-			height: 34px;
-		}
-
-		.article-info-title p span {
-			margin-right: 16px;
-		}
-
-		.article-info-content {
-			height: calc(100% - 90px);
-			padding: 10px 22px 0 30px;
-			margin-bottom: 10px;
-			overflow-y: auto;
-		}
-
-		.article-info-content p {
-			font-size: 16px;
-			line-height: 30px;
+		.article-info-pc-preview-frame {
+			display: block;
+			width: 1200px;
+			max-width: 100%;
+			flex: 1 1 auto;
+			min-height: 0;
+			height: auto !important;
+			margin: 0 auto;
+			background: #fff;
+			box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
+			border: 0;
 		}
 
-		.article-info-content img {
-			margin: 6px auto;
+		.urge-tbs iframe.article-info-pc-preview-frame {
+			width: 1200px;
 			max-width: 100%;
+			flex: 1 1 auto;
+			min-height: 0;
+			height: auto !important;
 		}
 
 		/*右边*/
@@ -216,41 +205,20 @@
 			margin: 12px 0px 0px 0px;
 		}
 		
-	</style> 
- <title>文章流程信息</title>
+	</style> 
+ <title>文章流程信息</title>
 </head>
 
 <body>
 	<div v-cloak id="space-content">
 		<el-row>
 			<el-col :span="18">
-				<div class="article-info">
-					<div class="article-info-title">
-						<h2>${article.title}</h2>
-						<p>
-							<span>
-								来源:<span>${article.source}</span>
-							</span>
-							<c:if test="${not empty article.releaseTime}">
-								<span>
-									&nbsp;&nbsp;发布时间:<span><app:dateTime type="format" value="${article.releaseTime}" /></span>
-								</span>
-							</c:if>
-							<span>
-								&nbsp;&nbsp;最后编辑时间:<span><app:dateTime type="format" value="${article.lastChangeTime }" /></span>
-							</span>
-						</p>
-					</div>
-					<div class="article-info-content niceScroll">
-						<c:if test="${not empty article.desc}">
-							<span class="article-desc">摘要:${article.desc}</span>
-						</c:if>
-						${body}
-					</div>
+				<div class="article-info-pc-preview-stage">
+					<iframe class="article-info-pc-preview-frame" data-preview-b64="${infoPreviewHtmlB64}" frameborder="0" scrolling="yes"></iframe>
 				</div>
 			</el-col>
 			<el-col :span="6">
-				<div class="article-info-attribute niceScroll">
+				<div class="article-info-attribute">
 					<ul>
 						<li>
 							<span class="article-label">栏目</span>
@@ -394,22 +362,49 @@
 			return {
 				disable: space.utils.parseBoolean("${article.dcode == '61' }"),
 				copyNavigation: JSON.parse('${copyNav}'),
-				popFmt: false //查看缩略图大图
+				popFmt: false
 			}
 		},
 		mounted: function () {
-			
-			if ($('img').lazyload != undefined) {
-				$('img').lazyload({ effect: 'fadeIn', container: $('#jquery-lazyload-container').parent() });
+			try {
+				if (window.frameElement) {
+					window.frameElement.setAttribute('scrolling', 'no');
+					window.frameElement.style.overflow = 'hidden';
+				}
+			} catch (e) {}
+
+			var frame = this.$el.querySelector('.article-info-pc-preview-frame');
+			if (!frame) {
+				return;
 			}
-			
+			var previewB64 = frame.getAttribute('data-preview-b64');
+			if (!previewB64) {
+				return;
+			}
+			try {
+				frame.srcdoc = decodeURIComponent(escape(atob(previewB64)));
+			} catch (e) {
+				console.error(e);
+			}
+
+			var _this = this;
+			window.setTimeout(function () {
+				try {
+					jQuery(_this.$el).find('.space-check-infor, .article-info-attribute').each(function () {
+						var nice = jQuery(this).getNiceScroll();
+						if (nice && nice.length) {
+							nice.remove();
+						}
+					});
+				} catch (e) {}
+			}, 0);
 		}
 	})
 
 	space.utils.formatDateByEls('yyyy-MM-dd hh:mm', $("span.r_date"));
 </script>
 
-<script type="text/javascript">space.vars.pageTypeCode = "10004";</script>
-<script type="text/javascript">space.vars.pageHashCode = "83a4rmIX0Yyl68yLQCtjoQ==";</script>
-<script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
-</html>
+<script type="text/javascript">space.vars.pageTypeCode = "10004";</script>
+<script type="text/javascript">space.vars.pageHashCode = "83a4rmIX0Yyl68yLQCtjoQ==";</script>
+<script type="text/javascript" >removeTokens("<app:token name='sys.removeToken' />", '<%= pageContext.getAttribute(space.core.apps.common.ConstVars.TOKEN_SESSION_LIST_KEY) %>')</script>
+</html>

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-blue-details.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260628-pdf-viewer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260703-article-image-fit">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 </head>
 <body class="${portalThemeClass}">

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-details.jsp

@@ -8,7 +8,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260628-pdf-viewer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260703-article-image-fit">
 </head>
 <body>
 	<div class="college-page college-department-page department-subpage">

+ 1 - 1
WebRoot/web/upload/ffkj-template/college-red-details.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260628-pdf-viewer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260703-article-image-fit">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 	<style>
 		.college-department-page.department-subpage .department-article-layout {

+ 57 - 18
WebRoot/web/upload/ffkj-template/college-red-index.jsp

@@ -15,6 +15,17 @@
 	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260623-building-lines">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 	<style>
+		.college-red-page {
+			--screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
+			--screen-red-section-title-size: clamp(29px, 1.98vw, 35px);
+		}
+		.college-red-page .department-section-title h2 {
+			color: var(--hx-red);
+			font-family: "FZDBSJW--GB1-0", "FZDaBiaoSong-B06S", "FZDaBiaoSong-B06", "方正大标宋简体", "方正大标宋_GBK", "FZDaBiao-S15S", "STZhongsong", "Songti SC", SimSun, serif;
+			font-size: var(--screen-red-section-title-size);
+			font-weight: 800;
+			line-height: 1.12;
+		}
 		.college-red-page .department-hero-inner {
 			width: min(1202px, calc(100% - 40px));
 		}
@@ -38,7 +49,8 @@
 			flex-direction: column;
 			align-items: flex-start;
 			justify-content: center;
-			gap: 2px;
+			gap: 8px;
+			min-height: 80px;
 			padding-top: 0;
 			padding-bottom: 0;
 		}
@@ -55,23 +67,60 @@
 			transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
 			pointer-events: none;
 		}
-		.college-red-page .department-news-layout .department-news-list strong {
+		.college-red-page .department-feature-news h3,
+		.college-red-page .department-news-layout .department-news-list strong,
+		.college-red-page .department-news-list b,
+		.college-red-page .department-plain-list b,
+		.college-red-page .department-notice-panel ul b,
+		.college-red-page .department-section-copy b,
+		.college-red-page .department-section-media-grid b,
+		.college-red-page .department-section-slide strong {
+			color: #333333;
+			font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
+			font-size: var(--screen-red-record-title-size);
+			font-weight: 400;
+			line-height: 1.3;
+			letter-spacing: 0;
 			transition: color 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
 			will-change: transform;
 		}
+		.college-red-page .department-news-layout .department-news-list {
+			--screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
+		}
+		.college-red-page .department-news-layout .department-news-list strong,
+		.college-red-page .department-news-list b,
+		.college-red-page .department-plain-list b,
+		.college-red-page .department-notice-panel ul b,
+		.college-red-page .department-section-copy b,
+		.college-red-page .department-section-media-grid b,
+		.college-red-page .department-section-slide strong {
+			display: -webkit-box;
+			width: 100%;
+			min-width: 0;
+			overflow: hidden;
+			text-overflow: ellipsis;
+			white-space: normal;
+			-webkit-box-orient: vertical;
+			-webkit-line-clamp: 2;
+			line-clamp: 2;
+		}
 		.college-red-page .department-news-layout .department-news-list time {
 			position: static;
 			top: auto;
 		}
+		.college-red-page .department-feature-news:hover h3,
 		.college-red-page .department-news-layout .department-news-list a:hover strong,
-		.college-red-page .department-news-layout .department-news-list a:focus-visible strong {
-			color: var(--hx-red);
+		.college-red-page .department-news-list a:hover b,
+		.college-red-page .department-plain-list a:hover b,
+		.college-red-page .department-notice-panel ul a:hover b,
+		.college-red-page .department-section-graphic-list a:hover .department-section-copy b,
+		.college-red-page .department-section-media-grid a:hover b,
+		.college-red-page .department-section-slide:hover strong,
+		.college-red-page .department-notice-panel .department-major-graphic-list a:hover .department-section-copy b,
+		.college-red-page .department-notice-panel .department-major-graphic-list a:focus-visible .department-section-copy b {
+			color: #b51624;
 			transform: translateX(6px);
 		}
-		.college-red-page .department-news-layout .department-news-list a:hover::before,
-		.college-red-page .department-news-layout .department-news-list a:focus-visible::before {
-			width: 100%;
-		}
 		.college-red-page .department-notice-panel > ul:not(.department-major-graphic-list) b {
 			grid-row: 1 / 3;
 			align-self: center;
@@ -119,16 +168,6 @@
 			display: block;
 			grid-row: auto;
 			align-self: auto;
-			color: var(--hx-ink);
-			font-family: var(--hx-nju-title);
-			font-size: 16px;
-			font-weight: 600;
-			line-height: 1.45;
-			letter-spacing: 0;
-			text-overflow: ellipsis;
-			white-space: nowrap;
-			transition: color 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
-			will-change: transform;
 		}
 		.college-red-page .department-notice-panel .department-major-graphic-list time {
 			display: block;

+ 254 - 7
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -327,6 +327,171 @@ body.screen-red-theme .screen-shell .campus-news-list a > .screen-record-copy st
   line-clamp: 2;
 }
 
+/* 学院红色模板:所有栏目列表标题对齐大屏红首页 */
+body.screen-red-theme .college-red-page,
+.college-red-page.screen-red-theme,
+.college-red-page {
+  --screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
+  --screen-red-section-title-size: clamp(29px, 1.98vw, 35px);
+}
+
+body.screen-red-theme .college-red-page .department-feature-news h3,
+body.screen-red-theme .college-red-page .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-list b,
+body.screen-red-theme .college-red-page .department-plain-list b,
+body.screen-red-theme .college-red-page .department-life .department-plain-list b,
+body.screen-red-theme .college-red-page .department-notice-panel ul b,
+body.screen-red-theme .college-red-page .department-section-copy b,
+body.screen-red-theme .college-red-page .department-section-media-grid b,
+body.screen-red-theme .college-red-page .department-section-slide strong,
+body.screen-red-theme .college-red-page .department-column-list strong,
+body.screen-red-theme .college-red-page .article-media-grid strong,
+body.screen-red-theme .college-red-page .article-graphic-title,
+body.screen-red-theme .college-red-page .inner-news-list strong,
+.college-red-page.screen-red-theme .department-feature-news h3,
+.college-red-page.screen-red-theme .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-list b,
+.college-red-page.screen-red-theme .department-plain-list b,
+.college-red-page.screen-red-theme .department-life .department-plain-list b,
+.college-red-page.screen-red-theme .department-notice-panel ul b,
+.college-red-page.screen-red-theme .department-section-copy b,
+.college-red-page.screen-red-theme .department-section-media-grid b,
+.college-red-page.screen-red-theme .department-section-slide strong,
+.college-red-page.screen-red-theme .department-column-list strong,
+.college-red-page.screen-red-theme .article-media-grid strong,
+.college-red-page.screen-red-theme .article-graphic-title,
+.college-red-page.screen-red-theme .inner-news-list strong,
+.college-red-page .department-feature-news h3,
+.college-red-page .department-news-list strong,
+.college-red-page .department-news-layout .department-news-list strong,
+.college-red-page .department-news-list b,
+.college-red-page .department-plain-list b,
+.college-red-page .department-life .department-plain-list b,
+.college-red-page .department-notice-panel ul b,
+.college-red-page .department-section-copy b,
+.college-red-page .department-section-media-grid b,
+.college-red-page .department-section-slide strong,
+.college-red-page .department-column-list strong,
+.college-red-page .article-media-grid strong,
+.college-red-page .article-graphic-title,
+.college-red-page .inner-news-list strong {
+  color: #333333;
+  font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
+  font-size: var(--screen-red-record-title-size);
+  font-weight: 400;
+  line-height: 1.3;
+  letter-spacing: 0;
+  transition: color 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
+  will-change: transform;
+}
+
+body.screen-red-theme .college-red-page .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list strong,
+body.screen-red-theme .college-red-page .department-news-list b,
+body.screen-red-theme .college-red-page .department-plain-list b,
+body.screen-red-theme .college-red-page .department-life .department-plain-list b,
+body.screen-red-theme .college-red-page .department-notice-panel ul b,
+body.screen-red-theme .college-red-page .department-section-copy b,
+body.screen-red-theme .college-red-page .department-section-media-grid b,
+body.screen-red-theme .college-red-page .department-section-slide strong,
+.college-red-page.screen-red-theme .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list strong,
+.college-red-page.screen-red-theme .department-news-list b,
+.college-red-page.screen-red-theme .department-plain-list b,
+.college-red-page.screen-red-theme .department-life .department-plain-list b,
+.college-red-page.screen-red-theme .department-notice-panel ul b,
+.college-red-page.screen-red-theme .department-section-copy b,
+.college-red-page.screen-red-theme .department-section-media-grid b,
+.college-red-page.screen-red-theme .department-section-slide strong,
+.college-red-page .department-news-list strong,
+.college-red-page .department-news-layout .department-news-list strong,
+.college-red-page .department-news-list b,
+.college-red-page .department-plain-list b,
+.college-red-page .department-life .department-plain-list b,
+.college-red-page .department-notice-panel ul b,
+.college-red-page .department-section-copy b,
+.college-red-page .department-section-media-grid b,
+.college-red-page .department-section-slide strong {
+  display: -webkit-box;
+  width: 100%;
+  min-width: 0;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: normal;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  line-clamp: 2;
+}
+
+body.screen-red-theme .college-red-page .department-feature-news:hover h3,
+body.screen-red-theme .college-red-page .department-news-list a:hover strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list a:hover strong,
+body.screen-red-theme .college-red-page .department-news-list a:hover b,
+body.screen-red-theme .college-red-page .department-life .department-plain-list a:hover b,
+body.screen-red-theme .college-red-page .department-plain-list a:hover b,
+body.screen-red-theme .college-red-page .department-notice-panel ul a:hover b,
+body.screen-red-theme .college-red-page .department-section-graphic-list a:hover .department-section-copy b,
+body.screen-red-theme .college-red-page .department-section-media-grid a:hover b,
+body.screen-red-theme .college-red-page .department-section-slide:hover strong,
+body.screen-red-theme .college-red-page .article-media-grid a:hover strong,
+body.screen-red-theme .college-red-page .department-column-list a:hover strong,
+body.screen-red-theme .college-red-page .inner-news-list a:hover strong,
+body.screen-red-theme .college-red-page .article-graphic-list a:hover .article-graphic-title,
+.college-red-page.screen-red-theme .department-feature-news:hover h3,
+.college-red-page.screen-red-theme .department-news-list a:hover strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list a:hover strong,
+.college-red-page.screen-red-theme .department-news-list a:hover b,
+.college-red-page.screen-red-theme .department-life .department-plain-list a:hover b,
+.college-red-page.screen-red-theme .department-plain-list a:hover b,
+.college-red-page.screen-red-theme .department-notice-panel ul a:hover b,
+.college-red-page.screen-red-theme .department-section-graphic-list a:hover .department-section-copy b,
+.college-red-page.screen-red-theme .department-section-media-grid a:hover b,
+.college-red-page.screen-red-theme .department-section-slide:hover strong,
+.college-red-page.screen-red-theme .article-media-grid a:hover strong,
+.college-red-page.screen-red-theme .department-column-list a:hover strong,
+.college-red-page.screen-red-theme .inner-news-list a:hover strong,
+.college-red-page.screen-red-theme .article-graphic-list a:hover .article-graphic-title,
+.college-red-page .department-feature-news:hover h3,
+.college-red-page .department-news-list a:hover strong,
+.college-red-page .department-news-layout .department-news-list a:hover strong,
+.college-red-page .department-news-list a:hover b,
+.college-red-page .department-life .department-plain-list a:hover b,
+.college-red-page .department-plain-list a:hover b,
+.college-red-page .department-notice-panel ul a:hover b,
+.college-red-page .department-section-graphic-list a:hover .department-section-copy b,
+.college-red-page .department-section-media-grid a:hover b,
+.college-red-page .department-section-slide:hover strong,
+.college-red-page .article-media-grid a:hover strong,
+.college-red-page .department-column-list a:hover strong,
+.college-red-page .inner-news-list a:hover strong,
+.college-red-page .article-graphic-list a:hover .article-graphic-title {
+  color: #b51624;
+  transform: translateX(6px);
+}
+
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list a:hover strong,
+body.screen-red-theme .college-red-page .department-news-layout .department-news-list a:focus-visible strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list a:hover strong,
+.college-red-page.screen-red-theme .department-news-layout .department-news-list a:focus-visible strong,
+.college-red-page .department-news-layout .department-news-list a:hover strong,
+.college-red-page .department-news-layout .department-news-list a:focus-visible strong {
+  color: #b51624;
+  transform: translateX(6px);
+}
+
+body.screen-red-theme .college-red-page .department-section-title h2,
+.college-red-page.screen-red-theme .department-section-title h2,
+.college-red-page .department-section-title h2,
+.college-red-page.college-blue-page .department-section-title h2 {
+  color: var(--hx-red);
+  font-family: "FZDBSJW--GB1-0", "FZDaBiaoSong-B06S", "FZDaBiaoSong-B06", "方正大标宋简体", "方正大标宋_GBK", "FZDaBiao-S15S", "STZhongsong", "Songti SC", SimSun, serif;
+  font-size: var(--screen-red-section-title-size);
+  font-weight: 800;
+  line-height: 1.12;
+}
+
 body.screen-red-theme .screen-shell .media-report-list a {
   grid-template-columns: 110px minmax(0, 1fr);
 }
@@ -4904,8 +5069,13 @@ body.screen-red-theme .screen-qr-image {
 }
 
 .department-news-list a {
-  display: block;
-  padding: 11px 0 14px;
+  display: flex;
+  flex-direction: column;
+  align-items: flex-start;
+  justify-content: center;
+  gap: 8px;
+  min-height: 80px;
+  padding: 15px 0;
 }
 
 .department-news-list strong {
@@ -4925,6 +5095,17 @@ body.screen-red-theme .screen-qr-image {
   transform: translateX(6px);
 }
 
+.college-red-page .department-news-layout .department-news-list a {
+  justify-content: center;
+  gap: 8px;
+  min-height: 80px;
+}
+
+.college-red-page .department-news-layout .department-news-list time {
+  position: static;
+  top: auto;
+}
+
 .department-news-list p {
   height: 24px;
   margin: 7px 0 4px;
@@ -5519,12 +5700,19 @@ body.screen-red-theme .screen-qr-image {
   }
 
   .college-blue-page .department-news-layout .department-news-list a {
-    padding: 8px 0 9px;
+    display: flex;
+    flex-direction: column;
+    align-items: flex-start;
+    justify-content: center;
+    gap: 8px;
+    min-height: 80px;
+    padding: 15px 0;
   }
 
   .college-blue-page .department-news-layout .department-news-list strong {
     font-size: 16px;
     line-height: 1.32;
+    text-align: left;
   }
 
   .college-blue-page .department-news-layout .department-news-list p {
@@ -5534,8 +5722,8 @@ body.screen-red-theme .screen-qr-image {
   }
 
   .college-blue-page .department-news-layout .department-news-list time {
-    position: relative;
-    top: -6px;
+    position: static;
+    top: auto;
   }
 
   .college-blue-page .department-life .department-plain-list {
@@ -6300,8 +6488,64 @@ body.screen-red-theme .screen-qr-image {
 }
 
 .article-body img {
-  height: auto;
-  margin: 18px auto;
+  display: block;
+  width: 100% !important;
+  max-width: 100% !important;
+  height: auto !important;
+  margin: 18px 0;
+  box-sizing: border-box;
+}
+
+.article-body .ck-content {
+  width: 100%;
+  margin: 0;
+  padding: 0;
+}
+
+.article-body .ck-content .image,
+.article-body .ck-content figure.image {
+  display: block !important;
+  width: 100% !important;
+  max-width: 100% !important;
+  margin: 18px 0 !important;
+  padding: 0 !important;
+  text-align: left !important;
+}
+
+.article-body .ck-content .image img,
+.article-body .ck-content img {
+  display: block !important;
+  width: 100% !important;
+  max-width: 100% !important;
+  height: auto !important;
+  margin: 18px 0 !important;
+  box-sizing: border-box;
+}
+
+.article-body p:has(img),
+.article-body div:has(img),
+.article-body figure:has(img) {
+  text-align: left !important;
+  text-indent: 0 !important;
+}
+
+.article-body figure:has(img) {
+  width: 100% !important;
+  max-width: 100% !important;
+  margin: 18px 0;
+  text-align: left !important;
+}
+
+.article-body figure.image {
+  display: block !important;
+  width: 100% !important;
+  max-width: 100% !important;
+  margin: 18px 0;
+  text-align: left !important;
+}
+
+.article-body figure img {
+  margin: 0;
 }
 
 .article-body figure.media,
@@ -8207,6 +8451,9 @@ body.drawer-open .drawer-head {
     grid-template-columns: 1fr;
   }
 
+  .college-blue-page .department-feature-grid {
+    grid-template-columns: 1fr;
+  }
 
   .department-news-list p,
   .department-major-grid em {

+ 1 - 1
WebRoot/web/upload/ffkj-template/school-details.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260628-pdf-viewer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260703-article-image-fit">
 </head>
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell' : ''}">

+ 21 - 0
local-run/bin/start-full-local.sh

@@ -2099,6 +2099,26 @@ ensure_zq_local_ffkj_edu_college_site() {
 	log "教育学院网站已补齐。"
 }
 
+ensure_zq_local_ffkj_vehicle_college_site() {
+	log "检查车辆与自动化学院网站..."
+	local repair_sql="${PROJECT_ROOT}/local-run/repairs/2026-06-23-college-blue-site-factory.sql"
+	if [[ -f "${repair_sql}" ]]; then
+		local_mysql_exec spaceappsv1 <<SQL
+SET @site_id_code := 'local_ffkj_vehicle_college_site';
+SET @site_name := '车辆与自动化学院';
+SET @site_domain := 'ffkj-vehicle.localhost;';
+SET @site_theme_color := '#1b7ba3';
+SET @site_logo := '/main/ffkj-portal/assets/official/logo.png';
+SET @site_template_config := 'ffkjcollegered1';
+SET @site_base_website_id_code := 'local_ffkj_dept_red_site';
+SET @site_reference_name := '教育学院';
+SET @site_article_source := '车辆与自动化学院二级站示例数据';
+source ${repair_sql}
+SQL
+	fi
+	log "车辆与自动化学院网站已补齐。"
+}
+
 ensure_zq_local_demo_content() {
 	log "检查本地官网栏目与内容..."
 	local_mysql_exec spaceappsv1 <<'SQL'
@@ -3197,6 +3217,7 @@ main() {
 		ensure_zq_local_ffkj_college_blue_footer_links
 		ensure_zq_local_ffkj_college_red_template
 		ensure_zq_local_ffkj_edu_college_site
+		ensure_zq_local_ffkj_vehicle_college_site
 		ensure_zq_local_demo_content
 		ensure_zq_local_website_components
 		ensure_zq_local_ffkj_portal_components

+ 11 - 4
local-run/repairs/2026-06-23-college-blue-site-factory.sql

@@ -6,12 +6,15 @@ SET @site_logo := COALESCE(@site_logo, '/main/ffkj-portal/assets/departments/edu
 SET @site_desc := COALESCE(@site_desc, CONCAT(@site_name, '二级网站。'));
 SET @site_keywords := COALESCE(@site_keywords, CONCAT('广州华夏职业学院,', @site_name));
 SET @site_article_source := COALESCE(@site_article_source, CONCAT(@site_name, '二级站示例数据'));
+SET @site_template_config := COALESCE(@site_template_config, 'ffkjcollegeblue1');
+SET @site_base_website_id_code := COALESCE(@site_base_website_id_code, 'local_ffkj_dept_blue_site');
+SET @site_reference_name := COALESCE(@site_reference_name, '教育学院');
 
 SET @blue_template_id := (
-  SELECT wtid FROM website_template WHERE config = 'ffkjcollegeblue1' ORDER BY wtid LIMIT 1
+  SELECT wtid FROM website_template WHERE config = @site_template_config ORDER BY wtid LIMIT 1
 );
 SET @base_website_id := (
-  SELECT websiteid FROM website WHERE id_code = 'local_ffkj_dept_blue_site' ORDER BY websiteid LIMIT 1
+  SELECT websiteid FROM website WHERE id_code = @site_base_website_id_code ORDER BY websiteid LIMIT 1
 );
 SET @school_website_id := (
   SELECT websiteid FROM website WHERE id_code = 'local_ffkj_school_site' ORDER BY websiteid LIMIT 1
@@ -299,9 +302,13 @@ SELECT
   10000,
   10010,
   wn.navigationid,
-  s.title,
+  CASE
+    WHEN s.ajtcode = 10020 THEN REPLACE(s.title, @site_reference_name, @site_name)
+    WHEN REPLACE(s.title, @site_reference_name, @site_name) LIKE '%【初始】' THEN REPLACE(s.title, @site_reference_name, @site_name)
+    ELSE CONCAT(SUBSTRING(REPLACE(s.title, @site_reference_name, @site_name), 1, 252), '【初始】')
+  END,
   s.ajtcode,
-  s.summary,
+  REPLACE(s.summary, @site_reference_name, @site_name),
   @site_article_source,
   s.thumbnail,
   0,

+ 146 - 9
src/space/apps/moudules/website/services/ArticleService.java

@@ -2,9 +2,11 @@ package space.apps.moudules.website.services;
 
 import java.io.File;
 import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
 import java.sql.Timestamp;
 import java.text.ParseException;
 import java.util.ArrayList;
+import java.util.Base64;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.LinkedHashMap;
@@ -71,6 +73,7 @@ public class ArticleService extends BaseTransaction {
     private static final String PREVIEW_DESC_KEY = "desc";
     private static final String PREVIEW_NAVIGATION_ID_KEY = "navigationid";
     private static final String PREVIEW_WEBSITE_ID_KEY = "websiteid";
+    private static final String PREVIEW_RELEASE_TIME_KEY = "releaseTime";
     private static final Pattern LOCAL_UPLOAD_ABSOLUTE_URL_PATTERN = Pattern.compile(
             "(?i)(?:https?:)?//(?:ht\\.gzhxtc\\.edu\\.cn|localhost|127\\.0\\.0\\.1|ffkj-[a-z0-9-]+\\.localhost)(?::\\d+)?(/web/upload/[^\"'<>\\s]*)");
     private static final Long NAVIGATION_STYLE_GRAPHIC_LIST = 10010L;
@@ -97,6 +100,7 @@ public class ArticleService extends BaseTransaction {
         replaceHtmlLink(doc, domain);
 
         imgSrcConverLazyloadSrc(doc);
+        normalizePreviewArticleImages(doc);
 
         String html = doc.select("body").eq(0).html();
         String articleTemplate = FileUtil.readFile(
@@ -991,12 +995,20 @@ public class ArticleService extends BaseTransaction {
         setRequestAttribute("navAllName", navAllName);
 
         setRequestAttribute("copyNav", GsonUtil.toJson(articleCopyList));
+        WebsiteNavigation navigation = getWebsiteNavigationById(gdba, article.getNavigationid());
+        String articleContentForPreview;
         try {
-            setRequestAttribute("body", FileUtil.readFile(getWebRootPath() + article.getContent()));
+            articleContentForPreview = FileUtil.readFile(getWebRootPath() + article.getContent());
+            setRequestAttribute("body", articleContentForPreview);
         } catch (Exception e) {
-            setRequestAttribute("body", "内容文件不存在或已被删除");
+            articleContentForPreview = "内容文件不存在或已被删除";
+            setRequestAttribute("body", articleContentForPreview);
         }
 
+        setRequestAttribute("infoPreviewHtmlB64", Base64.getEncoder().encodeToString(
+                buildArticleInfoPreviewHtml(article, website, navigation, articleContentForPreview)
+                        .getBytes(StandardCharsets.UTF_8)));
+
         try {
             setRequestAttribute("editBody", FileUtil.readFile(getWebRootPath() + article.getEditContent()));
         } catch (Exception e) {
@@ -1369,6 +1381,66 @@ public class ArticleService extends BaseTransaction {
         write(buildArticlePreviewHtml(null, null, FileUtil.readFile(previewFile.getPath())));
     }
 
+    /**
+     * 文章信息弹窗内容区 PC 预览(与三端预览 PC 端同源)。
+     */
+    public void infoPreviewView() throws Exception {
+
+        getResponse().setContentType("text/html;charset=UTF-8");
+
+        Long articleid = getParameterToLong("articleid");
+        if (articleid == null || articleid <= 0) {
+            writePreviewUnavailable();
+            return;
+        }
+
+        GeneralDBAccess gdba = getGdbaInstance();
+        Article article = new Article();
+        article.setArticleid(articleid);
+        gdba.selectById(article);
+
+        Website website = new Website();
+        website.setWebsiteid(article.getWebsiteid());
+        gdba.selectById(website);
+
+        WebsiteNavigation navigation = getWebsiteNavigationById(gdba, article.getNavigationid());
+
+        String articleContent;
+        try {
+            articleContent = FileUtil.readFile(getWebRootPath() + article.getContent());
+        } catch (Exception e) {
+            writePreviewUnavailable();
+            return;
+        }
+
+        write(buildArticleInfoPreviewHtml(article, website, navigation, articleContent));
+    }
+
+    private String buildArticleInfoPreviewHtml(Article article, Website website, WebsiteNavigation navigation,
+            String articleContent) {
+        Map<String, Object> previewInfo = new HashMap<String, Object>();
+        previewInfo.put(PREVIEW_TITLE_KEY, article.getTitle());
+        previewInfo.put(PREVIEW_SOURCE_KEY, firstNotBlank(article.getSource(), website.getName()));
+        previewInfo.put(PREVIEW_RELEASE_TIME_KEY, formatArticleReleaseTime(article.getReleaseTime()));
+        previewInfo.put(PREVIEW_NAVIGATION_ID_KEY,
+                article.getNavigationid() == null ? "" : article.getNavigationid().toString());
+        previewInfo.put(PREVIEW_WEBSITE_ID_KEY,
+                article.getWebsiteid() == null ? "" : article.getWebsiteid().toString());
+        return buildArticlePreviewHtml(previewInfo, navigation, website, articleContent);
+    }
+
+    private String formatArticleReleaseTime(Timestamp releaseTime) {
+        if (releaseTime == null) {
+            return DateTimeUtil.getNowDate("yyyy-MM-dd HH:mm");
+        }
+        try {
+            String formatted = DateTimeUtil.formatDateYMdHms(releaseTime);
+            return StringUtil.isNull(formatted) ? DateTimeUtil.getNowDate("yyyy-MM-dd HH:mm") : formatted;
+        } catch (ParseException e) {
+            return DateTimeUtil.getNowDate("yyyy-MM-dd HH:mm");
+        }
+    }
+
     private Map<String, Object> buildPreviewInfo(String runPath, WebsiteNavigation navigation, String title,
             String source, String desc) {
         Map<String, Object> previewInfo = new HashMap<String, Object>();
@@ -1413,23 +1485,31 @@ public class ArticleService extends BaseTransaction {
         String title = firstNotBlank(previewInfo == null ? null : previewInfo.get(PREVIEW_TITLE_KEY), "正文预览");
         String source = firstNotBlank(previewInfo == null ? null : previewInfo.get(PREVIEW_SOURCE_KEY),
                 website == null ? "" : website.getName());
-        String releaseTime = DateTimeUtil.getNowDate("yyyy-MM-dd HH:mm");
+        String releaseTime = firstNotBlank(previewInfo == null ? null : previewInfo.get(PREVIEW_RELEASE_TIME_KEY),
+                DateTimeUtil.getNowDate("yyyy-MM-dd HH:mm"));
         String content = restorePreviewLazyImages(firstNotBlank(articleContent, ""));
 
         StringBuilder html = new StringBuilder();
         html.append("<!DOCTYPE html><html><head><meta charset=\"UTF-8\">")
                 .append("<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">")
-                .append("<link rel=\"stylesheet\" href=\"/main/ffkj-portal/portal-source.css\">")
-                .append("<link rel=\"stylesheet\" href=\"/apps/space/css/space.editor.css\">")
+                .append("<link rel=\"stylesheet\" href=\"/main/ffkj-portal/portal-source.css?v=20260703-article-image-fit-v2\">")
+                .append("<link rel=\"stylesheet\" href=\"/apps/space/css/space.editor.css?v=20260703-article-image-fit-v2\">")
                 .append("<style>")
-                .append("body{margin:0;background:#f5f7fa;color:#1f2937;font-family:Arial,'Microsoft YaHei',sans-serif;}")
-                .append(".preview-article{box-sizing:border-box;max-width:900px;margin:0 auto;padding:36px 32px;background:#fff;min-height:100vh;}")
+                .append("html{height:100%;overflow:hidden;}")
+                .append("body{margin:0;height:100%;overflow-x:hidden;overflow-y:auto;background:#f5f7fa;color:#1f2937;font-family:Arial,'Microsoft YaHei',sans-serif;}")
+                .append(".preview-article{box-sizing:border-box;max-width:900px;margin:0 auto;padding:36px 32px;background:#fff;min-height:100%;}")
+                .append(".preview-article.article-panel{padding:36px 32px!important;}")
                 .append(".preview-article-header{margin:0 0 22px;padding:0 0 18px;border-bottom:3px solid #a40011;}")
                 .append(".preview-article-title{margin:0;color:#a40011;font-size:30px;line-height:1.35;font-weight:700;letter-spacing:0;}")
                 .append(".preview-article-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px;color:#666;font-size:14px;line-height:1.5;}")
                 .append(".preview-article-body{font-size:16px;line-height:1.9;color:#333;}")
-                .append(".preview-article-body img{max-width:100%;height:auto;display:block;margin:0 auto;}")
-                .append(".preview-article-body video,.preview-article-body iframe,.preview-article-body object,.preview-article-body embed{max-width:100%;}")
+                .append(".preview-article-body .ck-content,#jquery-lazyload-container.ck-content{width:100%!important;margin:0!important;padding:0!important;}")
+                .append(".preview-article-body img,.article-body img,.preview-article-body .ck-content img,.article-body .ck-content img,.preview-article-body figure.image img,.article-body figure.image img,.preview-article-body .ck-content .image img,.article-body .ck-content .image img{display:block;width:100%!important;max-width:100%!important;height:auto!important;margin:18px 0!important;box-sizing:border-box;}")
+                .append(".preview-article-body figure.image,.article-body figure.image,.preview-article-body figure:has(img),.article-body figure:has(img),.preview-article-body .ck-content .image,.article-body .ck-content .image,.preview-article-body .ck-content figure,.article-body .ck-content figure{display:block!important;width:100%!important;max-width:100%!important;margin:18px 0!important;padding:0!important;text-align:left!important;}")
+                .append(".preview-article-body p:has(img),.preview-article-body div:has(img),.preview-article-body figure:has(img),")
+                .append(".article-body p:has(img),.article-body div:has(img),.article-body figure:has(img),")
+                .append(".preview-article-body .ck-content p:has(img),.preview-article-body .ck-content div:has(img),.article-body .ck-content p:has(img),.article-body .ck-content div:has(img){text-align:left!important;text-indent:0!important;}")
+                .append(".preview-article-body video,.preview-article-body iframe,.preview-article-body object,.preview-article-body embed,.article-body video,.article-body iframe,.article-body object,.article-body embed{display:block;width:100%!important;max-width:100%!important;margin:18px 0!important;}")
                 .append(".preview-article-body figure.space-editor-pdf-viewer{max-width:100%;}")
                 .append(".preview-article-body iframe.space-editor-pdf-frame{width:100%;height:min(78vh,720px);min-height:480px;}")
                 .append("@media (max-width: 700px){.preview-article{padding:24px 18px;}.preview-article-title{font-size:24px;}.preview-article-body iframe.space-editor-pdf-frame{min-height:420px;}}")
@@ -1446,6 +1526,7 @@ public class ArticleService extends BaseTransaction {
                 .append("<div class=\"preview-article-body article-body\" data-article-preview=\"true\">")
                 .append(content)
                 .append("</div></article>")
+                .append("<script>(function(){var root=document.querySelector('.article-body,[data-article-preview]');if(!root){return;}function normalizeNode(node){if(!node){return;}node.style.setProperty('display','block','important');node.style.setProperty('width','100%','important');node.style.setProperty('max-width','100%','important');node.style.setProperty('margin','18px 0','important');node.style.setProperty('padding','0','important');node.style.setProperty('text-align','left','important');}root.querySelectorAll('.ck-content .image,figure.image,figure').forEach(function(fig){if(!fig.querySelector('img')){return;}normalizeNode(fig);});root.querySelectorAll('img').forEach(function(img){img.style.setProperty('display','block','important');img.style.setProperty('width','100%','important');img.style.setProperty('max-width','100%','important');img.style.setProperty('height','auto','important');img.style.setProperty('margin','18px 0','important');var parent=img.closest('p,div,figure,.image');if(parent){parent.style.setProperty('text-align','left','important');parent.style.setProperty('text-indent','0','important');}});})();</script>")
                 .append("</body></html>");
         return html.toString();
     }
@@ -1465,10 +1546,65 @@ public class ArticleService extends BaseTransaction {
                 image.attr("src", image.attr("data-original"));
             }
         }
+        normalizePreviewArticleImages(doc);
         doc.select("script").remove();
+        unwrapArticleContentContainer(doc);
         return doc.body().html();
     }
 
+    private void unwrapArticleContentContainer(Document doc) {
+        Elements wrappers = doc.select("#jquery-lazyload-container, div.ck-content");
+        for (Element wrapper : wrappers) {
+            wrapper.unwrap();
+        }
+    }
+
+    private void normalizePreviewArticleImages(Document doc) {
+        Elements figures = doc.select("figure.image, figure.image_resized, figure:has(img), .ck-content .image");
+        for (Element figure : figures) {
+            figure.removeAttr("width");
+            figure.removeAttr("height");
+            figure.attr("style", "display:block;width:100%;max-width:100%;margin:18px 0;text-align:left;");
+        }
+
+        Elements images = doc.select("img");
+        for (Element image : images) {
+            image.removeAttr("width");
+            image.removeAttr("height");
+            image.removeAttr("hspace");
+            image.removeAttr("vspace");
+            image.removeAttr("border");
+            image.attr("style", "display:block;width:100%;max-width:100%;height:auto;margin:18px 0;box-sizing:border-box;");
+        }
+
+        Elements mediaBlocks = doc.select("p:has(img), div:has(img), figure:has(img)");
+        for (Element block : mediaBlocks) {
+            String style = block.attr("style");
+            style = stripArticleImageStyleProperty(style, "width");
+            style = stripArticleImageStyleProperty(style, "max-width");
+            style = stripArticleImageStyleProperty(style, "margin");
+            style = stripArticleImageStyleProperty(style, "text-align");
+            style = stripArticleImageStyleProperty(style, "text-indent");
+            block.attr("style", joinArticleImageStyle(style,
+                    "text-align:left;text-indent:0;"));
+        }
+    }
+
+    private String stripArticleImageStyleProperty(String style, String property) {
+        if (StringUtil.isNull(style) || StringUtil.isNull(property)) {
+            return style == null ? "" : style;
+        }
+        return style.replaceAll("(?i)" + Pattern.quote(property) + "\\s*:[^;\"']*(;|$)", "$1").trim();
+    }
+
+    private String joinArticleImageStyle(String baseStyle, String appendStyle) {
+        String normalizedBase = baseStyle == null ? "" : baseStyle.trim();
+        if (normalizedBase.length() > 0 && !normalizedBase.endsWith(";")) {
+            normalizedBase += ";";
+        }
+        return normalizedBase + appendStyle;
+    }
+
     private String normalizeLocalUploadResourceUrl(String content) {
         if (StringUtil.isNull(content) || content.indexOf("/web/upload/") < 0) {
             return content;
@@ -1605,6 +1741,7 @@ public class ArticleService extends BaseTransaction {
         replaceAllHtmlLink(hrefEles, "href", domain);
 
         imgSrcConverLazyloadSrc(doc);
+        normalizePreviewArticleImages(doc);
 
         String html = doc.select("body").eq(0).html();
         String articleTemplate = html;