tw.css 5.6 KB

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