Browse Source

修复车辆学院模板多项功能缺陷

修复 1024-1200px 导航溢出及右侧二级菜单越界,移动导航补齐 inert、aria-hidden 和开合标签。

站内搜索限定车辆学院本站文章,补充搜索分页,修复无关键词时的站点上下文与页面标题。

补充 favicon、单页面 H1、外链 noopener、有效备案链接,并让轮播和学院动态遵循减少动态效果设置。

Validation:
- Chrome/Firefox 下 6 类页面 x 8 档宽度共 96 次检查全部通过
- 无横向溢出、缺图、脚本错误或资源请求错误
- 100 篇本站文章链接全部返回 200
- 搜索结果全部来自本站,分页第 2 页正常
- 首页与各内容页均为单一 H1
- 移动导航、轮播键盘焦点和 reduced-motion 均验证通过
非繁 3 weeks ago
parent
commit
fb5dacf892

+ 3 - 6
WebRoot/main/ffkj-portal/vehicle-college.css

@@ -40,6 +40,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-nav-item.has-children>.vc-nav-link::after{content:"";width:6px;height:6px;margin:-4px 0 0 7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
 .vc-subnav{position:absolute;top:100%;left:0;z-index:90;min-width:160px;padding:6px 0;background:#fff;border-radius:0 0 8px 8px;box-shadow:0 14px 30px rgba(7,34,62,.2);opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s}
 .vc-nav-item:hover .vc-subnav,.vc-nav-item:focus-within .vc-subnav{opacity:1;visibility:visible;transform:translateY(0)}
+.vc-nav-item:last-child>.vc-subnav{left:auto;right:0}
 .vc-subnav a{display:block;padding:9px 17px;color:var(--vc-ink);font-size:13px;white-space:nowrap}
 .vc-subnav a:hover{color:var(--vc-blue);background:var(--vc-mist)}
 .vc-nav-toggle{display:none;width:42px;height:40px;border:1px solid rgba(255,255,255,.36);border-radius:7px;background:none;align-items:center;justify-content:center;flex-direction:column;gap:5px}
@@ -204,7 +205,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-page-hero::after{position:absolute;right:-80px;top:-100px;width:340px;height:340px;border:1px solid rgba(255,255,255,.12);border-radius:50%;content:""}
 .vc-page-hero-inner{position:relative;z-index:1;width:min(1200px,calc(100% - 40px));margin:0 auto;padding:42px 0}
 .vc-page-hero small{color:#C7DFEF;font-size:11px;font-weight:600;letter-spacing:.2em}
-.vc-page-hero h1{margin:10px 0 7px;font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:clamp(30px,3.2vw,42px);font-weight:900;line-height:1.35}
+.vc-page-hero h1,.vc-page-hero-title{margin:10px 0 7px;font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:clamp(30px,3.2vw,42px);font-weight:900;line-height:1.35}
 .vc-page-hero p{max-width:680px;color:#D5E6F2;font-size:13px;line-height:1.85}
 .vc-breadcrumb{background:#F5F9FB;border-bottom:1px solid #E3EDF3;color:#718697;font-size:12px}
 .vc-breadcrumb .vc-wrap{min-height:44px;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
@@ -290,11 +291,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-search-form input:focus{border-color:var(--vc-blue);box-shadow:0 0 0 3px rgba(10,86,139,.1)}
 .vc-search-form button{height:44px;min-width:92px;border:0;border-radius:4px;background:var(--vc-blue);color:#fff;font-weight:600}
 
-@media (max-width:1100px){
-  .vc-nav-link{padding:0 8px;font-size:13px}
-  .vc-brand-name{font-size:19px}
-}
-@media (max-width:980px){
+@media (max-width:1200px){
   .vc-nav-toggle{display:flex}
   .vc-nav{position:fixed;top:0;right:0;bottom:0;z-index:85;width:min(82vw,340px);height:100dvh;display:block;padding:72px 18px 24px;background:var(--vc-deep);box-shadow:-12px 0 30px rgba(3,20,36,.28);overflow-y:auto;transform:translateX(100%);transition:transform .28s}
   .vc-nav.is-open{transform:translateX(0)}

+ 6 - 5
WebRoot/web/upload/ffkj-template/vehicle-catalog.jsp

@@ -8,26 +8,27 @@
 <head>
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
-	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-3">
+	<title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
+	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
 	<main>
 		<section class="vc-page-hero" style="--vc-page-bg:url('${vehiclePageImage}')">
-			<div class="vc-page-hero-inner"><small>COLUMN · 目录</small><h1>${navigation.name}</h1><p>${empty navigation.desc ? '选择下方栏目查看具体内容。' : navigation.desc}</p></div>
+			<div class="vc-page-hero-inner"><small>COLUMN · 目录</small><div class="vc-page-hero-title">${navigation.name}</div><p>${empty navigation.desc ? '选择下方栏目查看具体内容。' : navigation.desc}</p></div>
 		</section>
 		<div class="vc-breadcrumb"><div class="vc-wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
 		<section class="vc-list-section">
 			<div class="vc-wrap vc-list-layout">
 				<aside class="vc-sidebar">
 					<div class="vc-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty vehicleSidebarTitle ? '学院栏目' : vehicleSidebarTitle}</h2></div>
-					<nav class="vc-sidebar-nav"><c:choose><c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when><c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:if></c:forEach></c:otherwise></c:choose></nav>
+					<nav class="vc-sidebar-nav"><c:choose><c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when><c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise></c:choose></nav>
 				</aside>
 				<article class="vc-list-panel">
 					<div class="vc-list-head"><h1>${navigation.name}</h1><span>${empty navigation.nameAssistant ? 'Columns' : navigation.nameAssistant}</span></div>
 					<c:choose>
-						<c:when test="${not empty childrenNavList}"><div class="vc-catalog-grid"><c:forEach items="${childrenNavList}" var="item"><a class="vc-catalog-card" href="${item.href}" target="${item.target}"><strong>${item.name}</strong><p>${empty item.desc ? '进入该栏目查看更多内容。' : item.desc}</p></a></c:forEach></div></c:when>
+						<c:when test="${not empty childrenNavList}"><div class="vc-catalog-grid"><c:forEach items="${childrenNavList}" var="item"><a class="vc-catalog-card" href="${item.href}" target="${item.target}" rel="noopener"><strong>${item.name}</strong><p>${empty item.desc ? '进入该栏目查看更多内容。' : item.desc}</p></a></c:forEach></div></c:when>
 						<c:otherwise><div class="vc-empty" style="margin-top:22px">当前目录暂无下级栏目。</div></c:otherwise>
 					</c:choose>
 				</article>

+ 6 - 5
WebRoot/web/upload/ffkj-template/vehicle-details.jsp

@@ -9,8 +9,9 @@
 	<meta charset="UTF-8">
 	<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/vehicle-college.css?v=20261105-home-tuning-3">
+	<title>${articleTitle}_${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
+	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
@@ -18,7 +19,7 @@
 		<section class="vc-page-hero" style="--vc-page-bg:url('${vehiclePageImage}')">
 			<div class="vc-page-hero-inner">
 				<small>ARTICLE · 正文</small>
-				<h1>${navigation.name}</h1>
+				<div class="vc-page-hero-title">${navigation.name}</div>
 				<p>学院资讯与教学实践记录</p>
 			</div>
 		</section>
@@ -36,8 +37,8 @@
 						<div class="vc-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty vehicleSidebarTitle ? '学院栏目' : vehicleSidebarTitle}</h2></div>
 						<nav class="vc-sidebar-nav" aria-label="${vehicleSidebarTitle}导航">
 							<c:choose>
-								<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
-								<c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:if></c:forEach></c:otherwise>
+								<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
+								<c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise>
 							</c:choose>
 						</nav>
 						<div class="vc-detail-aside-note">内容由 ZQ 网站后台统一维护,栏目归属、发布时间和正文来源均保留在内容系统中。</div>

+ 3 - 2
WebRoot/web/upload/ffkj-template/vehicle-footer.jsp

@@ -18,7 +18,7 @@
 		<div>
 			<h4>快速入口</h4>
 			<div class="vc-footer-links">
-				<c:forEach items="${footerLinksNmv.articleList}" var="item"><a href="${item.url}" target="${item.target}">${item.title}</a></c:forEach>
+				<c:forEach items="${footerLinksNmv.articleList}" var="item"><a href="${item.url}" target="${item.target}" rel="noopener">${item.title}</a></c:forEach>
 				<c:if test="${empty footerLinksNmv.articleList}">
 					<a href="/xueyuangaikuang/">学院介绍</a><a href="/shiziduiwu/">师生风采</a><a href="/jiaoyujiaoxue/">产教训赛</a><a href="/zhaoshengjiuye1/">招生就业</a>
 				</c:if>
@@ -34,7 +34,8 @@
 	<div class="vc-footer-bottom">
 		<div class="vc-wrap">
 			<span>${empty footerCopyrightText ? 'Copyright © 广州华夏职业学院 车辆与自动化学院' : footerCopyrightText}</span>
-			<c:if test="${not empty footerBeianText}">&nbsp;|&nbsp;<a href="${empty footerBeianUrl ? 'https://beian.miit.gov.cn/' : footerBeianUrl}" target="_blank" rel="noopener">${footerBeianText}</a></c:if>
+			<c:set var="vehicleBeianUrl" value="${empty footerBeianUrl or footerBeianUrl eq 'javascript:void(0);' ? 'https://beian.miit.gov.cn/' : footerBeianUrl}"/>
+			<c:if test="${not empty footerBeianText}">&nbsp;|&nbsp;<a href="${vehicleBeianUrl}" target="_blank" rel="noopener">${footerBeianText}</a></c:if>
 		</div>
 	</div>
 </footer>

+ 16 - 4
WebRoot/web/upload/ffkj-template/vehicle-header.jsp

@@ -4,7 +4,7 @@
 <div class="vc-topbar">
 	<div class="vc-wrap">
 		<div class="vc-topbar-links">
-			<a href="${empty schoolHomeUrl ? '/' : schoolHomeUrl}" target="_self">${empty schoolHomeName ? '学校首页' : schoolHomeName}</a>
+			<a href="${empty schoolHomeUrl ? '/' : schoolHomeUrl}" target="_self" rel="noopener">${empty schoolHomeName ? '学校首页' : schoolHomeName}</a>
 			<a href="${empty siteHomeUrl ? '/' : siteHomeUrl}">本站首页</a>
 			<a href="/search">站内搜索</a>
 		</div>
@@ -34,10 +34,10 @@
 			<c:forEach items="${navList}" var="item">
 				<c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}">
 					<div class="vc-nav-item ${not empty item.children ? 'has-children' : ''}">
-						<a class="vc-nav-link ${item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a>
+						<a class="vc-nav-link ${item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a>
 						<c:if test="${not empty item.children}">
 							<div class="vc-subnav">
-								<c:forEach items="${item.children}" var="child"><a href="${child.href}" target="${child.target}">${child.name}</a></c:forEach>
+								<c:forEach items="${item.children}" var="child"><a href="${child.href}" target="${child.target}" rel="noopener">${child.name}</a></c:forEach>
 							</div>
 						</c:if>
 					</div>
@@ -53,18 +53,28 @@
   var nav = document.querySelector('.vc-nav');
   var mask = document.querySelector('.vc-menu-mask');
   if (!toggle || !nav || !mask) return;
+  var mobileBreakpoint = 1200;
+  function syncNavState() {
+    var mobile = window.innerWidth <= mobileBreakpoint;
+    var offscreen = mobile && !nav.classList.contains('is-open');
+    nav.inert = offscreen;
+    if (mobile) nav.setAttribute('aria-hidden', offscreen ? 'true' : 'false');
+    else nav.removeAttribute('aria-hidden');
+  }
   function setOpen(open) {
     nav.classList.toggle('is-open', open);
     mask.classList.toggle('is-open', open);
     toggle.classList.toggle('is-open', open);
     toggle.setAttribute('aria-expanded', open ? 'true' : 'false');
+    toggle.setAttribute('aria-label', open ? '关闭导航' : '打开导航');
     document.documentElement.style.overflow = open ? 'hidden' : '';
+    syncNavState();
   }
   toggle.addEventListener('click', function () { setOpen(!nav.classList.contains('is-open')); });
   mask.addEventListener('click', function () { setOpen(false); });
   Array.prototype.forEach.call(nav.querySelectorAll('.vc-nav-item.has-children > .vc-nav-link'), function (link) {
     link.addEventListener('click', function (event) {
-      if (window.innerWidth <= 980) {
+      if (window.innerWidth <= mobileBreakpoint) {
         event.preventDefault();
         link.parentNode.classList.toggle('is-open');
       }
@@ -74,5 +84,7 @@
     link.addEventListener('click', function () { setOpen(false); });
   });
   document.addEventListener('keydown', function (event) { if (event.key === 'Escape') setOpen(false); });
+  window.addEventListener('resize', syncNavState);
+  syncNavState();
 })();
 </script>

+ 19 - 13
WebRoot/web/upload/ffkj-template/vehicle-index.jsp

@@ -40,21 +40,23 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="keywords" content="${website.seoKeywords}">
 	<meta name="description" content="${website.seoDescription}">
-	<title>${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-3">
+	<title>${empty website.seoTitle ? website.name : website.seoTitle}</title>
+	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
 	<main>
+		<h1 class="vc-sr-only">${website.name}</h1>
 		<section class="vc-hero" aria-label="首页焦点图">
 			<div class="vc-hero-track">
 				<c:forEach items="${collegeHeroNmv.articleList}" var="slide" varStatus="vs">
-					<a class="vc-hero-slide${vs.first ? ' is-active' : ''}" href="${empty slide.url ? '/' : slide.url}" target="${slide.target}" aria-label="${slide.title}" aria-hidden="${vs.first ? 'false' : 'true'}">
+					<a class="vc-hero-slide${vs.first ? ' is-active' : ''}" href="${empty slide.url ? '/' : slide.url}" target="${slide.target}" aria-label="${slide.title}" aria-hidden="${vs.first ? 'false' : 'true'}" tabindex="${vs.first ? '0' : '-1'}" rel="noopener">
 						<div class="vc-hero-bg" style="background-image:url('${empty slide.thumbnail ? vehicleDefaultImage : slide.thumbnail}?v=20261105-hero-169')"></div>
 					</a>
 				</c:forEach>
 				<c:if test="${empty collegeHeroNmv.articleList}">
-					<a class="vc-hero-slide is-active" href="/" aria-label="${website.name}"><div class="vc-hero-bg" style="background-image:url('${vehicleDefaultImage}?v=20261105-hero-169')"></div></a>
+					<a class="vc-hero-slide is-active" href="/" aria-label="${website.name}" tabindex="0"><div class="vc-hero-bg" style="background-image:url('${vehicleDefaultImage}?v=20261105-hero-169')"></div></a>
 				</c:if>
 			</div>
 			<c:if test="${fn:length(collegeHeroNmv.articleList) > 1}">
@@ -76,7 +78,7 @@
 						</div>
 						<div class="vc-ref-news-feed">
 							<c:forEach items="${collegeNewsNmv.articleList}" var="item" end="3">
-								<a class="vc-ref-news-item" href="${item.url}" target="${item.target}">
+								<a class="vc-ref-news-item" href="${item.url}" target="${item.target}" rel="noopener">
 									<div class="vc-ref-news-date"><b>${fn:substring(item.release_time, 8, 10)}</b><span>${fn:replace(fn:substring(item.release_time, 0, 7), '-', '.')}</span></div>
 									<span class="vc-ref-news-title">${item.title}</span>
 								</a>
@@ -167,7 +169,7 @@
 								<c:forEach items="${navList}" var="navItem">
 									<c:if test="${navItem.idcard eq 'FFKJ_COLLEGE_ADMISSION_NAV'}">
 										<c:forEach items="${navItem.children}" var="child" varStatus="childVs">
-											<c:if test="${childVs.index lt 4}"><a class="vc-ref-adm-card" href="${child.href}" target="${child.target}"><strong>${child.name}</strong><span>${empty child.nameAssistant ? 'ADMISSIONS &amp; CAREER' : child.nameAssistant}</span></a></c:if>
+											<c:if test="${childVs.index lt 4}"><a class="vc-ref-adm-card" href="${child.href}" target="${child.target}" rel="noopener"><strong>${child.name}</strong><span>${empty child.nameAssistant ? 'ADMISSIONS &amp; CAREER' : child.nameAssistant}</span></a></c:if>
 										</c:forEach>
 									</c:if>
 								</c:forEach>
@@ -189,7 +191,7 @@
 				<div class="vc-ref-student-grid">
 					<c:choose>
 						<c:when test="${not empty vehicleStudentNmv.articleList}">
-							<c:forEach items="${vehicleStudentNmv.articleList}" var="item" end="3"><a class="vc-ref-student-card" href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? '/main/ffkj-portal/vehicle/student-1.jpg' : item.thumbnail}" alt="${item.title}"><span>${item.title}</span></a></c:forEach>
+							<c:forEach items="${vehicleStudentNmv.articleList}" var="item" end="3"><a class="vc-ref-student-card" href="${item.url}" target="${item.target}" rel="noopener"><img src="${empty item.thumbnail ? '/main/ffkj-portal/vehicle/student-1.jpg' : item.thumbnail}" alt="${item.title}"><span>${item.title}</span></a></c:forEach>
 						</c:when>
 						<c:otherwise>
 							<a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-1.jpg" alt="技能竞赛展风采"><span>技能竞赛展风采</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-2.jpg" alt="青春文艺汇演"><span>青春文艺汇演</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-3.jpg" alt="班级集体合影"><span>班级集体合影</span></a><a class="vc-ref-student-card" href="${studentHref}"><img src="/main/ffkj-portal/vehicle/student-4.jpg" alt="志愿服务进社区"><span>志愿服务进社区</span></a>
@@ -211,28 +213,32 @@
 		var next = root.querySelector('.vc-hero-arrow.next');
 		var current = 0;
 		var timer = null;
+		var reduceMotion = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
 		if (slides.length < 2 || !track) return;
 		function activate(index) {
 			current = (index + slides.length) % slides.length;
 			track.style.transform = 'translateX(' + (-current * 100) + '%)';
-			slides.forEach(function (slide, i) { slide.classList.toggle('is-active', i === current); slide.setAttribute('aria-hidden', i === current ? 'false' : 'true'); });
+			slides.forEach(function (slide, i) { slide.classList.toggle('is-active', i === current); slide.setAttribute('aria-hidden', i === current ? 'false' : 'true'); slide.setAttribute('tabindex', i === current ? '0' : '-1'); });
 			dots.forEach(function (dot, i) { dot.classList.toggle('is-active', i === current); });
 		}
 		function stop() { if (timer) { window.clearInterval(timer); timer = null; } }
 		function start() { stop(); timer = window.setInterval(function () { activate(current + 1); }, 5600); }
-		if (prev) prev.addEventListener('click', function () { activate(current - 1); start(); });
-		if (next) next.addEventListener('click', function () { activate(current + 1); start(); });
-		dots.forEach(function (dot) { dot.addEventListener('click', function () { activate(Number(dot.getAttribute('data-vehicle-hero-dot'))); start(); }); });
+		if (prev) prev.addEventListener('click', function () { activate(current - 1); if (!reduceMotion) start(); });
+		if (next) next.addEventListener('click', function () { activate(current + 1); if (!reduceMotion) start(); });
+		dots.forEach(function (dot) { dot.addEventListener('click', function () { activate(Number(dot.getAttribute('data-vehicle-hero-dot'))); if (!reduceMotion) start(); }); });
 		root.addEventListener('mouseenter', stop);
-		root.addEventListener('mouseleave', start);
+		root.addEventListener('mouseleave', function () { if (!reduceMotion) start(); });
+		root.addEventListener('focusin', stop);
+		root.addEventListener('focusout', function (event) { if (!root.contains(event.relatedTarget) && !reduceMotion) start(); });
 		activate(0);
-		start();
+		if (!reduceMotion) start();
 	})();
 	(function () {
 		var stage = document.querySelector('[data-news-stage]');
 		if (!stage) return;
 		var figures = Array.prototype.slice.call(stage.querySelectorAll('figure'));
 		if (figures.length < 2) return;
+		if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
 		var current = 0;
 		window.setInterval(function () {
 			figures[current].classList.remove('on');

+ 8 - 7
WebRoot/web/upload/ffkj-template/vehicle-list.jsp

@@ -9,8 +9,9 @@
 <head>
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
-	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-3">
+	<title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
+	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
@@ -18,7 +19,7 @@
 		<section class="vc-page-hero" style="--vc-page-bg:url('${vehiclePageImage}')">
 			<div class="vc-page-hero-inner">
 				<small>COLLEGE NEWS · 栏目列表</small>
-				<h1>${navigation.name}</h1>
+				<div class="vc-page-hero-title">${navigation.name}</div>
 				<p>${empty navigation.desc ? '汇集车辆学院教学、科研、实践与校园动态,记录学院发展。' : navigation.desc}</p>
 			</div>
 		</section>
@@ -29,9 +30,9 @@
 					<div class="vc-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty vehicleSidebarTitle ? '学院栏目' : vehicleSidebarTitle}</h2></div>
 					<nav class="vc-sidebar-nav" aria-label="${vehicleSidebarTitle}导航">
 						<c:choose>
-							<c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
-							<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
-							<c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:if></c:forEach></c:otherwise>
+							<c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
+							<c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
+							<c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise>
 						</c:choose>
 					</nav>
 				</aside>
@@ -42,7 +43,7 @@
 						<c:otherwise>
 							<ul class="vc-article-list">
 								<c:forEach items="${articleList}" var="item">
-									<li><a class="vc-article-card" href="${item.url}" target="${item.target}">
+									<li><a class="vc-article-card" href="${item.url}" target="${item.target}" rel="noopener">
 										<div class="vc-article-thumb"><img src="${empty item.thumbnail ? vehicleDefaultImage : item.thumbnail}" alt="${item.title}"></div>
 										<div class="vc-article-copy">
 											<h2>${item.title}</h2>

+ 19 - 4
WebRoot/web/upload/ffkj-template/vehicle-search.jsp

@@ -7,14 +7,15 @@
 <head>
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
-	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-3">
+	<title>站内搜索_${empty website.seoTitle ? website.name : website.seoTitle}</title>
+	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
 	<main>
 		<section class="vc-page-hero" style="--vc-page-bg:url('/main/ffkj-portal/vehicle-source/hero-01-q2ERYw8krpzmxfjShDx5cSW2PU.jpg')">
-			<div class="vc-page-hero-inner"><small>SEARCH · 站内搜索</small><h1>搜索学院内容</h1><p>输入关键词,查找新闻、通知、专业建设与教学实践信息。</p></div>
+			<div class="vc-page-hero-inner"><small>SEARCH · 站内搜索</small><div class="vc-page-hero-title">搜索学院内容</div><p>输入关键词,查找新闻、通知、专业建设与教学实践信息。</p></div>
 		</section>
 		<div class="vc-breadcrumb"><div class="vc-wrap"><a href="/">首页</a><span>/</span><span>站内搜索</span></div></div>
 		<section class="vc-search-section">
@@ -30,11 +31,25 @@
 						<c:otherwise>
 							<ul class="vc-article-list">
 								<c:forEach items="${articleList}" var="item">
-									<li><a class="vc-article-card" href="${item.url}" target="${item.target}"><div class="vc-article-thumb"><img src="${empty item.thumbnail ? vehicleDefaultImage : item.thumbnail}" alt="${item.title}"></div><div class="vc-article-copy"><h2>${item.title}</h2><c:if test="${not empty item.desc}"><p>${item.desc}</p></c:if><div class="vc-article-meta"><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div></div></a></li>
+									<li><a class="vc-article-card" href="${item.url}" target="${item.target}" rel="noopener"><div class="vc-article-thumb"><img src="${empty item.thumbnail ? vehicleDefaultImage : item.thumbnail}" alt="${item.title}"></div><div class="vc-article-copy"><h2>${item.title}</h2><c:if test="${not empty item.desc}"><p>${item.desc}</p></c:if><div class="vc-article-meta"><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div></div></a></li>
 								</c:forEach>
 							</ul>
 						</c:otherwise>
 					</c:choose>
+					<c:if test="${not empty articleList}">
+						<c:url var="searchPageUrl" value="/search"><c:param name="str" value="${str}"/></c:url>
+						<c:set var="pageWindowStart" value="${curPageNo - 2 < 1 ? 1 : curPageNo - 2}"/>
+						<c:set var="pageWindowEnd" value="${pageWindowStart + 4 > pageCount ? pageCount : pageWindowStart + 4}"/>
+						<c:set var="pageWindowStart" value="${pageWindowEnd - 4 < 1 ? 1 : pageWindowEnd - 4}"/>
+						<nav class="vc-pagination" aria-label="搜索分页">
+							<span class="vc-page-summary">共 ${pageCount} 页</span>
+							<c:choose><c:when test="${curPageNo > 1}"><a href="${searchPageUrl}&amp;page=${curPageNo - 1}">上一页</a></c:when><c:otherwise><span class="is-disabled">上一页</span></c:otherwise></c:choose>
+							<c:if test="${pageWindowStart > 1}"><a href="${searchPageUrl}&amp;page=1">1</a><c:if test="${pageWindowStart > 2}"><span class="vc-ellipsis">…</span></c:if></c:if>
+							<c:forEach begin="${pageWindowStart}" end="${pageWindowEnd}" var="pageNo"><a class="${pageNo eq curPageNo ? 'is-active' : ''}" href="${searchPageUrl}&amp;page=${pageNo}">${pageNo}</a></c:forEach>
+							<c:if test="${pageWindowEnd < pageCount}"><c:if test="${pageWindowEnd < pageCount - 1}"><span class="vc-ellipsis">…</span></c:if><a href="${searchPageUrl}&amp;page=${pageCount}">${pageCount}</a></c:if>
+							<c:choose><c:when test="${curPageNo < pageCount}"><a href="${searchPageUrl}&amp;page=${curPageNo + 1}">下一页</a></c:when><c:otherwise><span class="is-disabled">下一页</span></c:otherwise></c:choose>
+						</nav>
+					</c:if>
 				</div>
 			</div>
 		</section>

+ 32 - 1
src/space/apps/moudules/website/template/ffkjvehicle1/WebSiteArticleService.java

@@ -1,8 +1,13 @@
 package space.apps.moudules.website.template.ffkjvehicle1;
 
 import apps.pojo.Website;
+import java.util.List;
+import java.util.Map;
 import space.apps.moudules.website.template.common.WebsiteNavManager;
 import space.apps.moudules.website.template.common.bean.NavigationMiniView;
+import space.apps.moudules.website.template.util.WebsiteTemplateArticleUtil;
+import space.core.common.utils.StringUtil;
+import space.core.db.bean.base.PageBean;
 import space.core.db.jdbc.GeneralDBAccess;
 
 /**
@@ -25,7 +30,33 @@ public class WebSiteArticleService extends space.apps.moudules.website.template.
 
 	@Override
 	public String search() throws Exception {
-		return super.search();
+		String forward = super.search();
+		GeneralDBAccess gdba = getGdbaInstance();
+		Website website = getWebsite();
+		setRequestAttribute("website", website);
+
+		String keyword = getRequest().getParameter("str");
+		if (StringUtil.isNull(keyword)) {
+			return forward;
+		}
+		if (keyword.length() > 38) {
+			keyword = keyword.substring(0, 38);
+		}
+
+		String page = getRequest().getParameter("page");
+		PageBean pb = new PageBean();
+		pb.setRowCountPerPage(10);
+		pb.setCurrentPageNo(StringUtil.notNull(page) ? Integer.valueOf(page) : 1);
+		List<Map<String, Object>> articleList =
+				WebsiteTemplateArticleUtil.getArticleListByWebsite(gdba, website, keyword, pb);
+		int pageCount = pb.getRowCount() / pb.getRowCountPerPage();
+		pageCount += pb.getRowCount() % pb.getRowCountPerPage() == 0 ? 0 : 1;
+
+		setRequestAttribute("pageCount", pageCount);
+		setRequestAttribute("curPageNo", pb.getCurrentPageNo());
+		setRequestAttribute("str", keyword);
+		setRequestAttribute("articleList", articleList);
+		return forward;
 	}
 
 	@Override

+ 25 - 0
src/space/apps/moudules/website/template/util/WebsiteTemplateArticleUtil.java

@@ -230,6 +230,31 @@ public class WebsiteTemplateArticleUtil {
 	 * @return 文章列表
 	 * @throws Exception
 	 */
+	/**
+	 * 查询当前网站内的文章。用于模板“站内搜索”,不扩展到所属主站或兄弟站点。
+	 */
+	public static List<Map<String, Object>> getArticleListByWebsite(GeneralDBAccess gdba, Website website,
+			String keyword, PageBean pb) throws Exception {
+		String sql = "SELECT a.*, w.protocol, w.port, w.domains, w.name website_name, wn.name navigation_name "
+				+ "FROM article a "
+				+ "LEFT JOIN website w ON a.websiteid = w.websiteid "
+				+ "LEFT JOIN website_navigation wn ON a.navigationid = wn.navigationid "
+				+ "WHERE a.websiteid = :websiteid AND w.dcode = 61 AND " + getPublishedOrChangingArticleSql("a") + " "
+				+ "AND (a.title LIKE :keyword1 OR a.`desc` LIKE :keyword2) "
+				+ "ORDER BY " + SortOrderUtil.articleSort("a");
+
+		SqlCommandImpl sqlCmd = new SqlCommandImpl(sql);
+		sqlCmd.setString("websiteid", website.getWebsiteid())
+				.setString("keyword1", "%" + keyword + "%")
+				.setString("keyword2", "%" + keyword + "%");
+		List<Map<String, Object>> articleList = gdba.selectAsMapList(sqlCmd, pb);
+
+		restoreChangingArticleListPublishedVersion(gdba, articleList);
+		transformArticleURL(articleList);
+
+		return articleList;
+	}
+
 	public static List<Map<String, Object>> getArticleList(GeneralDBAccess gdba, Website website, String keyword,
 			PageBean pb) throws Exception {