xxgc2.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. body{
  2. color: #000;
  3. }
  4. a{
  5. color: #000;
  6. }
  7. a:hover{
  8. color: #ff1111;
  9. }
  10. .header-top {
  11. background: url(../images/xxgc/header-bg.png) repeat-x center;
  12. background-size: contain;
  13. }
  14. .header-top>.wrap {
  15. position: relative;
  16. padding: 25px 50px;
  17. }
  18. .header-img{
  19. position: relative;
  20. }
  21. .header-img img{
  22. width: 36%;
  23. }
  24. .header-right {
  25. position: absolute;
  26. right: 20px;
  27. }
  28. .header-right-top {
  29. top: 30px;
  30. color: #e6e6e6;
  31. }
  32. .header-right-top a{
  33. color: #e6e6e6;
  34. }
  35. .header-right-top a:hover{
  36. color: #ffff00;
  37. }
  38. .header-right-search {
  39. width: 280px;
  40. bottom: 25px;
  41. right: 50px;
  42. }
  43. .header-right-search i{
  44. display: inline-block;
  45. height: 24px;
  46. width: 45px;
  47. background: url(../images/xxgc/icon-search.png) no-repeat center;
  48. background-size: contain;
  49. position: absolute;
  50. left: 0;
  51. top: 50%;
  52. transform: translateY(-50%);
  53. cursor: pointer;
  54. }
  55. .header-right-search input {
  56. box-sizing: border-box;
  57. border: 2px solid #b4bfd2;
  58. outline: none;
  59. height: 40px;
  60. border-radius: 40px;
  61. width: 100%;
  62. padding-left: 45px;
  63. background-color: #dde7fa;
  64. }
  65. /* 导航 */
  66. .header-nav{
  67. background-color: #0171bb;
  68. }
  69. .header-nav ul{
  70. height: 50px;
  71. line-height: 50px;
  72. background-color: transparent;
  73. }
  74. .header-nav ul li{
  75. background: url(../images/xxgc/nav-bg.png) no-repeat center;
  76. background-size: cover;
  77. letter-spacing: .1em;
  78. }
  79. .nav-secondLevel{
  80. top: 50px;
  81. }
  82. .header-nav li:last-child{
  83. background-image: url(../images/xxgc/nav-bg2.png);
  84. }
  85. .header-nav .nav-secondLevel li a{
  86. border-color: #3B6AC4;
  87. background-color: #004c98;
  88. }
  89. .header-nav li:hover>a{
  90. background-color: transparent ;
  91. }
  92. .nav-secondLevel .nav-threeLevel a{
  93. background-color: #004c98;
  94. }
  95. .header-nav .nav-threeLevel li a:hover {
  96. background-color: #2574a5;
  97. }
  98. .header-nav li a{
  99. position: relative;
  100. height: 50px;
  101. line-height: 50px;
  102. }
  103. .header-nav>ul>li>a{
  104. font-size: 16px;
  105. color: #fff;
  106. }
  107. .header-nav a i{
  108. width: 0;
  109. height: 0;
  110. border: 6px solid transparent;
  111. border-bottom-color: #fff;
  112. position: absolute;
  113. bottom: 0;
  114. left: 50%;
  115. transform: translateX(-50%);
  116. opacity: 0;
  117. }
  118. .header-nav li:hover a i{
  119. opacity: 1;
  120. }
  121. /* 主体 */
  122. .content{
  123. position: relative;
  124. }
  125. .content-row{
  126. display: flex;
  127. justify-content: space-between;
  128. }
  129. .content-item{
  130. width: 48%;
  131. box-sizing: border-box;
  132. margin-top: 35px;
  133. background-color: #fbfbfb;
  134. }
  135. .content-item h2{
  136. font-size: 14px;
  137. padding-right: 14px;
  138. background-color: #f0f0f0;
  139. height: 44px;
  140. line-height: 44px;
  141. position: relative;
  142. }
  143. .content-item h2 span{
  144. display: inline-block;
  145. padding: 12px 14px;
  146. font-size: 16px;
  147. color: #0071bc;
  148. background: url(../images/xxgc/title-gray.png) no-repeat center top;
  149. background-size: contain;
  150. height: 60px;
  151. line-height: 1;
  152. min-width: 120px;
  153. text-align: center;
  154. cursor: pointer;
  155. }
  156. .content-item h2 .current {
  157. background-image: url(../images/xxgc/title-active.png);
  158. color: #fff;
  159. }
  160. .content-item h2 a{
  161. font-weight: normal;
  162. float: right;
  163. color: #0071bc;
  164. }
  165. .content-item h2 a:hover{
  166. color: #FF0000;
  167. }
  168. .content-wrap ul{
  169. padding: 15px 0;
  170. }
  171. .content-wrap ul li{
  172. height: 44px;
  173. line-height: 44px;
  174. margin: 0 10px;
  175. padding-left: 20px;
  176. background: url(../images/xxgc/icon-arrow.png) no-repeat left center;
  177. background-size: 11px;
  178. }
  179. .content-wrap ul li a{
  180. display: block;
  181. width: 100%;
  182. height: 100%;
  183. border-bottom: 1px dashed #ccc;
  184. }
  185. .content-wrap li p{
  186. width: calc(100% - 100px);
  187. overflow: hidden;
  188. text-overflow: ellipsis;
  189. white-space: nowrap;
  190. float: left;
  191. }
  192. .content-wrap .list-time {
  193. float: right;
  194. }
  195. .content-wrap a:hover .list-time {
  196. color: #ff1111;
  197. }
  198. /* 专业 */
  199. .content-item-major ul {
  200. display: flex;
  201. flex-wrap: wrap;
  202. justify-content: space-between;
  203. background-color: transparent;
  204. padding-top: 20px;
  205. }
  206. .content-item-major ul li {
  207. width: 45%;
  208. padding-left: 0;
  209. background: url(../images/xxgc/title_bg1.png) no-repeat center;
  210. background-size: contain;
  211. margin: 0;
  212. margin-bottom: 14px;
  213. text-align: center;
  214. height: 58px;
  215. line-height: 58px;
  216. overflow: hidden;
  217. text-overflow: ellipsis;
  218. white-space: nowrap;
  219. }
  220. .content-item-major ul li:nth-child(2){
  221. background-image: url(../images/xxgc/title_bg2.png);
  222. }
  223. .content-item-major ul li:nth-child(3){
  224. background-image: url(../images/xxgc/title_bg3.png);
  225. }
  226. .content-item-major ul li:nth-child(4){
  227. background-image: url(../images/xxgc/title_bg4.png);
  228. }
  229. .content-item-major ul li:nth-child(5){
  230. background-image: url(../images/xxgc/title_bg5.png);
  231. }
  232. .content-item-major ul li:nth-child(6){
  233. background-image: url(../images/xxgc/title_bg6.png);
  234. }
  235. .content-item-major ul li:nth-child(7){
  236. background-image: url(../images/xxgc/title_bg7.png);
  237. }
  238. .content-item-major ul li:nth-child(8){
  239. background-image: url(../images/xxgc/title_bg8.png);
  240. }
  241. .content-item-major ul li:nth-child(9){
  242. background-image: url(../images/xxgc/title_bg9.png);
  243. /* margin-bottom: 0; */
  244. }
  245. .content-item-major ul li:nth-child(10){
  246. background-image: url(../images/xxgc/title_bg11.png);
  247. /* margin-bottom: 0; */
  248. }
  249. .content-item-major ul li a{
  250. border-bottom: 0;
  251. color: #fff;
  252. font-size: 16px;
  253. }
  254. .content-item-swiper2 {
  255. background-color: #f0f0f0;
  256. padding-bottom: 40px;
  257. margin-top: 35px;
  258. }
  259. .horizontal-name {
  260. width: 22%;
  261. margin: 0 auto;
  262. padding: 26px 0;
  263. }
  264. .content-item-swiper2 .horizontal-swiper{
  265. width: 93%;
  266. margin: 0 auto;
  267. background-color: #fff;
  268. padding: 8px 12px;
  269. box-shadow: 2px 2px 10px #908f8f;
  270. }
  271. .content-item-swiper2 .swiper-slide {
  272. border: 1px solid #0071bc;
  273. }
  274. .hidden {
  275. display: none;
  276. }
  277. /* banner */
  278. .banner{
  279. background-color: #c4daf1;
  280. position: relative;
  281. }
  282. /* banner轮播 */
  283. .banner-swiper{
  284. width: 100%;
  285. margin: 0 auto;
  286. z-index: 3;
  287. }
  288. .banner .swiper-button-next,
  289. .banner .swiper-button-prev {
  290. opacity: 1;
  291. transform: translateY(-50%);
  292. --swiper-navigation-color: rgba(122, 124, 158, .7);
  293. padding: 8px 0;
  294. background-color: rgba(255, 255, 255, .7);
  295. box-sizing: content-box;
  296. }
  297. .banner .swiper-button-next:hover,
  298. .banner .swiper-button-prev:hover{
  299. background-color: rgba(255, 255, 255, 1);
  300. --swiper-navigation-color: rgba(122, 124, 158, 1);
  301. }
  302. .banner .swiper-pagination-bullet{
  303. width: 12px;
  304. height: 12px;
  305. }
  306. .banner .swiper-pagination-bullet-active {
  307. color:#fff;
  308. background: #ff3300;
  309. }
  310. .banner .swiper-container-horizontal>.swiper-pagination-bullets{
  311. text-align: right;
  312. left: -8px;
  313. }
  314. .banner .swiper-slide{
  315. position: relative;
  316. }
  317. .banner .swiper-slide img,
  318. .content-item-swiper2 img {
  319. display: block;
  320. width: 100%;
  321. }
  322. .banner .swiper-slide .swiper-title{
  323. position: absolute;
  324. left: 0;
  325. bottom: 0;
  326. height: 38px;
  327. line-height: 38px;
  328. background-color: rgba(0,0,0,.6);
  329. color: #fff;
  330. padding: 0 125px 0 10px;
  331. box-sizing: border-box;
  332. width: 100%;
  333. overflow: hidden;
  334. text-overflow: ellipsis;
  335. white-space: nowrap;
  336. }
  337. /* 轮播 */
  338. .content-item-swiper .swiper-pagination-bullet{
  339. width: 22px;
  340. height: 18px;
  341. line-height: 18px;
  342. border-radius: 2px;
  343. font-size: 12px;
  344. text-align: center;
  345. background-color: rgba(0, 0, 0, .6);
  346. color: #fff;
  347. }
  348. .content-item-swiper .swiper-pagination-bullet-active {
  349. color:#fff;
  350. background: rgba(185, 13, 13, .7);
  351. }
  352. .content-item-swiper .swiper-container-horizontal>.swiper-pagination-bullets{
  353. text-align: right;
  354. left: -3px;
  355. bottom: 3px;
  356. }
  357. .content-item-swiper .swiper-slide{
  358. position: relative;
  359. }
  360. .content-item-swiper .swiper-slide img{
  361. display: block;
  362. width: 100%;
  363. }
  364. .content-item-swiper .swiper-slide .swiper-title{
  365. position: absolute;
  366. left: 0;
  367. top: 0;
  368. height: 26px;
  369. line-height: 26px;
  370. background-color: #B90D0D;
  371. color: #fff;
  372. padding: 0 10px;
  373. box-sizing: border-box;
  374. width: 100%;
  375. overflow: hidden;
  376. text-overflow: ellipsis;
  377. white-space: nowrap;
  378. text-align: center;
  379. }
  380. .sidebar{
  381. position: fixed;
  382. right: 0;
  383. top: 50%;
  384. transform: translateY(-50%);
  385. z-index: 10;
  386. }
  387. .sidebar img{
  388. display: block;
  389. }
  390. .sidebar p{
  391. text-align: center;
  392. line-height: 18px;
  393. }
  394. .sidebar-close{
  395. float: right;
  396. padding: 5px 10px;
  397. }
  398. /* 列表页 */
  399. .content-part{
  400. overflow: hidden;
  401. display: block;
  402. }
  403. .content-left{
  404. background-color: #f0f0f0;
  405. width: 220px;
  406. float: left;
  407. margin: 0;
  408. }
  409. .content-left h2{
  410. background: url(../images/xxgc/crumbs-left.png) repeat-x center;
  411. background-size: contain;
  412. height: 70px;
  413. line-height: 70px;
  414. font-size: 18px;
  415. text-shadow: 2px 2px 3px #1b1462;
  416. }
  417. .content-right{
  418. margin-left: 270px;
  419. width: auto;
  420. }
  421. .content-left-list{
  422. padding: 25px 15px;
  423. }
  424. .content-left-list li a{
  425. text-align: center;
  426. color: #1b1464;
  427. border-bottom: 0;
  428. }
  429. .content-left-list .content-left-current a,
  430. .content-left-list li a:hover {
  431. background-color: #90d0ec;
  432. }
  433. .crumbs{
  434. background: url(../images/xxgc/crumbs-right.png) repeat-x center;
  435. background-size: contain;
  436. line-height: 50px;
  437. overflow: hidden;
  438. color: #fff;
  439. font-size: 16px;
  440. text-shadow: 2px 2px 3px #1b1462;
  441. }
  442. .crumbs p {
  443. float: left;
  444. font-weight: bold;
  445. font-size: 16px;
  446. }
  447. .crumbs a{
  448. color: #fff;
  449. }
  450. .crumbs-right {
  451. float: right;
  452. }
  453. .list-wrap .list-time{
  454. color: #666;
  455. }
  456. .column-pic{
  457. margin-bottom: 35px;
  458. }
  459. .column-pic,
  460. .column-pic img,
  461. .content-wrap-img,
  462. .content-wrap-img img {
  463. width: 100%;
  464. }
  465. /* 横向图文列表 */
  466. .content-crosswiseImg-list{
  467. flex-wrap: wrap;
  468. }
  469. .content-crosswiseImg-list li{
  470. width: 100% !important;
  471. border-bottom: 1px solid #ccc;
  472. padding-bottom: 25px;
  473. margin-bottom: 25px !important;
  474. }
  475. .content-crosswiseImg-list li a{
  476. display: block;
  477. width: 100%;
  478. height: 100%;
  479. }
  480. .content-crosswiseImg-list .content-img-list-imgWrap{
  481. width: 25%;
  482. float: left;
  483. margin-right: 20px;
  484. padding: 0;
  485. border: 0;
  486. }
  487. .content-crosswiseImg-list dl{
  488. margin-left: 25%;
  489. }
  490. .content-crosswiseImg-list dt{
  491. font-size: 16px;
  492. font-weight: bold;
  493. line-height: 28px;
  494. padding-top: 15px;
  495. display: -webkit-box;
  496. -webkit-box-orient: vertical;
  497. -webkit-line-clamp: 2;
  498. overflow: hidden;
  499. width: 92%;
  500. }
  501. .content-crosswiseImg-list dd{
  502. color: #333;
  503. margin: 10px 0 12px;
  504. line-height: 22px;
  505. display: -webkit-box;
  506. -webkit-box-orient: vertical;
  507. -webkit-line-clamp: 2;
  508. overflow: hidden;
  509. width: 92%;
  510. }
  511. .content-crosswiseImg-list .content-crosswiseImg-time{
  512. color: #666;
  513. margin: 0;
  514. }
  515. .content-crosswiseImg-list li:hover dt,
  516. .content-crosswiseImg-list li:hover dd{
  517. color: #FF0000;
  518. }
  519. /* 竖向图片 */
  520. .content-verticalImg-list li{
  521. width: 33%;
  522. }
  523. .content-verticalImg-list li a{
  524. margin: 0 30px;
  525. }
  526. /* 目录页 */
  527. .catalog-title{
  528. border-color: #ff0000;
  529. }
  530. /* 底部 */
  531. .footer {
  532. margin-top: 35px;
  533. background: url(../images/xxgc/header-bg.png) repeat-x center;
  534. background-size: contain;
  535. }
  536. .footer-mesg{
  537. background-color: transparent;
  538. color: #fff;
  539. }
  540. .mobile-nav-icon{
  541. right: 20px;
  542. }
  543. .mobile-nav-icon span{
  544. background-color: #ff0000;
  545. }
  546. .mobile-header-nav .nav-threeLevel li a{
  547. background-color: #f55555;
  548. }
  549. /* 响应式 */
  550. @media screen and (max-width: 1024px) {
  551. .banner-nav{
  552. top: 60px;
  553. }
  554. }
  555. @media screen and (max-width: 980px) {
  556. .header-top>.wrap{
  557. padding: 0 10px;
  558. }
  559. .header-top .header-img img{
  560. padding: 20px 0;
  561. }
  562. .header-right-search{
  563. right: 80px;
  564. }
  565. .header-nav ul{
  566. height: auto;
  567. }
  568. /* flex布局,item元素补全 */
  569. .header-nav ul::after{
  570. content: "";
  571. width: 50%;
  572. }
  573. .header-mesg{
  574. position: relative;
  575. top: 0;
  576. left: 0;
  577. transform: translateY(0);
  578. overflow: hidden;
  579. }
  580. .header-mesg p{
  581. float: left;
  582. margin-right: 20px;
  583. margin-bottom: 8px;
  584. }
  585. .content-row{
  586. flex-wrap: wrap;
  587. }
  588. .content-item{
  589. width: 100% !important;
  590. }
  591. .banner-swiper{
  592. width: 100%;
  593. }
  594. }
  595. @media screen and (max-width: 768px) {
  596. .content-item{
  597. width: 100%;
  598. }
  599. /* 轮播 */
  600. .content-item-swiper .swiper-container{
  601. width: 100%;
  602. float: inherit;
  603. }
  604. .content-item-swiper ul{
  605. margin-left: 0;
  606. }
  607. .content-item-swiper .content-wrap{
  608. margin-left: 0;
  609. margin-top: 20px;
  610. }
  611. .content-left{
  612. width: 100%;
  613. margin-bottom: 20px;
  614. }
  615. .content-right{
  616. width: 100%;
  617. margin-left: 0;
  618. }
  619. }
  620. @media screen and (max-width: 640px) {
  621. .header{
  622. box-shadow: 0 1px 3px #ddd;
  623. }
  624. .header-top .wrap{
  625. width: 100%;
  626. }
  627. .mobile-nav-icon {
  628. right: 18px;
  629. }
  630. .header-img{
  631. width: 100%;
  632. height: auto;
  633. }
  634. .header-img img{
  635. height: 60px;
  636. width: auto;
  637. box-sizing: content-box;
  638. }
  639. .content-wrap li p{
  640. width: calc(100% - 100px);
  641. }
  642. .content{
  643. margin-top: 100px !important;
  644. }
  645. .content-bgPic{
  646. top: 0;
  647. }
  648. .header-right{
  649. display: none;
  650. }
  651. .column-pic{
  652. margin-bottom: 15px;
  653. }
  654. .content-img-list-imgWrap{
  655. width: 100% !important;
  656. }
  657. .content-crosswiseImg-list dl{
  658. margin-left: 0;
  659. text-align: center;
  660. }
  661. .footer{
  662. margin-top: 20px;
  663. }
  664. }