bill.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. /* 基础容器 */
  2. .container {
  3. background-color: #F5F7FA;
  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. .back-icon {
  31. width: 1.25rem;
  32. height: 1.25rem;
  33. transform: rotate(180deg);
  34. }
  35. .nav-title {
  36. font-size: 0.875rem; /* 14pt (Strictly enforced) */
  37. font-weight: bold;
  38. color: #333;
  39. }
  40. .nav-right {
  41. width: 1.875rem;
  42. }
  43. /* 内容区域 */
  44. .content-area {
  45. flex: 1;
  46. display: flex;
  47. flex-direction: column;
  48. }
  49. /* 筛选区域 */
  50. .filter-area {
  51. background-color: #fff;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. padding: 0 0.9375rem;
  56. margin-bottom: 0.625rem;
  57. }
  58. /* Tabs */
  59. .tabs-row {
  60. display: flex;
  61. padding-top: 0.625rem;
  62. padding-bottom: 0.0625rem;
  63. gap: 1.25rem;
  64. }
  65. .tab-item {
  66. padding-bottom: 0.5rem;
  67. font-size: 0.875rem;
  68. color: #666;
  69. position: relative;
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. min-width: 3.125rem;
  74. }
  75. .tab-item.active {
  76. font-weight: bold;
  77. color: #FF6B00; /* Orange text for active */
  78. }
  79. .tab-line {
  80. width: 1.25rem; /* Little wider line */
  81. height: 0.125rem;
  82. background-color: #FF6B00;
  83. border-radius: 0.125rem;
  84. position: absolute;
  85. bottom: 0;
  86. }
  87. /* 日期选择器 */
  88. .date-picker-wrap {
  89. display: flex;
  90. align-items: center;
  91. }
  92. .date-picker {
  93. background-color: #F5F7FA;
  94. padding: 0.25rem 0.625rem;
  95. border-radius: 0.9375rem;
  96. display: flex;
  97. align-items: center;
  98. }
  99. .date-text {
  100. font-size: 0.8125rem;
  101. color: #333;
  102. margin-right: 0.25rem;
  103. }
  104. .arrow-down {
  105. font-size: 0.75rem;
  106. color: #999;
  107. }
  108. /* 列表容器 */
  109. .bill-list {
  110. flex: 1;
  111. padding: 0 0.625rem;
  112. box-sizing: border-box;
  113. }
  114. /* 月份卡片 */
  115. .month-group {
  116. background-color: #fff;
  117. border-radius: 0.5rem;
  118. padding: 0 0.625rem;
  119. margin-bottom: 0.625rem;
  120. box-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.02);
  121. }
  122. .group-header {
  123. display: flex;
  124. justify-content: space-between;
  125. align-items: center;
  126. padding: 0.75rem 0.3125rem;
  127. /* No border bottom for header in card view usually, or light one */
  128. border-bottom: 0.03125rem solid #f9f9f9;
  129. }
  130. .month-title {
  131. font-size: 0.9375rem;
  132. font-weight: bold;
  133. color: #333;
  134. }
  135. .month-summary {
  136. font-size: 0.75rem;
  137. color: #999;
  138. }
  139. /* 列表项 */
  140. .list-item {
  141. display: flex;
  142. align-items: center;
  143. padding: 0.9375rem 0.3125rem;
  144. border-bottom: 0.03125rem solid #f9f9f9;
  145. }
  146. .list-item:last-child {
  147. border-bottom: none;
  148. }
  149. /* 左侧图标 */
  150. .item-icon-box {
  151. width: 2.5rem;
  152. height: 2.5rem;
  153. border-radius: 50%;
  154. display: flex;
  155. justify-content: center;
  156. align-items: center;
  157. margin-right: 0.625rem;
  158. flex-shrink: 0;
  159. }
  160. .item-icon-box.income {
  161. background-color: #EEF9F2; /* Light Green */
  162. }
  163. .item-icon-box.expense {
  164. background-color: #FFF0F0; /* Light Red */
  165. }
  166. .item-icon-symbol {
  167. font-size: 1.25rem;
  168. font-weight: 300;
  169. line-height: 1;
  170. margin-top: -0.125rem; /* Visual center adjustment */
  171. }
  172. .item-icon-box.income .item-icon-symbol {
  173. color: #4CAF50;
  174. }
  175. .item-icon-box.expense .item-icon-symbol {
  176. color: #FF4D4F;
  177. }
  178. /* 中间内容 */
  179. .item-center {
  180. flex: 1;
  181. display: flex;
  182. flex-direction: column;
  183. justify-content: space-around;
  184. height: 2.5rem;
  185. }
  186. .item-title {
  187. font-size: 0.875rem;
  188. font-weight: 500;
  189. color: #333;
  190. }
  191. .item-desc {
  192. font-size: 0.6875rem;
  193. color: #999;
  194. margin-top: 0.25rem;
  195. }
  196. /* 右侧数据 */
  197. .item-right {
  198. display: flex;
  199. flex-direction: column;
  200. align-items: flex-end;
  201. justify-content: space-around;
  202. height: 2.5rem;
  203. margin-left: 0.3125rem;
  204. }
  205. .item-amount {
  206. font-size: 0.9375rem;
  207. font-weight: bold;
  208. }
  209. .item-amount.income {
  210. color: #4CAF50;
  211. }
  212. .item-amount.expense {
  213. color: #333;
  214. }
  215. .item-tag {
  216. display: inline-flex;
  217. justify-content: flex-end;
  218. margin-top: 0.1875rem;
  219. }
  220. .item-tag uni-text {
  221. background-color: #FFFFFF;
  222. border: 0.03125rem solid #eee;
  223. padding: 0.0625rem 0.25rem;
  224. border-radius: 0.1875rem;
  225. font-size: 0.625rem;
  226. color: #999;
  227. }
  228. .list-padding-bottom {
  229. height: 1.25rem;
  230. }