xxgc2.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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: 30%;
  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. .content-txt {
  199. line-height: 26px;
  200. display: -webkit-box;
  201. -webkit-box-orient: vertical;
  202. -webkit-line-clamp: 13;
  203. overflow: hidden;
  204. }
  205. /* 专业 */
  206. .content-item-major ul {
  207. display: flex;
  208. flex-wrap: wrap;
  209. justify-content: space-between;
  210. background-color: transparent;
  211. padding-top: 20px;
  212. }
  213. .content-item-major ul li {
  214. width: 45%;
  215. padding-left: 0;
  216. background: url(../images/xxgc/title_bg1.png) no-repeat center;
  217. background-size: contain;
  218. margin: 0;
  219. margin-bottom: 14px;
  220. text-align: center;
  221. height: 58px;
  222. line-height: 58px;
  223. overflow: hidden;
  224. text-overflow: ellipsis;
  225. white-space: nowrap;
  226. }
  227. .content-item-major ul li:nth-child(2){
  228. background-image: url(../images/xxgc/title_bg2.png);
  229. }
  230. .content-item-major ul li:nth-child(3){
  231. background-image: url(../images/xxgc/title_bg3.png);
  232. }
  233. .content-item-major ul li:nth-child(4){
  234. background-image: url(../images/xxgc/title_bg4.png);
  235. }
  236. .content-item-major ul li:nth-child(5){
  237. background-image: url(../images/xxgc/title_bg5.png);
  238. }
  239. .content-item-major ul li:nth-child(6){
  240. background-image: url(../images/xxgc/title_bg6.png);
  241. }
  242. .content-item-major ul li:nth-child(7){
  243. background-image: url(../images/xxgc/title_bg7.png);
  244. }
  245. .content-item-major ul li:nth-child(8){
  246. background-image: url(../images/xxgc/title_bg8.png);
  247. }
  248. .content-item-major ul li:nth-child(9){
  249. background-image: url(../images/xxgc/title_bg9.png);
  250. /* margin-bottom: 0; */
  251. }
  252. .content-item-major ul li:nth-child(10){
  253. background-image: url(../images/xxgc/title_bg11.png);
  254. /* margin-bottom: 0; */
  255. }
  256. .content-item-major ul li a{
  257. border-bottom: 0;
  258. color: #fff;
  259. font-size: 16px;
  260. }
  261. .content-item-swiper2 {
  262. background-color: #f0f0f0;
  263. padding-bottom: 40px;
  264. margin-top: 35px;
  265. }
  266. .horizontal-name {
  267. width: 22%;
  268. margin: 0 auto;
  269. padding: 26px 0;
  270. }
  271. .content-item-swiper2 .horizontal-swiper{
  272. width: 93%;
  273. margin: 0 auto;
  274. background-color: #fff;
  275. padding: 8px 12px;
  276. box-shadow: 2px 2px 10px #908f8f;
  277. }
  278. .content-item-swiper2 .swiper-slide {
  279. border: 1px solid #0071bc;
  280. }
  281. .hidden {
  282. display: none;
  283. }
  284. /* banner */
  285. .banner{
  286. background-color: #c4daf1;
  287. position: relative;
  288. }
  289. /* banner轮播 */
  290. .banner-swiper{
  291. width: 100%;
  292. margin: 0 auto;
  293. z-index: 3;
  294. }
  295. .banner .swiper-button-next,
  296. .banner .swiper-button-prev {
  297. opacity: 1;
  298. transform: translateY(-50%);
  299. --swiper-navigation-color: rgba(122, 124, 158, .7);
  300. padding: 8px 0;
  301. background-color: rgba(255, 255, 255, .7);
  302. box-sizing: content-box;
  303. }
  304. .banner .swiper-button-next:hover,
  305. .banner .swiper-button-prev:hover{
  306. background-color: rgba(255, 255, 255, 1);
  307. --swiper-navigation-color: rgba(122, 124, 158, 1);
  308. }
  309. .banner .swiper-pagination-bullet{
  310. width: 12px;
  311. height: 12px;
  312. }
  313. .banner .swiper-pagination-bullet-active {
  314. color:#fff;
  315. background: #ff3300;
  316. }
  317. .banner .swiper-container-horizontal>.swiper-pagination-bullets{
  318. text-align: right;
  319. left: -8px;
  320. }
  321. .banner .swiper-slide{
  322. position: relative;
  323. }
  324. .banner .swiper-slide img,
  325. .content-item-swiper2 img {
  326. display: block;
  327. width: 100%;
  328. }
  329. .banner .swiper-slide .swiper-title{
  330. position: absolute;
  331. left: 0;
  332. bottom: 0;
  333. height: 38px;
  334. line-height: 38px;
  335. background-color: rgba(0,0,0,.6);
  336. color: #fff;
  337. padding: 0 125px 0 10px;
  338. box-sizing: border-box;
  339. width: 100%;
  340. overflow: hidden;
  341. text-overflow: ellipsis;
  342. white-space: nowrap;
  343. }
  344. /* 轮播 */
  345. .content-item-swiper .swiper-pagination-bullet{
  346. width: 22px;
  347. height: 18px;
  348. line-height: 18px;
  349. border-radius: 2px;
  350. font-size: 12px;
  351. text-align: center;
  352. background-color: rgba(0, 0, 0, .6);
  353. color: #fff;
  354. }
  355. .content-item-swiper .swiper-pagination-bullet-active {
  356. color:#fff;
  357. background: rgba(185, 13, 13, .7);
  358. }
  359. .content-item-swiper .swiper-container-horizontal>.swiper-pagination-bullets{
  360. text-align: right;
  361. left: -3px;
  362. bottom: 3px;
  363. }
  364. .content-item-swiper .swiper-slide{
  365. position: relative;
  366. }
  367. .content-item-swiper .swiper-slide img{
  368. display: block;
  369. width: 100%;
  370. }
  371. .content-item-swiper .swiper-slide .swiper-title{
  372. position: absolute;
  373. left: 0;
  374. top: 0;
  375. height: 26px;
  376. line-height: 26px;
  377. background-color: #B90D0D;
  378. color: #fff;
  379. padding: 0 10px;
  380. box-sizing: border-box;
  381. width: 100%;
  382. overflow: hidden;
  383. text-overflow: ellipsis;
  384. white-space: nowrap;
  385. text-align: center;
  386. }
  387. .sidebar{
  388. position: fixed;
  389. right: 0;
  390. top: 50%;
  391. transform: translateY(-50%);
  392. z-index: 10;
  393. }
  394. .sidebar img{
  395. display: block;
  396. }
  397. .sidebar p{
  398. text-align: center;
  399. line-height: 18px;
  400. }
  401. .sidebar-close{
  402. float: right;
  403. padding: 5px 10px;
  404. }
  405. /* 列表页 */
  406. .content-part{
  407. overflow: hidden;
  408. display: block;
  409. }
  410. .content-left{
  411. background-color: #f0f0f0;
  412. width: 220px;
  413. float: left;
  414. margin: 0;
  415. }
  416. .content-left h2{
  417. background: url(../images/xxgc/crumbs-left.png) repeat-x center;
  418. background-size: contain;
  419. height: 70px;
  420. line-height: 70px;
  421. font-size: 18px;
  422. text-shadow: 2px 2px 3px #1b1462;
  423. }
  424. .content-right{
  425. margin-left: 270px;
  426. width: auto;
  427. }
  428. .content-left-list{
  429. padding: 25px 15px;
  430. }
  431. .content-left-list li a{
  432. text-align: center;
  433. color: #1b1464;
  434. border-bottom: 0;
  435. }
  436. .content-left-list .content-left-current a,
  437. .content-left-list li a:hover {
  438. background-color: #90d0ec;
  439. }
  440. .crumbs{
  441. background: url(../images/xxgc/crumbs-right.png) repeat-x center;
  442. background-size: contain;
  443. line-height: 50px;
  444. overflow: hidden;
  445. color: #fff;
  446. font-size: 16px;
  447. text-shadow: 2px 2px 3px #1b1462;
  448. }
  449. .crumbs p {
  450. float: left;
  451. font-weight: bold;
  452. font-size: 16px;
  453. }
  454. .crumbs a{
  455. color: #fff;
  456. }
  457. .crumbs-right {
  458. float: right;
  459. }
  460. .list-wrap .list-time{
  461. color: #666;
  462. }
  463. .column-pic{
  464. margin-bottom: 35px;
  465. }
  466. .column-pic,
  467. .column-pic img,
  468. .content-wrap-img,
  469. .content-wrap-img img {
  470. width: 100%;
  471. }
  472. /* 横向图文列表 */
  473. .content-crosswiseImg-list{
  474. flex-wrap: wrap;
  475. }
  476. .content-crosswiseImg-list li{
  477. width: 100% !important;
  478. border-bottom: 1px solid #ccc;
  479. padding-bottom: 25px;
  480. margin-bottom: 25px !important;
  481. }
  482. .content-crosswiseImg-list li a{
  483. display: block;
  484. width: 100%;
  485. height: 100%;
  486. }
  487. .content-crosswiseImg-list .content-img-list-imgWrap{
  488. width: 25%;
  489. float: left;
  490. margin-right: 20px;
  491. padding: 0;
  492. border: 0;
  493. }
  494. .content-crosswiseImg-list dl{
  495. margin-left: 25%;
  496. }
  497. .content-crosswiseImg-list dt{
  498. font-size: 16px;
  499. font-weight: bold;
  500. line-height: 28px;
  501. padding-top: 15px;
  502. display: -webkit-box;
  503. -webkit-box-orient: vertical;
  504. -webkit-line-clamp: 2;
  505. overflow: hidden;
  506. width: 92%;
  507. }
  508. .content-crosswiseImg-list dd{
  509. color: #333;
  510. margin: 10px 0 12px;
  511. line-height: 22px;
  512. display: -webkit-box;
  513. -webkit-box-orient: vertical;
  514. -webkit-line-clamp: 2;
  515. overflow: hidden;
  516. width: 92%;
  517. }
  518. .content-crosswiseImg-list .content-crosswiseImg-time{
  519. color: #666;
  520. margin: 0;
  521. }
  522. .content-crosswiseImg-list li:hover dt,
  523. .content-crosswiseImg-list li:hover dd{
  524. color: #FF0000;
  525. }
  526. /* 竖向图片 */
  527. .content-verticalImg-list li{
  528. width: 33%;
  529. }
  530. .content-verticalImg-list li a{
  531. margin: 0 30px;
  532. }
  533. /* 目录页 */
  534. .catalog-title{
  535. border-color: #ff0000;
  536. }
  537. /* 底部 */
  538. .footer {
  539. margin-top: 35px;
  540. background: url(../images/xxgc/header-bg.png) repeat-x center;
  541. background-size: contain;
  542. }
  543. .footer-mesg{
  544. background-color: transparent;
  545. color: #fff;
  546. }
  547. .mobile-nav-icon{
  548. right: 20px;
  549. }
  550. .mobile-nav-icon span{
  551. background-color: #ff0000;
  552. }
  553. .mobile-header-nav .nav-threeLevel li a{
  554. background-color: #f55555;
  555. }
  556. /* 响应式 */
  557. @media screen and (max-width: 1024px) {
  558. .banner-nav{
  559. top: 60px;
  560. }
  561. }
  562. @media screen and (max-width: 980px) {
  563. .header-top>.wrap{
  564. padding: 0 10px;
  565. }
  566. .header-top .header-img img{
  567. padding: 20px 0;
  568. }
  569. .header-right-search{
  570. right: 80px;
  571. }
  572. .header-nav ul{
  573. height: auto;
  574. }
  575. /* flex布局,item元素补全 */
  576. .header-nav ul::after{
  577. content: "";
  578. width: 50%;
  579. }
  580. .header-mesg{
  581. position: relative;
  582. top: 0;
  583. left: 0;
  584. transform: translateY(0);
  585. overflow: hidden;
  586. }
  587. .header-mesg p{
  588. float: left;
  589. margin-right: 20px;
  590. margin-bottom: 8px;
  591. }
  592. .content-row{
  593. flex-wrap: wrap;
  594. }
  595. .content-item{
  596. width: 100% !important;
  597. }
  598. .banner-swiper{
  599. width: 100%;
  600. }
  601. }
  602. @media screen and (max-width: 768px) {
  603. .content-item{
  604. width: 100%;
  605. }
  606. /* 轮播 */
  607. .content-item-swiper .swiper-container{
  608. width: 100%;
  609. float: inherit;
  610. }
  611. .content-item-swiper ul{
  612. margin-left: 0;
  613. }
  614. .content-item-swiper .content-wrap{
  615. margin-left: 0;
  616. margin-top: 20px;
  617. }
  618. .content-left{
  619. width: 100%;
  620. margin-bottom: 20px;
  621. }
  622. .content-right{
  623. width: 100%;
  624. margin-left: 0;
  625. }
  626. }
  627. @media screen and (max-width: 640px) {
  628. .header{
  629. box-shadow: 0 1px 3px #ddd;
  630. }
  631. .header-top .wrap{
  632. width: 100%;
  633. }
  634. .mobile-nav-icon {
  635. right: 18px;
  636. }
  637. .header-img{
  638. width: 100%;
  639. height: auto;
  640. }
  641. .header-img img{
  642. height: 60px;
  643. width: auto;
  644. box-sizing: content-box;
  645. }
  646. .content-wrap li p{
  647. width: calc(100% - 100px);
  648. }
  649. .content{
  650. margin-top: 100px !important;
  651. }
  652. .content-bgPic{
  653. top: 0;
  654. }
  655. .header-right{
  656. display: none;
  657. }
  658. .column-pic{
  659. margin-bottom: 15px;
  660. }
  661. .content-img-list-imgWrap{
  662. width: 100% !important;
  663. }
  664. .content-crosswiseImg-list dl{
  665. margin-left: 0;
  666. text-align: center;
  667. }
  668. .footer{
  669. margin-top: 20px;
  670. }
  671. }