Эх сурвалжийг харах

调整车辆学院首页间距与图片比例

学院新闻与学院动态间距改为 30px;学院动态图片改为 16:9、圆角 6px。

移除学院宣传视频上的“学校宣传片”和“播放学院宣传片”文字。

学生风采改为静态 16:9 网格,并统一首页内容图片圆角为 6px。

Validation:
- 浏览器计算样式核验双栏间距 30px
- 学院动态、学生风采比例均为 16:9
- 首页图片圆角均为 6px
- 学生风采滚动区域为 0
- 390/768/1440 视口无横向溢出
- 首页 17/17 张图片加载成功
- 首页、列表页、目录页、正文页、搜索页均返回 200
非繁 3 долоо хоног өмнө
parent
commit
93932fff6a

+ 14 - 22
WebRoot/main/ffkj-portal/vehicle-college.css

@@ -406,7 +406,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-home-more-link span{transition:transform .2s}
 
 /* 学院新闻 + 学院动态 */
-.vc-ref-news-grid{display:grid;grid-template-columns:1fr;gap:18px}
+.vc-ref-news-grid{display:grid;grid-template-columns:1fr;gap:30px}
 .vc-ref-news-col{display:flex;flex-direction:column;gap:14px;min-width:0}
 .vc-ref-news-feed{min-width:0}
 .vc-ref-news-item{display:flex;align-items:center;gap:14px;padding:8px 0;border-bottom:1px solid var(--vc-line)}
