body { color: #000; } a { color: #000; } a:hover { color: #941c1e; } .header { background: #941c1e url("/main/dist/websites/images/index/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; } .mobile-nav-icon { top: calc(50% + 3px); } .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; 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: 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 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: #c90303; } .header-nav .nav-secondLevel li a { border-color: #9f0d0d; background-color: #c90303; } .header-nav .nav-secondLevel li a:hover { color: #ffff00; background-color: #ff1111; } .header-nav .nav-threeLevel li a:hover { background-color: #ff1111; } .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-row { width: 100%; } /* 主体 */ .swiper-slide img { display: block; width: 100%; } .banner .slide-content { position: absolute; top: 0; left: 3rem; right: 0; bottom: 3rem; display: flex; justify-content: end; /* align-items: center; */ text-align: left; flex-direction: column; color: #fff; opacity: 1; z-index: 1111; } .banner .slide-content h2 { width: 30%; font-size: 2rem; font-weight: normal; display: flex; align-items: center; } .banner .slide-content h2::before { content: ""; width: 0.5rem; height: 0.5rem; margin-right: 1rem; border-radius: 50%; background-color: #fff; display: block; } .banner .slide-content p { margin-top: 1rem; width: 30%; font-size: 1rem; line-height: 30px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; } .tabs { width: 90%; display: flex; justify-content: center; align-items: center; margin: 20px auto; } .tab-button { width: 50%; background-color: #941c1e; border: 2px solid #941c1e; border-bottom: none; padding: 10px 20px; cursor: pointer; outline: none; font-size: 16px; color: #fff; position: relative; border-radius: 15px 15px 0 0; } .tab-button.active { background-color: #fff; color: #941c1e; border-radius: 15px 15px 0 0; } .tab-contents { width: 80%; margin: 3rem auto; padding: 20px; } .tab-content { display: none; } .tab-content.active { display: flex; /* 切换为 flex 布局时显示 */ flex-wrap: wrap; /* 启用换行 */ justify-content: space-between; } .school-container { width: 48%; /* 每个容器占 48% 的宽度,保证两列布局 */ margin-bottom: 20px; /* 底部留出间距 */ box-sizing: border-box; } .school-title { font-size: 24px; font-weight: bold; color: #0c3c91; /* 蓝色字体 */ display: flex; align-items: center; } .school-icon { color: #941c1e; /* 红色图标 */ margin-left: 10px; font-size: 20px; } .school-divider { border: none; border-top: 1px solid #000; /* 红色细横线 */ margin: 10px 0; } .school-divider::after { content: ""; width: 10%; height: 2px; background-color: #941c1e; display: block; } .school-content { width: 80%; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; } .school-course-list { list-style-type: none; padding: 0; margin: 0; flex: 1; } .school-course-list li { font-size: 16px; margin-bottom: 8px; list-style: disc; } .school-course-list a { text-decoration: none; color: #000; transition: color 0.3s ease; } .school-course-list a:hover { color: #941c1e; /* 悬停时变成红色 */ } .school-course-image { display: block; width: 86%; margin: 0 auto 8px; height: auto; } /* 底部 */ .footer { padding-top: 5px; background: #580b0c url(/main/dist/websites/images/index/stripe6.png) no-repeat center bottom; background-size: 50%; } .footer-white-line { width: 98%; height: 5px; background-color: #fff; margin: 0 auto; } .footer-logo { padding: 30px 0; width: 15%; margin: 0 auto; } .footer-logo img { width: 100%; } .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-mesg > div:first-child p { line-height: 20px; } .footer-mesg > div:last-child { border: none; } .footer-mesg > div:nth-of-type(2) { padding-left: 0; } .footer-mesg > div:nth-of-type(2) h2 { text-align: center; } .footer-mesg .lxwm > div { display: flex; align-items: center; } .footer-mesg .lxwm img { width: 25px; height: 25px; margin-right: 10px; } .footer-mesg .gzwm { display: flex; justify-content: space-around; margin-bottom: 30px; /* flex-direction: row; */ } .footer-mesg .gzwm p { text-align: center; } .footer-mesg .gzwm img { width: 100px; height: 100px; } .footer-mesg a { text-decoration: none; } .footer-mesg a:hover { color: white; } .footer-link { background-color: #c1d6e3; line-height: 36px; } .footer-link ul { display: inline-block; } .footer-link ul li { display: inline-block; margin-right: 15px; } /* 列表页 */ .content-list-wrap { width: 95%; border: 1px solid #941c1e; margin: 20px auto; } .crumbs { background-color: #941c1e; color: #fff; } .crumbs a { color: #fff; } /* 目录页 */ .catalog-title { border-color: #941c1e; } .mobile-nav-icon span { background-color: #fff; } .mobile-header-nav > ul { background-color: #941c1e; } .mobile-header-nav > ul > li { background-color: #941c1e; } /* .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) { } @media screen and (max-width: 1280px) { } @media screen and (max-width: 1080px) { } @media screen and (max-width: 980px) { .mobile-nav-icon, .mobile-header-nav { display: none; } .header-top .wrap { width: 100%; } .header-img img { width: auto; } .footer-mesg { flex-direction: column; } .footer-mesg > div { width: 100%; border: none; padding-left: 10px; } } @media screen and (max-width: 780px) { .school-container { width: 98%; /* 每个容器占 48% 的宽度,保证两列布局 */ margin-bottom: 20px; /* 底部留出间距 */ box-sizing: border-box; } .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; } .mobile-nav-icon { right: 20px; } .header-nav { display: none; } .header-top .wrap { width: 100%; } .header-img { width: 90%; flex-direction: column; } .header-top-left, .header-top-right { display: none; } .header-img img { width: 80%; object-fit: contain; margin-bottom: unset; margin-top: 10px; } .mobile-nav-icon { right: 20px; } .wrap { width: 90%; } .footer-logo { width: 80%; padding: 30px 0 0 0; } } @media screen and (max-width: 640px) { .content { margin-top: 105px !important; } .banner .slide-content{ left: 1rem; bottom: 1rem; } .banner .slide-content h2{ font-size: 1.4rem; } .banner .slide-content p{ line-height: 1rem; } .tab-contents{ padding: 0; } }