main.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. body {
  2. background: #dddada;
  3. font-family: '微软雅黑';
  4. }
  5. .containers {
  6. width: 1080px;
  7. /* overflow: hidden; */
  8. min-height: 80vh;
  9. margin: 0 auto;
  10. }
  11. .con-title {
  12. width: 300px;
  13. margin: 0 auto;
  14. margin-top: 20px;
  15. display: inline-block;
  16. font-size: 20px;
  17. text-align: center;
  18. font-weight: bold;
  19. padding: 20px;
  20. }
  21. .con {
  22. padding-right: 20px !important;
  23. /* width: 100%; */
  24. height: auto;
  25. overflow: hidden;
  26. /* background: #f9fafc; */
  27. /* margin: 0 auto 0; */
  28. display: flex;
  29. flex-wrap: wrap;
  30. /* padding: 20px 2%; */
  31. justify-content: center;
  32. }
  33. .con li {
  34. text-align: center;
  35. width: 17%;
  36. height: 80vh;
  37. display: inline-block;
  38. margin: 25px 10px;
  39. position: relative;
  40. cursor: pointer;
  41. }
  42. .case {
  43. /* padding: 10px; */
  44. width: 100%;
  45. height: 100%;
  46. position: absolute;
  47. top: 0;
  48. background: url(../img/divBac.png);
  49. background-size: 100% 100%;
  50. /* border-radius: 10px; */
  51. box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
  52. transition: all 0.3s;
  53. }
  54. }
  55. .case:hover {
  56. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.6);
  57. transform: translateY(-15px);
  58. }
  59. .case .card-img {
  60. width: 100%;
  61. height: 80vh;
  62. background-repeat: no-repeat;
  63. background-size: cover;
  64. background-position: top center;
  65. width: 100%;
  66. height: 100%;
  67. background-size: 100% 100%;
  68. }
  69. .con li p {
  70. color: #fff;
  71. margin-top: 10px;
  72. font-size: 16px;
  73. font-weight: 100;
  74. }
  75. .link-a {
  76. width: 100%;
  77. height: 100%;
  78. display: inline-block;
  79. }
  80. #introductionWrap {
  81. position: absolute;
  82. z-index: 1;
  83. display: flex;
  84. flex-direction: column;
  85. right: 20px;
  86. text-align: right;
  87. top: 20px;
  88. font-size: 18px;
  89. color: #ffffff;
  90. font-weight: 100;
  91. line-height: 30px;
  92. letter-spacing: 2px;
  93. }
  94. #companyText {
  95. position: absolute;
  96. z-index: 1;
  97. font-size: 16px;
  98. color: rgb(153, 153, 153);
  99. font-weight: 100;
  100. left: 50%;
  101. transform: translateX(-50%);
  102. bottom: 20px;
  103. letter-spacing: 1px;
  104. text-shadow: rgb(51, 51, 51) 0px 1px 1px;
  105. }
  106. @media screen and (max-width: 600px) {
  107. .containers {
  108. width: 100%;
  109. }
  110. .con {
  111. padding: 0;
  112. }
  113. .case .card-img {
  114. background-size: auto 100%;
  115. height: 90px;
  116. }
  117. .con li {
  118. width: 44%;
  119. }
  120. #introductionWrap {
  121. position: absolute;
  122. z-index: 1;
  123. display: flex;
  124. flex-direction: column;
  125. right: 10px;
  126. text-align: right;
  127. top: 16px;
  128. font-size: 16px;
  129. color: #ffffff;
  130. font-weight: 100;
  131. line-height: 28px;
  132. letter-spacing: 1px;
  133. }
  134. /* .con li p {
  135. font-size: 16px;
  136. } */
  137. }
  138. @media screen and (max-width: 350px) {
  139. .con li {
  140. margin: 20px auto;
  141. }
  142. }
  143. .hide {
  144. display: none;
  145. }
  146. #companyText {
  147. position: absolute;
  148. z-index: 1;
  149. font-size: 16px;
  150. font-weight: 100;
  151. left: 50%;
  152. transform: translateX(-50%);
  153. bottom: 20px;
  154. letter-spacing: 1px;
  155. }
  156. @media screen and (max-width: 320px) {
  157. .con li {
  158. width: 43%;
  159. }
  160. .con li p {
  161. font-size: 14px;
  162. font-weight: 100;
  163. }
  164. }