1
0
This commit is contained in:
2025-12-12 11:21:33 +08:00
parent f76fe9ba6e
commit 8a1a5d368a
7 changed files with 731 additions and 26 deletions

View File

@@ -334,11 +334,26 @@ img {
margin-bottom: 0.8rem;
}
.section-title > span, .section-title-s2 > span, .section-title-s4 > span {
font-size: 14px;
font-size:1.275rem;
text-transform: uppercase;
display: block;
margin-bottom: 0.5em;
margin-top: 0.8rem;
}
@media (max-width: 767px) {
.section-title > span, .section-title-s2 > span, .section-title-s3 > span {
font-size: 12px;
font-size: 0.75rem;
}
.section-title > span, .section-title-s2 > span, .section-title-s4 > span {
font-size: 12px;
font-size: 0.75rem;
}
}
.section-title h2, .section-title-s2 h2, .section-title-s3 h2 {
@@ -347,11 +362,22 @@ img {
margin: 0.2em 0 0;
}
.section-title h2, .section-title-s2 h2, .section-title-s4 h2 {
font-size: 36px;
font-size: 2.25rem;
margin: 0.2em 0 0;
}
@media (max-width: 991px) {
.section-title h2, .section-title-s2 h2, .section-title-s3 h2 {
font-size: 30px;
font-size: 1.875rem;
}
.section-title h2, .section-title-s2 h2, .section-title-s4 h2 {
font-size: 30px;
font-size: 1.875rem;
}
}
@media (max-width: 767px) {
@@ -375,6 +401,10 @@ img {
text-align: center;
}
.section-title-s4 {
text-align: center;
}
.theme-btn, .theme-btn-s2, .theme-btn-s3 {
background-color: #1481ff;
color: #fff;
@@ -1441,6 +1471,7 @@ img {
/* navigation open and close btn hide for width screen */
/* style for navigation less than 992px */
/*navbar collaps less then 992px*/
width: 100%;
}
.site-header .navigation {
@@ -1500,6 +1531,7 @@ img {
z-index: 10;
visibility: hidden;
opacity: 0;
pointer-events: none !important;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
@@ -1508,6 +1540,14 @@ img {
-webkit-box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.site-header #navbar > ul .sub-menu::before {
content: '';
position: absolute;
top: -10px;
left: 0;
width: 100%;
height: 10px;
}
.site-header #navbar > ul > li .sub-menu li {
border-bottom: 1px solid #efefef;
}
@@ -1526,7 +1566,7 @@ img {
.site-header #navbar > ul > li > .sub-menu > .menu-item-has-children > a {
position: relative;
}
.site-header #navbar > ul > li > .sub-menu > .menu-item-has-children > a:before {
/* .site-header #navbar > ul > li > .sub-menu > .menu-item-has-children > a:before {
font-family: "themify";
content: "\e649";
font-size: 11px;
@@ -1539,16 +1579,95 @@ img {
-o-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
} */
.site-header #navbar > ul > li:hover > .sub-menu {
top: 100%;
visibility: visible;
opacity: 1;
pointer-events: auto !important;
}
.site-header #navbar .sub-menu > li:hover > .sub-menu {
left: 100%;
visibility: visible;
opacity: 1;
pointer-events: auto !important;
}
/* 产品中心下拉菜单 */
.site-header #navbar > ul > li.product-menu > a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background-color: #1481ff;
transform: scaleX(0);
transition: transform 0.3s;
}
.site-header #navbar > ul > li.product-menu:hover > a::after {
transform: scaleX(1);
}
.site-header #navbar > ul > li.product-menu {
position: static;
}
.site-header #navbar > ul > li.product-menu > .sub-menu {
width: 100vw;
left: 0;
right: 0;
margin-left: calc(-50vw + 50%);
padding: 20px 5%;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.site-header #navbar > ul > li.product-menu:hover > .sub-menu {
visibility: visible !important;
opacity: 1 !important;
top: 100%;
pointer-events: auto;
}
/* 二级分类 */
.site-header #navbar .product-menu > .sub-menu > li {
width: 280px;
border-bottom: none;
padding: 0 15px;
}
.site-header #navbar .product-menu > .sub-menu > li > a {
padding: 10px 0;
font-weight: 600;
font-size: 22px;
color: #102541 !important;
border-bottom: 1px solid #eee;
margin-bottom: 5px;
}
/* 三级菜单 - 直接显示在二级下方 */
.site-header #navbar .product-menu > .sub-menu .sub-menu {
position: static;
display: block;
visibility: visible;
opacity: 1;
width: auto;
background: transparent;
box-shadow: none;
padding: 0;
pointer-events: auto;
}
.site-header #navbar .product-menu > .sub-menu .sub-menu li {
border-bottom: none;
}
.site-header #navbar .product-menu > .sub-menu .sub-menu li::before {
content: "•";
margin-right: 8px;
}
.site-header #navbar .product-menu > .sub-menu .sub-menu a {
display: inline-block;
padding: 8px 0;
font-weight: normal;
font-size: 18px;
color: #666 !important;
}
.site-header #navbar .product-menu > .sub-menu .sub-menu a:hover {
color: #1481ff !important;
}
}
@@ -1590,6 +1709,13 @@ img {
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
/* 移动端隐藏产品中心的子菜单和箭头 */
.site-header #navbar .product-menu > .sub-menu {
display: none !important;
}
.site-header #navbar .product-menu > a:before {
display: none;
}
}
@media screen and (min-width: 992px) {
@@ -2749,6 +2875,7 @@ img {
top: -200px;
z-index: 9999;
opacity: 0;
pointer-events: none;
-webkit-transition: all 0.7s;
-moz-transition: all 0.7s;
-o-transition: all 0.7s;
@@ -2756,9 +2883,18 @@ img {
transition: all 0.7s;
}
.sticky-header .sub-menu {
pointer-events: none !important;
}
.sticky-on {
opacity: 1;
top: 0;
pointer-events: auto;
}
.sticky-on .sub-menu {
pointer-events: auto !important;
}
.header-style-1 .sticky-header, .header-style-2 .sticky-header, .header-style-3 .sticky-header {
@@ -2803,7 +2939,7 @@ img {
}
.features-section .feature-grids .grid {
width: calc(33.33% - 30px);
width: calc(25% - 30px);
margin: 0 15px 30px;
float: left;
}
@@ -2843,10 +2979,11 @@ img {
.features-section .details {
background-color: #fff;
padding: 35px 40px;
padding: 30px 30px;
-webkit-box-shadow: 0px 0px 36.8px 9.2px rgba(16, 37, 65, 0.1);
box-shadow: 0px 0px 36.8px 9.2px rgba(16, 37, 65, 0.1);
border-radius: 0 0 10px 10px;
min-height: 300px;
}
@media (max-width: 767px) {
@@ -3869,12 +4006,12 @@ img {
.portfolio-section .portfolio-grids .grid h3 a {
color: #fff;
font-size: 2rem;
font-size: 1.75rem;
}
.portfolio-section .portfolio-grids .grid p {
font-size: 14px;
font-size: 1.5rem;
font-size: 1.25rem;
font-weight: 600;
color: #1481ff;
margin: 0;