gh.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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/bg/bg-header-cwc.jpg) repeat-x center;
  12. }
  13. .header-img{
  14. position: relative;
  15. }
  16. .header-img img{
  17. width: auto;
  18. margin: 0 auto;
  19. }
  20. /* 导航 */
  21. .header-nav{
  22. background-color: #4FB7F4;
  23. }
  24. .header-nav ul{
  25. height: 40px;
  26. line-height: 40px;
  27. background-color: transparent;
  28. }
  29. .nav-secondLevel{
  30. top: 40px;
  31. }
  32. .header-nav li:last-child{
  33. background: none;
  34. }
  35. .header-nav li:hover a {
  36. background-color: #0F97E8
  37. }
  38. .nav-secondLevel li:hover a {
  39. background-color: rgba(15,68,157,1);
  40. }
  41. .header-nav .nav-secondLevel li a{
  42. border-color: #07ade7;
  43. }
  44. .header-nav .nav-threeLevel li a:hover{
  45. background-color: #0190d6;
  46. }
  47. .header-nav li a{
  48. position: relative;
  49. }
  50. .header-nav a i{
  51. width: 0;
  52. height: 0;
  53. border: 6px solid transparent;
  54. border-bottom-color: #fff;
  55. position: absolute;
  56. bottom: 0;
  57. left: 50%;
  58. transform: translateX(-50%);
  59. opacity: 0;
  60. }
  61. .header-nav li:hover a i{
  62. opacity: 1;
  63. }
  64. /* 主体 */
  65. .content{
  66. margin-top: 15px;
  67. }
  68. .content-row{
  69. display: flex;
  70. justify-content: space-between;
  71. flex-wrap: wrap;
  72. }
  73. .content-item{
  74. width: 32.6%;
  75. box-sizing: border-box;
  76. margin-bottom: 15px;
  77. background: url(../images/bg/bg-content-gh.jpg) no-repeat right bottom;
  78. border: 1px solid #44a5d8;
  79. border-radius: 4px;
  80. }
  81. .content-item .content-wrap{
  82. background: url(../images/bg/bg-content-gh-center.jpg) repeat-x top;
  83. }
  84. .content-item-swiper{
  85. width: 66.3%;
  86. }
  87. .content-item h2{
  88. height: 55px;
  89. line-height: 55px;
  90. background: url(../images/bg/bg-content-gh-right.jpg) no-repeat right center;
  91. color: #fff;
  92. font-size: 12px;
  93. overflow: hidden;
  94. position: relative;
  95. }
  96. .content-item h2 a{
  97. font-weight: normal;
  98. color: #fff;
  99. background-color: #11a7f4;
  100. position: absolute;
  101. top: calc(50% - 5px);
  102. right: 8px;
  103. transform: translateY(-50%);
  104. height: 18px;
  105. line-height: 18px;
  106. padding: 0 8px;
  107. border-radius: 4px;
  108. }
  109. .content-item h2 a:hover{
  110. color: #FF0000;
  111. }
  112. .content-wrap ul{
  113. margin-bottom: 5px;
  114. }
  115. .content-wrap ul li{
  116. height: 36px;
  117. line-height: 36px;
  118. margin: 0 10px;
  119. border-bottom: 1px dashed #ccc;
  120. padding-left: 16px;
  121. background: url(../images/icon/ico.jpg) no-repeat left center;
  122. }
  123. .content-wrap li p{
  124. width: calc(100% - 20px);
  125. overflow: hidden;
  126. text-overflow: ellipsis;
  127. white-space: nowrap;
  128. float: left;
  129. }
  130. .content-wrap .list-time {
  131. float: right;
  132. /* color: #999; */
  133. display: none;
  134. }
  135. .content-wrap a:hover .list-time {
  136. color: #ff1111;
  137. }
  138. .content-tow-lines {
  139. flex-grow: 2;
  140. }
  141. .content-tow-lines ul{
  142. display: flex;
  143. justify-content: space-between;
  144. flex-wrap: wrap;
  145. }
  146. .content-tow-lines li{
  147. width: 48%;
  148. overflow: hidden;
  149. }
  150. .content-item-swiper ul{
  151. margin-left: 50%;
  152. }
  153. /* 轮播 */
  154. .content-item-swiper .swiper-container{
  155. width: 49%;
  156. float: left;
  157. margin: 0 0 5px 5px;
  158. }
  159. .swiper-pagination-bullet{
  160. width: 22px;
  161. height: 18px;
  162. line-height: 18px;
  163. border-radius: 2px;
  164. font-size: 12px;
  165. text-align: center;
  166. background-color: rgba(0, 0, 0, .6);
  167. color: #fff;
  168. }
  169. .swiper-pagination-bullet-active {
  170. color:#fff;
  171. background: rgba(201, 3, 3, .6);
  172. }
  173. .swiper-container-horizontal>.swiper-pagination-bullets{
  174. text-align: right;
  175. left: -3px;
  176. bottom: 3px;
  177. }
  178. .swiper-slide{
  179. position: relative;
  180. }
  181. .swiper-slide img{
  182. display: block;
  183. width: 100%;
  184. }
  185. .swiper-slide .swiper-title{
  186. position: absolute;
  187. left: 0;
  188. top: 0;
  189. height: 26px;
  190. line-height: 26px;
  191. background-color: #0190d6;
  192. color: #fff;
  193. padding: 0 10px;
  194. box-sizing: border-box;
  195. width: 100%;
  196. overflow: hidden;
  197. text-overflow: ellipsis;
  198. white-space: nowrap;
  199. text-align: center;
  200. }
  201. /* 列表页 */
  202. .content-list-wrap{
  203. border: 1px solid #4FB7F4;
  204. }
  205. .crumbs{
  206. background-color: #4FB7F4;
  207. color: #fff;
  208. }
  209. .crumbs a{
  210. color: #fff;
  211. }
  212. /* 底部 */
  213. .footer{
  214. background-color: #4FB7F4;
  215. }
  216. .footer-mesg{
  217. background-color: transparent;
  218. }
  219. .footer-link{
  220. background-color: #C1D6E3;
  221. line-height: 36px;
  222. }
  223. .footer-link ul{
  224. display: inline-block;
  225. }
  226. .footer-link ul li{
  227. display: inline-block;
  228. margin-right: 15px;
  229. }
  230. .mobile-nav-icon span{
  231. background-color: #193e88;
  232. }
  233. .mobile-header-nav>ul{
  234. background-color: #0190d6;
  235. }
  236. .mobile-header-nav>ul>li {
  237. background-color: #0190d6;
  238. }
  239. .mobile-header-nav li a {
  240. border-color: #0F97E8;
  241. }
  242. .mobile-header-nav .nav-secondLevel{
  243. background-color: #4FB7F4;
  244. }
  245. .mobile-header-nav .nav-threeLevel {
  246. background-color: #6dbedc;
  247. }
  248. /* 搜索 */
  249. .header-top>.wrap {
  250. position: relative;
  251. }
  252. .header-search{
  253. position: absolute;
  254. right: 0;
  255. top: 50%;
  256. transform: translateY(-50%);
  257. border: 1px solid #999;
  258. border-radius: 4px;
  259. overflow: hidden;
  260. }
  261. .header-search input{
  262. box-sizing: border-box;
  263. display: block;
  264. height: 28px;
  265. line-height: 28px;
  266. padding: 0 26px 0 10px;
  267. width: 150px;
  268. outline: none;
  269. border: 0;
  270. }
  271. .header-search button{
  272. position: absolute;
  273. right: 0;
  274. top: 0;
  275. height: 28px;
  276. width: 28px;
  277. background: url(../images/icon/search2.png) no-repeat center;
  278. background-size: 16px;
  279. border: none;
  280. outline: none;
  281. cursor: pointer;
  282. }
  283. /* 响应式 */
  284. @media screen and (max-width: 1024px) {
  285. .header-img img{
  286. width: 100%;
  287. }
  288. }
  289. @media screen and (max-width: 980px) {
  290. .header-nav{
  291. background-repeat: repeat;
  292. background-position: left top;
  293. }
  294. .header-nav ul{
  295. height: auto;
  296. }
  297. /* flex布局,item元素补全 */
  298. .header-nav ul::after{
  299. content: "";
  300. width: 50%;
  301. }
  302. .content-item{
  303. width: 100% !important;
  304. }
  305. /* 搜索 */
  306. .header-search {
  307. right: 80px;
  308. }
  309. }
  310. @media screen and (max-width: 768px) {
  311. .content-item{
  312. width: 100%;
  313. }
  314. .content-tow-lines li{
  315. width: 100%;
  316. }
  317. /* 轮播 */
  318. .content-item-swiper .swiper-container{
  319. width: 100%;
  320. float: inherit;
  321. margin: 0;
  322. }
  323. .content-item-swiper ul{
  324. margin-left: 0;
  325. }
  326. }
  327. @media screen and (max-width: 640px) {
  328. .header-top .wrap{
  329. width: 100%;
  330. }
  331. .header-img{
  332. width: 100%;
  333. }
  334. .header-img img{
  335. width: auto;
  336. }
  337. .content-wrap li p{
  338. width: calc(100% - 100px);
  339. }
  340. .header-right{
  341. display: none;
  342. }
  343. /* 搜索 */
  344. .header-search {
  345. display: none;
  346. }
  347. }