index.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. /* 全局样式重置 */
  2. page {
  3. background-color: #f5f5f5;
  4. }
  5. .index-container {
  6. min-height: 100vh;
  7. background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  8. padding: 32rpx;
  9. box-sizing: border-box;
  10. }
  11. /* 用户已登录状态 */
  12. .user-welcome {
  13. padding: 32rpx 0;
  14. }
  15. .user-card {
  16. background: #ffffff;
  17. border-radius: 16rpx;
  18. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  19. padding: 48rpx 32rpx;
  20. margin-bottom: 32rpx;
  21. }
  22. .user-header {
  23. display: flex;
  24. align-items: center;
  25. margin-bottom: 48rpx;
  26. }
  27. .user-avatar {
  28. margin-right: 32rpx;
  29. }
  30. .avatar-image {
  31. width: 128rpx;
  32. height: 128rpx;
  33. border-radius: 50%;
  34. border: 4rpx solid #1890ff;
  35. background: #f0f0f0;
  36. }
  37. .user-greeting {
  38. flex: 1;
  39. }
  40. .welcome-text {
  41. display: block;
  42. font-size: 28rpx;
  43. color: #8c8c8c;
  44. margin-bottom: 8rpx;
  45. }
  46. .username {
  47. display: block;
  48. font-size: 36rpx;
  49. font-weight: 600;
  50. color: #262626;
  51. }
  52. .user-info {
  53. margin-bottom: 48rpx;
  54. }
  55. .info-item {
  56. display: flex;
  57. justify-content: space-between;
  58. align-items: center;
  59. padding: 24rpx 0;
  60. border-bottom: 2rpx solid #f0f0f0;
  61. }
  62. .info-item:last-child {
  63. border-bottom: none;
  64. }
  65. .info-label {
  66. font-size: 28rpx;
  67. color: #8c8c8c;
  68. }
  69. .info-value {
  70. font-size: 28rpx;
  71. color: #262626;
  72. font-weight: 500;
  73. }
  74. .action-buttons {
  75. display: flex;
  76. flex-direction: column;
  77. gap: 24rpx;
  78. }
  79. .action-button {
  80. width: 100%;
  81. height: 80rpx;
  82. font-size: 32rpx;
  83. font-weight: 500;
  84. border-radius: 8rpx;
  85. transition: opacity 0.2s ease;
  86. }
  87. .action-button:active {
  88. opacity: 0.7;
  89. }
  90. .action-button.primary {
  91. background: #1890ff;
  92. color: #ffffff;
  93. border: none;
  94. }
  95. .action-button.secondary {
  96. background: #ffffff;
  97. color: #1890ff;
  98. border: 2rpx solid #1890ff;
  99. }
  100. .stats-section {
  101. display: flex;
  102. gap: 16rpx;
  103. justify-content: space-between;
  104. }
  105. .stat-card {
  106. flex: 1;
  107. background: #ffffff;
  108. border-radius: 16rpx;
  109. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  110. padding: 32rpx 24rpx;
  111. text-align: center;
  112. }
  113. .stat-number {
  114. display: block;
  115. font-size: 48rpx;
  116. font-weight: 600;
  117. color: #1890ff;
  118. margin-bottom: 8rpx;
  119. }
  120. .stat-label {
  121. display: block;
  122. font-size: 24rpx;
  123. color: #8c8c8c;
  124. }
  125. /* 用户未登录状态 */
  126. .login-prompt {
  127. padding: 32rpx 0;
  128. }
  129. .welcome-header {
  130. text-align: center;
  131. margin-bottom: 64rpx;
  132. }
  133. .welcome-icon {
  134. width: 192rpx;
  135. height: 192rpx;
  136. margin-bottom: 32rpx;
  137. border-radius: 16rpx;
  138. }
  139. .welcome-title {
  140. display: block;
  141. font-size: 36rpx;
  142. font-weight: 600;
  143. color: #262626;
  144. margin-bottom: 16rpx;
  145. }
  146. .welcome-subtitle {
  147. display: block;
  148. font-size: 28rpx;
  149. color: #8c8c8c;
  150. }
  151. .login-card {
  152. background: #ffffff;
  153. border-radius: 16rpx;
  154. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  155. padding: 48rpx 32rpx;
  156. margin-bottom: 32rpx;
  157. }
  158. .login-buttons {
  159. display: flex;
  160. flex-direction: column;
  161. gap: 24rpx;
  162. }
  163. .login-button {
  164. width: 100%;
  165. height: 80rpx;
  166. font-size: 32rpx;
  167. font-weight: 500;
  168. border-radius: 8rpx;
  169. transition: opacity 0.2s ease;
  170. }
  171. .login-button:active {
  172. opacity: 0.7;
  173. }
  174. .login-button.primary {
  175. background: #1890ff;
  176. color: #ffffff;
  177. border: none;
  178. }
  179. .login-button.secondary {
  180. background: #ffffff;
  181. color: #1890ff;
  182. border: 2rpx solid #1890ff;
  183. }
  184. .features-section {
  185. margin-top: 32rpx;
  186. }
  187. .features-title {
  188. display: block;
  189. font-size: 32rpx;
  190. font-weight: 600;
  191. color: #262626;
  192. margin-bottom: 32rpx;
  193. text-align: center;
  194. }
  195. .features-grid {
  196. display: grid;
  197. grid-template-columns: 1fr 1fr;
  198. gap: 16rpx;
  199. }
  200. .feature-card {
  201. background: #ffffff;
  202. border-radius: 16rpx;
  203. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  204. padding: 32rpx 24rpx;
  205. text-align: center;
  206. }
  207. .feature-icon {
  208. font-size: 48rpx;
  209. margin-bottom: 16rpx;
  210. }
  211. .feature-title {
  212. display: block;
  213. font-size: 28rpx;
  214. font-weight: 600;
  215. color: #262626;
  216. margin-bottom: 8rpx;
  217. }
  218. .feature-desc {
  219. display: block;
  220. font-size: 24rpx;
  221. color: #8c8c8c;
  222. line-height: 1.4;
  223. }
  224. /* 响应式设计 */
  225. @media screen and (max-width: 375rpx) {
  226. .index-container {
  227. padding: 24rpx;
  228. }
  229. .features-grid {
  230. grid-template-columns: 1fr;
  231. }
  232. }
  233. @media screen and (min-width: 768rpx) {
  234. .index-container {
  235. padding: 48rpx;
  236. }
  237. .stats-section {
  238. gap: 24rpx;
  239. }
  240. .features-grid {
  241. grid-template-columns: repeat(4, 1fr);
  242. gap: 24rpx;
  243. }
  244. }