bill.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. /* Tabs */
  50. .tabs-row {
  51. background-color: #fff;
  52. display: flex;
  53. justify-content: space-around; /* Match Figure 1 spacing */
  54. padding-top: 0.625rem;
  55. padding-bottom: 0.0625rem;
  56. margin-bottom: 0.625rem;
  57. }
  58. .tab-item {
  59. padding-bottom: 0.5rem;
  60. font-size: 0.875rem;
  61. color: #666;
  62. position: relative;
  63. display: flex;
  64. flex-direction: column;
  65. align-items: center;
  66. min-width: 3.125rem;
  67. }
  68. .tab-item.active {
  69. font-weight: bold;
  70. color: #FF6B00; /* Orange text for active */
  71. }
  72. .tab-line {
  73. width: 1.25rem; /* Little wider line */
  74. height: 0.125rem;
  75. background-color: #FF6B00;
  76. border-radius: 0.125rem;
  77. position: absolute;
  78. bottom: 0;
  79. }
  80. /* 列表容器 */
  81. .bill-list {
  82. flex: 1;
  83. padding: 0 0.625rem;
  84. box-sizing: border-box;
  85. }
  86. /* 月份卡片 */
  87. .month-group {
  88. background-color: #fff;
  89. border-radius: 0.5rem;
  90. padding: 0 0.625rem;
  91. margin-bottom: 0.625rem;
  92. box-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.02);
  93. }
  94. .group-header {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. padding: 0.75rem 0.3125rem;
  99. /* No border bottom for header in card view usually, or light one */
  100. border-bottom: 0.03125rem solid #f9f9f9;
  101. }
  102. .month-title {
  103. font-size: 0.9375rem;
  104. font-weight: bold;
  105. color: #333;
  106. }
  107. .month-summary {
  108. font-size: 0.75rem;
  109. color: #999;
  110. }
  111. /* 列表项 */
  112. .list-item {
  113. display: flex;
  114. align-items: center;
  115. padding: 0.9375rem 0.3125rem;
  116. border-bottom: 0.03125rem solid #f9f9f9;
  117. }
  118. .list-item:last-child {
  119. border-bottom: none;
  120. }
  121. /* 左侧图标 */
  122. .item-icon-box {
  123. width: 2.5rem;
  124. height: 2.5rem;
  125. border-radius: 50%;
  126. display: flex;
  127. justify-content: center;
  128. align-items: center;
  129. margin-right: 0.625rem;
  130. flex-shrink: 0;
  131. }
  132. .item-icon-box.income {
  133. background-color: #EEF9F2; /* Light Green */
  134. }
  135. .item-icon-box.expense {
  136. background-color: #FFF0F0; /* Light Red */
  137. }
  138. .item-icon-symbol {
  139. font-size: 1.25rem;
  140. font-weight: 300;
  141. line-height: 1;
  142. margin-top: -0.125rem; /* Visual center adjustment */
  143. }
  144. .item-icon-box.income .item-icon-symbol {
  145. color: #4CAF50;
  146. }
  147. .item-icon-box.expense .item-icon-symbol {
  148. color: #FF4D4F;
  149. }
  150. /* 中间内容 */
  151. .item-center {
  152. flex: 1;
  153. display: flex;
  154. flex-direction: column;
  155. justify-content: space-around;
  156. height: 2.5rem;
  157. }
  158. .item-title {
  159. font-size: 0.875rem;
  160. font-weight: 500;
  161. color: #333;
  162. }
  163. .item-desc {
  164. font-size: 0.6875rem;
  165. color: #999;
  166. margin-top: 0.25rem;
  167. }
  168. /* 右侧数据 */
  169. .item-right {
  170. display: flex;
  171. flex-direction: column;
  172. align-items: flex-end;
  173. justify-content: space-around;
  174. height: 2.5rem;
  175. margin-left: 0.3125rem;
  176. }
  177. .item-amount {
  178. font-size: 0.9375rem;
  179. font-weight: bold;
  180. }
  181. .item-amount.income {
  182. color: #4CAF50;
  183. }
  184. .item-amount.expense {
  185. color: #333;
  186. }
  187. .item-tag {
  188. display: inline-flex;
  189. justify-content: flex-end;
  190. margin-top: 0.1875rem;
  191. }
  192. .item-tag uni-text {
  193. background-color: #FFFFFF;
  194. border: 0.03125rem solid #eee;
  195. padding: 0.0625rem 0.25rem;
  196. border-radius: 0.1875rem;
  197. font-size: 0.625rem;
  198. color: #999;
  199. }
  200. .list-padding-bottom {
  201. height: 1.25rem;
  202. }