index.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /* 基础容器 */
  2. .container {
  3. background-color: #F8F9FA;
  4. min-height: 100vh;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. /* 导航栏 */
  9. .nav-bar {
  10. background-color: #fff;
  11. padding-top: var(--status-bar-height);
  12. padding-left: 0.9375rem;
  13. padding-right: 0.9375rem;
  14. height: 2.75rem;
  15. box-sizing: content-box;
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. position: -webkit-sticky;
  20. position: sticky;
  21. top: 0;
  22. z-index: 100;
  23. }
  24. .nav-left {
  25. height: 100%;
  26. display: flex;
  27. align-items: center;
  28. width: 1.875rem; /* 增大点击区域 */
  29. }
  30. /* 复用通用图标并旋转 */
  31. .back-icon {
  32. width: 1.25rem;
  33. height: 1.25rem;
  34. transform: rotate(180deg);
  35. }
  36. /* 导航标题 */
  37. .nav-title {
  38. font-size: 0.875rem;
  39. font-weight: bold;
  40. color: #333;
  41. }
  42. .nav-right {
  43. width: 1.875rem;
  44. }
  45. /* 钱包卡片 */
  46. .wallet-card {
  47. margin: 0.625rem 0.9375rem 0;
  48. /* 增加高度以优化内部间距 (原220rpx -> 300rpx) */
  49. height: 9.375rem;
  50. background: linear-gradient(135deg, #FF6B00 0%, #FF8F00 100%);
  51. border-radius: 0.625rem;
  52. position: relative;
  53. overflow: hidden;
  54. color: #fff;
  55. box-shadow: 0 0.125rem 0.5rem rgba(255, 107, 0, 0.15);
  56. }
  57. .bg-circle {
  58. position: absolute;
  59. border-radius: 50%;
  60. background: rgba(255,255,255,0.08);
  61. }
  62. .bg-circle.big {
  63. width: 12.5rem;
  64. height: 12.5rem;
  65. right: -3.125rem;
  66. bottom: -4.6875rem;
  67. }
  68. .bg-circle.small {
  69. width: 6.25rem;
  70. height: 6.25rem;
  71. right: 2.5rem;
  72. bottom: 1.25rem;
  73. }
  74. .card-content {
  75. position: relative;
  76. z-index: 1;
  77. padding: 0.9375rem; /* 增加内边距 */
  78. height: 100%;
  79. box-sizing: border-box;
  80. display: flex;
  81. flex-direction: column;
  82. /* justify-content: space-between; */
  83. }
  84. .card-top {
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. }
  89. .app-info {
  90. display: flex;
  91. align-items: center;
  92. }
  93. .app-logo {
  94. width: 0.875rem; /* 图标调小 */
  95. height: 0.875rem;
  96. background-color: transparent; /* SVG不需要背景色 */
  97. margin-right: 0.3125rem;
  98. border-radius: 0;
  99. }
  100. .app-name {
  101. font-size: 0.8125rem; /* 调小:13pt */
  102. font-weight: 500;
  103. }
  104. .bill-btn {
  105. font-size: 0.8125rem; /* 13pt */
  106. opacity: 0.9;
  107. }
  108. .bill-btn uni-text {
  109. font-size: 0.8125rem; /* 调小:13pt */
  110. opacity: 0.95;
  111. }
  112. .balance-container {
  113. margin-top: auto; /* Push to bottom */
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: flex-end;
  117. padding-bottom: 0.3125rem; /* Align with bottom padding visual */
  118. }
  119. .balance-main {
  120. display: flex;
  121. flex-direction: column;
  122. }
  123. .balance-label {
  124. font-size: 0.75rem; /* 12pt */
  125. opacity: 0.9;
  126. margin-bottom: 0.125rem;
  127. }
  128. .balance-num {
  129. font-size: 1.5rem; /* 调整适中,不至于太小也不太大 */
  130. font-weight: bold;
  131. line-height: 1.1;
  132. }
  133. .balance-pending {
  134. display: flex;
  135. flex-direction: column;
  136. align-items: flex-end;
  137. margin-bottom: 0.3125rem;
  138. }
  139. .pending-label {
  140. font-size: 0.75rem; /* 12pt */
  141. opacity: 0.9;
  142. margin-bottom: 0.125rem;
  143. }
  144. .pending-num {
  145. font-size: 0.875rem; /* 14pt */
  146. font-weight: bold;
  147. }
  148. /* 记录区域 */
  149. .record-container {
  150. flex: 1;
  151. background-color: #fff;
  152. margin: 0.75rem 0.75rem 0; /* 调整边距 */
  153. border-radius: 0.625rem 0.625rem 0 0;
  154. padding: 0.9375rem 0.75rem;
  155. }
  156. .record-header {
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. margin-bottom: 0.75rem;
  161. }
  162. .header-title {
  163. font-size: 0.875rem; /* 14pt */
  164. font-weight: bold;
  165. color: #333;
  166. }
  167. .header-more {
  168. display: flex;
  169. align-items: center;
  170. font-size: 0.75rem; /* 12pt */
  171. color: #999;
  172. }
  173. .more-icon {
  174. width: 0.75rem;
  175. height: 0.75rem;
  176. margin-left: 0.1875rem;
  177. /* Ensure icon color is visible - svgs are usually static. display:block just in case */
  178. display: block;
  179. }
  180. /* Tabs */
  181. .tabs-row {
  182. display: flex;
  183. border-bottom: 0.03125rem solid #f5f5f5;
  184. margin-bottom: 0.3125rem;
  185. }
  186. .tab-item {
  187. margin-right: 1.25rem;
  188. padding-bottom: 0.375rem;
  189. font-size: 0.875rem; /* 14pt */
  190. color: #666;
  191. position: relative;
  192. display: flex;
  193. flex-direction: column;
  194. align-items: center;
  195. }
  196. .tab-item.active {
  197. font-weight: bold;
  198. color: #333;
  199. }
  200. .tab-line {
  201. width: 0.875rem;
  202. height: 0.125rem;
  203. background-color: #FF6B00;
  204. border-radius: 0.125rem;
  205. position: absolute;
  206. bottom: 0;
  207. }
  208. /* 列表 */
  209. .list-item {
  210. display: flex;
  211. justify-content: space-between;
  212. padding: 0.75rem 0;
  213. border-bottom: 0.03125rem solid #f9f9f9;
  214. }
  215. .item-left {
  216. display: flex;
  217. flex-direction: column;
  218. }
  219. .item-title {
  220. font-size: 0.875rem; /* 14pt (Green Box) */
  221. color: #333;
  222. margin-bottom: 0.25rem;
  223. font-weight: 500;
  224. }
  225. .item-desc {
  226. font-size: 0.8125rem; /* 13pt (Red Box) */
  227. color: #999;
  228. margin-bottom: 0.1875rem;
  229. }
  230. .item-time {
  231. font-size: 0.75rem; /* 12pt */
  232. color: #ccc;
  233. }
  234. .item-right {
  235. display: flex;
  236. flex-direction: column;
  237. /* align-items: flex-end; 保持右对齐 */
  238. text-align: right;
  239. }
  240. .item-amount {
  241. font-size: 0.875rem; /* 14pt */
  242. font-weight: bold;
  243. margin-bottom: 0.25rem;
  244. }
  245. .item-amount.income {
  246. color: #4CAF50;
  247. }
  248. .item-amount.expense {
  249. color: #333;
  250. }
  251. .item-tag {
  252. display: inline-flex;
  253. justify-content: flex-end;
  254. }
  255. .item-tag uni-text {
  256. background-color: #F5F5F5;
  257. padding: 0.125rem 0.375rem;
  258. border-radius: 0.1875rem;
  259. font-size: 0.6875rem; /* 11pt */
  260. color: #999;
  261. }