index.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. @charset "utf-8";
  2. /* css */
  3. * { margin: 0; padding: 0 }
  4. body { font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif; color: #555; background: #efefef; line-height: 1.5; }
  5. img { border: 0; display: block }
  6. ul, li { list-style: none; }
  7. a { text-decoration: none; color: #555 }
  8. a:hover { text-decoration: none; color: #000; }
  9. .clear { clear: both; }
  10. .blank { height: 20px; overflow: hidden; width: 100%; margin: auto; clear: both }
  11. .f_l { float: left }
  12. .f_r { float: right }
  13. .box { width: 1280px; margin: auto; overflow: hidden; clear: both; }
  14. @media(max-width:1400px) {
  15. .box {width: 1000px; }
  16. }
  17. .nobox { width: 100% }
  18. .c_white { background: #fff }
  19. article { width: 1000px; margin: auto; overflow: hidden; padding: 20px 0 }
  20. .container { width: 1000px; margin: auto }
  21. /*header*/
  22. header { width: 100%; background: #fff; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
  23. .logo { text-align: center; font-size: 22px; padding: 20px 0 }
  24. nav { width: 1000px; margin: 0 auto 20px; text-align: center; border-bottom: #000 1px solid; border-top: #000 1px solid; overflow: hidden }
  25. nav li { display: inline; line-height: 40px; padding: 0 20px }
  26. .newsbox { width: 50%; background: #fff; margin-top: 20px }
  27. .newsbox ul { margin: 20px; }
  28. .newstitle { margin: 20px; line-height: 30px; border-bottom: #000 1px solid; }
  29. .newstitle span { float: right; font-size: 18px }
  30. .newstitle span a { color: #000; }
  31. .newstitle b { background: #333; width: 118px; display: block; font-size: 14px; font-weight: normal; color: #FFF; text-align: center }
  32. .newsli li { padding-left: 10px; line-height: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  33. .sbox { width: 32%; background: #FFF; padding-bottom: 20px; position: relative; z-index: 2; }
  34. .sbox h2 { font-size: 16px; padding: 50px 0 20px; border-bottom: #CCC 1px solid; margin: 0 20px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  35. .sbox p { overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; display: -webkit-box; -webkit-line-clamp: 3; line-height: 24px; height: 72px; padding: 20px 20px 0 20px }
  36. .sbox.ml { margin-left: 20px }
  37. .sbox span { width: 80px; height: 30px; line-height: 30px; text-align: center; margin: auto; display: block; background: #333; color: #FFF; position: absolute }
  38. .read { display: block; text-align: center; margin: 20px auto 0; width: 100px; border: #333 1px solid; line-height: 26px; position: relative; }
  39. .read:before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 26px; background: #333; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: 0.5s; transition: 0.5s; z-index: -1; }
  40. .read:hover { color: #fff; }
  41. .read:hover:before { width: 100px; }
  42. .blogs { width: 66%; float: left }
  43. .bloglist { background: #FFF; overflow: hidden; padding: 20px; margin-bottom: 20px; }
  44. .bloglist h2 { font-size: 18px; position: relative }
  45. .bloglist h2:before { content: ""; width: 3px; height: 26px; position: absolute; left: -20px; top: 0; background: #333 }
  46. .bloglist p { overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; display: -webkit-box; -webkit-line-clamp: 3; line-height: 24px; height: 72px; margin: 10px 0 0 }
  47. aside { width: 32%; float: right }
  48. .ztbox { border: #000 1px solid; background: #fff; overflow: hidden; }
  49. .ztbox li { border-bottom: #888 1px solid; line-height: 40px; height: 40px; padding-left: 70px; position: relative; }
  50. .ztbox li:last-child { border-bottom: 0 }
  51. .ztbox li:after { content: "》"; position: absolute; right: 10px; color: #000; -moz-transition: all .5s ease; -webkit-transition: all .5s ease; transition: all .5s ease; }
  52. .ztbox li:hover:after { right: 0px }
  53. .ztbox li:before { background: #000; position: absolute; left: 0; width: 50px; text-align: center; color: #FFF }
  54. .ztbox li:nth-child(1):before { content: "1"; }
  55. .ztbox li:nth-child(2):before { content: "2"; }
  56. .ztbox li:nth-child(3):before { content: "3"; }
  57. .ztbox li:nth-child(4):before { content: "4"; }
  58. .ztbox li:nth-child(5):before { content: "5"; }
  59. .ztbox li:nth-child(6):before { content: "6"; }
  60. .paihang { background: #FFF; overflow: hidden; margin-top: 20px }
  61. .paihang h2 { font-size: 16px; padding: 8px 20px; position: relative }
  62. .paihang h2:after { content: ""; background-color: #282828; left: 20px; width: 60px; height: 2px; bottom: 0; position: absolute; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; -o-transition: 0.5s; transition: 0.5s; }
  63. .paihang ul { padding: 10px 20px }
  64. .paihang:hover ::after { width: 90px; }
  65. .paihang ul li { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; line-height: 26px }
  66. footer { width: 100%; text-align: center; background: #FFF; padding: 10px 0; line-height: 26px; border-top: #333 1px solid; }
  67. /*list*/
  68. .place { margin: 10px 0; width: 100%; overflow: hidden; background: #fff; }
  69. .place a { display: block; float: left; padding: 5px 0; background: #fff; margin: 0 10px; width: 100px; text-align: center }
  70. .pagelist { text-align: center; color: #666; width: 100%; clear: both; margin: 25px 0 10px 0; padding-top: 20px }
  71. .pagelist a { color: #666; margin: 0 2px 10px; border: 1px solid #fff; padding: 5px 10px; background: #FFF; display: inline-block; }
  72. .pagelist a:hover { color: #333; }
  73. .pagelist > b { border: 1px solid #333; padding: 5px 10px; background: #333; color: #FFF }
  74. .pagelist input{ color: #666; margin: 0 2px 10px; border: 1px solid #fff; padding: 5px 5px; height: 22px; display: inline-block;}
  75. a.curPage { color: #333; font-weight: bold; }
  76. /*about*/
  77. .newsview { padding: 20px; overflow: hidden; background: rgba(255,255,255,1); margin: 20px 0 }
  78. .newsview h2 { font-size: 16px; width: 120px; height: 30px; line-height: 30px; text-align: center; background: #333; color: #fff; margin: 10px 0; font-weight: normal; }
  79. .news_infos { padding-bottom: 20px }
  80. /*infosbox*/
  81. .infosbox { float: left; width: 66%; overflow: hidden; background: #FFF; }
  82. .newsview { padding: 0 30px }
  83. .news_title { font-size: 24px; font-weight: normal; }
  84. .news_author { width: 100%; color: #999; line-height: 18px; }
  85. .news_author span { margin-right: 10px; padding-left: 20px }
  86. .news_about { color: #888888; border: 1px solid #F3F3F3; padding: 10px; margin: 20px auto 15px auto; line-height: 23px; background: none repeat 0 0 #F6F6F6; }
  87. .news_about strong { color: #38485A; font-weight: 400 !important; font-size: 13px; padding-right: 8px; }
  88. .news_content { line-height: 24px; font-size: 14px; }
  89. .news_content p { overflow: hidden; padding-bottom: 4px; padding-top: 6px; word-wrap: break-word; }
  90. .tags a { background: #333; padding: 3px 8px; margin: 0 5px 0 0; color: #fff; }
  91. .tags { margin: 30px 0; }
  92. .infosbox .news_con { line-height: 1.8; font-size: 16px; text-align: justify; }
  93. .infosbox .news_con p { margin-bottom: 25x }
  94. .infosbox .news_con img { max-width: 650px; height: auto; }
  95. .infosbox .share { padding: 20px; }
  96. .nextinfo { line-height: 24px; width: 100%; background: #FFF; border-radius: 10px; overflow: hidden; margin: 20px 0 }
  97. .nextinfo p { padding: 4px 10px; border-radius: 5px; }
  98. .nextinfo a:hover { color: #000; text-decoration: underline }
  99. .diggit { width: 140px; margin: 20px auto; background: #E2523A; color: #fff; box-shadow: 1px 2px 6px 0px rgba(0,0,0,.2); border-radius: 3px; line-height: 40px; text-align: center; }
  100. .diggit a { color: #fff; }
  101. #diggnum { margin: 5px; }
  102. .otherlink, .xzsm, .ffsm { width: 100%; background: #FFF; overflow: hidden; margin: 20px 0 }
  103. .otherlink h2 { border-bottom: #000 2px solid; line-height: 40px; font-size: 14px; padding-left: 40px; color: #000 }
  104. .otherlink ul { margin: 10px 0 }
  105. .otherlink li { line-height: 24px; height: 24px; display: block; width: 290px; float: left; overflow: hidden; margin-right: 30px; padding-left: 10px; }
  106. .otherlink li a:hover { text-decoration: underline; color: #000 }
  107. .news_pl { margin: 10px 0; width: 100%; background: #FFF; overflow: hidden; margin: 20px 0 }
  108. .news_pl h2 { border-bottom: #000 2px solid; line-height: 40px; font-size: 14px; padding-left: 30px; color: #000 }
  109. .xzsm ul, .ffsm ul { padding: 20px; line-height: 24px; border-top: 6px solid #a6b5c5; }
  110. .bloginfo { overflow: hidden; margin-top: 20px }
  111. .bloginfo ul li { float: left; font-size: 12px; margin: 0 15px 0 0; color: #748594; line-height: 1.5; display: inline-block; }
  112. .bloginfo ul li a { color: #748594; }
  113. .bloginfo ul li a:hover { color: #000 }
  114. /*time*/
  115. .timebox { background: #FFF; padding: 30px }
  116. .timebox span { position: relative; line-height: 32px; padding-right: 40px; color: #999 }
  117. .timebox span:after { position: absolute; content: ""; width: 2px; height: 40px; background: #e0dfdf; right: 18px }
  118. .timebox li { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  119. .timebox li i { position: relative; font-style: normal }
  120. .timebox li i:before { content: " "; height: 10px; width: 10px; border: 2px solid #cccaca; background: #fff; position: absolute; top: 4px; left: -26px; border-radius: 50%; -webkit-transition: all .5s ease; -moz-transition: all .5s ease; -ms-transition: all .5s ease; -o-transition: all .5s ease; transition: all .5s ease; }
  121. .timebox li:hover i:before { background: #333 }
  122. /*phone*/
  123. @media screen and (min-width: 768px) and (max-width: 1023px) {
  124. nav, article { width: 100% }
  125. .box { width: 100% }
  126. }
  127. @media only screen and (max-width: 767px) {
  128. nav, article { width: 100% }
  129. .box { width: 94% }
  130. aside { display: none }
  131. .sbox { width: 100%; margin: 0 auto 10px }
  132. .sbox.ml { margin-left: 0; }
  133. .blogs { width: 100% }
  134. .newsbox { width: 100% }
  135. nav { border: none }
  136. #starlist { width: 90%; margin: auto; }
  137. nav li { width: 33%; padding: 0; display: block; float: left; border-top: 1px solid #333; border-bottom: 1px solid #333; }
  138. nav li:nth-child(n+4) { border-top: none }
  139. nav li:nth-child(2), nav li:nth-child(5), nav li:nth-child(8) { border-left: 1px solid #333; border-right: 1px solid #333; }
  140. .infosbox { width: 100% }
  141. }
  142. /*read*/
  143. .news_con h2 { font-size: 16px; width: auto; height: 30px; line-height: 30px; text-align: center; background: #333; color: #fff; margin: 10px 0; font-weight: normal;display:inline-block !important; display:inline;padding: 0px 20px;}
  144. a.current_category {
  145. background: #dbd3d3
  146. }
  147. /* 分页 */
  148. .pagination {
  149. display: inline-block;
  150. padding-left: 0;
  151. border-radius: 4px;
  152. list-style: none;
  153. }
  154. .pagination li {
  155. float: left;
  156. border: 1px solid #DDD;
  157. border-left: none;
  158. min-width: 31px;
  159. height: 28px;
  160. line-height: 28px;
  161. text-align: center;
  162. }
  163. .pagination li.active,
  164. li.disabled {
  165. width: 31px;
  166. text-align: center;
  167. color: #737373;
  168. cursor: default;
  169. background: #f5f5f5;
  170. }
  171. .pagination li a {
  172. color: #3399d5;
  173. }
  174. .pagination li:first-child {
  175. border-left: 1px solid #DDD;
  176. border-bottom-left-radius: 5px;
  177. border-top-left-radius: 5px;
  178. }
  179. .pagination li:last-child {
  180. border-bottom-right-radius: 5px;
  181. border-top-right-radius: 5px;
  182. }
  183. .pagination li:hover {
  184. background: #f5f5f5;
  185. }