body { color: #000; } a { color: #000; } a:hover { color: #be6320; } .header { /* background-color: ; */ background: #bf6320 url("/main/dist/websites/images/xyfm/header-bg.png") no-repeat; 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: flex-start; padding-left: 10%; flex-direction: column; color: #fff; /* 文本颜色 */ /* opacity: 0; */ z-index: 1111; /* background-color: rgba(132, 132, 132, 0.8); */ /* transition: opacity 0.3s ease; */ /* backdrop-filter: blur(5px); */ } .banner .slide-content h1 { font-size: 40px; font-weight: normal; margin-bottom: 10px; } .banner .slide-content h2 { font-size: 30px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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; } .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; margin-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: 70px; } .header-img .header-img-line { width: 1px; height: 50px; margin: 10px; background-color: white; } .header-img img { display: inline-block; width: auto; height: 70px; } .swiper-pagination-bullet { width: 8%; height: 5px; border-radius: 3px; } .swiper-pagination-bullet-active { background-color: #be6320; } /* 导航 */ .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 a { /* line-height: 50px; */ font-size: 16px; } .nav-secondLevel { top: 40px; } .header-nav li:last-child { background: none; } .header-nav li:hover a { background-color: transparent; } .header-nav .nav-secondLevel { background-color: #c76722; } .header-nav .nav-secondLevel li a { border-color: #a3541c; background-color: #c76722; } .header-nav .nav-secondLevel li a:hover { background-color: #a3541c; } .header-nav .nav-threeLevel li a:hover { background-color: #a3541c; } .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; */ } /* 遮罩 */ .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%; } #video .swiper-container { overflow: inherit; } #video .swiper-pagination-bullet { width: 12px; height: 12px; } #video .swiper-pagination-bullet-active { color: #fff; background: #ff3300; display: none; } #video .swiper-container-horizontal>.swiper-pagination-bullets { text-align: right; left: -8px; } #video .swiper-slide { position: relative; } #video .swiper-slide img { display: block; width: 100%; } #video .swiper-slide .swiper-title { position: absolute; left: 0; bottom: 0; height: 38px; line-height: 38px; background-color: rgba(0, 0, 0, 0.6); color: #fff; padding: 0 125px 0 10px; box-sizing: border-box; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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 h2 { margin-bottom: 20px; display: flex; justify-content: center; } .content-wrap h2>div { width: 200px; height: 75px; line-height: 50px; /* margin-bottom: 30px; */ display: inline-block; color: #000; font-size: 30px; font-weight: bold; text-align: center; /* border: 2px solid #be6320; */ display: flex; align-items: center; justify-content: center; background: url(/main/dist/websites/images/xyfm/title.png) no-repeat; background-size: 100% 100%; } .content-item { width: 100%; box-sizing: border-box; float: left; } .content-item-border { border: 5px solid #be6320; } .content-item-swiper { width: 100%; } .part1 { width: 100%; display: flex; justify-content: center; margin: 2rem 0; } .part1 a { display: flex; align-items: center; flex-direction: column; margin: 0 1rem; color: #be6320; } .part1 a h2{ margin-top: 1rem; } .part2 { position: relative; width: 100%; height: 700px; margin: 0 auto; overflow: hidden; } .part2-ul { display: flex; width: 100%; height: 100%; } .part2-li { height: 700px; transition: all 0.5s ease-in-out; position: relative; cursor: pointer; } .part2-img { width: 100%; height: 100%; object-fit: cover; } .part2-arrow-left { position: absolute; bottom: 10%; right: 10%; font-size: 30px; /* color: white; */ cursor: pointer; z-index: 10; width: 50px; height: 50px; background: url(/main/dist/websites/images/xyfm/left.png) no-repeat; background-size: 100%; border-radius: 50%; text-align: center; line-height: 50px; } /* 信息展示区域 */ .part2-info { position: absolute; bottom: 5px; left: 5px; color: white; font-size: 16px; padding: 5px; z-index: 5; } .mobile-content-row-six { display: none; } .content-row-six { width: 100%; background: #e7e8ea; } .content-row-six div { width: 100%; } .content-row-six h2 { width: 1600px; margin: 20px auto; } .content-row-six .right span { background: #e7e8ea !important; } .content-row-six .xyfc-swiper-container { /* width: 1600px; */ margin: 40px auto; overflow: hidden; /* display: flex; */ } .xyfc-swiper-container .swiper-slide:first-child { margin-left: 50px; } .content-row-six .swiper-slide img { width: 100%; } .content-row-six .swiper-slide p { color: #b6b6b6; } .content-row-six .swiper-slide p:first-child { font-size: 18px; /* padding: 30px 20px 5px 20px; */ color: #000; margin: 30px 0 10px; font-weight: bold; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; } .content-row-six .swiper-slide p:last-child { width: 50%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; } /* 视频轮播 */ .video-swiper-container { width: 100%; height: 500px; position: relative; overflow: hidden; margin-top: 20px; margin-bottom: 20px; } .video-swiper-wrapper { display: flex; align-items: center; height: 100%; } .video-swiper-slide { display: flex; justify-content: center; align-items: center; width: 1100px !important; /* 将宽度从1200px减小到1100px */ margin-left: 20px; /* 给图片添加左右边距 */ margin-right: 20px; } .video-swiper-slide img { width: 100%; height: 100%; object-fit: cover; } .mask-left, .mask-right { position: absolute; top: 0; width: calc((100% - 1160px) / 2); /* 调整遮罩的宽度以适应图片的宽度 */ height: 100%; background: rgb(255 255 255 / 80%); z-index: 1; } .mask-left { left: 0; } .mask-right { right: 0; } .video-swiper-container .swiper-button-next, .video-swiper-container .swiper-button-prev { width: 50px; height: 50px; background-size: cover; background-position: center; } .video-swiper-container .swiper-button-next::after, .video-swiper-container .swiper-button-prev::after { content: " "; } .video-swiper-container .swiper-button-prev { background-image: url("/main/dist/websites/images/jy/left.png"); left: 260px; } .video-swiper-container .swiper-button-next { background-image: url("/main/dist/websites/images/jy/left.png"); transform: rotate(180deg); right: 260px; } .video-slide-content { position: absolute; right: 10%; bottom: 0; display: flex; justify-content: flex-start; align-items: flex-start; flex-direction: column; color: #fff; width: 30%; height: 75%; background: #be6320; z-index: 1111; padding: 5% 3%; } .video-slide-content h1 { /* font-size: 24px; */ margin: 0 3% 10%; text-align: center; padding: 0 4% 10% 4%; border-bottom: 1px solid #fff; line-height: 40px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .video-slide-content p { font-size: 16px; line-height: 1.8rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; } .content-wrap a:hover .list-time { color: #be6320; } .content-tow-lines { flex-grow: 2; } .content-tow-lines ul { display: flex; justify-content: space-between; flex-wrap: wrap; } .content-tow-lines li { width: 48%; overflow: hidden; } /* 列表页 */ .content-part { width: 100%; } .content-left { margin-top: 20px; } .content-left h2 { background: #be6320; } .content-list-wrap { width: 95%; border: 1px solid #be6320; margin: 20px auto; } .crumbs { background-color: #be6320; color: #fff; } .crumbs a { color: #fff; } /* 目录页 */ .catalog-title { border-color: #be6320; } /* 底部 */ .footer { padding-top: 5px; background-color: #be6320; } .footer-logo { margin-top: 30px; width: 100%; display: flex; justify-content: center; } .footer-logo img { width: 120px; height: 120px; } .footer-logo img:first-child { margin-right: 50px; } .footer-mesg { background-color: transparent; /* display: flex; justify-content: space-between; */ padding: 10px 0; width: 98%; margin: 0 auto; } .footer-mesg>div { width: 33%; /* height: 100%; */ /* display: flex; */ padding-top: 10px; padding-left: 50px; text-align: left; justify-content: space-between; flex-direction: column; border-right: 1px solid #fff; } .footer-link { background-color: #c1d6e3; line-height: 36px; } .footer-link ul { display: inline-block; } .footer-link ul li { display: inline-block; margin-right: 15px; } .mobile-nav-icon span { background-color: #fff; } .mobile-header-nav>ul { background-color: #be6320; overflow: unset !important; } .mobile-header-nav>ul>li { background-color: #be6320; } .mobile-header-nav li a { border-color: #be6320; } .mobile-header-nav .nav-secondLevel { background-color: #a3541c; } .mobile-header-nav .nav-threeLevel { background-color: #a3541c; } @media screen and (max-width: 1600px) { .content-row-six h2 { width: 100%; } .part1 > a > img:nth-child(2){ width: 100%; } .wrap { width: 1200px; } .content-row-six h2 { width: 1200px; } } /* 响应式 */ @media screen and (max-width: 1315px) { .mobile-nav-icon, .mobile-header-nav { display: none; } .header-nav li { width: 80px; } .banner .slide-content p { margin-top: 20px; width: 50%; } .wrap { width: 960px; } .content-row-six h2 { width: 960px; } } @media screen and (max-width: 1060px) { .header { position: relative; } .mobile-nav-icon, .mobile-header-nav { display: block; } .header-nav { display: none; } .header-top-left, .header-top-right { display: none; } .banner .slide-content p { margin-top: 20px; width: 50%; } .wrap { width: 768px; } .content-row-six h2 { width: 768px; } .video-swiper-slide { width: 100% !important; } .video-swiper-container .swiper-button-prev { left: 20px; } .video-swiper-container .swiper-button-next { right: 20px; } .xyfc-swiper-container .swiper-slide { width: 300px !important; } } @media screen and (max-width: 768px) { .banner .slide-content p { margin-top: 10px; width: 80%; } .part1{ flex-direction: column; gap: 1rem; } .part2,.part2-li{ height: 500px; } .content-row-six h2, .wrap { width: 95%; } .video-swiper-container { height: 350px; } .video-slide-content{ width: 50%; padding: 3%; } .video-slide-content h1{ font-size: 24px; -webkit-line-clamp: 1; margin: 0 0 3%; padding: 0 0 3%; } .video-slide-content p{ -webkit-line-clamp: 4; line-height: 1.2rem; } .pc-content-row-six { display: none; } .mobile-content-row-six { display: flex; } .xyfc-swiper-container-mobile { padding-bottom: 20px; } .xyfc-swiper-container-mobile .swiper-slide { width: 200px !important; } .xyfc-swiper-container-mobile .swiper-slide:first-child { margin-left: 20px; } } @media screen and (max-width: 640px) { .header-img img { display: inline-block; width: auto; height: 40px; margin-right: 35px; } .content { width: 100%; margin: 0 !important; } .content-part { padding: 0 10px; } .banner .slide-content p { line-height: 14px; font-size: 12px; } .video-swiper-container { height: 200px; } .xyfc-swiper-container-mobile { width: auto !important; } .content-row-six .swiper-slide p:last-child { width: 70%; } }