homepage.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. .container1 {
  2. display: flex;
  3. flex-direction: column;
  4. background-color: #f5f5f5;
  5. min-height: 100vh;
  6. padding-bottom: 30rpx;
  7. }
  8. .logo {
  9. position: absolute;
  10. bottom: 80rpx;
  11. width: 280rpx;
  12. height: 100rpx;
  13. top: 60rpx;
  14. z-index: 2;
  15. }
  16. .header {
  17. position: relative;
  18. width: 100%;
  19. height: 180rpx;
  20. }
  21. .header .background {
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. width: 100%;
  26. height: 100%;
  27. background: linear-gradient(180deg, rgba(46, 130, 255, 1) 0%, rgba(46, 130, 255, 1) 84.9%, rgba(46, 130, 255, 0) 100%);
  28. }
  29. .header .logo {
  30. position: relative;
  31. height: 80rpx;
  32. margin: 50rpx 0 0 30rpx;
  33. z-index: 1;
  34. }
  35. .user-info-section {
  36. padding: 10rpx;
  37. }
  38. .info-row {
  39. display: flex;
  40. align-items: center;
  41. margin-bottom: 15rpx;
  42. position: relative;
  43. }
  44. .info-row .label {
  45. color: rgba(163, 163, 163, 1);
  46. font-size: 28rpx;
  47. width: 140rpx;
  48. margin-right: 50rpx;
  49. font-family: 'PingFang', '苹方', sans-serif;
  50. }
  51. .info-row .value {
  52. font-family: 'PingFang', '苹方', sans-serif; /* 添加苹方字体 */
  53. color: rgba(46, 48, 56, 1);
  54. font-size: 28rpx;
  55. flex: 1;
  56. }
  57. .switch-btn {
  58. position: absolute;
  59. right: 0;
  60. background-color: rgba(45, 128, 254, 0.12);
  61. color: #0080ff;
  62. font-size: 26rpx;
  63. padding: 8rpx 20rpx;
  64. border-radius: 30rpx;
  65. }
  66. .amount-section {
  67. position: relative;
  68. padding: 20rpx 30rpx;
  69. display: flex;
  70. align-items: center;
  71. }
  72. .water-drop {
  73. width: 200rpx;
  74. position: absolute;
  75. left: -30rpx;
  76. bottom: 0rpx;
  77. }
  78. .amount-display {
  79. flex: 1;
  80. text-align: center;
  81. position: relative;
  82. z-index: 1;
  83. }
  84. .total-amount {
  85. font-size: 60rpx;
  86. color: #ff3b30;
  87. font-weight: bold;
  88. margin-bottom: 10rpx;
  89. }
  90. .amount-label {
  91. font-size: 24rpx;
  92. color: #666;
  93. margin-bottom: 30rpx;
  94. }
  95. .amount-details {
  96. display: flex;
  97. justify-content: space-around;
  98. align-items: center;
  99. margin-top: 20rpx;
  100. }
  101. .detail-item {
  102. text-align: center;
  103. }
  104. .detail-item .number {
  105. display: block;
  106. font-size: 32rpx;
  107. color: #333;
  108. margin-bottom: 10rpx;
  109. }
  110. .detail-item .number.blue {
  111. color: #0080ff;
  112. }
  113. .detail-item .label {
  114. font-size: 24rpx;
  115. color: #666;
  116. }
  117. .detail-divider {
  118. width: 2rpx;
  119. height: 60rpx;
  120. background-color: #DDDDDD;
  121. margin: 0 10rpx;
  122. align-self: center;
  123. }
  124. .pay-btn {
  125. width: 80%;
  126. height: 80rpx;
  127. line-height: 80rpx;
  128. background-color: #0080ff;
  129. color: white;
  130. font-size: 32rpx;
  131. border-radius: 40rpx;
  132. margin: 30rpx auto 0;
  133. }
  134. .function-area {
  135. margin: 15rpx 30rpx 15rpx;
  136. background-color: #ffffff;
  137. border-radius: 20rpx;
  138. padding: 30rpx;
  139. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  140. }
  141. .function-grid {
  142. display: flex;
  143. flex-wrap: wrap;
  144. width: 100%;
  145. }
  146. .function-item {
  147. width: 25%;
  148. display: flex;
  149. flex-direction: column;
  150. align-items: center;
  151. margin-bottom: 20rpx;
  152. }
  153. .function-item image {
  154. width: 80rpx;
  155. height: 80rpx;
  156. margin-bottom: 10rpx;
  157. }
  158. .function-item text {
  159. font-size: 24rpx;
  160. color: #333;
  161. }
  162. .activity-area {
  163. margin: 0rpx 30rpx 0rpx;
  164. background-color: #ffffff;
  165. border-radius: 20rpx;
  166. padding: 30rpx;
  167. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  168. }
  169. .area-header {
  170. display: flex;
  171. justify-content: space-between;
  172. align-items: center;
  173. margin-bottom: 20rpx;
  174. }
  175. .area-header .title {
  176. font-size: 32rpx;
  177. color: #333;
  178. font-weight: bold;
  179. }
  180. .area-header .more {
  181. font-size: 24rpx;
  182. color: #999;
  183. }
  184. .activity-item {
  185. display: flex;
  186. flex-direction: column;
  187. align-items: center;
  188. }
  189. .activity-image {
  190. width: 100%;
  191. height: 200rpx;
  192. border-radius: 10rpx;
  193. margin-bottom: 20rpx;
  194. }
  195. /* 卡片容器样式 */
  196. .cards-container {
  197. width: 90%;
  198. margin: 0 auto;
  199. position: relative;
  200. z-index: 100;
  201. margin-top: 40rpx;
  202. background-color: transparent;
  203. border-radius: 20rpx;
  204. overflow: visible;
  205. }
  206. /* 用户信息卡片样式 */
  207. .user-card {
  208. background-color: #FAFCFF;
  209. border-radius: 20rpx 20rpx 0 0;
  210. padding: 30rpx;
  211. position: relative;
  212. width: 100%;
  213. height: 220rpx;
  214. box-sizing: border-box;
  215. overflow: hidden;
  216. margin: 0;
  217. top: 0;
  218. border-bottom: none;
  219. }
  220. /* 票据式分割线 */
  221. .card-divider {
  222. position: relative;
  223. border-top: 0rpx dashed #CCCCCC;
  224. margin: 0 15rpx;
  225. background-color: transparent;
  226. }
  227. /* 左侧半圆挖孔 */
  228. .card-divider::before {
  229. content: "";
  230. position: absolute;
  231. left: -30rpx;
  232. top: -15rpx;
  233. width: 30rpx;
  234. height: 30rpx;
  235. background-color: #0080ff;
  236. border-radius: 50%;
  237. z-index: 1;
  238. }
  239. /* 右侧半圆挖孔 */
  240. .card-divider::after {
  241. content: "";
  242. position: absolute;
  243. right: -30rpx;
  244. top: -15rpx;
  245. width: 30rpx;
  246. height: 30rpx;
  247. background-color: #0080ff;
  248. border-radius: 50%;
  249. z-index: 1;
  250. }
  251. /* 水费金额卡片样式 */
  252. .amount-card {
  253. background-color: #FAFCFF;
  254. border-radius: 0 0 20rpx 20rpx;
  255. padding: 30rpx;
  256. position: relative;
  257. width: 100%;
  258. box-sizing: border-box;
  259. border-top: none;
  260. }