index.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. @import '~antd/es/style/themes/default.less';
  2. @bodyPadding: 24px 16px;
  3. @margin: 24px;
  4. .home-base {
  5. position: relative;
  6. padding: @bodyPadding;
  7. background-color: #fff;
  8. }
  9. .home-guide {
  10. margin-bottom: @margin;
  11. padding: @bodyPadding;
  12. background-color: #fff;
  13. .home-guide-items {
  14. display: grid;
  15. grid-column-gap: 56px;
  16. }
  17. }
  18. .home-guide-item {
  19. position: relative;
  20. padding: 16px;
  21. background: linear-gradient(135.62deg, #f6f7fd 22.27%, rgba(255, 255, 255, 0.86) 91.82%);
  22. border-radius: 2px;
  23. box-shadow: 0 4px 18px #efefef;
  24. &.pointer {
  25. cursor: pointer;
  26. }
  27. .item-english {
  28. color: #4f4f4f;
  29. }
  30. .item-title {
  31. margin: 20px 0;
  32. color: @text-color;
  33. font-weight: 700;
  34. font-size: 20px;
  35. }
  36. .item-index {
  37. position: absolute;
  38. right: 10%;
  39. bottom: 0;
  40. }
  41. .item-index-echarts {
  42. .item-index;
  43. right: 12px;
  44. bottom: 5%;
  45. width: 50%;
  46. }
  47. }
  48. .home-title {
  49. position: relative;
  50. z-index: 2;
  51. display: flex;
  52. justify-content: space-between;
  53. margin-bottom: 12px;
  54. padding-left: 18px;
  55. font-weight: bold;
  56. font-size: 18px;
  57. &::after {
  58. position: absolute;
  59. top: 50%;
  60. left: 0;
  61. width: 8px;
  62. height: 8px;
  63. background-color: @primary-color;
  64. border: 1px solid #b4c0da;
  65. transform: translateY(-50%);
  66. content: ' ';
  67. }
  68. .home-title-english {
  69. position: absolute;
  70. top: 30px;
  71. color: rgba(0, 0, 0, 0.3);
  72. font-size: 12px;
  73. }
  74. }
  75. .home-body {
  76. .home-base;
  77. min-height: 444px;
  78. margin-bottom: @margin;
  79. padding-bottom: 26.5%;
  80. overflow: hidden;
  81. .home-body-img {
  82. position: absolute;
  83. top: 0;
  84. left: 0;
  85. z-index: 1;
  86. width: 100%;
  87. height: 100%;
  88. > img {
  89. width: 100%;
  90. height: 100%;
  91. }
  92. }
  93. }
  94. .home-statistics {
  95. .home-base;
  96. .home-statistics-body {
  97. display: grid;
  98. grid-template-columns: repeat(2, 1fr);
  99. gap: 24px;
  100. }
  101. }
  102. .step-item-after {
  103. position: absolute;
  104. top: 50%;
  105. right: -60px;
  106. width: 60px;
  107. height: 40px;
  108. transform: translateY(-50%);
  109. content: ' ';
  110. }
  111. .home-step {
  112. .home-base;
  113. .home-step-items {
  114. display: grid;
  115. grid-column-gap: 66px;
  116. .step-item {
  117. display: flex;
  118. flex-direction: column;
  119. .step-item-title {
  120. position: relative;
  121. padding: 16px 24px;
  122. color: #333;
  123. font-weight: bold;
  124. font-size: 14px;
  125. background-color: #f8f9fd;
  126. cursor: pointer;
  127. .step-item-img {
  128. position: absolute;
  129. top: 0;
  130. right: 0;
  131. z-index: 1;
  132. height: 100%;
  133. img {
  134. height: 100%;
  135. }
  136. }
  137. > span {
  138. position: relative;
  139. z-index: 2;
  140. }
  141. }
  142. .step-item-content {
  143. flex-grow: 1;
  144. height: auto;
  145. padding: 24px;
  146. border-right: 1px solid #e5edf4;
  147. border-bottom: 1px solid #e5edf4;
  148. border-left: 1px solid #e5edf4;
  149. }
  150. }
  151. }
  152. }
  153. .step-bar {
  154. position: relative;
  155. &.arrow-1 {
  156. &:not(:last-child) {
  157. &::after {
  158. .step-item-after;
  159. background: url('/images/home/arrow-1.png') no-repeat center;
  160. }
  161. }
  162. }
  163. &.arrow-2 {
  164. &:not(:last-child) {
  165. &::after {
  166. .step-item-after;
  167. background: url('/images/home/arrow-2.png') no-repeat center;
  168. }
  169. }
  170. }
  171. }