recharge-view.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /* 充值界面样式 */
  2. .recharge-overlay {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. width: 100%;
  7. height: 100%;
  8. background: rgba(0, 0, 0, 0.6);
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. z-index: 1000004;
  13. opacity: 0;
  14. transition: opacity 0.3s ease;
  15. pointer-events: none;
  16. }
  17. .recharge-overlay.show {
  18. opacity: 1;
  19. pointer-events: auto;
  20. }
  21. .recharge-container {
  22. background: white;
  23. border-radius: 12px;
  24. width: 90%;
  25. max-width: 600px;
  26. max-height: 90vh;
  27. overflow-y: auto;
  28. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  29. transform: scale(0.9);
  30. transition: transform 0.3s ease;
  31. }
  32. .recharge-overlay.show .recharge-container {
  33. transform: scale(1);
  34. }
  35. .recharge-header {
  36. display: flex;
  37. align-items: center;
  38. justify-content: space-between;
  39. padding: 20px 24px;
  40. border-bottom: 1px solid #e5e5e5;
  41. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  42. color: white;
  43. }
  44. .recharge-title {
  45. margin: 0;
  46. font-size: 18px;
  47. font-weight: 600;
  48. }
  49. .recharge-close {
  50. background: none;
  51. border: none;
  52. color: white;
  53. font-size: 28px;
  54. line-height: 1;
  55. cursor: pointer;
  56. padding: 0;
  57. width: 32px;
  58. height: 32px;
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. border-radius: 4px;
  63. transition: background 0.2s;
  64. }
  65. .recharge-close:hover {
  66. background: rgba(255, 255, 255, 0.2);
  67. }
  68. .recharge-content {
  69. padding: 32px 24px;
  70. }
  71. .recharge-packages {
  72. display: grid;
  73. grid-template-columns: repeat(3, 1fr);
  74. gap: 16px;
  75. margin-bottom: 32px;
  76. }
  77. .recharge-package {
  78. border: 2px solid #e5e5e5;
  79. border-radius: 12px;
  80. padding: 20px 16px;
  81. cursor: pointer;
  82. transition: all 0.3s ease;
  83. text-align: center;
  84. background: white;
  85. }
  86. .recharge-package:hover {
  87. border-color: #8b5cf6;
  88. box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  89. }
  90. .recharge-package.selected {
  91. border-color: #8b5cf6;
  92. background: rgba(139, 92, 246, 0.05);
  93. box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  94. }
  95. .package-header {
  96. display: flex;
  97. flex-direction: column;
  98. gap: 8px;
  99. align-items: center;
  100. }
  101. .package-points {
  102. font-size: 20px;
  103. font-weight: 700;
  104. color: #1f2937;
  105. line-height: 1.2;
  106. }
  107. .package-bonus {
  108. font-size: 12px;
  109. color: #10b981;
  110. font-weight: 600;
  111. background: rgba(16, 185, 129, 0.1);
  112. padding: 3px 10px;
  113. border-radius: 8px;
  114. display: inline-block;
  115. margin: 2px 0;
  116. }
  117. .package-price {
  118. font-size: 18px;
  119. font-weight: 600;
  120. color: #667eea;
  121. margin-top: 4px;
  122. }
  123. .package-total {
  124. font-size: 12px;
  125. color: #6b7280;
  126. margin-top: 8px;
  127. padding-top: 8px;
  128. border-top: 1px solid #f5f5f5;
  129. }
  130. .recharge-info {
  131. margin-top: 32px;
  132. padding-top: 32px;
  133. border-top: 1px solid #e5e5e5;
  134. }
  135. .selected-package-info {
  136. text-align: center;
  137. margin-bottom: 32px;
  138. }
  139. .info-item {
  140. display: flex;
  141. justify-content: space-between;
  142. align-items: center;
  143. padding: 8px 0;
  144. margin-bottom: 8px;
  145. }
  146. .info-item:last-child {
  147. margin-bottom: 0;
  148. }
  149. .info-label {
  150. font-size: 14px;
  151. color: #6b7280;
  152. }
  153. .info-value {
  154. font-size: 16px;
  155. font-weight: 600;
  156. color: #333;
  157. }
  158. .qr-code-container {
  159. text-align: center;
  160. margin-bottom: 32px;
  161. }
  162. .qr-code-placeholder {
  163. display: inline-block;
  164. padding: 20px;
  165. background: white;
  166. border: 2px solid #e5e5e5;
  167. border-radius: 8px;
  168. margin-bottom: 16px;
  169. }
  170. .qr-code-hint {
  171. font-size: 16px;
  172. color: #666;
  173. margin: 8px 0;
  174. }
  175. .qr-code-tip {
  176. font-size: 14px;
  177. color: #999;
  178. margin: 4px 0;
  179. }
  180. .test-buy-btn {
  181. margin-top: 20px;
  182. padding: 12px 32px;
  183. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  184. color: white;
  185. border: none;
  186. border-radius: 8px;
  187. font-size: 16px;
  188. font-weight: 600;
  189. cursor: pointer;
  190. transition: all 0.2s;
  191. box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  192. }
  193. .test-buy-btn:hover {
  194. transform: translateY(-1px);
  195. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  196. }
  197. .test-buy-btn:active {
  198. transform: translateY(0);
  199. }
  200. .test-buy-tip {
  201. font-size: 12px;
  202. color: #999;
  203. margin-top: 8px;
  204. font-style: italic;
  205. }