services.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. @import 'global.scss';
  2. .banner{
  3. img{
  4. width:100%;
  5. }
  6. }
  7. .service{
  8. margin-top:40px;
  9. margin-bottom:60px;
  10. @media(min-width:768px){
  11. margin-top:50px;
  12. margin-bottom: 90px;
  13. }
  14. @media(min-width:1200px){
  15. margin-top:80px;
  16. margin-bottom: 120px;
  17. }
  18. }
  19. .headline{
  20. text-align: center;
  21. color: #111;
  22. font-size: 24px;
  23. @media(min-width:768px){
  24. font-size: 32px;
  25. }
  26. @media(min-width:1200px){
  27. font-size: 44px;
  28. }
  29. }
  30. .icon{
  31. text-align: center;
  32. margin: 30px auto;
  33. @media(min-width:768px){
  34. margin: 50px auto;
  35. }
  36. @media(min-width:1200px){
  37. margin: 90px auto 70px;
  38. }
  39. ul{
  40. clear: fix;
  41. li{
  42. float: left;
  43. width:33.33%;
  44. margin-top: 20px;
  45. @media(min-width:768px){
  46. margin-top: 0;
  47. width:20%;
  48. }
  49. }
  50. }
  51. a{
  52. display:inline-block;
  53. cursor: pointer;
  54. padding: 0 10px;
  55. &:hover,&:active{
  56. img{
  57. transform: translateY(-10px);
  58. }
  59. p{
  60. color: $color;
  61. transform: translateY(-15px);
  62. }
  63. }
  64. }
  65. img{
  66. width:46px;
  67. height:46px;
  68. object-fit: contain;
  69. transition: all .5s ease;
  70. @media(min-width:768px){
  71. width:64px;
  72. height:64px;
  73. }
  74. }
  75. p{
  76. font-size: 14px;
  77. color:#666;
  78. margin-top:10px;
  79. transition: all .5s ease .1s;
  80. @media(min-width:768px){
  81. margin-top:15px;
  82. font-size: 16px;
  83. }
  84. }
  85. }
  86. .list{
  87. .row>div{
  88. margin-top: 20px;
  89. @media(min-width:768px){
  90. margin-top: 20px;
  91. }
  92. @media(min-width:1200px){
  93. margin-top: 50px;
  94. }
  95. }
  96. h2.title{
  97. padding: 15px 0;
  98. border-bottom: 1px solid #ddd;
  99. color: #111;
  100. font-size: 20px;
  101. margin-bottom:20px;
  102. @media(min-width:768px){
  103. font-size: 24px;
  104. margin-bottom:20px;
  105. }
  106. @media(min-width:1200px){
  107. font-size: 30px;
  108. margin-bottom:40px;
  109. }
  110. }
  111. .con{
  112. position: relative;
  113. background: #f5f5f5;
  114. height: 180px;
  115. padding:20px 15px;
  116. transition: all .5s ease;
  117. @media(min-width:768px){
  118. padding:30px 20px;
  119. height: 218px;
  120. }
  121. &:hover{
  122. background: #fff;
  123. box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.2);
  124. .see{
  125. opacity: 1;
  126. }
  127. }
  128. h4{
  129. color: #111;
  130. margin-bottom: 10px;
  131. font-size: 16px;
  132. @media(min-width:768px){
  133. font-size: 20px;
  134. }
  135. }
  136. p{
  137. color: #666;
  138. line-height: 2;
  139. font-size: 14px;
  140. @media(min-width:768px){
  141. font-size: 16px;
  142. }
  143. a{
  144. display: block;
  145. @include ellipsis(auto);
  146. color: #666;
  147. &:hover{
  148. color: $color;
  149. }
  150. }
  151. }
  152. .see{
  153. position: absolute;
  154. right: 30px;
  155. bottom: 30px;
  156. opacity: 0;
  157. color: $color;
  158. transition: all .5s ease;
  159. &:hover{
  160. text-decoration: underline;
  161. }
  162. }
  163. .btn-i{
  164. a{
  165. position: relative;
  166. overflow: hidden;
  167. z-index: 1;
  168. margin-top:30px;
  169. display: block;
  170. width: 160px;
  171. height: 42px;
  172. line-height: 42px;
  173. background: $color;
  174. color: #fff;
  175. text-align: center;
  176. font-size: 16px;
  177. &:after {
  178. content: '';
  179. position: absolute;
  180. z-index: -1;
  181. transition: width 0.3s, opacity 0.3s;
  182. width: 0;
  183. height: 530px;
  184. top: 50%;
  185. left: 50%;
  186. opacity: 0;
  187. background: #f13737;
  188. transform: translate3d(-50%, -50%, 0) rotate(45deg);
  189. backface-visibility: hidden;
  190. }
  191. &:hover,&:active {
  192. &:after {
  193. width: 100%;
  194. opacity: 1;
  195. }
  196. }
  197. }
  198. }
  199. }
  200. }