style.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. @import url('https://fonts.googleapis.com/css?family=Merriweather');
  2. @import url('https://fonts.googleapis.com/css?family=Oswald');
  3. * {
  4. box-sizing: border-box;
  5. }
  6. html {
  7. font-size: 10px;
  8. }
  9. body {
  10. font-size: 1.6rem;
  11. background: #ffffff;
  12. line-height: 1.75;
  13. font-family: Merriweather, sans-serif;
  14. }
  15. img {
  16. max-width: 100%;
  17. }
  18. .content {
  19. width: 1460px;
  20. max-width: 90%;
  21. margin: auto;
  22. }
  23. header {
  24. position: fixed;
  25. width: 100%;
  26. top: 0;
  27. left: 0;
  28. z-index: 1;
  29. background: #ffffff;
  30. }
  31. /*-----------------------------header---------------------------------------*/
  32. header .content {
  33. display: flex;
  34. flex-flow: row nowrap;
  35. justify-content: space-between;
  36. padding: 14px 0;
  37. border-bottom: 1px solid #e8e8e8;
  38. }
  39. header .logo {
  40. display: flex;
  41. flex-flow: row nowrap;
  42. justify-content: flex-start;
  43. }
  44. header nav {
  45. padding-top: 10px;
  46. }
  47. header h1 {
  48. font-family: Oswald, sans-serif;
  49. font-size: 2.8rem;
  50. text-transform: uppercase;
  51. font-weight: bolder;
  52. color: #0085c3;
  53. padding-left: 3px;
  54. }
  55. header li {
  56. display: inline;
  57. }
  58. /*-----------------------------hide-menu------------------------------------*/
  59. header .hide-menu ul li {
  60. position: relative;
  61. display: block;
  62. padding-top: 15px;
  63. }
  64. header .hide-menu .desc-m {
  65. font-family: Oswald, sans-serif;
  66. font-size: 2.8rem;
  67. text-transform: uppercase;
  68. font-weight: bolder;
  69. color: #0085c3;
  70. padding-left: 3px;
  71. }
  72. header .hide-menu .menu {
  73. position: absolute;
  74. width: 100%;
  75. opacity: 0;
  76. top: -9999em;
  77. transition: 0.5s opacity;
  78. /*padding-bottom: 7px;*/
  79. }
  80. header .hide-menu:hover .menu {
  81. opacity: 1;
  82. top: 100%;
  83. margin-top: -20px;
  84. background: #fff;
  85. }
  86. header .hide-menu {
  87. display: none;
  88. }
  89. /*-------------------------------------------------------------------------*/
  90. header li a {
  91. text-decoration: none;
  92. color: #1a1a1a;
  93. padding: 10px 14px;
  94. font-family: Oswald, sans-serif;
  95. text-transform: uppercase;
  96. }
  97. header li a:hover {
  98. color: #0085c3;
  99. }
  100. header nav .menu li:last-child a{
  101. color: #ffffff;
  102. background: #4ca54c;
  103. }
  104. header nav .menu li:last-child a:hover {
  105. background: #3d843d;
  106. }
  107. /*-----------------------------slider---------------------------------------*/
  108. section.slider {
  109. margin-top: 77px ;
  110. background: #00618d;
  111. color: #ffffff;
  112. padding: 50px 0;
  113. }
  114. section .content {
  115. display: flex;
  116. flex-flow: row nowrap;
  117. justify-content: space-between;
  118. }
  119. section h2 {
  120. font-size: 2.8rem;
  121. padding-bottom: 28px;
  122. }
  123. section .left-cont {
  124. font-family: Oswald, sans-serif;
  125. width: 50%;
  126. }
  127. section .right-cont .bottom {
  128. display: flex;
  129. flex-flow: row nowrap;
  130. justify-content: space-between;
  131. }
  132. section.slider a {
  133. width: 47%;
  134. padding: 16px 32px;
  135. margin-bottom: 28px;
  136. text-decoration: none;
  137. text-align: center;
  138. text-transform: uppercase;
  139. }
  140. section .right-cont .bottom .bottom1 {
  141. background: #4ca54c;
  142. color: #ffffff;
  143. }
  144. section .right-cont .bottom .bottom2 {
  145. background: #f1f1f1;
  146. color: #1a1a1a;
  147. }
  148. section .right-cont .bottom .bottom1:hover {
  149. background: #3d843d;
  150. color: #ffffff;
  151. }
  152. section .right-cont .bottom .bottom2:hover {
  153. background: #3d843d;
  154. color: #ffffff;
  155. }
  156. /*-----------------------------main---------------------------------------*/
  157. main.content {
  158. display: flex;
  159. flex-flow: row nowrap;
  160. justify-content: space-between;
  161. padding: 20px 0;
  162. }
  163. main .main-left {
  164. width: 64%;
  165. display: flex;
  166. flex-flow: row wrap;
  167. justify-content: space-between;
  168. }
  169. main article {
  170. width: 50%;
  171. padding: 20px;
  172. }
  173. main article h2 {
  174. padding-bottom: 16px;
  175. font-size: 2.8rem;
  176. font-family: Oswald, sans-serif;
  177. }
  178. main .main-right {
  179. width: 36%;
  180. background: #eee;
  181. margin: 20px;
  182. padding: 40px;
  183. }
  184. main .main-right h2 {
  185. font-weight: 700;
  186. font-size: 2.4rem;
  187. font-family: Oswald, sans-serif;
  188. }
  189. main .main-right p {
  190. border-bottom: 1px solid #f9f9f9;
  191. padding-bottom: 10px;
  192. margin: 16px 0;
  193. font-weight: 400;
  194. font-size: 1.6rem;
  195. }
  196. main .main-right p i {
  197. padding-right: 16px;
  198. }
  199. /*-----------------------------footer---------------------------------------*/
  200. footer section.content{
  201. display: flex;
  202. flex-flow: column wrap;
  203. justify-content: center;
  204. align-items: center;
  205. font-size: 1.3rem;
  206. padding: 18px 0;
  207. border-top: 1px solid #eee;
  208. color: #686868;
  209. }
  210. footer .foot-menu, .social-menu {
  211. margin-bottom: 18px;
  212. }
  213. footer li {
  214. display: inline;
  215. }
  216. footer li a {
  217. color: #686868;
  218. text-decoration: none;
  219. padding: 10px 12px;
  220. }
  221. footer li a:hover {
  222. color: #0085c3;
  223. }
  224. footer .social-menu {
  225. display: flex;
  226. flex-flow: row nowrap;
  227. justify-content: center;
  228. }
  229. footer .social-menu a {
  230. border: 1px solid #d1d1d1;
  231. border-radius: 50%;
  232. color: #1a1a1a;
  233. height: 35px;
  234. width: 35px;
  235. font-size: 1.6rem;
  236. margin-right: 10px;
  237. text-align: center;
  238. line-height: 2;
  239. }
  240. footer .social-menu a:hover {
  241. color: #0085c3;
  242. }
  243. @media screen and (max-width: 1008px) {
  244. header nav {
  245. padding-top: 0;
  246. }
  247. header .hide-menu {
  248. display: block;
  249. }
  250. header .show {
  251. display: none;
  252. }
  253. }
  254. @media screen and (orientation: portrait) {
  255. section .left-cont, main .main-right {
  256. display: none;
  257. }
  258. main .main-left {
  259. width: 100%;
  260. }
  261. footer .foot-menu {
  262. display: none;
  263. }
  264. }
  265. @media screen and (max-width: 375px) {
  266. main .main-left {
  267. flex-flow: column wrap;
  268. }
  269. main article {
  270. width: 100%;
  271. }
  272. }