| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- body { background-color: #F7F8FA;
- }
- .container { min-height: 100vh; background-color: #F7F8FA;
- }
- /* 顶部橙色banner */
- .top-banner {
- background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
- padding: 0.625rem 0.9375rem 1.125rem;
- border-radius: 0.625rem;
- margin: 0.625rem 0.9375rem 0;
- box-shadow: 0 0.1875rem 0.625rem rgba(255, 87, 34, 0.25);
- }
- .month-btn {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- margin-bottom: 0.625rem;
- }
- /* 年月文字和箭头在同一个圆角背景框内 */
- .month-text {
- font-size: 0.75rem;
- color: rgba(255,255,255,0.95);
- background-color: rgba(255,255,255,0.2);
- padding: 0.1875rem 0.4375rem;
- border-radius: 0.4375rem;
- }
- .stats-grid {
- display: flex;
- flex-wrap: wrap;
- gap: 0.5rem;
- }
- .stats-cell {
- width: calc(50% - 0.25rem);
- background-color: rgba(255,255,255,0.15);
- border-radius: 0.375rem;
- padding: 0.625rem 0.75rem;
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- }
- .stats-num {
- font-size: 1.1875rem;
- font-weight: bold;
- color: #fff;
- margin-bottom: 0.25rem;
- }
- .stats-unit { font-size: 0.625rem; font-weight: normal;
- }
- .stats-num.reward-num { color: #fff;
- }
- .stats-num.penalty-num { color: #FFF176;
- }
- .stats-label {
- font-size: 0.6875rem;
- color: rgba(255,255,255,0.85);
- margin-bottom: 0.25rem;
- }
- /* 统计数字下方的分割线 */
- .stats-divider {
- height: 0.03125rem;
- background-color: rgba(255,255,255,0.3);
- margin-bottom: 0.3125rem;
- }
- .stats-sub { font-size: 0.625rem; color: rgba(255,255,255,0.65);
- }
- /* 列表头:tab栏无底部外框线 */
- .list-header {
- display: flex;
- align-items: center;
- background-color: #fff;
- padding: 0 0.5rem 0 0.9375rem;
- margin: 0.5rem 0.9375rem 0;
- border-radius: 0.5rem 0.5rem 0 0;
- }
- .tab-bar { display: flex; flex: 1;
- }
- .tab-item {
- padding: 0.5625rem 0.5rem 0;
- font-size: 0.875rem;
- color: #999;
- display: flex;
- flex-direction: column;
- align-items: center;
- position: relative;
- }
- .tab-item:first-child { padding-left: 0;
- }
- .tab-item.active { color: #FF9800; font-weight: bold;
- }
- /* 下划线用正常流,自然居中对齐文字 */
- .tab-line {
- width: 1rem;
- height: 0.09375rem;
- background-color: #FF9800;
- border-radius: 0.0625rem;
- margin-top: 0.25rem;
- align-self: center;
- }
- .view-all-btn { padding: 0.25rem 0; margin-left: auto;
- }
- .view-all-text { font-size: 0.75rem; color: #999;
- }
- /* 记录列表 */
- .record-list {
- background-color: #fff;
- padding: 0 0.9375rem;
- margin: 0 0.9375rem;
- border-radius: 0 0 0.5rem 0.5rem;
- }
- .record-item {
- display: flex;
- align-items: center;
- padding: 0.75rem 0;
- border-bottom: 0.03125rem solid #f5f5f5;
- }
- .ri-icon {
- width: 2.25rem;
- height: 2.25rem;
- border-radius: 50%;
- background-color: #FFF3E0;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 0.625rem;
- flex-shrink: 0;
- }
- .ri-icon.ri-penalty { background-color: #FAFAFA;
- }
- .ri-icon-text {
- font-size: 0.9375rem;
- color: #FF9800;
- font-weight: bold;
- }
- .ri-icon.ri-penalty .ri-icon-text { color: #ccc;
- }
- .ri-content { flex: 1;
- }
- .ri-title-row { display: flex; align-items: center; margin-bottom: 0.1875rem;
- }
- .ri-date { font-size: 0.8125rem; color: #333; font-weight: bold; margin-right: 0.3125rem;
- }
- .ri-title { font-size: 0.8125rem; color: #333;
- }
- .ri-desc { font-size: 0.75rem; color: #999;
- }
- .ri-right {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- margin-left: 0.5rem;
- }
- .ri-amount { font-size: 1rem; font-weight: bold; margin-bottom: 0.125rem;
- }
- .ri-amount.positive { color: #FF5722;
- }
- .ri-amount.negative { color: #333;
- }
- .ri-status { font-size: 0.6875rem;
- }
- .ri-status.pending { color: #FF9800;
- }
- .ri-status.credited { color: #999;
- }
- .ri-status.deducted { color: #999;
- }
- .more-hint { display: block; text-align: center; font-size: 0.75rem; color: #ccc; padding: 0.9375rem 0;
- }
- /* 月份选择器 */
- .picker-mask {
- position: fixed;
- top: 0; left: 0;
- width: 100%; height: 100%;
- background-color: rgba(0,0,0,0.5);
- z-index: 999;
- display: flex;
- align-items: flex-end;
- }
- .picker-sheet {
- width: 100%;
- background-color: #fff;
- border-radius: 0.75rem 0.75rem 0 0;
- }
- .picker-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0.75rem 0.9375rem;
- border-bottom: 0.03125rem solid #f5f5f5;
- }
- .picker-cancel { font-size: 0.875rem; color: #999;
- }
- .picker-title { font-size: 0.9375rem; font-weight: bold; color: #333;
- }
- .picker-confirm { font-size: 0.875rem; color: #FF9800; font-weight: bold;
- }
- .picker-body {
- display: flex;
- height: 12.5rem;
- position: relative;
- overflow: hidden;
- }
- .picker-column {
- flex: 1;
- height: 12.5rem;
- }
- .picker-col-item {
- height: 2.5rem;
- line-height: 2.5rem;
- text-align: center;
- font-size: 0.875rem;
- color: #333;
- }
- .picker-col-item.picker-selected {
- color: #FF9800;
- font-weight: bold;
- background-color: #FFF3E0;
- border-radius: 0.25rem;
- }
- .picker-highlight {
- position: absolute;
- top: 50%;
- left: 0;
- transform: translateY(-50%);
- width: 100%;
- height: 2.5rem;
- border-top: 0.03125rem solid #f0f0f0;
- border-bottom: 0.03125rem solid #f0f0f0;
- pointer-events: none;
- }
|