body { color: #000; background-color: #f6f6f6; } a { color: #000; } a:hover { color: #da251e; } .header { background: #da251e url("/main/dist/websites/images/zsb/header_bg.png"); background-size: cover; background-position: center; } .gallery { display: flex; justify-content: space-around; align-items: center; } .thumbnail { width: 100px; /* 初始大小 */ transition: transform 0.3s ease; /* 平滑过渡效果 */ } .thumbnail:hover { transform: scale(1.5); /* 鼠标经过时放大到1.5倍 */ } .content-list-wrap, .banner-list { margin-bottom: 20px; } .banner-list, .banner-list img { width: 100%; height: 150px; object-fit: cover; } .swiper-wrapper { height: auto; } .banner .slide-content { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; text-align: center; flex-direction: column; color: #fff; /* 文本颜色 */ opacity: 0; z-index: 1111; background-color: rgba(0, 0, 0, 0.3); transition: opacity 0.3s ease; /* backdrop-filter: blur(5px); */ } .banner .slide-content h2 { font-size: 30px; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; /* margin-bottom: 100px; */ } .banner .slide-content a { background-color: #da251e; display: inline-block; width: 150px; height: 45px; border-radius: 30px; color: #fff; line-height: 45px; text-align: center; font-size: 18px; position: absolute; bottom: 30%; } .banner .slide-content .slide-content-down { width: 300px; height: 120px; position: absolute; bottom: 0; margin: auto; color: #fff; overflow: hidden; text-align: center; font-size: 18px; /* background-size: 100% 100% */ } .banner .slide-content .slide-content-down .slide-content-down-icon { width: 100%; height: 100px; background: url("/main/dist/websites/images/zsb/banner_down.png") no-repeat center top; background-size: 15%; position: absolute; } .banner .slide-content .slide-content-down .slide-content-down-content { background-color: #da251e; width: 300px; height: 250px; line-height: 120px; position: absolute; bottom: -160px; border-radius: 50%; } .banner .swiper-pagination { /* width: 80%; */ color: #fff; font-weight: bold; font-size: 20px; left: 10%; text-align: left; /* position: absolute; */ } .banner .swiper-pagination-current { font-size: 30px; } .banner .swiper-slide:hover .slide-content { opacity: 1; /* 鼠标移入时显示内容 */ } .mobile-nav-icon { top: 50%; } .header-top-bg { width: 100%; height: 14px; } .header-top .header-top-left { /* width: 100%; */ padding: 0 30px; float: left; } .header-top .header-top-right { /* width: 100%; */ padding: 0 30px; float: right; } .header-top-left span:last-child, .header-top-right span:last-child { border: none; /* float: right; */ } /* .header-top .header-top-left span:nth-last-of-type(1), .header-top .header-top-left span:nth-last-of-type(2), .header-top .header-top-left span:nth-last-of-type(3) { float: right; } */ /* .header-top .header-top-left span:nth-last-of-type(3),.header-top .header-top-left span:nth-last-of-type(4){ border: none; } */ .header-top div span { padding: 0 10px; color: white; border-right: 1px solid #fff; } .header-top div span:first-child { padding-left: 0; } .header-top div span a { color: white; } .header-img { clear: both; display: flex; justify-content: center; align-items: center; padding-bottom: 10px; } .header-img .header-img-line { width: 1px; height: 50px; margin: 10px; background-color: white; } .header-img img { display: inline-block; width: auto; height: 50px; } /* 导航 */ .header-nav { background-color: transparent; display: flex; justify-content: center; } /* .wrap{ width: 100%; } */ .header-nav>ul { /* width: 100%; */ height: 40px; line-height: 40px; background-color: transparent; display: inline-block; } .header-nav>ul>li { width: 100px; float: left; display: flex; align-items: center; height: 40px; justify-content: center; } .header-nav>ul>li:hover::after { content: ""; width: 100%; height: 12px; background: url("/main/dist/websites/images/zsb/nav_icon.png") no-repeat center; /* background-size: 100% 100%; */ position: absolute; bottom: -1px; left: 0; } .header-nav>ul>li a { /* line-height: 50px; */ font-size: 16px; } .nav-secondLevel { top: 40px; } .header-nav li:last-child { background: none; } .header-nav li:hover a { color: white; background-color: transparent; } .header-nav li:hover ::after { background-image: url("/main/dist/websites/images/zsb/nav_icon.png"); } /* .nav-secondLevel li:hover a { background-color: #c90303; } */ .header-nav .nav-secondLevel li { background-color: #da251e; } .header-nav .nav-secondLevel li:hover { background-color: #c90303; } .header-nav .nav-secondLevel li a { border-color: #da251e; } .header-nav .nav-threeLevel li a:hover { background-color: #c90303; } .header-nav li a { position: relative; font-weight: normal; } .header-nav a i { width: 0; height: 0; border: 6px solid transparent; border-bottom-color: #fff; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); opacity: 0; } .header-nav li:hover a i { opacity: 1; } /* 主体 */ .content { /* margin-top: 15px; */ } .ejbt { background-color: white; } .ejbt ul { display: flex; justify-content: space-between; } .ejbt li a { display: flex; flex-direction: column; justify-content: center; align-items: center; color: #da251e; font-size: 18px; font-weight: bold; margin: 0 10px } .ejbt li a span {} .ejbt li a img { width: 100%; margin-bottom: 15px; } /* 遮罩 */ .swiper-shade { width: 100%; height: 100%; position: absolute; top: 0; left: -100%; background-color: #000; opacity: 0.6; z-index: 2; } .swiper-shade-right { left: 100%; } .swiper-slide img { display: block; width: 100%; } .content-row { display: flex; justify-content: space-between; flex-wrap: wrap; } .wrap { width: 1600px; clear: both; display: flex; justify-content: center; margin: 20px auto; } .content-wrap { width: 100%; } .content-item-border { border: 5px solid #da251e; } .content-item-swiper { width: 100%; } .content-title { width: 100%; display: flex; align-items: center; justify-content: space-between; } .content-title h2 { font-size: 30px; font-weight: bold; color: #000; margin-left: 10px; margin-right: 50px; } .content-title-left { display: flex; align-items: end; } .content-nav { font-size: 16px; color: #8c8c8c; height: auto; /* height: 40px; */ } .content-nav-item { margin: 0 10px; padding: 0 0 2px 0; box-sizing: border-box; display: inline-block; cursor: pointer; } .content-nav-item-selected { color: #da251e; border-bottom: 3px solid #da251e; } .content-row-two { /* height: 550px; */ margin-top: 40px; overflow: hidden; } .content-row-two .content-title-right a { font-size: 16px; color: #8c8c8c; margin-right: 10px; cursor: pointer; } .content-row-two .content { height: 100%; display: flex; margin-top: 40px; height: 550px; justify-content: space-between; } .content-row-two .content-item { width: 30%; box-sizing: border-box; } .content-row-two .content-item:nth-of-type(1) { width: 33%; background: #fff; } .content-row-two .content-item:nth-of-type(1)>img { width: 100%; } .content-row-two .content-item:nth-of-type(1) p { width: 90%; margin: 30px auto 15px; display: flex; align-items: center; justify-content: space-between; } .content-row-two .content-item:nth-of-type(1) p span:first-child { color: #da251e; } .content-row-two .content-item:nth-of-type(1) p span:last-child { display: flex; align-items: center; color: #8c8c8c; } .content-row-two .content-item:nth-of-type(1) h2 { width: 90%; line-height: 35px; margin: 0 auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .content-row-two .content-item:nth-of-type(2) { position: relative; padding: 50px 30px; width: 30%; background-color: #da251e; color: #fff; } .content-row-two .content-item:nth-of-type(2) p { display: flex; align-items: center; justify-content: space-between; line-height: 30px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; } .content-row-two .content-item:nth-of-type(2) p span:last-child { display: flex; align-items: center; } .content-row-two .content-item:nth-of-type(2) h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 30px 0; line-height: 35px; } .content-row-two .content-item:nth-of-type(2) div { width: 30%; height: 35px; background: url('/main/dist/websites/images/zsb/right_red.png') center no-repeat; background-color: #fff; border-radius: 40px; position: absolute; bottom: 10%; } .content-row-two .content-item:nth-of-type(3) ul { display: flex; flex-direction: column; height: 100%; justify-content: space-between; } .content-row-two .content-item:nth-of-type(3) li { width: 100%; display: flex; align-items: center; justify-content: space-between; line-height: 30px; /* border-bottom: 1px solid #ccc; */ } .content-row-two .content-item:nth-of-type(3) li:nth-of-type(2) { padding: 25px 0 28px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } .content-row-two .content-item:nth-of-type(3) li>div:last-child { height: 100%; padding: 20px 0 20px 20px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; } .content-row-two .content-item:nth-of-type(3) li h4 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; } .content-row-two .content-item:nth-of-type(3) li>div p { line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .content-row-three { position: relative; margin-top: 40px; } .content-row-three .swiper { margin: 40px 0; padding: 5px; overflow: hidden; } .content-row-three .swiper .swiper-pagination-bullet { width: 30px; height: 10px; background: #fff; border-radius: 10px; } .content-row-three .swiper .swiper-pagination-bullet-active { background: #da251e; } .content-row-three .swiper .swiper-button-next { opacity: 1; right: 80px; width: 50px; height: 50px; } .content-row-three .swiper .swiper-button-next::after { content: '>'; background-color: #da251e; color: #fff; width: 40px; height: 40px; text-align: center; line-height: 40px; font-size: 30px; /* font-weight: bold; */ } .content-row-three .swiper .swiper-button-prev { opacity: 1; left: 80px; width: 50px; height: 50px; } .content-row-three .swiper .swiper-button-prev::after { content: '<'; background-color: #da251e; color: #fff; width: 40px; height: 40px; text-align: center; line-height: 40px; font-size: 30px; /* font-weight: bold; */ } .content-row-three .swiper-slide { width: 100%; height: 640px; background-color: #fff; padding: 30px; box-shadow: 0 0 10px #ccc; position: relative } .content-row-three .swiper-slide h2 { margin: 25px auto 30px; line-height: 40px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .content-row-three .swiper-slide p { line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; color: #8c8c8c; overflow: hidden; font-size: 14px; } .content-row-three .swiper-slide a { color: #da251e; position: absolute; bottom: 5%; } /* 列表页 */ .content-list-wrap { width: 95%; border: 1px solid #da251e; margin: 20px auto; } .crumbs { background-color: #da251e; color: #fff; } .crumbs a { color: #fff; } /* 目录页 */ .catalog-title { border-color: #da251e; } /* 底部 */ .footer { padding-top: 5px; background-color: #da251e; } .footer-mesg { background-color: transparent; /* display: flex; justify-content: space-between; */ padding: 10px 0; width: 98%; margin: 0 auto; } .footer-mesg p { color: #fff; font-size: 14px; margin: 0 auto; } .footer-mesg p a { text-decoration: none; padding: 0 5px; border-right: 1px solid #fff; } .footer-mesg p a:last-child { border-right: none; } .footer-mesg p a:hover { color: #fff; } .footer>div:last-child { background-color: white; height: 50px; line-height: 50px; text-align: center; color: #000; font-size: 14px; } .mobile-nav-icon span { background-color: #fff; } .mobile-header-nav>ul { background-color: #da251e; } .mobile-header-nav>ul>li { background-color: #da251e; } .mobile-header-nav li a { border-color: #da251e; } .mobile-header-nav .nav-secondLevel { background-color: #da251e; } .mobile-header-nav .nav-threeLevel { background-color: #da251e; } @media screen and (max-width: 1800px) { .content-row-three .swiper .swiper-button-next { right: 0; } .content-row-three .swiper .swiper-button-prev { left: 0; } } @media screen and (max-width: 1600px) { .wrap { width: 1400px; } } @media screen and (max-width: 1400px) { .wrap { width: 1200px; } } @media screen and (max-width: 1200px) { .wrap { width: 1060px; } } @media screen and (max-width: 1060px) { .content-row .content { margin-top: 10px !important; } .mobile-nav-icon, .mobile-header-nav { display: block; } .header-nav { display: none; } .header-img { width: 90%; flex-direction: column; } .header-top-left, .header-top-right { display: none; } .banner .swiper-pagination-current { font-size: 20px; } .banner .swiper-pagination { font-size: 14px; } .content { margin: 0 !important; } .banner .slide-content h2 { font-size: 24px; margin-bottom: 70px; } .banner .slide-content .slide-content-down { width: 150px; height: 100px; } .banner .slide-content .slide-content-down .slide-content-down-content { width: 150px; height: 100px; bottom: -60px; line-height: 45px; } .banner .slide-content .slide-content-down .slide-content-down-icon { background: url(/main/dist/websites/images/zsb/banner_down.png) no-repeat center bottom; background-size: 10%; height: 70px; } .ejbt ul { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); } .ejbt li { margin-bottom: 10px; } .ejbt li a img { width: 60px; margin: unset; } .ejbt li a { font-size: 14px } .content-wrap { width: 95%; margin: 0 auto; } .wrap { width: 100%; } .content-row-two { margin-top: unset; } .content-title { margin-bottom: 5px; } .content-title h2 { margin-right: 5px; font-size: 26px; } .content-nav-item { margin: 0 5px; } .content-row-two .content { flex-direction: column; height: auto; } .content-row-two .content-item { width: 100% !important; margin: 5px 0; } .content-row-two .content-item:nth-of-type(2) div { bottom: 3%; } .content-row-three { margin-top: unset; } .content-row-three .swiper-slide h2 { margin: 10px 0; line-height: 30px } .content-row-three .swiper-slide { height: 450px; } .content-row-three .swiper { margin: 10px 0; } } @media screen and (max-width: 640px) { .banner .swiper-button-next, .swiper-button-prev { display: none !important; } .content-row-three .swiper-button-next, .swiper-button-prev { display: none !important; } .content { margin-top: 82px !important; } }