guihua.css 6.8 KB

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