vip.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. * {
  7. -webkit-tap-highlight-color: transparent;
  8. /* 顺手优化长按菜单(需要可跳过) */
  9. -webkit-touch-callout: none;
  10. -webkit-user-select: none;
  11. user-select: none;
  12. }
  13. body {
  14. font-family:
  15. -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  16. background: #121212;
  17. min-height: 100vh;
  18. color: #fff;
  19. padding-bottom: env(safe-area-inset-bottom);
  20. }
  21. /* 在 :root 中定义全局变量,方便复用 */
  22. :root {
  23. --safe-area-inset-top: env(safe-area-inset-top, 0px);
  24. --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  25. }
  26. /* 1. 为页面主体添加安全区内边距 */
  27. body {
  28. padding-top: var(--safe-area-inset-top);
  29. padding-bottom: var(--safe-area-inset-bottom);
  30. }
  31. body > .container.activity {
  32. background: white;
  33. color: #000000;
  34. }
  35. .container {
  36. margin-top: 50px;
  37. }
  38. .container.activity{
  39. margin-top: 0;
  40. }
  41. .status-bar {
  42. display: flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. padding: 12px 24px;
  46. font-size: 14px;
  47. font-weight: 600;
  48. }
  49. .status-bar-time {
  50. font-weight: 600;
  51. }
  52. .status-bar-icons {
  53. display: flex;
  54. align-items: center;
  55. gap: 6px;
  56. }
  57. .status-bar-icons svg {
  58. width: 18px;
  59. height: 18px;
  60. }
  61. .header {
  62. display: flex;
  63. align-items: center;
  64. justify-content: space-between;
  65. padding: 16px 16px;
  66. }
  67. .activity.header {
  68. padding: 16px 0;
  69. }
  70. .header-title {
  71. font-size: 18px;
  72. font-weight: 600;
  73. line-height: 1;
  74. }
  75. .vip-card {
  76. margin: 40px 16px 30px;
  77. border-radius: 8px;
  78. position: relative;
  79. border: 1px solid #2c2c2c;
  80. background: #121212;
  81. position: relative;
  82. }
  83. .vip-card::before {
  84. content: "";
  85. position: absolute;
  86. right: 0;
  87. top: -40px;
  88. width: 150px;
  89. height: 150px;
  90. background-image: url(/images/image195@2x.png);
  91. background-repeat: no-repeat;
  92. background-position: left top;
  93. background-size: 150px auto;
  94. z-index: 10;
  95. }
  96. .vip-box {
  97. position: relative;
  98. padding: 16px;
  99. z-index: 8;
  100. background-image: url(/images/unblock-bg-round2@2x.png);
  101. background-repeat: no-repeat;
  102. background-position: left top;
  103. background-size: 270px auto;
  104. background-color: #121212;
  105. }
  106. .vip-bg {
  107. position: absolute;
  108. z-index: 4;
  109. right: 0;
  110. top: 0;
  111. }
  112. .vip-bg::after {
  113. content: "";
  114. position: absolute;
  115. right: -16px;
  116. top: -130px;
  117. width: 200px;
  118. height: 260px;
  119. background-image: url(/images/unlock-dots-right1@2x.png);
  120. background-repeat: no-repeat;
  121. background-position: left top;
  122. background-size: 200px auto;
  123. }
  124. .vip-card-header {
  125. display: flex;
  126. justify-content: space-between;
  127. align-items: center;
  128. margin-bottom: 26px;
  129. }
  130. .vip-level-badge {
  131. gap: 8px;
  132. }
  133. .vip-level-title {
  134. font-size: 10px;
  135. color: #888888;
  136. margin-bottom: 6px;
  137. }
  138. .vip-level-text {
  139. font-size: 32px;
  140. font-weight: 700;
  141. }
  142. .vip-card-tabs {
  143. display: flex;
  144. gap: 8px;
  145. }
  146. .vip-tab {
  147. padding: 6px 12px;
  148. border-radius: 8px;
  149. font-size: 12px;
  150. background: rgba(255, 255, 255, 0.1);
  151. border: 1px solid rgba(255, 255, 255, 0.1);
  152. cursor: pointer;
  153. transition: all 0.3s ease;
  154. }
  155. .vip-tab.active {
  156. background: linear-gradient(135deg, #f5a623, #ff6b35);
  157. border-color: transparent;
  158. }
  159. .vip-card-tip {
  160. font-size: 10px;
  161. color: #8a8a9a;
  162. margin-top: 16px;
  163. text-align: right;
  164. }
  165. .vip-card-tip span {
  166. color: #f5a623;
  167. }
  168. .progress-items {
  169. display: flex;
  170. flex-direction: column;
  171. gap: 18px;
  172. }
  173. .progress-item {
  174. font-size: 10px;
  175. }
  176. .progress-label {
  177. color: #888888;
  178. margin-bottom: 6px;
  179. }
  180. .progress-label span {
  181. color: #ffffff;
  182. font-weight: 600;
  183. }
  184. .progress-bar {
  185. width: 100%;
  186. height: 6px;
  187. background: rgba(255, 255, 255, 0.1);
  188. border-radius: 3px;
  189. overflow: hidden;
  190. }
  191. .progress-bar-fill {
  192. height: 100%;
  193. background: linear-gradient(90deg, #f5a623, #ff6b35);
  194. border-radius: 3px;
  195. transition: width 0.5s ease;
  196. }
  197. .section-title {
  198. font-size: 16px;
  199. font-weight: 600;
  200. padding: 0 16px 12px;
  201. }
  202. .benefits-tabs {
  203. display: flex;
  204. gap: 12px;
  205. padding: 0 16px;
  206. margin-bottom: 16px;
  207. font-size: 14px;
  208. }
  209. .benefits-tab {
  210. cursor: pointer;
  211. transition: all 0.3s ease;
  212. color: #888888;
  213. }
  214. .benefits-tab.active {
  215. border-color: transparent;
  216. color: #ffffff;
  217. font-weight: 500;
  218. position: relative;
  219. }
  220. .benefits-tab.active::after {
  221. content: "";
  222. position: absolute;
  223. bottom: 0;
  224. left: 0;
  225. width: 14px;
  226. height: 2px;
  227. transform: translateX(-50%);
  228. left: 50%;
  229. bottom: -6px;
  230. background: linear-gradient(135deg, #f5a623, #ff6b35);
  231. }
  232. .benefits-table {
  233. margin: 0 16px 32px;
  234. }
  235. .benefits-header {
  236. display: grid;
  237. grid-template-columns: 1.5fr 1fr 1fr;
  238. padding: 12px 0;
  239. font-size: 10px;
  240. /* gap: 10px; */
  241. color: #6a6a7a;
  242. text-align: left;
  243. }
  244. .benefits-header > div:nth-child(3) {
  245. text-align: right;
  246. }
  247. .benefits-row {
  248. display: grid;
  249. grid-template-columns: 1.5fr 1fr 1fr;
  250. padding: 14px 0;
  251. font-size: 12px;
  252. align-items: center;
  253. text-align: left;
  254. border-bottom: 1px solid #2c2c2c;
  255. transition: background 0.3s ease;
  256. }
  257. .td {
  258. min-width: 80px;
  259. }
  260. .benefits-row > div:nth-child(3) {
  261. flex: 78px;
  262. text-align: right;
  263. }
  264. .benefits-row:last-child {
  265. border-bottom: none;
  266. }
  267. .benefits-row .vip-name {
  268. font-weight: 600;
  269. display: flex;
  270. align-items: center;
  271. gap: 4px;
  272. }
  273. .benefits-row .vip-name img {
  274. width: 14px;
  275. }
  276. .benefits-row.active .vip-icon {
  277. background: linear-gradient(135deg, #f5a623, #ff6b35);
  278. }
  279. @media (max-width: 374px) {
  280. .benefits-header,
  281. .benefits-row {
  282. font-size: 10px;
  283. padding: 10px 8px;
  284. }
  285. .benefits-header {
  286. grid-template-columns: 1.5fr 1fr 1fr;
  287. }
  288. .benefits-row {
  289. grid-template-columns: 1.5fr 1fr 1fr;
  290. }
  291. }
  292. @media (min-width: 768px) {
  293. .container {
  294. max-width: 420px;
  295. margin: 0 auto;
  296. }
  297. }
  298. .contribution-section {
  299. padding: 0 16px;
  300. margin-bottom: 32px;
  301. }
  302. .contribution-title {
  303. font-family: "PingFang SC";
  304. font-size: 16px;
  305. font-weight: 500;
  306. color: #ffffff;
  307. margin-bottom: 18px;
  308. }
  309. .contribution-card {
  310. width: 100%;
  311. background: #141414;
  312. border: 1px solid #2c2c2c;
  313. border-radius: 8px;
  314. padding: 16px;
  315. }
  316. .contribution-item {
  317. font-family: "PingFang SC";
  318. font-size: 12px;
  319. font-weight: 400;
  320. color: #888888;
  321. line-height: 1.4;
  322. margin-bottom: 25px;
  323. }
  324. .contribution-item:last-child {
  325. margin-bottom: 0;
  326. }
  327. .contribution-item .highlight {
  328. color: #ffffff;
  329. }
  330. .contribution-tip {
  331. font-family: "PingFang SC";
  332. font-size: 10px;
  333. color: #666666;
  334. margin-top: 16px;
  335. line-height: 1.5;
  336. }
  337. .loading-overlay,
  338. .error-overlay {
  339. position: fixed;
  340. top: 0;
  341. left: 0;
  342. right: 0;
  343. bottom: 0;
  344. background: rgba(0, 0, 0, 0.7);
  345. display: flex;
  346. align-items: center;
  347. justify-content: center;
  348. z-index: 1000;
  349. backdrop-filter: blur(4px);
  350. }
  351. .loading-content,
  352. .error-content {
  353. display: flex;
  354. flex-direction: column;
  355. align-items: center;
  356. gap: 12px;
  357. padding: 32px;
  358. background: #1a1a1a;
  359. border-radius: 12px;
  360. border: 1px solid #2c2c2c;
  361. }
  362. .loading-spinner {
  363. width: 40px;
  364. height: 40px;
  365. border: 3px solid rgba(245, 166, 35, 0.2);
  366. border-top-color: #f5a623;
  367. border-radius: 50%;
  368. animation: spin 1s linear infinite;
  369. }
  370. @keyframes spin {
  371. to {
  372. transform: rotate(360deg);
  373. }
  374. }
  375. .loading-text,
  376. .error-text {
  377. font-size: 14px;
  378. color: #fff;
  379. }
  380. .error-icon {
  381. width: 40px;
  382. height: 40px;
  383. background: #ff4444;
  384. border-radius: 50%;
  385. display: flex;
  386. align-items: center;
  387. justify-content: center;
  388. font-size: 24px;
  389. font-weight: bold;
  390. color: #fff;
  391. }
  392. .error-retry {
  393. padding: 10px 24px;
  394. background: linear-gradient(135deg, #f5a623, #ff6b35);
  395. border: none;
  396. border-radius: 8px;
  397. color: #fff;
  398. font-size: 14px;
  399. font-weight: 500;
  400. cursor: pointer;
  401. transition: opacity 0.3s ease;
  402. }
  403. .error-retry:hover {
  404. opacity: 0.9;
  405. }
  406. .error-retry:active {
  407. transform: scale(0.98);
  408. }