@@ -417,7 +417,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-ref-news-title{display:-webkit-box;overflow:hidden;color:var(--vc-ink);font-size:14px;font-weight:600;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
 .vc-ref-news-item:hover .vc-ref-news-title{color:var(--vc-blue)}
 .vc-ref-news-photo{background:#fff;border-radius:10px;padding:14px;box-shadow:var(--vc-shadow)}
-.vc-ref-news-stage{position:relative;height:236px;overflow:hidden;border-radius:8px}
+.vc-ref-news-stage{position:relative;aspect-ratio:16/9;height:auto;overflow:hidden;border-radius:6px}
 .vc-ref-news-stage figure{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .7s ease}
 .vc-ref-news-stage figure.on{opacity:1}
 .vc-ref-news-stage img{width:100%;height:100%;object-fit:cover}
@@ -434,7 +434,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-ref-explore-copy p{margin-top:2px;color:var(--vc-sub);font-size:12px;line-height:1.65}
 .vc-ref-explore-go{color:var(--vc-blue);font-size:13px;font-weight:500;white-space:nowrap}
 .vc-ref-explore-photo{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
-.vc-ref-explore-photo figure{position:relative;margin:0;overflow:hidden;border-radius:10px}
+.vc-ref-explore-photo figure{position:relative;margin:0;overflow:hidden;border-radius:6px}
 .vc-ref-explore-photo img{width:100%;height:150px;object-fit:cover}
 .vc-ref-explore-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 10px;background:linear-gradient(transparent,rgba(7,34,62,.9));color:#fff;font-size:13px;font-weight:500}
 
@@ -449,7 +449,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-ref-industry-card h3{font-size:15px;margin-bottom:2px}
 .vc-ref-industry-card p{color:#bcd3e4;font-size:12px;line-height:1.6}
 .vc-ref-industry-photo{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
-.vc-ref-industry-photo figure{position:relative;margin:0;overflow:hidden;border-radius:10px}
+.vc-ref-industry-photo figure{position:relative;margin:0;overflow:hidden;border-radius:6px}
 .vc-ref-industry-photo img{width:100%;height:140px;object-fit:cover}
 .vc-ref-industry-photo figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 10px;background:linear-gradient(transparent,rgba(7,34,62,.9));color:#fff;font-size:13px;font-weight:500}
 
@@ -457,13 +457,11 @@ body.vehicle-page button{cursor:pointer}
 .vc-ref-video{padding:50px 0 56px;background:#f6f9fb}
 .vc-ref-video-grid{display:grid;grid-template-columns:1.18fr 1fr;gap:26px;align-items:stretch}
 .vc-ref-video-col{display:flex;flex-direction:column;gap:14px;min-width:0}
-.vc-ref-video-frame{position:relative;flex:1;min-height:290px;overflow:hidden;border-radius:14px;box-shadow:0 18px 44px rgba(7,34,62,.26)}
+.vc-ref-video-frame{position:relative;flex:1;min-height:290px;overflow:hidden;border-radius:6px;box-shadow:0 18px 44px rgba(7,34,62,.26)}
 .vc-ref-video-frame img{display:block;width:100%;height:100%;min-height:290px;object-fit:cover}
 .vc-ref-video-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(ellipse at center,rgba(7,34,62,.16),rgba(7,34,62,.52))}
 .vc-ref-video-overlay .play{width:74px;height:74px;display:flex;align-items:center;justify-content:center;padding-left:6px;border-radius:50%;background:rgba(255,255,255,.94);color:var(--vc-blue);font-size:28px;box-shadow:0 8px 24px rgba(0,0,0,.28);transition:transform .2s}
 .vc-ref-video-frame:hover .play{transform:scale(1.08)}
-.vc-ref-video-overlay .play-tip{color:#fff;font-size:15px;font-weight:600;letter-spacing:.5px;text-shadow:0 1px 6px rgba(0,0,0,.4)}
-.vc-ref-video-tag{position:absolute;left:14px;top:14px;padding:5px 12px;border-radius:6px;background:rgba(7,34,62,.7);color:#fff;font-size:13px;font-weight:600;letter-spacing:.5px}
 .vc-ref-video-duration{position:absolute;right:14px;bottom:12px;padding:4px 9px;border-radius:6px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;letter-spacing:.5px}
 .vc-ref-admissions{flex:1;display:flex;flex-direction:column;justify-content:flex-start;padding:26px;border:1px solid var(--vc-line);border-radius:14px;background:#fff;box-shadow:var(--vc-shadow)}
 .vc-ref-adm-sub{margin:0 0 18px;color:var(--vc-sub);font-size:14px;line-height:1.9}
@@ -475,23 +473,19 @@ body.vehicle-page button{cursor:pointer}
 
 /* 学生风采 */
 .vc-ref-students{padding-bottom:0}
-.vc-ref-marquee{position:relative;max-width:1200px;margin:6px auto 0;padding:0 20px;overflow:hidden;border-top:1px solid var(--vc-line);border-bottom:1px solid var(--vc-line);background:#fff}
-.vc-ref-marquee::before,.vc-ref-marquee::after{position:absolute;top:0;bottom:0;z-index:2;width:80px;content:"";pointer-events:none}
-.vc-ref-marquee::before{left:0;background:linear-gradient(90deg,#fff,transparent)}
-.vc-ref-marquee::after{right:0;background:linear-gradient(-90deg,#fff,transparent)}
-.vc-ref-marquee-track{display:flex;gap:14px;width:max-content;padding:12px 0;animation:vcRefScroll 36s linear infinite}
-.vc-ref-marquee:hover .vc-ref-marquee-track{animation-play-state:paused}
-.vc-ref-student-card{position:relative;flex:0 0 auto;width:250px;overflow:hidden;border-radius:10px;box-shadow:var(--vc-shadow)}
-.vc-ref-student-card img{width:250px;height:140px;object-fit:cover}
+.vc-ref-student-grid{display:grid;grid-template-columns:1fr;gap:14px}
+.vc-ref-student-card{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:6px;box-shadow:var(--vc-shadow)}
+.vc-ref-student-card img{width:100%;height:100%;object-fit:cover}
 .vc-ref-student-card span{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 10px;background:linear-gradient(transparent,rgba(7,34,62,.9));color:#fff;font-size:13px;font-weight:500;line-height:1.5}
-@keyframes vcRefScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
+
 @media (min-width:640px){
-  .vc-ref-news-grid{grid-template-columns:1.5fr 1fr;gap:18px}
+  .vc-ref-news-grid{grid-template-columns:1.5fr 1fr;gap:30px}
   .vc-ref-explore-grid{grid-template-columns:repeat(3,1fr)}
   .vc-ref-explore-card{display:block}
   .vc-ref-explore-copy{margin-top:10px}
   .vc-ref-explore-go{display:inline-block;margin-top:10px}
   .vc-ref-explore-photo{grid-template-columns:repeat(3,1fr)}
+  .vc-ref-student-grid{grid-template-columns:repeat(2,1fr)}
   .vc-ref-industry-row{grid-template-columns:repeat(3,1fr)}
   .vc-ref-industry-card{display:block}
   .vc-ref-industry-photo{grid-template-columns:repeat(3,1fr)}
@@ -501,13 +495,11 @@ body.vehicle-page button{cursor:pointer}
   .vc-ref-video{padding:40px 0 44px}
   .vc-ref-video-grid{grid-template-columns:1fr}
   .vc-ref-video-overlay .play{width:58px;height:58px;font-size:22px}
-  .vc-ref-student-card{width:200px}
-  .vc-ref-student-card img{width:200px;height:120px}
+}
+@media (min-width:900px){
+  .vc-ref-student-grid{grid-template-columns:repeat(4,1fr)}
 }
 @media (max-width:560px){
   .vc-ref-adm-grid{grid-template-columns:1fr}
   .vc-ref-admissions{padding:20px}
 }
-@media (prefers-reduced-motion:reduce){
-  .vc-ref-marquee-track{animation:none}
-}

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

@@ -9,7 +9,7 @@
 	<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-reference-home-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-1">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/vehicle-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/vehicle-college.css?v=20261105-reference-home-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-1">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>

+ 6 - 8
WebRoot/web/upload/ffkj-template/vehicle-index.jsp

@@ -41,7 +41,7 @@
 	<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-reference-home-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-1">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
@@ -155,8 +155,7 @@
 						<div class="vc-home-eyebrow"><span class="en">VIDEO</span>学院宣传</div>
 						<div class="vc-ref-video-frame">
 							<img src="/main/ffkj-portal/vehicle/video-cover.jpg" alt="学院宣传视频">
-							<div class="vc-ref-video-overlay"><span class="play">►</span><span class="play-tip">播放学院宣传片</span></div>
-							<span class="vc-ref-video-tag">学校宣传片</span>
+							<div class="vc-ref-video-overlay"><span class="play">►</span></div>
 							<span class="vc-ref-video-duration">03:26</span>
 						</div>
 					</div>
@@ -186,15 +185,14 @@
 					<a class="vc-home-more-link" href="${studentHref}">更多风采 <span>→</span></a>
 				</div>
 			</div>
-			<div class="vc-ref-marquee">
-				<div class="vc-ref-marquee-track">
+			<div class="vc-wrap">
+				<div class="vc-ref-student-grid">
 					<c:choose>
 						<c:when test="${not empty vehicleStudentNmv.articleList}">
-							<c:forEach items="${vehicleStudentNmv.articleList}" var="item"><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"><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}"><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>
-							<c:forEach begin="1" end="2"><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></c:forEach>
+							<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>
 						</c:otherwise>
 					</c:choose>
 				</div>

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

@@ -10,7 +10,7 @@
 	<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-reference-home-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-1">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>

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

@@ -8,7 +8,7 @@
 	<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-reference-home-1">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261105-home-tuning-1">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>