vip.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  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 {
  328. display: flex;
  329. align-items: center;
  330. gap: 8px;
  331. }
  332. .contribution-item .highlight {
  333. color: #ffffff;
  334. }
  335. .contribution-info-icon {
  336. width: 16px;
  337. height: 16px;
  338. fill: none;
  339. stroke: #888888;
  340. stroke-width: 2;
  341. stroke-linecap: round;
  342. stroke-linejoin: round;
  343. cursor: pointer;
  344. flex-shrink: 0;
  345. transition: stroke 0.3s ease;
  346. }
  347. .contribution-info-icon:hover {
  348. stroke: #f5a623;
  349. }
  350. .contribution-tip {
  351. font-family: "PingFang SC";
  352. font-size: 10px;
  353. color: #666666;
  354. margin-top: 16px;
  355. line-height: 1.5;
  356. }
  357. .loading-overlay,
  358. .error-overlay {
  359. position: fixed;
  360. top: 0;
  361. left: 0;
  362. right: 0;
  363. bottom: 0;
  364. background: rgba(0, 0, 0, 0.7);
  365. display: flex;
  366. align-items: center;
  367. justify-content: center;
  368. z-index: 1000;
  369. backdrop-filter: blur(4px);
  370. }
  371. .loading-content,
  372. .error-content {
  373. display: flex;
  374. flex-direction: column;
  375. align-items: center;
  376. gap: 12px;
  377. padding: 32px;
  378. background: #1a1a1a;
  379. border-radius: 12px;
  380. border: 1px solid #2c2c2c;
  381. }
  382. .loading-spinner {
  383. width: 40px;
  384. height: 40px;
  385. border: 3px solid rgba(245, 166, 35, 0.2);
  386. border-top-color: #f5a623;
  387. border-radius: 50%;
  388. animation: spin 1s linear infinite;
  389. }
  390. @keyframes spin {
  391. to {
  392. transform: rotate(360deg);
  393. }
  394. }
  395. .loading-text,
  396. .error-text {
  397. font-size: 14px;
  398. color: #fff;
  399. }
  400. .error-icon {
  401. width: 40px;
  402. height: 40px;
  403. background: #ff4444;
  404. border-radius: 50%;
  405. display: flex;
  406. align-items: center;
  407. justify-content: center;
  408. font-size: 24px;
  409. font-weight: bold;
  410. color: #fff;
  411. }
  412. .error-retry {
  413. padding: 10px 24px;
  414. background: linear-gradient(135deg, #f5a623, #ff6b35);
  415. border: none;
  416. border-radius: 8px;
  417. color: #fff;
  418. font-size: 14px;
  419. font-weight: 500;
  420. cursor: pointer;
  421. transition: opacity 0.3s ease;
  422. }
  423. .error-retry:hover {
  424. opacity: 0.9;
  425. }
  426. .error-retry:active {
  427. transform: scale(0.98);
  428. }
  429. .description-modal {
  430. position: fixed;
  431. top: 0;
  432. left: 0;
  433. right: 0;
  434. bottom: 0;
  435. display: flex;
  436. align-items: center;
  437. justify-content: center;
  438. z-index: 1001;
  439. padding: 16px;
  440. }
  441. .modal-overlay {
  442. position: absolute;
  443. top: 0;
  444. left: 0;
  445. right: 0;
  446. bottom: 0;
  447. background: rgba(0, 0, 0, 0.7);
  448. backdrop-filter: blur(4px);
  449. }
  450. .modal-content {
  451. position: relative;
  452. width: 100%;
  453. max-width: 320px;
  454. background: #1a1a1a;
  455. border-radius: 12px;
  456. border: 1px solid #2c2c2c;
  457. overflow: hidden;
  458. animation: modalFadeIn 0.2s ease;
  459. }
  460. @keyframes modalFadeIn {
  461. from {
  462. opacity: 0;
  463. transform: scale(0.95);
  464. }
  465. to {
  466. opacity: 1;
  467. transform: scale(1);
  468. }
  469. }
  470. .modal-header {
  471. display: flex;
  472. align-items: center;
  473. justify-content: space-between;
  474. padding: 16px;
  475. border-bottom: 1px solid #2c2c2c;
  476. }
  477. .modal-title {
  478. font-size: 16px;
  479. font-weight: 600;
  480. color: #ffffff;
  481. }
  482. .modal-close {
  483. width: 24px;
  484. height: 24px;
  485. color: #888888;
  486. cursor: pointer;
  487. transition: color 0.3s ease;
  488. }
  489. .modal-close:hover {
  490. color: #ffffff;
  491. }
  492. .modal-body {
  493. padding: 16px;
  494. }
  495. .modal-body p {
  496. font-size: 14px;
  497. color: #cccccc;
  498. line-height: 1.6;
  499. margin: 0;
  500. }