yxw.css 5.5 KB

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