product-rollaction.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. @media screen and (min-width: 768px) {
  2. .main .about {
  3. margin-top: 100px;
  4. }
  5. .main .about .container {
  6. height: 592px;
  7. position: relative;
  8. }
  9. .main .about .item {
  10. position: absolute;
  11. width: 286px;
  12. height: 286px;
  13. background-color: pink;
  14. }
  15. .main .about .item:nth-child(3) {
  16. position: relative;
  17. width: 592px;
  18. height: 592px;
  19. margin: 0 auto;
  20. }
  21. .main .about .item:nth-child(1), .main .about .item:nth-child(2) {
  22. left: 0;
  23. }
  24. .main .about .item:nth-child(1), .main .about .item:nth-child(4) {
  25. top: 0;
  26. }
  27. .main .about .item:nth-child(4), .main .about .item:nth-child(5) {
  28. right: 0;
  29. }
  30. .main .about .item:nth-child(2), .main .about .item:nth-child(5) {
  31. bottom: 0;
  32. }
  33. .main .about .item .cover {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. .main .about .item .cover img {
  38. display: block;
  39. width: 100%;
  40. height: 100%;
  41. }
  42. .main .about .item:hover .active {
  43. opacity: 1;
  44. }
  45. .main .about .item .active {
  46. opacity: 0;
  47. position: absolute;
  48. top: 0;
  49. left: 0;
  50. width: 100%;
  51. height: 100%;
  52. background: rgba(0, 0, 0, 0.5);
  53. text-align: center;
  54. display: -webkit-box;
  55. display: -ms-flexbox;
  56. display: flex;
  57. -webkit-box-pack: center;
  58. -ms-flex-pack: center;
  59. justify-content: center;
  60. -webkit-box-align: center;
  61. -ms-flex-align: center;
  62. align-items: center;
  63. -webkit-box-orient: vertical;
  64. -webkit-box-direction: normal;
  65. -ms-flex-direction: column;
  66. flex-direction: column;
  67. -webkit-transition: all 0.4s;
  68. transition: all 0.4s;
  69. }
  70. .main .about .item .active .title {
  71. font-size: 24px;
  72. color: #fff;
  73. }
  74. .main .about .item .active .line {
  75. width: 32px;
  76. height: 2px;
  77. background-color: #ffffff;
  78. margin: 40px auto;
  79. }
  80. .main .about .item .active .detail {
  81. font-size: 16px;
  82. color: #fff;
  83. line-height: 40px;
  84. padding: 0 70px;
  85. }
  86. .main .service {
  87. margin-top: 140px;
  88. }
  89. .main .service .cover {
  90. width: 568px;
  91. height: 568px;
  92. background: pink;
  93. }
  94. .main .service .cover img {
  95. display: block;
  96. width: 100%;
  97. height: 100%;
  98. }
  99. .main .service.one .content {
  100. padding-top: 113px;
  101. background-image: url(/img/service-title-bg-one.png);
  102. }
  103. .main .service.two {
  104. background: #f7f7f7;
  105. margin-top: 319px;
  106. }
  107. .main .service.two .container {
  108. position: relative;
  109. }
  110. .main .service.two .container .cover {
  111. position: absolute;
  112. bottom: 76px;
  113. left: 0;
  114. }
  115. .main .service.two .container .content {
  116. padding-top: 173px;
  117. height: 456px;
  118. background-image: url(/img/service-title-bg-two.png);
  119. background-position: left 60px;
  120. }
  121. .main .service.three .content {
  122. padding-top: 113px;
  123. background-image: url(/img/service-title-bg-three.png);
  124. }
  125. .main .service .content {
  126. width: 560px;
  127. text-align: justify;
  128. background-repeat: no-repeat;
  129. -webkit-box-sizing: border-box;
  130. box-sizing: border-box;
  131. }
  132. .main .service .content .title {
  133. font-size: 24px;
  134. font-weight: bold;
  135. }
  136. .main .service .content .line {
  137. width: 32px;
  138. height: 3px;
  139. background-color: #e8e8e8;
  140. margin: 32px 0;
  141. }
  142. .main .service .content .text {
  143. color: #999;
  144. }
  145. .main .service .content .lh40 {
  146. line-height: 40px;
  147. }
  148. }
  149. @media screen and (max-width: 768px) {
  150. .main .about {
  151. margin-top: 1.2rem;
  152. }
  153. .main .about .container {
  154. width: 6.84rem;
  155. margin: 0 auto;
  156. height: 3.36rem;
  157. position: relative;
  158. }
  159. .main .about .item {
  160. position: absolute;
  161. width: 1.64rem;
  162. height: 1.64rem;
  163. }
  164. .main .about .item:nth-child(3) {
  165. position: relative;
  166. width: 3.36rem;
  167. height: 3.36rem;
  168. margin: 0 auto;
  169. }
  170. .main .about .item:nth-child(1), .main .about .item:nth-child(2) {
  171. left: 0;
  172. }
  173. .main .about .item:nth-child(1), .main .about .item:nth-child(4) {
  174. top: 0;
  175. }
  176. .main .about .item:nth-child(4), .main .about .item:nth-child(5) {
  177. right: 0;
  178. }
  179. .main .about .item:nth-child(2), .main .about .item:nth-child(5) {
  180. bottom: 0;
  181. }
  182. .main .about .item .cover {
  183. width: 100%;
  184. height: 100%;
  185. }
  186. .main .about .item .cover img {
  187. display: block;
  188. width: 100%;
  189. height: 100%;
  190. }
  191. .main .about .item .active {
  192. position: absolute;
  193. top: 0;
  194. left: 0;
  195. width: 100%;
  196. height: 100%;
  197. background: rgba(0, 0, 0, 0.5);
  198. text-align: center;
  199. display: -webkit-box;
  200. display: -ms-flexbox;
  201. display: flex;
  202. -webkit-box-pack: center;
  203. -ms-flex-pack: center;
  204. justify-content: center;
  205. -webkit-box-align: center;
  206. -ms-flex-align: center;
  207. align-items: center;
  208. -webkit-box-orient: vertical;
  209. -webkit-box-direction: normal;
  210. -ms-flex-direction: column;
  211. flex-direction: column;
  212. }
  213. .main .about .item .active .title {
  214. font-size: 0.26rem;
  215. color: #fff;
  216. }
  217. .main .about .item .active .line {
  218. width: 0.32rem;
  219. height: 0.02rem;
  220. background-color: #ffffff;
  221. margin: 0.32rem auto;
  222. }
  223. .main .about .item .active .detail {
  224. font-size: 0.2rem;
  225. color: #fff;
  226. line-height: 0.4rem;
  227. padding: 0 0.18rem;
  228. }
  229. .main .service {
  230. margin-top: 1.2rem;
  231. }
  232. .main .service .container {
  233. display: -webkit-box;
  234. display: -ms-flexbox;
  235. display: flex;
  236. -webkit-box-pack: center;
  237. -ms-flex-pack: center;
  238. justify-content: center;
  239. -webkit-box-align: center;
  240. -ms-flex-align: center;
  241. align-items: center;
  242. -webkit-box-orient: vertical;
  243. -webkit-box-direction: reverse;
  244. -ms-flex-direction: column-reverse;
  245. flex-direction: column-reverse;
  246. }
  247. .main .service .cover {
  248. width: 5.68rem;
  249. height: 5.68rem;
  250. float: unset !important;
  251. margin-top: 0.4rem;
  252. }
  253. .main .service .cover img {
  254. display: block;
  255. width: 100%;
  256. height: 100%;
  257. }
  258. .main .service.one .content {
  259. background-image: url(/img/service-title-bg-one.png);
  260. }
  261. .main .service.two .content {
  262. background-image: url(/img/service-title-bg-two.png);
  263. }
  264. .main .service.three .content {
  265. background-image: url(/img/service-title-bg-three.png);
  266. }
  267. .main .service .content {
  268. width: 5.68rem;
  269. float: unset !important;
  270. text-align: justify;
  271. background-repeat: no-repeat;
  272. background-position: center top;
  273. background-size: auto 1.33rem;
  274. padding-top: 1.1rem;
  275. -webkit-box-sizing: border-box;
  276. box-sizing: border-box;
  277. text-align: center;
  278. }
  279. .main .service .content .title {
  280. font-size: 0.34rem;
  281. font-weight: bold;
  282. }
  283. .main .service .content .line {
  284. width: 0.4rem;
  285. height: 0.03rem;
  286. background-color: #e8e8e8;
  287. margin: 0.32rem auto;
  288. }
  289. .main .service .content .text {
  290. color: #999;
  291. font-size: 0.26rem;
  292. }
  293. .main .service .content .lh40 {
  294. line-height: 0.4rem;
  295. }
  296. .main .service .content ul > li {
  297. font-size: 0.26rem;
  298. }
  299. }