index.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. body {
  2. background-color: #fff;
  3. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  4. }
  5. .custom-header {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. height: 2.75rem;
  11. padding-top: var(--status-bar-height);
  12. background-color: #fff;
  13. display: flex;
  14. align-items: center;
  15. justify-content: space-between;
  16. padding-left: 0.9375rem;
  17. padding-right: 0.9375rem;
  18. box-sizing: border-box;
  19. z-index: 100;
  20. }
  21. .header-placeholder {
  22. height: calc(2.75rem + var(--status-bar-height));
  23. }
  24. .back-icon {
  25. width: 1.25rem;
  26. height: 1.25rem;
  27. }
  28. .header-title {
  29. font-size: 1rem;
  30. font-weight: bold;
  31. color: #333;
  32. }
  33. .header-right {
  34. width: 1.25rem;
  35. }
  36. .swiper-container {
  37. position: relative;
  38. padding-bottom: 0.9375rem;
  39. }
  40. .level-swiper {
  41. height: 11.25rem;
  42. margin-top: 0.625rem;
  43. }
  44. .level-card {
  45. height: 10rem;
  46. border-radius: 0.9375rem;
  47. margin: 0 0.3125rem;
  48. transition: transform 0.3s;
  49. overflow: hidden;
  50. position: relative;
  51. box-shadow: 0 0.3125rem 0.625rem rgba(0,0,0,0.1);
  52. background-color: #eee;
  53. }
  54. .card-content {
  55. padding: 0.9375rem;
  56. position: relative;
  57. z-index: 2;
  58. height: 100%;
  59. box-sizing: border-box;
  60. display: flex;
  61. flex-direction: column;
  62. }
  63. .card-header {
  64. display: flex;
  65. justify-content: space-between;
  66. align-items: flex-start;
  67. margin-bottom: auto;
  68. }
  69. .level-badge {
  70. background: rgba(255,255,255,0.2);
  71. border: 1px solid rgba(255,255,255,0.6);
  72. padding: 0.0625rem 0.375rem;
  73. border-radius: 0.3125rem;
  74. font-size: 0.75rem;
  75. color: #fff;
  76. }
  77. .current-badge {
  78. background-color: rgba(255,255,255,0.9);
  79. color: #333;
  80. font-size: 0.625rem;
  81. padding: 0.125rem 0.375rem;
  82. border-radius: 0.625rem;
  83. font-weight: bold;
  84. }
  85. .level-name {
  86. font-size: 1.375rem;
  87. font-weight: bold;
  88. color: #fff;
  89. margin-bottom: 0.3125rem;
  90. text-shadow: 0 0.0625rem 0.125rem rgba(0,0,0,0.2);
  91. }
  92. .level-score {
  93. font-size: 0.75rem;
  94. color: rgba(255,255,255,0.9);
  95. margin-bottom: 0.625rem;
  96. }
  97. .crown-overlay {
  98. position: absolute;
  99. bottom: -0.9375rem;
  100. right: -0.9375rem;
  101. width: 8.125rem;
  102. height: 8.125rem;
  103. opacity: 0.15;
  104. z-index: 1;
  105. }
  106. .swiper-dots {
  107. display: flex;
  108. justify-content: center;
  109. margin-top: 0.3125rem;
  110. }
  111. .dot {
  112. width: 0.375rem;
  113. height: 0.375rem;
  114. background-color: #E0E0E0;
  115. border-radius: 50%;
  116. margin: 0 0.1875rem;
  117. transition: all 0.3s;
  118. }
  119. .dot.active {
  120. width: 0.75rem;
  121. background-color: #333;
  122. border-radius: 0.1875rem;
  123. }
  124. .benefits-title-row {
  125. padding: 0.625rem 0.9375rem;
  126. display: flex;
  127. align-items: baseline;
  128. }
  129. .benefits-title {
  130. font-size: 1rem;
  131. font-weight: bold;
  132. color: #333;
  133. }
  134. .benefits-count {
  135. font-size: 0.875rem;
  136. color: #999;
  137. margin-left: 0.3125rem;
  138. }
  139. .benefits-grid {
  140. display: flex;
  141. flex-wrap: wrap;
  142. padding: 0 0.625rem;
  143. }
  144. .benefit-item {
  145. width: 25%;
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. margin-bottom: 0.9375rem;
  150. }
  151. .benefit-icon-wrapper {
  152. width: 2.75rem;
  153. height: 2.75rem;
  154. background-color: #F8F8F8;
  155. border-radius: 0.75rem;
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. margin-bottom: 0.375rem;
  160. }
  161. .benefit-icon {
  162. width: 1.375rem;
  163. height: 1.375rem;
  164. }
  165. .benefit-name {
  166. font-size: 0.6875rem;
  167. color: #666;
  168. text-align: center;
  169. }
  170. .empty-benefits {
  171. width: 100%;
  172. padding: 1.875rem 0;
  173. text-align: center;
  174. color: #ccc;
  175. font-size: 0.8125rem;
  176. }
  177. .popup-mask {
  178. position: fixed;
  179. top: 0;
  180. left: 0;
  181. right: 0;
  182. bottom: 0;
  183. background-color: rgba(0,0,0,0.5);
  184. z-index: 999;
  185. display: none;
  186. align-items: center;
  187. justify-content: center;
  188. }
  189. .popup-mask.show {
  190. display: flex;
  191. }
  192. .popup-modal {
  193. width: 16.25rem;
  194. background-color: #fff;
  195. border-radius: 0.9375rem;
  196. padding: 1.5625rem 1.25rem;
  197. display: flex;
  198. flex-direction: column;
  199. align-items: center;
  200. box-shadow: 0 0.3125rem 1.25rem rgba(0,0,0,0.2);
  201. }
  202. .popup-icon-wrapper {
  203. width: 3.75rem;
  204. height: 3.75rem;
  205. background-color: #FFF8E1;
  206. border-radius: 50%;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. margin-bottom: 0.9375rem;
  211. }
  212. .benefit-icon-large {
  213. width: 1.875rem;
  214. height: 1.875rem;
  215. }
  216. .popup-title {
  217. font-size: 1.0625rem;
  218. font-weight: bold;
  219. color: #333;
  220. margin-bottom: 0.625rem;
  221. }
  222. .popup-desc {
  223. font-size: 0.875rem;
  224. color: #666;
  225. text-align: center;
  226. line-height: 1.6;
  227. margin-bottom: 1.25rem;
  228. }
  229. .popup-btn {
  230. width: 90%;
  231. height: 2.5rem;
  232. line-height: 2.5rem;
  233. background: linear-gradient(90deg, #333 0%, #111 100%);
  234. color: #fff;
  235. font-size: 0.875rem;
  236. border-radius: 1.25rem;
  237. }