xueshengchu.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. body {
  2. color: #000;
  3. }
  4. a {
  5. color: #000;
  6. }
  7. a:hover {
  8. color: #7a7a7a;
  9. }
  10. .header {
  11. /* background-color: ; */
  12. background: #7a7a7a url("/main/dist/websites/images/xueshengchu/header-bg.png");
  13. background-size: cover;
  14. background-position: center;
  15. }
  16. .gallery {
  17. display: flex;
  18. justify-content: space-around;
  19. align-items: center;
  20. }
  21. .thumbnail {
  22. width: 100px; /* 初始大小 */
  23. transition: transform 0.3s ease; /* 平滑过渡效果 */
  24. }
  25. .thumbnail:hover {
  26. transform: scale(1.5); /* 鼠标经过时放大到1.5倍 */
  27. }
  28. .content-list-wrap,
  29. .banner-list {
  30. margin-bottom: 20px;
  31. }
  32. .banner-list,
  33. .banner-list img {
  34. width: 100%;
  35. height: 150px;
  36. object-fit: cover;
  37. }
  38. .swiper-wrapper {
  39. height: auto;
  40. }
  41. .banner .slide-content {
  42. position: absolute;
  43. top: 0;
  44. left: 0;
  45. right: 0;
  46. bottom: 0;
  47. display: flex;
  48. justify-content: center;
  49. /* align-items: center;
  50. text-align: center; */
  51. flex-direction: column;
  52. color: #fff; /* 文本颜色 */
  53. /* opacity: 0; */
  54. z-index: 1111;
  55. padding-left: 5%;
  56. /* background-color: rgba(132, 132, 132, 0.8); */
  57. /* transition: opacity 0.3s ease; */
  58. }
  59. .banner .slide-content h2 {
  60. font-size: 30px;
  61. line-height: 40px;
  62. }
  63. .banner .slide-content div {
  64. width: 3%;
  65. height: 10px;
  66. background-color: #ff1212;
  67. margin: 20px 0;
  68. }
  69. .banner .slide-content p {
  70. width: 30%;
  71. font-size: 18px;
  72. line-height: 30px;
  73. /* text-indent: 16px; */
  74. }
  75. .banner .swiper-slide:hover .slide-content {
  76. opacity: 1; /* 鼠标移入时显示内容 */
  77. }
  78. .mobile-nav-icon {
  79. top: calc(50% + -18px);
  80. }
  81. .header-top-bg {
  82. width: 100%;
  83. height: 14px;
  84. /* background-image: url('/main/dist/websites/images/gjjl/header-bg.png'); */
  85. }
  86. .header-top .header-top-left {
  87. /* width: 100%; */
  88. padding: 0 30px;
  89. float: left;
  90. }
  91. .header-top .header-top-right {
  92. /* width: 100%; */
  93. padding: 0 30px;
  94. float: right;
  95. }
  96. .header-top-left span:last-child,
  97. .header-top-right span:last-child {
  98. border: none;
  99. /* float: right; */
  100. }
  101. /* .header-top .header-top-left span:nth-last-of-type(1),
  102. .header-top .header-top-left span:nth-last-of-type(2),
  103. .header-top .header-top-left span:nth-last-of-type(3) {
  104. float: right;
  105. } */
  106. /* .header-top .header-top-left span:nth-last-of-type(3),.header-top .header-top-left span:nth-last-of-type(4){
  107. border: none;
  108. } */
  109. .header-top div span {
  110. padding: 0 10px;
  111. color: white;
  112. border-right: 1px solid #fff;
  113. }
  114. .header-top div span:first-child {
  115. padding-left: 0;
  116. }
  117. .header-top div span a {
  118. color: white;
  119. }
  120. .header-img {
  121. clear: both;
  122. display: flex;
  123. justify-content: center;
  124. align-items: center;
  125. }
  126. .header-img .header-img-line {
  127. width: 1px;
  128. height: 50px;
  129. margin: 10px;
  130. background-color: white;
  131. }
  132. .header-img img {
  133. display: inline-block;
  134. width: auto;
  135. height: 100px;
  136. }
  137. .swiper-pagination-bullet {
  138. width: 8%;
  139. height: 5px;
  140. border-radius: 3px;
  141. }
  142. .swiper-pagination-bullet-active {
  143. background-color: #7a7a7a;
  144. }
  145. /* 导航 */
  146. .header-nav {
  147. background-color: transparent;
  148. display: flex;
  149. justify-content: center;
  150. }
  151. /* .wrap{
  152. width: 100%;
  153. } */
  154. .header-nav > ul {
  155. /* width: 100%; */
  156. height: 40px;
  157. line-height: 40px;
  158. background-color: transparent;
  159. display: inline-block;
  160. }
  161. .header-nav > ul > li {
  162. width: 100px;
  163. float: left;
  164. display: flex;
  165. align-items: center;
  166. height: 40px;
  167. justify-content: center;
  168. }
  169. .header-nav > ul > li a {
  170. /* line-height: 50px; */
  171. font-size: 16px;
  172. }
  173. .nav-secondLevel {
  174. top: 40px;
  175. }
  176. .header-nav li:last-child {
  177. background: none;
  178. }
  179. .header-nav li:hover a {
  180. background-color: transparent;
  181. }
  182. .header-nav .nav-secondLevel {
  183. background-color: #7a7a7a;
  184. }
  185. .header-nav .nav-secondLevel li a {
  186. border-color: #958c8c;
  187. background-color: #7a7a7a;
  188. }
  189. .header-nav .nav-secondLevel li a:hover {
  190. background-color: #958c8c;
  191. }
  192. .header-nav .nav-threeLevel li a:hover {
  193. background-color: #958c8c;
  194. }
  195. .header-nav li a {
  196. position: relative;
  197. font-weight: normal;
  198. }
  199. .header-nav a i {
  200. width: 0;
  201. height: 0;
  202. border: 6px solid transparent;
  203. border-bottom-color: #fff;
  204. position: absolute;
  205. bottom: 0;
  206. left: 50%;
  207. transform: translateX(-50%);
  208. opacity: 0;
  209. }
  210. .header-nav li:hover a i {
  211. opacity: 1;
  212. }
  213. /* 主体 */
  214. .swiper-slide img {
  215. display: block;
  216. width: 100%;
  217. }
  218. .swiper-pagination{
  219. height: 40px;
  220. background: rgb(171 172 172 / 50%);
  221. bottom: 0 !important;
  222. display: flex;
  223. align-items: center;
  224. justify-content: center;
  225. color: white;
  226. }
  227. .swiper-pagination span{
  228. flex: 1;
  229. border-right: #fff solid 1px;
  230. }
  231. .swiper-pagination span:last-child{
  232. border-right: none;
  233. }
  234. .wrap {
  235. width: 1600px;
  236. clear: both;
  237. display: flex;
  238. justify-content: center;
  239. margin: 0 auto;
  240. }
  241. .content-wrap h2 {
  242. margin-bottom: 20px;
  243. display: flex;
  244. justify-content: space-between;
  245. align-items: center;
  246. }
  247. .content-wrap h2 .left {
  248. color: #000;
  249. font-size: 20px;
  250. font-weight: bold;
  251. text-align: center;
  252. background-size: 30px 100%;
  253. display: flex;
  254. align-items: center;
  255. justify-content: space-between;
  256. }
  257. .content-wrap h2 .title-wrap {
  258. display: flex;
  259. flex-direction: column;
  260. align-items: flex-start;
  261. }
  262. .content-wrap h2 .title-line {
  263. width: 1px;
  264. height: 55px;
  265. background-color: #ababab;
  266. margin: 0 20px;
  267. }
  268. .content-wrap h2 .title-wrap img {
  269. width: 150px;
  270. margin-bottom: 10px;
  271. }
  272. .content-wrap h2 .title-wrap span {
  273. display: flex;
  274. align-items: center;
  275. }
  276. .content-wrap h2 .title-wrap span::before {
  277. content: "";
  278. width: 50px;
  279. margin-right: 10px;
  280. display: block;
  281. height: 1px;
  282. background-color: #ababab;
  283. }
  284. .content-wrap h2 a {
  285. font-size: 14px;
  286. font-weight: normal;
  287. color: #414141;
  288. }
  289. .content-wrap h2 a:hover {
  290. color: #b30000;
  291. }
  292. .content-wrap h2 .title-nav a {
  293. margin: 0 20px;
  294. font-size: 16px;
  295. cursor: pointer;
  296. }
  297. .content-wrap h2 .title-nav-selected {
  298. color: #b30000;
  299. }
  300. .content-item {
  301. width: 100%;
  302. box-sizing: border-box;
  303. }
  304. .xinwendongtai {
  305. padding: 40px 0;
  306. background-color: #efefef;
  307. }
  308. .xinwendongtai .main {
  309. display: flex;
  310. flex-wrap: wrap;
  311. margin-top: 20px;
  312. }
  313. .xinwendongtai .main .left {
  314. flex: 2;
  315. color: white;
  316. margin-right: 10px;
  317. box-sizing: border-box;
  318. position: relative;
  319. }
  320. .xinwendongtai .main .left .content {
  321. width: 45%;
  322. background-color: #ff1212;
  323. padding: 60px 20px;
  324. position: absolute;
  325. bottom: 0;
  326. left: 0;
  327. }
  328. .xinwendongtai .main .left img {
  329. width: 100%;
  330. height: auto;
  331. margin-bottom: 20px;
  332. }
  333. .xinwendongtai .main .left .date {
  334. font-size: 14px;
  335. }
  336. .xinwendongtai .main .left .headline {
  337. font-size: 18px;
  338. font-weight: bold;
  339. margin: 10px 0;
  340. line-height: 20px;
  341. display: -webkit-box;
  342. -webkit-box-orient: vertical;
  343. -webkit-line-clamp: 2;
  344. overflow: hidden;
  345. }
  346. .xinwendongtai .main .left .details {
  347. font-size: 14px;
  348. margin: 20px 0 30px;
  349. text-indent: 20px;
  350. line-height: 20px;
  351. display: -webkit-box;
  352. -webkit-box-orient: vertical;
  353. -webkit-line-clamp: 5;
  354. overflow: hidden;
  355. }
  356. .xinwendongtai .main .left .btn {
  357. background-color: white;
  358. color: black;
  359. padding: 10px 20px;
  360. text-decoration: none;
  361. border-radius: 40px;
  362. }
  363. .xinwendongtai .main .left .btn:hover {
  364. background-color: #b30000;
  365. color: #fff;
  366. }
  367. .xinwendongtai .main .right {
  368. flex: 2;
  369. display: flex;
  370. flex-wrap: wrap;
  371. gap: 10px;
  372. }
  373. .xinwendongtai .main .right .card {
  374. background-color: white;
  375. padding: 20px;
  376. height: 300px;
  377. flex: 1 1 calc(50% - 20px);
  378. box-sizing: border-box;
  379. display: flex;
  380. align-items: center;
  381. }
  382. .xinwendongtai .main .right .card img {
  383. width: 100%;
  384. height: auto;
  385. }
  386. .xinwendongtai .main .right .card .date {
  387. font-size: 14px;
  388. color: #b1b1b0;
  389. }
  390. .xinwendongtai .main .right .card .headline {
  391. font-size: 16px;
  392. font-weight: bold;
  393. margin: 20px 0;
  394. line-height: 20px;
  395. display: -webkit-box;
  396. -webkit-box-orient: vertical;
  397. -webkit-line-clamp: 2;
  398. overflow: hidden;
  399. }
  400. .xinwendongtai .main .right .card .details {
  401. color: #333333;
  402. text-indent: 20px;
  403. font-size: 14px;
  404. margin: 25px 0 40px;
  405. line-height: 20px;
  406. display: -webkit-box;
  407. -webkit-box-orient: vertical;
  408. -webkit-line-clamp: 5;
  409. overflow: hidden;
  410. }
  411. .xinwendongtai .main .right .card .btn {
  412. background-color: white;
  413. border: 1px solid #bbbbba;
  414. color: black;
  415. padding: 10px 20px;
  416. text-decoration: none;
  417. border-radius: 40px;
  418. }
  419. .xinwendongtai .main .right .card .btn:hover {
  420. background-color: #ff1212;
  421. border-color: #ff1212;
  422. color: #fff;
  423. }
  424. .xueshengzizhu {
  425. padding: 40px 0;
  426. }
  427. .xueshengzizhu .main {
  428. display: flex;
  429. flex-wrap: wrap;
  430. margin-top: 20px;
  431. }
  432. .xueshengzizhu .main .left {
  433. flex: 2;
  434. display: flex;
  435. flex-wrap: wrap;
  436. gap: 10px;
  437. }
  438. .xueshengzizhu .main .left .card {
  439. background-color: white;
  440. height: 300px;
  441. flex: 1 1 calc(50% - 20px);
  442. box-sizing: border-box;
  443. display: flex;
  444. align-items: center;
  445. position: relative;
  446. border-radius: 20px;
  447. overflow: hidden;
  448. }
  449. .xueshengzizhu .main .left .card img {
  450. width: 100%;
  451. height: 100%;
  452. object-fit: cover;
  453. }
  454. .xueshengzizhu .main .left .card a{
  455. color: #fff;
  456. }
  457. .xueshengzizhu .main .left .card .headline {
  458. width: 100%;
  459. font-size: 16px;
  460. line-height: 20px;
  461. display: -webkit-box;
  462. -webkit-box-orient: vertical;
  463. -webkit-line-clamp: 2;
  464. overflow: hidden;
  465. position: absolute;
  466. bottom: 20px;
  467. text-align: center;
  468. z-index: 1;
  469. }
  470. .xueshengzizhu .main .left .mark{
  471. width: 100%;
  472. height: 50%;
  473. background: linear-gradient(to top, rgba(255, 18, 18, 1) 30%, transparent 80%);;
  474. position: absolute;
  475. bottom: 0;
  476. border-radius: 20px;
  477. display: none;
  478. }
  479. .xueshengzizhu .main .left .card:hover .mark {
  480. /* visibility:visible; */
  481. display: block;
  482. }
  483. .xueshengzizhu .main .right {
  484. margin-left: 10px;
  485. flex: 2;
  486. color: #ffffff;
  487. box-sizing: border-box;
  488. position: relative;
  489. border-radius: 20px;
  490. overflow: hidden;
  491. }
  492. .xueshengzizhu .main .right a{
  493. color: #fff;
  494. }
  495. .xueshengzizhu .main .right img {
  496. width: 100%;
  497. height: 100%;
  498. object-fit: cover;
  499. }
  500. .xueshengzizhu .main .right .headline {
  501. width: 100%;
  502. font-size: 16px;
  503. line-height: 20px;
  504. display: -webkit-box;
  505. -webkit-box-orient: vertical;
  506. -webkit-line-clamp: 2;
  507. overflow: hidden;
  508. position: absolute;
  509. bottom: 20px;
  510. text-align: center;
  511. z-index: 1;
  512. }
  513. .xueshengzizhu .main .right .mark{
  514. width: 100%;
  515. height: 50%;
  516. background: linear-gradient(to top, rgba(255, 18, 18, 1) 20%, transparent 80%);;
  517. position: absolute;
  518. bottom: 0;
  519. border-radius: 20px;
  520. visibility: hidden;
  521. }
  522. .xueshengzizhu .main .right:hover .mark {
  523. visibility:visible;
  524. }
  525. .footer {
  526. background-color: #333;
  527. color: white;
  528. /* padding: 20px 0; */
  529. text-align: center;
  530. margin-top: 40px;
  531. }
  532. /* 列表页 */
  533. .content-list-wrap {
  534. width: 95%;
  535. border: 1px solid #7a7a7a;
  536. margin: 20px auto;
  537. }
  538. .crumbs {
  539. background-color: #7a7a7a;
  540. color: #fff;
  541. }
  542. .crumbs a {
  543. color: #fff;
  544. }
  545. .article-wrap video{
  546. max-width: 100%;
  547. height: 100%;
  548. }
  549. /* 目录页 */
  550. .catalog-title {
  551. border-color: #7a7a7a;
  552. }
  553. /* 底部 */
  554. .footer {
  555. padding-top: 5px;
  556. background-color: #7a7a7a;
  557. }
  558. .footer-mesg {
  559. background-color: transparent;
  560. padding: 30px 0;
  561. width: 98%;
  562. margin: 0 auto;
  563. }
  564. .mobile-nav-icon span {
  565. background-color: #fff;
  566. }
  567. .mobile-header-nav > ul {
  568. background-color: #7a7a7a;
  569. }
  570. .mobile-header-nav > ul > li {
  571. background-color: #7a7a7a;
  572. }
  573. .mobile-header-nav li a {
  574. border-color: #47ade8;
  575. }
  576. .mobile-header-nav .nav-secondLevel {
  577. background-color: #0099ff;
  578. }
  579. .mobile-header-nav .nav-threeLevel {
  580. background-color: #6dbedc;
  581. }
  582. /* 响应式 */
  583. @media screen and (max-width: 1600px) {
  584. .wrap{
  585. width: 1280px;
  586. }
  587. }
  588. @media screen and (max-width: 1280px) {
  589. .wrap{
  590. width: 1080px;
  591. }
  592. }
  593. @media screen and (max-width: 1080px) {
  594. .wrap{
  595. width: 960px;
  596. }
  597. }
  598. @media screen and (max-width: 980px) {
  599. .mobile-nav-icon,
  600. .mobile-header-nav {
  601. display: none;
  602. }
  603. .header-top .wrap {
  604. width: 100%;
  605. }
  606. .header-img img {
  607. width: auto;
  608. }
  609. .wrap {
  610. width: 90%;
  611. flex-direction: column;
  612. }
  613. .footer-mesg {
  614. flex-direction: column;
  615. }
  616. .footer-mesg > div {
  617. width: 100%;
  618. border: none;
  619. padding-left: 10px;
  620. }
  621. }
  622. @media screen and (max-width: 768px) {
  623. .mobile-nav-icon,
  624. .mobile-header-nav {
  625. display: block;
  626. }
  627. .header-nav {
  628. display: none;
  629. }
  630. .header-img {
  631. width: 90%;
  632. flex-direction: column;
  633. }
  634. .header-top-left,
  635. .header-top-right {
  636. display: none;
  637. }
  638. .header-img img {
  639. width: auto;
  640. }
  641. .mobile-nav-icon {
  642. right: 20px;
  643. }
  644. .wrap {
  645. width: 90%;
  646. }
  647. .banner .slide-content{
  648. padding-left: 10%;
  649. }
  650. .banner .slide-content h2{
  651. font-size: 20px;
  652. }
  653. .banner .slide-content div{
  654. width: 3%;
  655. height: 10px;
  656. background-color: #ff1212;
  657. margin: 10px 0;
  658. }
  659. .banner .slide-content p{
  660. font-size: 14px;
  661. }
  662. .xinwendongtai .main .left{
  663. width: 100%;
  664. margin-right: unset;
  665. height: 500px;
  666. margin-bottom: 10px;
  667. flex: unset;
  668. }
  669. .xinwendongtai .main .right{
  670. flex: unset;
  671. }
  672. .xueshengzizhu .main .right{
  673. width: 100%;
  674. margin-left: unset;
  675. height: 500px;
  676. margin-top: 10px;
  677. flex: unset;
  678. }
  679. .xueshengzizhu .main .left{
  680. flex: unset;
  681. }
  682. }
  683. @media screen and (max-width: 640px) {
  684. .content {
  685. margin-top: 128px !important;
  686. }
  687. .banner .slide-content{
  688. padding-left: 10%;
  689. }
  690. .banner .slide-content h2{
  691. font-size: 16px;
  692. line-height: 20px;
  693. }
  694. .banner .slide-content div{
  695. width: 3%;
  696. height: 10px;
  697. background-color: #ff1212;
  698. margin: 10px 0;
  699. }
  700. .banner .slide-content p{
  701. font-size: 14px;
  702. line-height: 20px;
  703. width: 100%;
  704. }
  705. .swiper-pagination{
  706. height:30px
  707. }
  708. .content-wrap h2 .title-nav a{
  709. margin: 0;
  710. }
  711. .content-wrap h2 .title-line{
  712. margin: 0 10px;
  713. }
  714. .content-wrap h2 .right{
  715. margin-top: 4px;
  716. }
  717. .header-nav {
  718. display: none;
  719. }
  720. .header-top .wrap {
  721. width: 100%;
  722. }
  723. .header-img {
  724. width: 90%;
  725. flex-direction: column;
  726. height: 100%;
  727. }
  728. .header-top-left,
  729. .header-top-right {
  730. display: none;
  731. }
  732. .header-img img {
  733. width: 80%;
  734. }
  735. .mobile-nav-icon {
  736. right: 20px;
  737. }
  738. .wrap {
  739. width: 90%;
  740. }
  741. }