Browse Source

修正车辆学院模板导航字样

按参考首页重新校准车辆学院模板头部:修正基础链接样式权重导致的导航和站名深色覆盖,恢复浅蓝白导航字、白色站名和当前项加粗。

同时对齐参考稿的 32px 顶栏、66px 导航、14.5px/13px 内边距、38px 标识及 440px 首页轮播高度,并更新 CSS 缓存版本避免浏览器继续使用旧样式。

Validation:
- 浏览器计算样式与参考页一致:站名 rgb(255,255,255),普通导航 rgb(234,243,248),当前项白色加粗
- 首页、列表页、正文页均加载 vehicle-college.css?v=20261105-navfix-1
- 5 个运行 JSP Jasper 编译 0 错误
非繁 1 month ago
parent
commit
5cfbe198b0

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

@@ -15,29 +15,30 @@
 html{scroll-behavior:smooth}
 body.vehicle-page{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:var(--vc-ink);background:var(--vc-white);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
 body.vehicle-page img{display:block;max-width:100%}
-body.vehicle-page a{color:inherit;text-decoration:none}
+a{color:inherit;text-decoration:none}
 body.vehicle-page button,body.vehicle-page input{font:inherit}
 body.vehicle-page button{cursor:pointer}
 .vc-wrap{width:min(1200px,calc(100% - 40px));margin:0 auto}
 .vc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
-.vc-topbar{background:var(--vc-deep);color:#C7D9E7;font-size:12px}
-.vc-topbar .vc-wrap{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px}
+.vc-topbar{background:var(--vc-deep);color:#cddbe6;font-size:13px}
+.vc-topbar .vc-wrap{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:18px}
 .vc-topbar-links{display:flex;align-items:center;gap:14px}
 .vc-topbar-links a:hover{color:#fff}
 .vc-topbar-meta{display:flex;align-items:center;gap:16px;white-space:nowrap}
 .vc-topbar-meta span{display:inline-flex;align-items:center;gap:6px}
 .vc-topbar-meta i{display:inline-block;width:5px;height:5px;background:var(--vc-assist);border-radius:50%}
-.vc-header{position:sticky;top:0;z-index:80;background:rgba(11,53,91,.98);box-shadow:0 2px 16px rgba(3,20,36,.22)}
-.vc-header-main{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
+.vc-header{position:sticky;top:0;z-index:80;background:var(--vc-deep);box-shadow:0 2px 12px rgba(7,34,62,.18)}
+.vc-header-main{height:66px;display:flex;align-items:center;justify-content:space-between;gap:24px}
 .vc-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;color:#fff}
-.vc-brand-mark{width:44px;height:44px;padding:5px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.06)}
+.vc-brand-mark{width:38px;height:38px;padding:5px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.06)}
 .vc-brand-copy{display:flex;flex-direction:column;line-height:1.15}
-.vc-brand-name{font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:21px;font-weight:900;letter-spacing:.04em}
-.vc-brand-en{margin-top:5px;color:#BBD3E5;font-size:8px;letter-spacing:.22em;font-weight:600}
-.vc-nav{display:flex;align-items:stretch;height:72px}
+.vc-brand-name{color:#fff;font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:19px;font-weight:900;letter-spacing:.04em}
+.vc-brand-en{margin-top:5px;color:#bcd3e4;font-size:9px;letter-spacing:.22em;font-weight:600}
+.vc-nav{display:flex;align-items:stretch;height:66px;background:var(--vc-deep)}
 .vc-nav-item{position:relative;display:flex}
-.vc-nav-link{display:flex;align-items:center;justify-content:center;height:100%;padding:0 12px;color:#EAF3F8;font-size:14px;font-weight:500;white-space:nowrap;transition:background .2s,color .2s}
-.vc-nav-link:hover,.vc-nav-link.is-active{background:rgba(255,255,255,.1);color:#fff}
+.vc-nav-link{display:flex;align-items:center;justify-content:center;height:100%;padding:0 13px;color:#eaf3f8;font-size:14.5px;font-weight:500;white-space:nowrap;transition:background .2s,color .2s}
+.vc-nav-link:hover{background:rgba(255,255,255,.08);color:#fff}
+.vc-nav-link.is-active{background:rgba(255,255,255,.12);color:#fff;font-weight:700}
 .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)}
@@ -52,7 +53,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-menu-mask.is-open{opacity:1;pointer-events:auto}
 
 /* 首页轮播 */
-.vc-hero{position:relative;height:540px;overflow:hidden;color:#fff;background:var(--vc-deep)}
+.vc-hero{position:relative;height:440px;overflow:hidden;color:#fff;background:var(--vc-deep)}
 .vc-hero-track{display:flex;width:100%;height:100%;transition:transform .65s ease}
 .vc-hero-slide{position:relative;flex:0 0 100%;width:100%;height:100%;overflow:hidden}
 .vc-hero-bg{position:absolute;inset:0;background-position:center 40%;background-size:cover;transform:scale(1.02)}
@@ -62,9 +63,9 @@ body.vehicle-page button{cursor:pointer}
 .vc-hero-copy{max-width:720px;padding-bottom:28px}
 .vc-kicker{display:flex;align-items:center;gap:12px;color:#D3E6F3;font-size:12px;font-weight:600;letter-spacing:.22em}
 .vc-kicker::before{content:"";width:34px;height:2px;background:#7FB8D8}
-.vc-hero h1{margin:18px 0 8px;font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:clamp(34px,4vw,52px);font-weight:900;letter-spacing:.03em;line-height:1.2;text-shadow:0 3px 18px rgba(0,0,0,.15)}
-.vc-hero-title-en{margin-bottom:18px;color:#C6DDEC;font-size:12px;font-weight:600;letter-spacing:.32em}
-.vc-hero-lead{max-width:660px;color:#E4F0F8;font-size:17px;line-height:1.9}
+.vc-hero h1{margin:18px 0 8px;font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:42px;font-weight:900;letter-spacing:.03em;line-height:1.2;text-shadow:0 3px 18px rgba(0,0,0,.15)}
+.vc-hero-title-en{margin-bottom:18px;color:#cfe3f2;font-size:13px;font-weight:600;letter-spacing:.32em}
+.vc-hero-lead{max-width:660px;color:#e6f1f9;font-size:18px;line-height:1.9}
 .vc-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
 .vc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 24px;border:1px solid transparent;border-radius:3px;font-size:14px;font-weight:600;letter-spacing:.03em;transition:.2s}
 .vc-btn-primary{background:#fff;color:var(--vc-deep)}
@@ -305,7 +306,7 @@ body.vehicle-page button{cursor:pointer}
   .vc-nav-item.is-open .vc-subnav{display:block}
   .vc-subnav a{padding:9px 20px;color:#DCEAF4;border-bottom:1px solid rgba(255,255,255,.08)}
   .vc-subnav a:hover{color:#fff;background:rgba(255,255,255,.08)}
-  .vc-hero{height:500px}
+  .vc-hero{height:420px}
   .vc-news-grid{grid-template-columns:1fr}
   .vc-list-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}
   .vc-detail-layout{grid-template-columns:minmax(0,1fr)}
@@ -313,13 +314,13 @@ body.vehicle-page button{cursor:pointer}
 }
 @media (max-width:820px){
   .vc-wrap,.vc-hero-inner,.vc-page-hero-inner{width:calc(100% - 32px)}
-  .vc-header-main{height:62px}
+  .vc-header-main{height:58px}
   .vc-brand-mark{width:38px;height:38px}
   .vc-brand-name{font-size:17px}
   .vc-brand-en{font-size:7px;letter-spacing:.15em}
-  .vc-hero{height:460px}
+  .vc-hero{height:380px}
   .vc-hero-copy{padding-bottom:18px}
-  .vc-hero h1{font-size:34px}
+  .vc-hero h1{font-size:30px}
   .vc-hero-lead{font-size:14px}
   .vc-hero-arrow.prev{left:8px}.vc-hero-arrow.next{right:8px}
   .vc-quick-grid{grid-template-columns:repeat(2,1fr)}
@@ -352,8 +353,8 @@ body.vehicle-page button{cursor:pointer}
   .vc-brand-name{font-size:16px}
   .vc-brand-en{display:none}
   .vc-nav-toggle{width:40px;height:38px}
-  .vc-hero{height:430px}
-  .vc-hero h1{font-size:29px}
+  .vc-hero{height:340px}
+  .vc-hero h1{font-size:28px}
   .vc-hero-title-en{letter-spacing:.18em}
   .vc-hero-actions{gap:8px}
   .vc-btn{min-height:40px;padding:0 17px;font-size:12px}

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

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

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

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