body { color: #000; } a { color: #000; } a:hover { color: #7a7a7a; } .header { /* background-color: ; */ background: #7a7a7a url("/main/dist/websites/images/xueshengchu/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; padding-left: 5%; /* background-color: rgba(132, 132, 132, 0.8); */ /* transition: opacity 0.3s ease; */ } .banner .slide-content h2 { font-size: 30px; line-height: 40px; } .banner .slide-content div { width: 3%; height: 10px; background-color: #ff1212; margin: 20px 0; } .banner .slide-content p { width: 30%; font-size: 18px; line-height: 30px; /* text-indent: 16px; */ } .banner .swiper-slide:hover .slide-content { opacity: 1; /* 鼠标移入时显示内容 */ } .mobile-nav-icon { top: calc(50% + -18px); } .header-top-bg { width: 100%; height: 14px; /* background-image: url('/main/dist/websites/images/gjjl/header-bg.png'); */ } .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; } .header-img .header-img-line { width: 1px; height: 50px; margin: 10px; background-color: white; } .header-img img { display: inline-block; width: auto; height: 100px; } .swiper-pagination-bullet { width: 8%; height: 5px; border-radius: 3px; } .swiper-pagination-bullet-active { background-color: #7a7a7a; } /* 导航 */ .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: #7a7a7a; } .header-nav .nav-secondLevel li a { border-color: #958c8c; background-color: #7a7a7a; } .header-nav .nav-secondLevel li a:hover { background-color: #958c8c; } .header-nav .nav-threeLevel li a:hover { background-color: #958c8c; } .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; } /* 主体 */ .swiper-slide img { display: block; width: 100%; } .swiper-pagination{ height: 40px; background: rgb(171 172 172 / 50%); bottom: 0 !important; display: flex; align-items: center; justify-content: center; color: white; } .swiper-pagination span{ flex: 1; border-right: #fff solid 1px; } .swiper-pagination span:last-child{ border-right: none; } .wrap { width: 1600px; clear: both; display: flex; justify-content: center; margin: 0 auto; } .content-wrap h2 { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; } .content-wrap h2 .left { color: #000; font-size: 20px; font-weight: bold; text-align: center; background-size: 30px 100%; display: flex; align-items: center; justify-content: space-between; } .content-wrap h2 .title-wrap { display: flex; flex-direction: column; align-items: flex-start; } .content-wrap h2 .title-line { width: 1px; height: 55px; background-color: #ababab; margin: 0 20px; } .content-wrap h2 .title-wrap img { width: 150px; margin-bottom: 10px; } .content-wrap h2 .title-wrap span { display: flex; align-items: center; } .content-wrap h2 .title-wrap span::before { content: ""; width: 50px; margin-right: 10px; display: block; height: 1px; background-color: #ababab; } .content-wrap h2 a { font-size: 14px; font-weight: normal; color: #414141; } .content-wrap h2 a:hover { color: #b30000; } .content-wrap h2 .title-nav a { margin: 0 20px; font-size: 16px; cursor: pointer; } .content-wrap h2 .title-nav-selected { color: #b30000; } .content-item { width: 100%; box-sizing: border-box; } .xinwendongtai { padding: 40px 0; background-color: #efefef; } .xinwendongtai .main { display: flex; flex-wrap: wrap; margin-top: 20px; } .xinwendongtai .main .left { flex: 2; color: white; margin-right: 10px; box-sizing: border-box; position: relative; } .xinwendongtai .main .left .content { width: 45%; background-color: #ff1212; padding: 60px 20px; position: absolute; bottom: 0; left: 0; } .xinwendongtai .main .left img { width: 100%; height: auto; margin-bottom: 20px; } .xinwendongtai .main .left .date { font-size: 14px; } .xinwendongtai .main .left .headline { font-size: 18px; font-weight: bold; margin: 10px 0; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .xinwendongtai .main .left .details { font-size: 14px; margin: 20px 0 30px; text-indent: 20px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; } .xinwendongtai .main .left .btn { background-color: white; color: black; padding: 10px 20px; text-decoration: none; border-radius: 40px; } .xinwendongtai .main .left .btn:hover { background-color: #b30000; color: #fff; } .xinwendongtai .main .right { flex: 2; display: flex; flex-wrap: wrap; gap: 10px; } .xinwendongtai .main .right .card { background-color: white; padding: 20px; height: 300px; flex: 1 1 calc(50% - 20px); box-sizing: border-box; display: flex; align-items: center; } .xinwendongtai .main .right .card img { width: 100%; height: auto; } .xinwendongtai .main .right .card .date { font-size: 14px; color: #b1b1b0; } .xinwendongtai .main .right .card .headline { font-size: 16px; font-weight: bold; margin: 20px 0; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .xinwendongtai .main .right .card .details { color: #333333; text-indent: 20px; font-size: 14px; margin: 25px 0 40px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; } .xinwendongtai .main .right .card .btn { background-color: white; border: 1px solid #bbbbba; color: black; padding: 10px 20px; text-decoration: none; border-radius: 40px; } .xinwendongtai .main .right .card .btn:hover { background-color: #ff1212; border-color: #ff1212; color: #fff; } .xueshengzizhu { padding: 40px 0; } .xueshengzizhu .main { display: flex; flex-wrap: wrap; margin-top: 20px; } .xueshengzizhu .main .left { flex: 2; display: flex; flex-wrap: wrap; gap: 10px; } .xueshengzizhu .main .left .card { background-color: white; height: 300px; flex: 1 1 calc(50% - 20px); box-sizing: border-box; display: flex; align-items: center; position: relative; border-radius: 20px; overflow: hidden; } .xueshengzizhu .main .left .card img { width: 100%; height: 100%; object-fit: cover; } .xueshengzizhu .main .left .card a{ color: #fff; } .xueshengzizhu .main .left .card .headline { width: 100%; font-size: 16px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; position: absolute; bottom: 20px; text-align: center; z-index: 1; } .xueshengzizhu .main .left .mark{ width: 100%; height: 50%; background: linear-gradient(to top, rgba(255, 18, 18, 1) 30%, transparent 80%);; position: absolute; bottom: 0; border-radius: 20px; display: none; } .xueshengzizhu .main .left .card:hover .mark { /* visibility:visible; */ display: block; } .xueshengzizhu .main .right { margin-left: 10px; flex: 2; color: #ffffff; box-sizing: border-box; position: relative; border-radius: 20px; overflow: hidden; } .xueshengzizhu .main .right a{ color: #fff; } .xueshengzizhu .main .right img { width: 100%; height: 100%; object-fit: cover; } .xueshengzizhu .main .right .headline { width: 100%; font-size: 16px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; position: absolute; bottom: 20px; text-align: center; z-index: 1; } .xueshengzizhu .main .right .mark{ width: 100%; height: 50%; background: linear-gradient(to top, rgba(255, 18, 18, 1) 20%, transparent 80%);; position: absolute; bottom: 0; border-radius: 20px; visibility: hidden; } .xueshengzizhu .main .right:hover .mark { visibility:visible; } .footer { background-color: #333; color: white; /* padding: 20px 0; */ text-align: center; margin-top: 40px; } /* 列表页 */ .content-list-wrap { width: 95%; border: 1px solid #7a7a7a; margin: 20px auto; } .crumbs { background-color: #7a7a7a; color: #fff; } .crumbs a { color: #fff; } /* 目录页 */ .catalog-title { border-color: #7a7a7a; } /* 底部 */ .footer { padding-top: 5px; background-color: #7a7a7a; } .footer-mesg { background-color: transparent; padding: 30px 0; width: 98%; margin: 0 auto; } .mobile-nav-icon span { background-color: #fff; } .mobile-header-nav > ul { background-color: #7a7a7a; } .mobile-header-nav > ul > li { background-color: #7a7a7a; } .mobile-header-nav li a { border-color: #47ade8; } .mobile-header-nav .nav-secondLevel { background-color: #0099ff; } .mobile-header-nav .nav-threeLevel { background-color: #6dbedc; } /* 响应式 */ @media screen and (max-width: 1600px) { .wrap{ width: 1280px; } } @media screen and (max-width: 1280px) { .wrap{ width: 1080px; } } @media screen and (max-width: 1080px) { .wrap{ width: 960px; } } @media screen and (max-width: 980px) { .mobile-nav-icon, .mobile-header-nav { display: none; } .header-top .wrap { width: 100%; } .header-img img { width: auto; } .wrap { width: 90%; flex-direction: column; } .footer-mesg { flex-direction: column; } .footer-mesg > div { width: 100%; border: none; padding-left: 10px; } } @media screen and (max-width: 768px) { .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; } .header-img img { width: auto; } .mobile-nav-icon { right: 20px; } .wrap { width: 90%; } .banner .slide-content{ padding-left: 10%; } .banner .slide-content h2{ font-size: 20px; } .banner .slide-content div{ width: 3%; height: 10px; background-color: #ff1212; margin: 10px 0; } .banner .slide-content p{ font-size: 14px; } .xinwendongtai .main .left{ width: 100%; margin-right: unset; height: 500px; margin-bottom: 10px; flex: unset; } .xinwendongtai .main .right{ flex: unset; } .xueshengzizhu .main .right{ width: 100%; margin-left: unset; height: 500px; margin-top: 10px; flex: unset; } .xueshengzizhu .main .left{ flex: unset; } } @media screen and (max-width: 640px) { .content { margin-top: 128px !important; } .banner .slide-content{ padding-left: 10%; } .banner .slide-content h2{ font-size: 16px; line-height: 20px; } .banner .slide-content div{ width: 3%; height: 10px; background-color: #ff1212; margin: 10px 0; } .banner .slide-content p{ font-size: 14px; line-height: 20px; width: 100%; } .swiper-pagination{ height:30px } .content-wrap h2 .title-nav a{ margin: 0; } .content-wrap h2 .title-line{ margin: 0 10px; } .content-wrap h2 .right{ margin-top: 4px; } .header-nav { display: none; } .header-top .wrap { width: 100%; } .header-img { width: 90%; flex-direction: column; height: 100%; } .header-top-left, .header-top-right { display: none; } .header-img img { width: 80%; } .mobile-nav-icon { right: 20px; } .wrap { width: 90%; } }