@charset "utf-8"; /* ====================== 全局CSS变量(统一维护,无冗余) ====================== */ :root { --main-color: #666; --theme-color: #5abbda; --dark-theme: #1d2088; --white: #fff; --light-bg: #f5f5f5; --transition: all 0.4s ease-out; --transition-slow: all 5s ease; --transition-img: all 0.6s ease; /* 图片专用过渡,抽离重复值 */ --border-radius: 5px; --radius-circle: 30px; --max-width: 1600px; --mobile-width: 92%; --text-ellipsis: nowrap; /* 文字溢出统一变量 */ } /* ====================== 全局重置 & 公共样式(精简冗余) ====================== */ * { margin: 0; padding: 0; box-sizing: border-box; outline: none; /* 优化:默认重置轮廓,提升键盘导航体验 */ } img { max-width: 100%; height: auto; object-fit: cover; vertical-align: middle; } ul, li { list-style: none; } a { text-decoration: none; color: inherit; } body { font-family: 'Microsoft YaHei', sans-serif; line-height: 1.5; overflow-x: hidden; /* 优化:禁止横向滚动,避免响应式溢出 */ } .contain-1400 { max-width: var(--mobile-width); margin: 0 auto; } /* 公共动画(无冗余) */ @keyframes bannerWordsdown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } } @keyframes bannerWordsup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes hideIndex { 0% { opacity: 0; transform: translateY(50px); } 100% { opacity: 1; transform: translateY(0); } } /* 公共文字溢出(抽离重复代码) */ .text-ellipsis { white-space: var(--text-ellipsis); overflow: hidden; text-overflow: ellipsis; } .text-multi-ellipsis-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .text-multi-ellipsis-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } /* ====================== 公共Swiper分页(简化选择器,减少权重) ====================== */ .swiper-pagination-custom .swiper-pagination-bullet { width: 6px; height: 6px; border-radius: 50%; background: #666; opacity: 0.8; position: relative; } .swiper-pagination-custom .swiper-pagination-bullet::after { content: ""; width: 20px; height: 20px; position: absolute; left: 50%; top: 50%; border: 2px solid #666; border-radius: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; transition: var(--transition); } .swiper-pagination-custom .swiper-pagination-bullet-active { opacity: 1; } .swiper-pagination-custom .swiper-pagination-bullet-active::after { opacity: 1; transform: translate(-50%, -50%) scale(1); } /* 简化选择器,减少层级 */ .swiper-pagination-custom .swiper-pagination-bullet { margin: 0 16px; } /* 白色分页(案例模块) */ .swiper-pagination-white .swiper-pagination-bullet { background: var(--white); } .swiper-pagination-white .swiper-pagination-bullet::after { border-color: var(--white); } /* 主题色分页(核心优势) */ .swiper-pagination-theme .swiper-pagination-bullet { background: #bbb; } .swiper-pagination-theme .swiper-pagination-bullet::after { border-color: var(--theme-color); } .swiper-pagination-theme .swiper-pagination-bullet-active { background: var(--theme-color); } /* ====================== Banner轮播 ====================== */ .banner-container { position: relative; } .banner-pic { height: 100%; overflow: hidden; } .banner-pic img { width: 100%; height: 100%; transition: var(--transition-slow) 1.2s; /* 合并重复过渡 */ } .swiper-slide-active .banner-pic img { transition-delay: 0.4s !important; } .banner-pic .banner-pc { display: block; } .banner-words { position: absolute; width: 100%; left: 0; top: 45%; transform: translateY(-50%); z-index: 2; text-align: center; } .banner-words h4 { font-size: 44px; color: var(--white); font-weight: bold; } .banner-words h5 { font-size: 18px; color: var(--white); margin-top: 20px; } .banner-words h5 span { border: 1px solid var(--white); padding: 6px 35px; border-radius: var(--radius-circle); margin: 0 10px; display: inline-block; } .swiper-slide-active .banner-words h4 { animation: bannerWordsdown 1.2s ease both 600ms; } .swiper-slide-active .banner-words h5 { animation: bannerWordsup 1.2s ease both 900ms; } /* 轮播箭头 */ .banner-prev, .banner-next { position: absolute; z-index: 4; top: 50%; width: 40px; height: 60px; transform: translateY(-50%); /* 优化:垂直居中,精简margin */ cursor: pointer; user-select: none; transition: var(--transition); } .banner-prev { left: 15px; background: rgba(0, 0, 0, .3) url('images/banL.png') no-repeat center; } .banner-next { right: 15px; background: rgba(0, 0, 0, .3) url('images/banR.png') no-repeat center; } .banner-prev:hover, .banner-next:hover { background-color: rgba(0, 129, 204, 1); } .banner .swiper-pagination { bottom: 20px; } /* ====================== 产品模块 ====================== */ .products-container { padding: 80px 0 50px; } .products { max-width: var(--max-width); margin: 0 auto; } .pro_pic { margin-top: 40px; } .pro_list { background: var(--light-bg); border-radius: var(--border-radius); overflow: hidden; transition: var(--transition); } .pro_list .img { padding-top: 75%; position: relative; overflow: hidden; } .pro_list .img img { position: absolute; left: 0; top: 0; transition: var(--transition); } .pro_list .text { padding: 0 5px; } .pro_list .text h5 { line-height: 50px; color: #444; font-size: 16px; text-align: center; transition: var(--transition); } .pro_list:hover { background: var(--main-color); } .pro_list:hover .img img { transform: scale(1.1); } .pro_list:hover .text h5 { color: var(--white); } .pro_pic .swiper-container { padding-bottom: 50px !important; } .pro_pic .swiper-pagination { bottom: 10px; } /* ====================== 品牌实力 ====================== */ .pinpai-container { padding: 80px 0; background-position: center !important; background-size: cover; } .pinpai { max-width: var(--max-width); margin: 0 auto; } .pinpai_center .about_kr_text { padding-top: 30px; color: var(--white); font-size: 18px; line-height: 40px; text-align: center; } .pinpai_center ul { overflow: hidden; } .pinpai_center ul li { width: 25%; float: left; border-right: 1px dashed #b4d6f6; text-align: center; } .pinpai_center ul li h5 { font-size: 30px; color: var(--white); font-family: 'impact'; } .pinpai_center ul li h5 span { font-size: 50px; color: var(--white); font-family: 'impact'; } .pinpai_center ul li h6 { font-size: 18px; color: var(--white); } .pinpai_center ul li:last-child { border-right: 0; } /* 视频按钮 */ .video_click { margin: 40px 0; cursor: pointer; } .video_click h5 { width: 82px; height: 82px; overflow: hidden; margin: 0 auto; } .video_click h6 { font-size: 16px; color: var(--white); text-align: center; padding-top: 10px; } .video_click h6 span { border-bottom: 1px solid var(--white); display: inline-block; } /* 视频弹窗 */ .media-modal { width: 100%; height: 100%; background: rgba(0,0,0,.3); position: fixed; top: 0; left: 0; z-index: 9999; display: none; opacity: 0; } .media-modal .mediaModal-contain { width: 720px; height: 480px; background: var(--white); box-shadow: 0 0 15px rgba(0,0,0,.5); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; } .mediaModal-contain video, .mediaModal-contain .mejs-container { width: 100% !important; height: 100% !important; } .mediaModal-contain .close { width: 32px; height: 32px; background: url(js/media/icon-close.png) no-repeat center/cover; position: absolute; right: 5px; top: 5px; z-index: 2; opacity: 0; transition: var(--transition); } .mediaModal-contain:hover .close { opacity: 1; } /* ====================== 核心优势 ====================== */ .core_container { padding: 100px 0 80px; } .core { padding: 30px 0; overflow: hidden; } .core_list .img { height: 356px; overflow: hidden; } .core_list .img img { transition: var(--transition); } .core_list:hover .img img { transform: scale(1.1); } .core_list .text { height: 120px; background: var(--light-bg); padding: 30px; position: relative; } .core_list .text h5 { font-size: 18px; color: #444; font-weight: bold; } .core_list .text h6 { font-size: 16px; color: #888; padding-top: 10px; } .core_list .text i { position: absolute; right: 20px; bottom: 40px; width: 19px; height: 8px; background: url("images/pro_jian4.png") no-repeat center; } .core_list:hover .text { background: var(--main-color); } .core_list:hover .text h5, .core_list:hover .text h6 { color: var(--white); } .core_list:hover .text i { background: url("images/pro_jian3.png") no-repeat center; } .core .swiper-container { padding-bottom: 50px !important; } .core .swiper-pagination { bottom: 10px; } /* ====================== 经典案例 ====================== */ .case-container { padding: 80px 0 50px; background-position: center !important; background-size: cover !important; } .case { max-width: var(--max-width); margin: 0 auto; } .case-center { margin-top: 50px; } .case-center .swiper-container { padding-bottom: 50px !important; } .case-center .swiper-pagination { bottom: 10px; } .case_list ul { margin-left: -2%; } .case_list ul li { width: 23%; margin-left: 2%; margin-bottom: 2%; background: var(--white); border-radius: 3px; padding: 15px; float: left; overflow: hidden; } .case_list ul li .img { padding-top: 75%; position: relative; overflow: hidden; } .case_list ul li .img img { position: absolute; left: 0; top: 0; transition: var(--transition); } .case_list ul li:hover .img img { transform: scale(1.1); } .case_list ul li .text { padding: 15px 0 5px; } .case_list ul li .text h5 { height: 30px; line-height: 30px; font-size: 16px; color: #444; padding-right: 19px; background: url("images/pro_jian4.png") right no-repeat; transition: var(--transition); } .case_list ul li .text h6 { line-height: 30px; font-size: 14px; color: #999; padding-top: 5px; } .case_list ul li:hover .text h5 { color: var(--main-color); background: url("images/pro_jian5.png") right no-repeat; } .case_list ul li:first-child { width: 48%; } /* ====================== 新闻中心 ====================== */ .news-container { padding: 80px 0; } .news { max-width: var(--max-width); margin: 0 auto; } .news-title { text-align: center; margin-top: 20px; } .news-title ul li { display: inline-block; font-size: 16px; color: #888; padding: 0 20px; cursor: pointer; transition: var(--transition); } .news-title ul li:hover, .news-title ul li.cur { color: var(--main-color); } .news-title ul a { padding: 0 20px; font-size: 16px; color: #888; } .news-title ul a:hover { color: var(--main-color); } .news-list { display: none; } .news-list.active { display: block; animation: hideIndex 0.5s; } .news-center { margin-top: 50px; overflow: hidden; } /* 新闻左侧 */ .news-left { width: 50%; float: left; padding-right: 10px; } .news-left .img { height: 456px; overflow: hidden; } .news-left .img img { transition: var(--transition); } .news-left:hover .img img { transform: scale(1.1); } .news-left .text { background: var(--light-bg); padding: 30px; position: relative; } .news-left .text h5 { font-size: 18px; color: #444; padding-right: 100px; height: 30px; line-height: 30px; transition: var(--transition); } .news-left .text h6 { font-size: 14px; color: #999; line-height: 30px; height: 90px; padding-right: 100px; } .news-left:hover .text h5 { color: var(--main-color); } .news-time { width: 90px; height: 90px; background: var(--main-color); padding: 8px; font-size: 38px; color: var(--white); text-align: center; position: absolute; right: 30px; top: 30px; } .news-time span { display: block; font-size: 12px; color: var(--white); } /* 新闻右侧 */ .news-right { width: 50%; float: left; padding-left: 10px; } .news-right ul li { margin-bottom: 3px; background: var(--light-bg); padding: 32px; overflow: hidden; } .news-right ul li .text { width: 66%; float: left; padding-right: 30px; } .news-right ul li .text h4 { font-size: 18px; color: #444; height: 30px; line-height: 30px; transition: var(--transition); } .news-right ul li .text h5 { font-size: 14px; color: #888; line-height: 30px; height: 60px; margin: 15px 0; } .news-right ul li .text h6 { font-size: 14px; color: #555; font-family: 'Arial'; } .news-right ul li:hover .text h4 { color: var(--main-color); } .news-right ul li .img { width: 34%; float: left; height: 146px; overflow: hidden; } .news-right ul li .img img { transition: var(--transition); } .news-right ul li:hover .img img { transform: scale(1.1); } /* 新闻视频 */ .news-video { margin-top: 50px; overflow: hidden; } .news-video ul { margin-left: -2%; } .news-video ul li { width: 31.333%; margin-left: 2%; margin-bottom: 2%; height: 319px; float: left; position: relative; overflow: hidden; } .news-video ul li img { transition: var(--transition); } .news-video ul li:hover img { transform: scale(1.1); } .news-video ul li i { position: absolute; width: 42px; height: 42px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: url("images/video2.png") no-repeat center; } .news-video ul li p { width: 100%; font-size: 20px; color: var(--white); bottom: 1px; text-align: center; background: rgba(0,0,0,0.8); } /* 新闻更多 */ .news-more { width: 140px; height: 44px; line-height: 44px; background: var(--main-color); border-radius: var(--radius-circle); color: var(--white); font-size: 14px; margin: 30px auto 0; text-align: center; transition: var(--transition); } .news-more:hover { background: var(--theme-color); } /* ====================== 独立产品模块 ====================== */ .indpro { background: var(--light-bg); padding: 80px 0 40px; } .indpro-menu { font-size: 0; text-align: center; margin: 30px 0 46px; user-select: none; } .indpro-menu li { display: inline-block; vertical-align: top; border-bottom: 1px solid #d9e0ea; padding: 0 34px; } .indpro-menu li:first-child { padding-left: 0; } .indpro-menu li:last-child { padding-right: 0; } .indpro-menu-link { height: 48px; display: block; position: relative; } .indpro-menu-link i, .indpro-menu-link span { display: inline-block; vertical-align: middle; height: 28px; line-height: 28px; } .indpro-menu-link span { font-size: 18px; color: #444; font-weight: 700; margin-left: 12px; transition: var(--transition); } .indpro-menu-link::after { content: ""; position: absolute; width: 0; height: 2px; background: var(--dark-theme); left: 0; bottom: -1px; transition: var(--transition); } .indpro-menu-link.active span, .indpro-menu-link:hover span { color: var(--dark-theme); } .indpro-menu-link.active::after { width: 100%; } .indpro-items { display: none; } .indpro-items.active { display: block; animation: hideIndex 0.5s; } .indpro-ul { margin: -2% 0 0 -2%; overflow: hidden; } .indpro-link { width: 31.333%; float: left; margin: 2% 0 0 2%; background: var(--white); box-shadow: 0 2px 12px 2px rgba(29, 32, 136, 0.1); overflow: hidden; transition: var(--transition); } .indpro-link .img { padding-top: 75%; position: relative; overflow: hidden; } .indpro-link .img img { position: absolute; left: 0; top: 0; transition: var(--transition-img); } .indpro-cont { position: absolute; width: 92%; height: 90%; padding: 0 20px; background: rgba(30, 112, 196, 0.8); /* 可替换为var(--theme-color)统一主题 */ display: flex; flex-direction: column; justify-content: center; text-align: center; color: var(--white); transform: scale(0.8); opacity: 0; transition: var(--transition-img); z-index: 4; } .indpro-cont h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; } .indpro-cont p { font-size: 16px; } .indpro-link:hover .indpro-cont { transform: scale(1); opacity: 1; } .indpro-link:hover img { transform: scale(1.1); } .indpro-ul .text { padding: 20px; background: var(--light-bg); } .indpro-ul .text h6 { height: 30px; line-height: 30px; font-size: 16px; color: #444; padding-right: 20px; background: url('images/pro_jian4.png') right center no-repeat; transition: var(--transition); } .indpro-ul:hover .text h6 { color: var(--main-color); background: url('images/pro_jian5.png') right center no-repeat; } /* ====================== 响应式适配(精简+修复,无冗余) ====================== */ /* 1700px以下 */ @media (max-width:1700px) { .products, .pinpai, .case, .news { width: var(--mobile-width); } .products-container, .core_container, .news-container { padding: 80px 0 60px; } .core_list .img { height: 300px; } .news-video ul li { height: 290px; } } /* 1599px以下 */ @media (max-width:1599px) { .pinpai_center ul li h5 span { font-size: 80px; } .core_list .img { height: 265px; } .news-left .img { height: 380px; } .news-right ul li { padding: 22px; } .news-video ul li { height: 260px; } } /* 1439px以下 */ @media (max-width:1439px) { .pinpai_center ul li h5 span { font-size: 60px; } .pinpai_center ul li h6 { font-size: 16px; } .products-container, .core_container, .news-container { padding: 50px 0; } .core_list .img { height: 250px; } .news-video ul li { height: 246px; } } /* 1359px以下 */ @media (max-width:1359px) { .pinpai_center ul li h5 span { font-size: 50px; } .pinpai_center ul li h6 { font-size: 14px; } .core_list .img { height: 234px; } .news-left .img { height: 335px; } .news-video ul li { height: 232px; } } /* 1279px以下 */ @media (max-width:1279px) { .banner-words h4 { font-size: 36px; } .banner-words h5 { font-size: 14px; } .core_list .img { height: 210px; } .news-video ul li { height: 208px; } } @media (max-width:1200px) { .pinpai_center .about_kr_text { padding-top: 20px; font-size: 16px; line-height: 30px; } } /* 1000px以下(平板+手机) */ @media (max-width:1000px) { /* Banner */ .banner-prev, .banner-next { display: none; } .banner-words h4 { font-size: 18px; } .banner-words h5 { font-size: 12px; } .banner-words h5 span { padding: 6px 10px; margin: 5px; } /* 产品 */ .products-container, .core_container { padding: 30px 0; } .pro_list .text h5 { line-height: 40px; font-size: 14px; } /* 品牌实力 */ .pinpai-container { padding: 50px 0; } .pinpai_center .about_kr_text { font-size: 15px; line-height: 26px; text-align: justify; } .pinpai_center ul li { width: 50%; margin-bottom: 20px; border-right: 0; } .pinpai_center ul li h5 { font-size: 20px; } .pinpai_center ul li h5 span { font-size: 40px; } .pinpai_center ul li h6 { font-size: 13px; } /* 核心优势 */ .core_container { width: var(--mobile-width); } .core_list .text { padding: 10px; height: 100px; } /* 案例 */ .case-container { padding: 50px 0 20px; } .case_list ul li { width: 48%; padding: 10px; } .case_list ul li:first-child { width: 98%; } /* 新闻 */ .news-container { padding: 30px 0; } .news-left, .news-right { width: 100%; padding: 0; } .news-left .text { padding: 10px; } .news-time { width: 60px; height: 60px; font-size: 20px; } .news-right ul li { padding: 10px; } .news-video ul li { width: 100%; height: auto; } /* 独立产品 */ .indpro { padding: 40px 0; } .indpro-menu li { padding: 0 12px; } .indpro-link { width: 48%; } .indpro-cont { opacity: 1; transform: scale(1); } /* 分页间距 */ .swiper-pagination-custom .swiper-pagination-bullet { margin: 0 10px; } /* 视频弹窗(修复适配) */ .media-modal .mediaModal-contain { width: 94%; left: 50%; transform: translate(-50%, -50%); } .mediaModal-contain .close { opacity: 1; } } /* 640px以下(手机) */ @media (max-width:640px) { .indpro-menu li { width: 50%; margin-top: 12px; } .indpro-link { width: 100%; } .indpro-ul .text { padding: 5px; } .indpro-ul .text h6 { font-size: 14px; } .news-video ul li p { font-size: 14px; bottom: 10px; } }