index.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. page {
  2. background-color: #f5f7fa;
  3. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
  4. Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB",
  5. "Microsoft Yahei", sans-serif;
  6. }
  7. .container {
  8. padding: 16px;
  9. min-height: 100vh;
  10. box-sizing: border-box;
  11. }
  12. .custom-nav {
  13. width: 100%;
  14. display: flex;
  15. align-items: center;
  16. height: 44px;
  17. margin-top: 30px; /* Approximate status bar height */
  18. margin-bottom: 20px;
  19. position: relative;
  20. }
  21. .back-btn {
  22. position: absolute;
  23. left: 0;
  24. padding: 10px; /* Increase touch area */
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. z-index: 10;
  29. }
  30. .back-arrow {
  31. width: 10px;
  32. height: 10px;
  33. border-left: 2px solid #333;
  34. border-bottom: 2px solid #333;
  35. transform: rotate(45deg);
  36. }
  37. .nav-title {
  38. flex: 1;
  39. text-align: center;
  40. font-size: 18px;
  41. font-weight: 500;
  42. color: #000;
  43. }
  44. .header-title {
  45. display: none; /* Hide old title class if referenced elsewhere */
  46. }
  47. .logo-section {
  48. display: flex;
  49. align-items: center;
  50. margin-bottom: 20px;
  51. justify-content: flex-start;
  52. }
  53. .logo-icon {
  54. width: 24px;
  55. height: 24px;
  56. margin-right: 8px;
  57. border-radius: 4px;
  58. }
  59. .logo-text {
  60. font-size: 20px;
  61. font-weight: 700;
  62. color: #1a1a2e;
  63. font-style: italic;
  64. }
  65. .input-section {
  66. width: 100%;
  67. background-color: #fff;
  68. border-radius: 12px;
  69. padding: 20px 16px;
  70. margin-bottom: 24px;
  71. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  72. }
  73. .id-input {
  74. width: 100%;
  75. height: 48px;
  76. background-color: #f5f7fa;
  77. border-radius: 8px;
  78. padding: 0 16px;
  79. box-sizing: border-box;
  80. font-size: 16px;
  81. color: #333;
  82. text-align: center;
  83. }
  84. .recharge-section {
  85. margin-bottom: 32px;
  86. }
  87. .section-title {
  88. font-size: 14px;
  89. color: #666;
  90. margin-bottom: 12px;
  91. }
  92. .recharge-grid {
  93. display: flex;
  94. flex-wrap: wrap;
  95. justify-content: space-between;
  96. }
  97. .recharge-item {
  98. width: 31%;
  99. background-color: #fff;
  100. border-radius: 12px;
  101. padding: 16px 0;
  102. display: flex;
  103. flex-direction: column;
  104. align-items: center;
  105. border: 1px solid #eee;
  106. position: relative;
  107. overflow: hidden;
  108. margin-bottom: 10px;
  109. box-sizing: border-box;
  110. }
  111. .recharge-item.active {
  112. border-color: #7b68ee;
  113. background-color: #f8f6ff;
  114. }
  115. .coin-icon {
  116. margin-bottom: 8px;
  117. }
  118. .coin-img {
  119. width: 20px;
  120. height: 20px;
  121. }
  122. .amount {
  123. font-size: 20px;
  124. font-weight: bold;
  125. color: #333;
  126. margin-bottom: 4px;
  127. }
  128. .price {
  129. font-size: 14px;
  130. color: #666;
  131. }
  132. .action-section {
  133. width: 100%;
  134. padding: 12px;
  135. margin-bottom: 40px;
  136. }
  137. .login-btn {
  138. background: linear-gradient(90deg, #9f7fff, #7b68ee);
  139. color: white;
  140. border: none;
  141. height: 48px;
  142. line-height: 48px;
  143. font-size: 16px;
  144. border-radius: 24px;
  145. margin-bottom: 12px;
  146. box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
  147. }
  148. .agreement-text {
  149. text-align: center;
  150. font-size: 12px;
  151. color: #999;
  152. }
  153. .link {
  154. color: #7b68ee;
  155. }
  156. .tips-section {
  157. padding-bottom: 30px;
  158. }
  159. .tips-title {
  160. font-size: 16px;
  161. font-weight: 500;
  162. color: #333;
  163. margin-bottom: 12px;
  164. }
  165. .tips-content {
  166. font-size: 12px;
  167. color: #888;
  168. line-height: 1.8;
  169. }
  170. .tip-line {
  171. margin-bottom: 4px;
  172. }
  173. /* Popup Styles */
  174. .agreement-popup {
  175. height: 100%;
  176. display: flex;
  177. flex-direction: column;
  178. }
  179. .popup-header {
  180. padding: 16px;
  181. text-align: center;
  182. font-weight: bold;
  183. border-bottom: 1px solid #eee;
  184. position: relative;
  185. }
  186. .close-btn {
  187. position: absolute;
  188. right: 16px;
  189. top: 16px;
  190. font-size: 20px;
  191. color: #999;
  192. }
  193. .agreement-content {
  194. flex: 1;
  195. padding: 16px;
  196. overflow-y: auto;
  197. }