common.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. /*reset*/
  2. body {margin:0; padding:0; font-size:12px ; color:#323232; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji","Microsoft YaHei",tahoma,arial,"\5B8B\4F53"; font-weight:normal!important; background-color: #F5F5F5;}
  3. div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p{padding:0; margin:0;}
  4. table,td,tr,th{font-size:12px;}
  5. li{list-style-type:none;}
  6. img{vertical-align:top;border:0;}
  7. ol,ul {list-style:none;}
  8. h1,h2,h3,h4,h5,h6 {font-size:14px;}
  9. address,code,em,th,s,i{font-weight:normal; font-style:normal;}
  10. s{color:#909090; margin:0 10px; text-decoration:none;}
  11. body.right-open{overflow-y:clip;}
  12. .img-fluid{max-width: 100%;height: auto;}
  13. /*form*/
  14. label input{vertical-align:middle; margin-right:3px;}
  15. label{cursor:pointer;}
  16. textarea{resize:none;font-size:12px;}
  17. :focus {outline: 0;}
  18. select{padding:4px 5px;border:1px solid #cbcbcb; border-radius:2px; margin-right:3px;}
  19. /*font-size*/
  20. .fB{font-weight:bold;}
  21. .f12{font-size:12px;}
  22. .f14{font-size:14px;}
  23. .f16{font-size:16px;}
  24. .f18{font-size:16px;}
  25. /*float*/
  26. .l,.left{float:left;}
  27. .r,.right{float:right;}
  28. .clearfix {display: block;}
  29. .clearfix:after{content:"."; display:block; height:0; clear:both;visibility:hidden;}
  30. * html .clearfix { height: 1%;}
  31. /*scrollbar*/
  32. ::-webkit-scrollbar{width:3px;height:6px;}
  33. ::-webkit-scrollbar-button:vertical{display:none;}
  34. ::-webkit-scrollbar-track:vertical{background-color:black;}
  35. ::-webkit-scrollbar-track-piece{background-color:#F5F5F5;}
  36. ::-webkit-scrollbar-thumb:vertical{margin-right:6px; background-color:#bbb;}
  37. ::-webkit-scrollbar-thumb:vertical:hover{background-color:#aaa;}
  38. ::-webkit-scrollbar-corner:vertical{background-color:#535353;}
  39. /*placeholder*/
  40. ::-webkit-input-placeholder { /* WebKit browsers */
  41. color: #aaa;font-size: 14px;
  42. }
  43. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  44. color: #aaa; font-size: 14px;
  45. }
  46. :-ms-input-placeholder { /* Internet Explorer 10+ */
  47. color: #aaa; font-size: 14px;
  48. }
  49. /*display*/
  50. .hide{display:none;}
  51. .block{display:block;}
  52. /*a*/
  53. a {color:#323232; text-decoration:none;}
  54. a:visited {text-decoration:none;}
  55. a:hover {color:#4385F5; transition: all 0.5s;}
  56. a:active {color:#4385F5;}
  57. /*省略行数*/
  58. .text-overflow-1,.text-overflow-2,.text-overflow-3,.text-overflow-4,.text-overflow-5{display: -webkit-box !important;
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. word-break: break-all;
  62. -webkit-box-orient: vertical;
  63. -webkit-line-clamp: 1;
  64. }
  65. .text-overflow-2{-webkit-line-clamp: 2;}
  66. .text-overflow-3{-webkit-line-clamp: 3;}
  67. .text-overflow-4{-webkit-line-clamp: 4;}
  68. .text-overflow-5{-webkit-line-clamp: 4;}
  69. /*----------------导航-----------------*/
  70. .header{width:100%; height:60px;position: fixed; left:0; top:0; z-index: 996; box-shadow: 0 5px 8px 0 rgba(0,0,0,.1); background: rgba(255,255,255,.95);transition: all 0.5s;}
  71. .nav-box{width:1226px; height:60px; margin:0 auto;}
  72. .nav-logo{width:180px; height:60px;}
  73. .nav-logo a{width:180px; height:60px; display:block;}
  74. .navbar {padding: 9px 0; height:42px;}
  75. .navbar ul {display: flex; list-style: none; align-items: center;}
  76. .navbar li { position: relative;}
  77. .navbar a { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; font-size: 16px; color:#323232; font-weight: 400; white-space: nowrap; transition: 0.3s;}
  78. .navbar a i {font-size: 12px; line-height: 0; margin-left: 4px;}
  79. .navbar a:hover, .navbar .active, .navbar li:hover > a { color: #186AF2;}
  80. .navbar .login-btn {padding: 4px 12px; margin-left: 20px; border-radius: 3px; font-size: 14px; background-color:#186AF2; color:#fff}
  81. .navbar .login-btn:hover {opacity:0.72; color:#fff}
  82. .navbar .reg-btn {padding: 4px 12px; margin-left: 20px; border-radius: 3px; font-size: 14px; background-color:#EA4335; color:#fff}
  83. .navbar .reg-btn:hover {opacity:0.72; color:#fff}
  84. .navbar .dropdown ul { display: block; position: absolute; left: 14px; top: calc(100% + 30px); margin: 0; padding: 10px 0; z-index: 99; opacity: 0; visibility: hidden; background: #fff; box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25); transition: 0.3s; border-radius: 3px;}
  85. .navbar .dropdown ul li {min-width: 200px;}
  86. .navbar .dropdown ul a {padding: 8px 20px; font-size: 14px; text-transform: none; font-weight: 400;}
  87. .navbar .dropdown ul a i { font-size: 12px;}
  88. .navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a { color: #186AF2;}
  89. .navbar .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible;}
  90. .navbar .dropdown .dropdown ul { top: 0;left: calc(100% - 30px); visibility: hidden;}
  91. .navbar .dropdown .dropdown:hover > ul { opacity: 1; top: 0; left: 100%; visibility: visible;}
  92. .nav-login-box{width:320px; border-radius:2px; position:absolute; top:60px; right:0; background-color:#fff; z-index:-1; color:#333; font-size:14px;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transition:.2s;transition:.2s;opacity:0;-webkit-transform-origin:center top;transform-origin:center top;-webkit-box-shadow:0 15px 30px rgba(0,0,0,.2);box-shadow:0 15px 30px rgba(0,0,0,.2);}
  93. .login-note{padding: 15px 15px 0; color: #FF5722;}
  94. .nav-login-box .login-menu{padding:15px 10px;}
  95. .navbar .login-menu a{width:76px; color:#333; padding:2px 12px; display:inline-block; font-size:15px;}
  96. .nav-login-box .login-menu-bottom{background-color:#f2f2f2; border-top:1px solid #eee;}
  97. .nav-login-box .login-menu-bottom a{color:#666; font-size:12px; padding: 12px;}
  98. .navbar li.nav-logined .nav-login-box:after {content: '';display: block;width: 20px; height: 20px;background-color: #fff; position: absolute; top: -5px;right: 30px;
  99. -webkit-transform: rotate(-45deg);
  100. transform: rotate(-45deg);
  101. }
  102. .navbar li a.nav-img{height:32px; text-align:center; padding:0 20px; display:block; line-height: 32px; font-size: 16px;}
  103. .navbar li.nav-logined:hover .nav-login-box{z-index:99;-webkit-transform:scale(1);transform:scale(1);opacity:1;}
  104. .nav-img img{width:30px; height:30px; border-radius:50%; border:1px solid #fff; margin-right: 6px;}
  105. @media (max-width: 1280px) {
  106. .navbar .dropdown .dropdown ul {left: -90%;}
  107. .navbar .dropdown .dropdown:hover > ul { left: -100%;}
  108. .nav-box{width:1026px;}
  109. .navbar a { padding: 10px 18px;}
  110. }
  111. /*----------------页脚-----------------*/
  112. .footer{width:100%; background-color:#1c1a1d;}
  113. .footer-top{width:100%; background:url(../images/footer.jpg) no-repeat center bottom; background-size: 100% auto;}
  114. .footer-top-box{width:1200px; margin:0 auto; color:#888;}
  115. .footer-bottom{width:100%; background-color:#151515;height:36px; overflow:hidden; }
  116. .footer-bottom-box{width:1200px; line-height:36px; margin:0 auto; color:#888;}
  117. .footer-bottom-box .a{margin-left:10px; color:#bbb;}
  118. .footer-bottom-box .r{color:#bbb;}
  119. .footer-link{padding:50px 0; padding-right:160px;}
  120. .footer-link dt{font-size:18px; height:48px; line-height: 36px; color:#bbb;}
  121. .footer-link dt a{color:#bbb;}
  122. .footer-link dd{font-size:14px; line-height:32px;}
  123. .footer-link a{color:#888;}
  124. .footer-link a:hover{color:#36a0ff;}
  125. .footer-about{padding:50px 0;}
  126. .footer-about dt{font-size:18px; height:48px; line-height: 36px; color:#bbb;}
  127. .footer-about dd{line-height:32px; font-size:14px;}
  128. .footer-about a{line-height:27px;color:#909090; }
  129. .footer-about a:hover{color:#fff; }
  130. /*----------------分页-----------------*/
  131. .pagebox{width:100%; text-align:center; font-size:14px;}
  132. .pagebox a,.pagebox span{min-width:16px; height:33px; line-height:33px; margin:0 4px; padding:0 10px; color:#333; border-radius:1px; text-align:center; border:1px solid #ddd; background-color:#fff; display:inline-block;}
  133. .pagebox a:hover,.pagebox span{background-color:#d79c00; color:#fff; border:1px solid #d79c00;}
  134. .data-none{padding:30px 0; text-align: center; color:#999;}
  135. /*----------------动画---------------*/
  136. .fadeIn {
  137. -webkit-animation-name: fadeIn;
  138. animation-name: fadeIn;
  139. -webkit-animation-duration: .3s;
  140. animation-duration: .3s;
  141. -webkit-animation-fill-mode: both;
  142. animation-fill-mode: both;
  143. }
  144. @-webkit-keyframes fadeIn{
  145. 0% {
  146. opacity: 0;
  147. }
  148. 100% {
  149. opacity: 1;
  150. }
  151. }
  152. @keyframes fadeIn{
  153. 0% {
  154. opacity: 0;
  155. }
  156. 100% {
  157. opacity: 1;
  158. }
  159. }
  160. .fadeInUp {
  161. -webkit-animation-name: fadeInUp;
  162. animation-name: fadeInUp;
  163. -webkit-animation-duration: .6s;
  164. animation-duration: .6s;
  165. -webkit-animation-fill-mode: both;
  166. animation-fill-mode: both;
  167. }
  168. @-webkit-keyframes fadeInUp {
  169. 0% {
  170. opacity: 0;
  171. -webkit-transform: translate3d(0, 10px, 0);
  172. transform: translate3d(0, 10px, 0);
  173. }
  174. 100% {
  175. opacity: 1;
  176. -webkit-transform: none;
  177. transform: none;
  178. }
  179. }
  180. @keyframes fadeInUp {
  181. 0% {
  182. opacity: 0;
  183. -webkit-transform: translate3d(0, 10px, 0);
  184. transform: translate3d(0, 10px, 0);
  185. }
  186. 100% {
  187. opacity: 1;
  188. -webkit-transform: none;
  189. transform: none;
  190. }
  191. }
  192. @-webkit-keyframes fadeInDown {
  193. 0% {
  194. opacity: 0;
  195. -webkit-transform: translate3d(0, -10px, 0);
  196. transform: translate3d(0, -10px, 0);
  197. }
  198. 100% {
  199. opacity: 1;
  200. -webkit-transform: none;
  201. transform: none;
  202. }
  203. }
  204. @keyframes fadeInDown {
  205. 0% {
  206. opacity: 0;
  207. -webkit-transform: translate3d(0, -10px, 0);
  208. transform: translate3d(0, -10px, 0);
  209. }
  210. 100% {
  211. opacity: 1;
  212. -webkit-transform: none;
  213. transform: none;
  214. }
  215. }
  216. .fadeInDown {
  217. -webkit-animation-name: fadeInDown;
  218. animation-name: fadeInDown;
  219. -webkit-animation-duration: .8s;
  220. animation-duration: .8s;
  221. -webkit-animation-fill-mode: both;
  222. animation-fill-mode: both;
  223. }