main.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. font-size: 24px;
  13. background: #f9fafc;
  14. text-align: center;
  15. font-weight: bold;
  16. padding-top: 40px;
  17. }
  18. .con {
  19. /* width: 100%; */
  20. height: auto;
  21. overflow: hidden;
  22. background: #f9fafc;
  23. margin: 0 auto 0;
  24. display: flex;
  25. flex-wrap: wrap;
  26. padding: 20px 2%;
  27. justify-content: center;
  28. }
  29. .con li {
  30. text-align: center;
  31. width: 30%;
  32. display: inline-block;
  33. margin: 25px 10px;
  34. }
  35. .case {
  36. padding: 10px;
  37. background: #fff;
  38. border-radius: 10px;
  39. box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
  40. transition: all 0.3s;
  41. }
  42. .case:hover {
  43. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.6);
  44. transform: translateY(-15px);
  45. }
  46. .case .card-img {
  47. width: 100%;
  48. height: 180px;
  49. background-repeat: no-repeat;
  50. background-size: cover;
  51. background-position: top center;
  52. }
  53. .con li p {
  54. margin-top: 10px;
  55. font-size: 18px;
  56. font-weight: 100;
  57. }
  58. .link-a {
  59. width: 100%;
  60. height: 100%;
  61. display: inline-block;
  62. }
  63. #introductionWrap{
  64. position: absolute;
  65. z-index: 1;
  66. display: flex;
  67. flex-direction: column;
  68. right: 20px;
  69. text-align: right;
  70. top: 20px;
  71. font-size: 18px;
  72. color: #ffffff;
  73. font-weight: 100;
  74. line-height: 30px;
  75. letter-spacing: 2px;
  76. }
  77. #companyText{
  78. position: absolute;
  79. z-index: 1;
  80. font-size: 16px;
  81. color:rgb(153, 153, 153);
  82. font-weight: 100;
  83. left: 50%;
  84. transform: translateX(-50%);
  85. bottom: 20px;
  86. letter-spacing: 1px;
  87. text-shadow:rgb(51, 51, 51) 0px 1px 1px;
  88. }
  89. @media screen and (max-width: 600px) {
  90. .containers {
  91. width: 100%;
  92. }
  93. .con {
  94. padding: 0;
  95. }
  96. .case .card-img {
  97. background-size: auto 100%;
  98. height: 90px;
  99. }
  100. .con li {
  101. width: 44%;
  102. }
  103. #introductionWrap{
  104. position: absolute;
  105. z-index: 1;
  106. display: flex;
  107. flex-direction: column;
  108. right: 10px;
  109. text-align: right;
  110. top: 16px;
  111. font-size: 16px;
  112. color: #ffffff;
  113. font-weight: 100;
  114. line-height: 28px;
  115. letter-spacing: 1px;
  116. }
  117. /* .con li p {
  118. font-size: 16px;
  119. } */
  120. }
  121. .hide{
  122. display: none;
  123. }
  124. #companyText{
  125. position: absolute;
  126. z-index: 1;
  127. font-size: 16px;
  128. font-weight: 100;
  129. left: 50%;
  130. transform: translateX(-50%);
  131. bottom: 20px;
  132. letter-spacing: 1px;
  133. }
  134. @media screen and (max-width: 320px) {
  135. .con li {
  136. width: 43%;
  137. }
  138. .con li p {
  139. font-size: 16px;
  140. font-weight: 100;
  141. }
  142. }