tab2.page.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. // 运动主题色
  2. :root {
  3. --ion-color-primary: #ff7f50; // 活力橙
  4. --ion-color-primary-rgb: 255,127,80;
  5. --ion-color-success: #4CAF50; // 完成绿
  6. }
  7. .sport-content {
  8. --offset-bottom: auto!important;
  9. background: linear-gradient(135deg, #fff3e0, #fff8e1);
  10. overflow-y: auto !important;
  11. height: calc(100vh - 44px); // 适配iOS状态栏高度
  12. contain: strict;
  13. // 滚动条样式
  14. &::-webkit-scrollbar {
  15. width: 6px;
  16. &-thumb {
  17. background: rgba(0,0,0,0.1);
  18. border-radius: 3px;
  19. }
  20. }
  21. }
  22. // 统计卡片
  23. .stats-card {
  24. padding: 16px;
  25. background: linear-gradient(135deg, var(--ion-color-primary), #ffc107);
  26. border-radius: 20px 20px 0 0;
  27. color: white;
  28. .stat-row {
  29. gap: 16px;
  30. .stat-item {
  31. text-align: center;
  32. padding: 16px;
  33. border-radius: 12px;
  34. background: rgba(255,255,255,0.1);
  35. transition: transform 0.3s;
  36. h2 {
  37. font-size: 2.4rem;
  38. margin: 0;
  39. color: inherit;
  40. }
  41. p {
  42. font-size: 0.9rem;
  43. opacity: 0.8;
  44. margin: 4px 0 0;
  45. }
  46. ion-icon {
  47. font-size: 2.4rem;
  48. color: inherit;
  49. }
  50. &.active {
  51. background: rgba(76,175,80,0.2);
  52. transform: scale(1.05);
  53. }
  54. }
  55. }
  56. }
  57. // 功能卡片
  58. .feature-card {
  59. margin: 16px;
  60. border-radius: 16px;
  61. overflow: hidden;
  62. .card-item {
  63. padding: 16px;
  64. border-bottom: 1px solid rgba(0,0,0,0.05);
  65. h3 {
  66. margin: 0;
  67. font-size: 16px;
  68. color: #333;
  69. }
  70. p {
  71. margin: 4px 0 0;
  72. font-size: 0.9rem;
  73. color: #666;
  74. }
  75. ion-icon {
  76. color: #ff9800;
  77. font-size: 1.8rem;
  78. }
  79. }
  80. }
  81. // 训练日历
  82. .calendar-card {
  83. margin: 16px;
  84. border-radius: 16px;
  85. overflow: hidden;
  86. .calendar-body {
  87. padding: 16px;
  88. .week-grid {
  89. gap: 8px;
  90. .day-header {
  91. text-align: center;
  92. padding: 8px;
  93. font-size: 0.8rem;
  94. color: #999;
  95. }
  96. .day {
  97. aspect-ratio: 1;
  98. background: rgba(0,0,0,0.05);
  99. display: flex;
  100. align-items: center;
  101. justify-content: center;
  102. border-radius: 8px;
  103. font-weight: bold;
  104. &.active {
  105. background: var(--ion-color-success);
  106. color: white;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. // 底部按钮
  113. .action-footer {
  114. padding: 16px;
  115. background: var(--ion-color-primary);
  116. .start-btn {
  117. --background: white;
  118. --color: var(--ion-color-primary);
  119. font-weight: bold;
  120. text-transform: uppercase;
  121. letter-spacing: 0.5px;
  122. border-radius: 24px;
  123. height: 56px;
  124. ion-icon {
  125. margin-right: 8px;
  126. font-size: 1.4rem;
  127. }
  128. }
  129. }