sx.css 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. body {
  2. color: #000;
  3. background-color: #e0e0e0;
  4. }
  5. a {
  6. color: #000;
  7. }
  8. a:hover {
  9. color: #ff1111;
  10. text-decoration: none;
  11. }
  12. /* 导航 */
  13. .header{
  14. box-shadow: 0px 1px 4px #666;
  15. }
  16. .header-nav {
  17. background: url(../images/bg/bg-nav-sx.gif) repeat-x center;
  18. background-size: contain;
  19. border-bottom: 2px solid #1c81cb;
  20. }
  21. .nav-secondLevel {
  22. top: 34px;
  23. }
  24. .header-nav>ul{
  25. width: 1000px;
  26. margin: 0 auto;
  27. }
  28. .header-nav .nav-secondLevel li {
  29. background-color: #C90303;
  30. }
  31. .header-nav>ul>li {
  32. flex: auto;
  33. background: url(../images/bg/bg-nav-sx-line.gif) no-repeat left center;
  34. }
  35. .header-nav>ul>li:first-child{
  36. background: none;
  37. }
  38. .header-nav li a {
  39. line-height: 34px;
  40. height: 34px;
  41. color: #000;
  42. font-weight: normal;
  43. }
  44. .header-nav .nav-secondLevel li a{
  45. background-image: none;
  46. padding-bottom: 0;
  47. color: #fff;
  48. }
  49. .header-nav .nav-secondLevel li a:hover{
  50. color: #ffff00;
  51. }
  52. /* 主体 */
  53. .content {
  54. /* padding-top: 20px; */
  55. background-color: #fff;
  56. box-shadow: 0px 1px 4px #666;
  57. }
  58. .content-right{
  59. width: 60%;
  60. }
  61. .banner{
  62. margin-bottom: 10px;
  63. }
  64. .banner,
  65. .banner img{
  66. width: 100%;
  67. }
  68. .content-part{
  69. padding: 15px 8px 0 0;
  70. }
  71. .content-row {
  72. display: flex;
  73. justify-content: space-between;
  74. flex-wrap: wrap;
  75. }
  76. .content-col {
  77. width: 31%;
  78. }
  79. .content-col-cneter {
  80. width: 40%;
  81. }
  82. .content-col-right {
  83. width: 27%;
  84. }
  85. .content-item {
  86. width: 100%;
  87. box-sizing: border-box;
  88. margin-bottom: 15px;
  89. border: 1px solid #dfdfdf;
  90. border-top: 0;
  91. border-radius: 6px;
  92. background-color: #f0f0f0;
  93. box-shadow: 0px 0px 2px #000;
  94. }
  95. .content-item h2 {
  96. /* height: 32px; */
  97. line-height: 32px;
  98. font-size: 16px;
  99. background: url(../images/bg/bg-title-sx-right.gif) repeat-x center;
  100. background-size: contain;
  101. font-size: 14px;
  102. overflow: hidden;
  103. padding-right: 12px;
  104. }
  105. .content-item h2 span{
  106. display: inline-block;
  107. height: 100%;
  108. color: #fff;
  109. padding-left: 49px;
  110. background: url(../images/bg/bg-title-sx-left.gif) no-repeat left center;
  111. background-size: contain;
  112. }
  113. .content-item.content-item-swiper h2 a {
  114. color: #AE1C03;
  115. border: 0;
  116. background-color: transparent;
  117. padding: 0;
  118. }
  119. .content-item h2 a {
  120. float: right;
  121. padding: 0 20px;
  122. }
  123. .content-col-right .content-item h2 a {
  124. border-color: #DDD6BA;
  125. }
  126. .content-item h2 a:hover {
  127. color: #AE1C03;
  128. }
  129. .content-item-list {
  130. background-color: #fff;
  131. padding: 8px;
  132. }
  133. .content-wrap ul li {
  134. height: 36px;
  135. line-height: 36px;
  136. /* border-bottom: 1px dotted #333; */
  137. padding: 0 10px 0 22px;
  138. background: url(../images/icon/arrow-yellow.gif)no-repeat left center;
  139. }
  140. .content-wrap li p {
  141. width: calc(100% - 120px);
  142. overflow: hidden;
  143. text-overflow: ellipsis;
  144. white-space: nowrap;
  145. float: left;
  146. }
  147. .content-wrap .list-top p{
  148. font-weight: bold;
  149. color: #ff0000;
  150. }
  151. .content-wrap .list-time {
  152. float: right;
  153. /* color: #666; */
  154. }
  155. .content-wrap a:hover .list-time {
  156. color: #ff1111;
  157. }
  158. .content-col-right .content-wrap .list-time {
  159. display: none;
  160. }
  161. .content-col-right .content-wrap li p {
  162. width: 100%;
  163. }
  164. /* 轮播 */
  165. .swiper-container {
  166. margin: 5px;
  167. }
  168. .swiper-pagination-bullet {
  169. width: 22px;
  170. height: 18px;
  171. line-height: 18px;
  172. border-radius: 2px;
  173. font-size: 12px;
  174. text-align: center;
  175. background-color: rgba(0, 0, 0, .6);
  176. color: #fff;
  177. }
  178. .swiper-pagination-bullet-active {
  179. color: #fff;
  180. background: rgba(174, 28, 3, 1);
  181. }
  182. .swiper-container-horizontal>.swiper-pagination-bullets {
  183. text-align: right;
  184. left: -3px;
  185. bottom: 34px;
  186. }
  187. .swiper-slide {
  188. position: relative;
  189. }
  190. .swiper-slide img {
  191. display: block;
  192. width: 100%;
  193. }
  194. .swiper-slide .swiper-title {
  195. height: 26px;
  196. line-height: 26px;
  197. padding: 0 10px;
  198. box-sizing: border-box;
  199. width: 100%;
  200. overflow: hidden;
  201. text-overflow: ellipsis;
  202. white-space: nowrap;
  203. text-align: center;
  204. background-color: #fff;
  205. margin-top: 6px;
  206. }
  207. /* 目录页 */
  208. .catalog{
  209. padding: 0;
  210. }
  211. .catalog .content-wrap li p{
  212. width: calc(100% - 135px);
  213. }
  214. /* 列表页 */
  215. .crumbs {
  216. line-height: 32px;
  217. padding: 0 20px;
  218. overflow: hidden;
  219. float: right;
  220. width: auto;
  221. font-weight: normal;
  222. color: #333;
  223. }
  224. .crumbs a {
  225. color: #333;
  226. float: none !important;
  227. padding: 0 !important;
  228. }
  229. .crumbs a:hover {
  230. color: #AE1C03;
  231. }
  232. .crumbs span{
  233. background: none !important;
  234. padding: 0 !important;
  235. color: #333 !important;
  236. }
  237. .list-wrap {
  238. margin-top: 0;
  239. }
  240. .list-wrap li {
  241. padding: 0 15px;
  242. }
  243. .list-wrap li a {
  244. padding: 0 12px;
  245. background: url(../images/icon/dot.gif) no-repeat left center;
  246. }
  247. .list-wrap .list-title {
  248. width: calc(100% - 250px);
  249. }
  250. .content-left {
  251. width: 350px;
  252. margin-right: 0;
  253. background-color: transparent;
  254. padding: 0 35px;
  255. }
  256. .content-left-top{
  257. width: 100%;
  258. background-color: #1c81cb;
  259. text-align: center;
  260. line-height: 32px;
  261. border-radius: 4px;
  262. color: #fff;
  263. box-shadow: 0px 0px 2px #000;
  264. margin-bottom: 15px;
  265. }
  266. .content-left .content-item{
  267. box-shadow: none;
  268. border: none;
  269. }
  270. .content-left .content-item h2{
  271. background: url(../images/bg/bg-title-sx.jpg) no-repeat left center;
  272. background-size: cover;
  273. height: 86px;
  274. line-height: 86px;
  275. }
  276. .content-left .content-wrap li p{
  277. width: 100%;
  278. }
  279. .content-left .content-item-list{
  280. padding-top: 0;
  281. margin-top: -8px;
  282. border: 1px solid #dfdfdf;
  283. border-top: 0;
  284. }
  285. .content-left-more{
  286. line-height: 36px;
  287. text-align: right;
  288. padding-right: 8px
  289. }
  290. /* 搜索 */
  291. .search {
  292. text-align: center;
  293. padding-bottom: 15px;
  294. }
  295. .search input{
  296. border: 1px solid #999;
  297. height: 20px;
  298. line-height: 20px;
  299. }
  300. .search-icon {
  301. box-sizing: border-box;
  302. display: inline-block;
  303. width: 22px;
  304. height: 22px;
  305. background: url(../images/icon/search2.png) no-repeat;
  306. background-size: 20px;
  307. vertical-align: middle;
  308. cursor: pointer;
  309. margin-left: 2px;
  310. }
  311. .content-left-pic{
  312. width: 100%;
  313. margin-top: 50px;
  314. }
  315. .content-left-pic img{
  316. width: 100%;
  317. }
  318. .hasImg .list-title {
  319. padding-left: 16px;
  320. background: url(../images/icon/img-small.gif) no-repeat left center;
  321. background-size: 10px;
  322. }
  323. /* 正文页 */
  324. .article .content-part{
  325. padding: 15px 15px 0;
  326. }
  327. .article .content-item-list{
  328. padding: 1px 0;
  329. }
  330. .article-bottom {
  331. padding: 10px;
  332. }
  333. .article-bottom p {
  334. line-height: 32px;
  335. overflow: hidden;
  336. text-overflow: ellipsis;
  337. white-space: nowrap;
  338. }
  339. .article-bottom span {
  340. color: #AE1C03;
  341. }
  342. .catalog {
  343. border: none;
  344. }
  345. .catalog-item {
  346. margin-bottom: 15px;
  347. border: 1px solid #D8E0E8;
  348. border-top: none;
  349. border-radius: 4px;
  350. padding-bottom: 10px;
  351. }
  352. .catalog-item:last-child {
  353. margin-bottom: 0;
  354. }
  355. /* 底部 */
  356. .footer{
  357. box-shadow: 0px 1px 4px #666;
  358. }
  359. .footer-mesg {
  360. background: url(../images/bg/bg-foot-sx.gif) repeat-x;
  361. background-size: contain;
  362. color: #000;
  363. }
  364. .mobile-nav-icon span {
  365. background-color: #fff;
  366. }
  367. /* 响应式 */
  368. @media screen and (max-width: 1200px) {
  369. .header-nav {
  370. position: relative;
  371. top: 0;
  372. transform: translateY(0);
  373. }
  374. }
  375. @media screen and (max-width: 1024px) {
  376. }
  377. @media screen and (max-width: 980px) {
  378. .header>.wrap{
  379. width: 100%;
  380. }
  381. .content-right{
  382. /* order: -1; */
  383. }
  384. .header-img img {
  385. /* width: 100%; */
  386. }
  387. .header-nav {
  388. background-repeat: repeat;
  389. background-position: left top;
  390. }
  391. .header-nav ul {
  392. height: auto;
  393. }
  394. /* flex布局,item元素补全 */
  395. .header-nav ul::after {
  396. content: "";
  397. width: 50%;
  398. }
  399. .content-part {
  400. flex-wrap: wrap;
  401. }
  402. .content-part>div {
  403. width: 100% !important;
  404. margin: 0;
  405. }
  406. .content-item {
  407. width: 100% !important;
  408. }
  409. .content-col {
  410. width: 100% !important;
  411. }
  412. .content-part {
  413. padding: 15px 8px 0 8px;
  414. }
  415. .content-left{
  416. padding: 0;
  417. }
  418. .content-left .content-item h2{
  419. height: 34px;
  420. line-height: 34px;
  421. }
  422. .content-left .content-item-list{
  423. margin-top: 0;
  424. }
  425. .search{
  426. padding-top: 20px;
  427. }
  428. .content-left-pic{
  429. margin-top: 0;
  430. }
  431. }
  432. @media screen and (max-width: 768px) {
  433. .content-item {
  434. width: 100%;
  435. }
  436. .content-tow-lines li {
  437. width: 100%;
  438. }
  439. .content-item-swiper ul {
  440. margin-left: 0;
  441. }
  442. }
  443. @media screen and (max-width: 640px) {
  444. .header-top {
  445. display: none;
  446. }
  447. .header-img {
  448. width: 100%;
  449. }
  450. .header-img img {
  451. width: 100%;
  452. }
  453. .mobile-nav-icon {
  454. right: 18px;
  455. }
  456. .content-wrap li p {
  457. width: calc(100% - 100px);
  458. }
  459. .header-right {
  460. display: none;
  461. }
  462. /* 列表页 */
  463. .list .content-wrap li{
  464. height: auto;
  465. overflow: hidden;
  466. background-position: left 10px;
  467. }
  468. .list .content-wrap li p{
  469. width: 96%;
  470. float: none;
  471. }
  472. .list-wrap .list-title {
  473. width: 100%;
  474. }
  475. .list-wrap li {
  476. padding: 5px 15px;
  477. }
  478. .list-wrap li a {
  479. background-position: left 14px;
  480. line-height: 28px;
  481. }
  482. }