/* 蹇嵎瀵艰埅 start */
.ys-header-shortcut {
position: relative;
z-index: 101;
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 40px;
background-color: #f5f5f5;
border-bottom: 1px solid #eee;
}
.ys-header-shortcut .ys-header-shortcut__list {
display: flex;
align-items: center;
list-style: none;
margin: 0;
padding: 0;
}
.ys-header-shortcut .ys-header-shortcut__list:last-of-type{
margin-left: auto;
}
.ys-header-shortcut .ys-header-shortcut__link {
text-decoration: none;
font-size: 12px;
font-weight: 400;
line-height: 20px;
color: var(--ys-color-text-000);
margin-right: 32px;
}
.ys-header-shortcut .ys-header-shortcut__link:hover {
color: var(--ys-color-primary);
}
.ys-header-shortcut .ys-header-shortcut__tel {
font-size: 18px;
font-weight: 700;
line-height: normal;
color: var(--ys-color-strong);
display: inline-flex;
align-items: center;
}
.ys-header-shortcut .ys-header-shortcut__tel span {
font-size: 14px;
color: var(--ys-color-text-000);
}
.ys-header-shortcut .ys-header-shortcut__tel .iconfont {
font-size: 14px;
font-weight: normal;
color: var(--ys-color-strong);
}
/* 蹇嵎瀵艰埅 end */
.ys-header {
height: 107px;
transition: all 0.2s;
position: relative;
z-index: 100;
}
.ys-header.is-sticky {
position: sticky;
top: 0;
}
.ys-header .ys-header-nav {
width: 100%;
height: 72px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
background: #fff;
position: relative;
z-index: 20;
box-shadow: 0 15px 10px -15px #0000000f;
}
.ys-header__logo {
height: 37px;
}
.ys-header__nav {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
min-width: 440px;
max-width: 670px;
width: 50%;
height: 100%;
transition: max-width 0.3s;
}
.ys-header__nav .nav-one {
display: flex;
align-items: center;
height: 100%;
padding: 0 10px;
font-size: 18px;
font-weight: bold;
color: var(--ys-color-text-000);
text-decoration: none;
}
.ys-header__nav .nav-item.extend {
position: relative;
}
.ys-header__nav .nav-item.extend::after{
position: absolute;
content: '';
width: 120%;
height: 80px;
left: -10px;
bottom: -50px;
}
.ys-header__nav .nav-item:hover .nav-one {
color: var(--ys-color-primary);
}
.ys-header__nav .icon-short-arrow {
display: inline-block;
position: relative;
left: 2px;
transform: rotate(90deg);
transition: transform 0.2s;
color: var(--ys-color-text-300);
font-weight: 400;
}
.ys-header__nav .nav-item:hover .icon-short-arrow {
transform: rotate(-90deg);
}
.ys-header__nav .nav-two {
font-size: 14px;
color: var(--ys-color-text-000);
text-decoration: none;
}
.ys-header__nav .nav-two:hover {
color: var(--ys-color-primary);
}
/* search start */
.ys-header__right {
display: flex;
align-items: center;
justify-content: end;
}
.ys-header__right.open {
flex: 1;
}
.ys-header__search {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
width: 203px;
height: 44px;
padding: 10px 12px;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 4px;
transition: all 0.2s;
transform-origin: right;
}
.ys-header__right.open .ys-header__search {
width: calc(100% - 130px);
padding: 10px 12px;
}
.ys-header__search::after {
content: '';
position: absolute;
height: 16px;
left: 12px;
top: 13px;
width: 1px;
background-color: var(--ys-color-text-000);
animation: flashing 0.8s infinite;
}
.ys-header__right.open .ys-header__search:focus-within:after {
display: none;
}
@keyframes flashing {
0% {
opacity: 1;
}
40% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.ys-header__search .ys-header__search-input {
width: calc(100% - 46px);
height: 16px;
color: var(--ys-color-text-000);
caret-color: var(--ys-color-primary);
border: none;
outline: none;
}
.ys-header__search:focus-within {
border-color: var(--ys-color-primary);
}
.ys-header__search .ys-header__search-input::placeholder {
color: var(--ys-color-text-500);
}
.ys-header__search .search-btn {
width: 26px;
padding: 0;
position: absolute;
top: 2px;
right: 10px;
background-color: #fff;
border: none;
outline: none;
cursor: pointer;
transition: transform 0.2s;
}
.ys-header__search .search-btn .icon-search {
display: inline-block;
font-size: 26px;
color: var(--ys-color-text-000);
transition: transform 0.2s;
}
.ys-header__search .search-btn:hover .icon-search {
color: var(--ys-color-primary);
transform: scale(1.1);
}
/* search end */
/* user start */
.ys-header__user {
margin-left: 30px;
position: relative;
height: 40px;
padding-top: 3px;
box-sizing: border-box;
}
.ys-header__user > a > i {
font-size: 24px;
cursor: pointer;
color: var(--ys-color-text-000);
}
.ys-header__user .ys-header__user-card {
position: absolute;
top: 40px;
right: -10px;
padding: 16px;
background-color: var(--ys-color-white);
z-index: 20;
border-radius: 2px;
box-shadow: 0px 4px 14px 0px #0000001a;
border: 1px solid var(--ys-color-text-700);
transition: all 0.2s;
transform-origin: top;
transform: scaleY(0);
}
.ys-header__user:hover .ys-header__user-card {
transform: scaleY(1);
}
.ys-header__user .ys-header__user-card button {
height: 32px;
line-height: 32px;
margin-bottom: 12px;
width: 100px;
font-size: 12px;
padding: 0;
}
.ys-header__user .ys-header__user-card button a {
color: unset;
text-decoration: none;
display: block;
}
.ys-header__user .ys-header__user-card button:last-child {
margin-bottom: 0;
}
/* user end */
/* 鎮仠鍗$墖 start */
.ys-header__card {
position: absolute;
z-index: 18;
width: 100%;
left: 0;
/* right: 0; */
top: 72px;
background-color: var(--ys-color-white);
transition: all .2s ease-in-out;
transform-origin: top;
transform: scaleY(0);
max-height: 82vh;
overflow-y: auto;
overflow-x: hidden;
padding: 40px;
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1) inset;
border-top: 0.5px solid var(--ys-color-text-700);
border-bottom: 1px solid var(--ys-color-text-700);
transition-delay: 150ms;
}
.ys-header__card.show {
transform: scaleY(1);
}
.ys-header__cover {
position: fixed;
z-index: 17;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
transition-delay: 100ms;
}
/* 鎮仠鍗$墖 end */
/* 鎼滅储鍗$墖 start */
.ys-header__search-card {
background-color: #f3f5f8;
padding: 50px 40px;
}
.ys-header__search-card i {
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
font-size: 20px;
}
.ys-header__search-card .search-hot {
margin-bottom: 40px;
}
.ys-header__search-card .search-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 12px;
}
.ys-header__search-card .search-title span {
font-weight: 400;
color: var(--ys-color-text-300);
margin-left: 16px;
cursor: pointer;
}
.ys-header__search-card .search-words a {
margin-right: 20px;
font-size: 14px;
text-decoration: none;
color: var(--ys-color-text-000);
}
/* 鎼滅储鍗$墖 end */
/* 瑙e喅鏂规 start */
.ys-header__case {
display: flex;
flex-wrap: wrap;
/* grid-template-rows: 193px; */
/* grid-auto-rows: 193px; */
/* grid-template-columns: repeat(6, 1fr); */
/* gap: 40px; */
/* margin: 0 10px; */
padding: 40px 20px 20px;
/* left: 20px; */
background-color: #f3f5f8;
}
.ys-header__case .case-item {
width: 192px;
margin: 0 20px 20px;
text-decoration: none;
}
.ys-header__case .case-item:hover img {
transform: scale(1.1);
}
.ys-header__case .case-item:hover .case-title {
color: var(--ys-color-primary);
}
.ys-header__case .case-img {
display: block;
/* width: 193px; */
/* height: 118px; */
border-radius: 4px;
}
.ys-header__case .case-title {
text-decoration: none;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
margin: 15px 0 2px;
color: var(--ys-color-text-000);
}
.ys-header__case .case-desc {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
color: var(--ys-color-text-300);
}
/* 瑙e喅鏂规 end */
/* 浜у搧寮圭獥 start */
.ys-header__product a {
text-decoration: none;
}
.ys-header__product .product-wrap {
display: grid;
grid-template-columns: repeat(6, 1fr);
/* gap: 0 40px; */
}
.ys-header__product .to-product {
display: flex;
align-items: center;
font-size: 18px;
color: var(--ys-color-text-000);
margin-bottom: 20px;
}
.ys-header__product .to-product i {
transform: rotate(0deg) !important;
display: block;
font-size: 18px;
}
.ys-header__product .to-product:hover,
.ys-header__product .product-item:hover .product-title {
color: var(--ys-color-primary);
}
.ys-header__product .product-img {
width: 140px;
height: 140px;
margin: auto;
background: unset;
}
.ys-header__product .product-img img {
object-fit: contain;
}
.ys-header__product .product-item__box {
font-size: 0;
position: relative;
margin-bottom: 20px;
border-bottom: 1px solid #7C7C7C;
padding-right: 40px;
padding-left: 15px;
}
.ys-header__product .product-item__box::before {
content: '';
position: absolute;
width: 5px;
height: 18px;
top: 4px;
left: 0;
background-color: #1554B5;
}
.ys-header__product .product-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0 0 18px;
font-size: 16px;
font-weight: 600;
display: inline-block;
color: var(--ys-color-text-000);
}
.ys-header__product .product-item__child + .product-item__child {
margin-top: 10px;
}
.ys-header__product .product-item__link {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
color: var(--ys-color-text-000);
}
.ys-header__product .product-item__link:hover {
color: var(--ys-color-primary);
}
.ys-header__product .product-item__list {
padding-right: 40px;
padding-left: 15px;
}
/* 浜у搧寮圭獥 end */
/* 鍐呭涓庢湇鍔� start */
.ys-header__service {
display: flex;
padding: 0;
}
.ys-header__service .service-cate {
background-color: #f3f5f8;
padding: 30px 40px;
width: 200px;
box-sizing: border-box;
margin: 0;
}
.ys-header__service .service-cate li {
list-style: none;
}
.ys-header__service .service-cate .service-cate-title {
font-size: 18px;
font-weight: 500;
margin-bottom: 30px;
color: var(--ys-color-text-000);
}
.ys-header__service .service-cate .service-cate-item {
margin-bottom: 30px;
font-size: 14px;
cursor: pointer;
color: var(--ys-color-text-100);
}
.ys-header__service .service-cate .service-cate-item a {
color: var(--ys-color-text-100);
text-decoration: none;
}
.ys-header__service .service-cate .service-cate-item:hover a,
.ys-header__service .service-cate .service-cate-item:hover,
.ys-header__service .service-cate .service-cate-item.active,
.ys-header__service .service-cate .service-cate-item.active a {
color: var(--ys-color-primary);
}
.ys-header__service .service-content {
padding: 40px;
overflow-y: auto;
}
.ys-header__service .service-content-box {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 40px;
}
.ys-header__service .content-item {
width: 180px;
text-decoration: none;
display: block;
}
.ys-header__service .content-item[data-type="information"] {
width: 193px;
}
.ys-header__service .content-item[data-type="information"] .content-img {
height: 118px;
}
.ys-header__service .content-item[data-type='sample'],
.ys-header__service .content-item[data-type='quote'] {
width: 230px;
}
.ys-header__service .content-item[data-type='sample'] .content-img,
.ys-header__service .content-item[data-type='quote'] .content-img {
height: 140px;
}
.ys-header__service .content-item:hover img {
transform: scale(1.1);
}
.ys-header__service .content-item:hover .content-title {
color: var(--ys-color-primary);
}
.ys-header__service .content-item .content-img {
display: block;
width: 100%;
height: 180px;
margin-bottom: 20px;
}
.ys-header__service .content-item .content-title {
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
color: var(--ys-color-text-000);
}
.ys-header__service .content-item .content-desc {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
color: var(--ys-color-text-300);
margin-top: 6px;
}
.ys-header__service .service-content-slide {
height: 1px;
background-color: var(--ys-color-text-700);
margin: 30px 0 20px;
}
.ys-header__service .service-content-more {
color: var(--ys-color-primary);
font-size: 14px;
text-decoration: none;
}
.ys-header__service .service-content-more i {
transform: rotate(0deg) translateY(1px) !important;
margin-left: 0px;
}
/* 鍐呭涓庢湇鍔� end */
/* 鍏充簬鎴戜滑 start */
.ys-header__about {
display: flex;
padding: 0;
}
.ys-header__about .about-cate {
background-color: #f3f5f8;
padding: 30px 40px;
width: 200px;
box-sizing: border-box;
margin: 0;
}
.ys-header__about .about-cate li {
list-style: none;
}
.ys-header__about .about-cate .about-cate-title {
font-weight: 18px;
font-weight: 500;
margin-bottom: 30px;
}
.ys-header__about .about-cate .about-cate-item {
margin-bottom: 30px;
font-size: 14px;
color: var(--ys-color-text-100);
cursor: pointer;
}
.ys-header__about .about-cate .about-cate-item a {
color: var(--ys-color-text-100);
text-decoration: none;
}
.ys-header__about .about-cate .about-cate-item:hover,
.ys-header__about .about-cate .about-cate-item:hover a,
.ys-header__about .about-cate .about-cate-item.active,
.ys-header__about .about-cate .about-cate-item.active a {
color: var(--ys-color-primary);
}
.ys-header__about .about-content {
padding: 40px;
width: calc(100% - 200px);
box-sizing: border-box;
overflow-y: auto;
}
.ys-header__about .about-content-box {
display: flex;
flex-wrap: wrap;
/* grid-template-columns: repeat(6, 1fr); */
/* gap: 40px; */
margin: -20px;
}
.ys-header__about .about-item {
width: 230px;
max-width: 230px;
text-decoration: none;
margin: 20px;
}
.ys-header__about .about-item:hover img {
transform: scale(1.1);
}
.ys-header__about .about-item:hover .about-title {
color: var(--ys-color-primary);
}
.ys-header__about .about-item .about-img {
display: block;
width: 100%;
height: 140px;
margin-bottom: 20px;
border-radius: 4px;
}
.ys-header__about .about-item .about-img img {
object-fit: cover;
}
.ys-header__about .about-item .about-title {
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
color: var(--ys-color-text-000);
}
.ys-header__about .about-item .about-desc {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
color: var(--ys-color-text-300);
margin-top: 6px;
}
.ys-header__about .about-content-slide {
height: 1px;
background-color: var(--ys-color-text-700);
margin: 30px 0 20px;
}
.ys-header__about .about-content-more {
color: var(--ys-color-primary);
font-size: 14px;
text-decoration: none;
}
.ys-header__about .about-content-more i {
transform: rotate(0deg) translateY(1px) !important;
margin-left: 0px;
}
/* 鍏充簬鎴戜滑 end */
@media only screen and (max-width: 1895px) {
/* 瑙e喅鏂规 start */
.ys-header__case .case-item{
width: calc(16% - 40px);
}
/* 瑙e喅鏂规 end */
}
@media only screen and (max-width: 1500px) {
.ys-header__nav {
max-width: 500px;
}
}
@media only screen and (max-width: 1440px) {
/* 瑙e喅鏂规 start */
.ys-header__case {
padding-right: 40px;
}
.ys-header__case .case-item{
width: calc(16.66% - 20px);
margin-right: 0px;
}
/* 瑙e喅鏂规 end */
/* 鍐呭涓庢湇鍔� start */
.ys-header__service .service-content {
width: calc(100% - 200px);
}
.ys-header__service .service-content-box {
gap: 20px;
}
.ys-header__service .content-item {
width: 100%;
}
.ys-header__service .content-item[data-type="information"] {
width: 100%;
}
/* 鍐呭涓庢湇鍔� end */
/* 鍏充簬鎴戜滑 start*/
.ys-header__about .about-content-box {
flex-wrap: wrap;
margin: 0 -10px;
}
.ys-header__about .about-content {
padding: 40px 20px;
}
.ys-header__about .about-item {
width: calc(25% - 20px);
margin: 0 10px;
}
/* 鍏充簬鎴戜滑 end*/
}
@media only screen and (max-width: 1280px) {
.ys-header__nav {
max-width: 38%;
}
.ys-header__nav .nav-one {
font-size: 16px;
}
}
@media only screen and (max-width: 1100px) {
.ys-header__service .service-content-box {
grid-template-columns: repeat(4, 1fr);
}
}.ys-agreement {
padding-top: 20px;
background-color: var(--ys-color-background);
}
.ys-agreement .agreement-box {
width: 1300px;
margin: auto;
min-height: calc(100vh - 106px);
}