vip-old.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. * {
  7. -webkit-tap-highlight-color: transparent;
  8. -webkit-touch-callout: none;
  9. -webkit-user-select: none;
  10. user-select: none;
  11. }
  12. body {
  13. font-family:
  14. -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  15. background: var(--bex-page-bg);
  16. min-height: 100vh;
  17. color: #fff;
  18. padding-bottom: env(safe-area-inset-bottom);
  19. }
  20. /* 在 :root 中定义全局变量,方便复用 */
  21. :root {
  22. --safe-area-inset-top: env(safe-area-inset-top, 0px);
  23. --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  24. }
  25. /* 1. 为页面主体添加安全区内边距 */
  26. body {
  27. padding-top: var(--safe-area-inset-top);
  28. padding-bottom: var(--safe-area-inset-bottom);
  29. }
  30. body > .container.activity {
  31. background: white;
  32. color: #000000;
  33. }
  34. .container {
  35. margin-top: 50px;
  36. }
  37. .container.activity{
  38. margin-top: 0;
  39. }
  40. .status-bar {
  41. display: flex;
  42. justify-content: space-between;
  43. align-items: center;
  44. padding: 12px 24px;
  45. font-size: 14px;
  46. font-weight: 600;
  47. }
  48. .status-bar-time {
  49. font-weight: 600;
  50. }
  51. .status-bar-icons {
  52. display: flex;
  53. align-items: center;
  54. gap: 6px;
  55. }
  56. .status-bar-icons svg {
  57. width: 18px;
  58. height: 18px;
  59. }
  60. .header {
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-between;
  64. padding: 16px 16px;
  65. }
  66. .activity.header {
  67. padding: 16px 0;
  68. }
  69. .header svg path {
  70. stroke: var(--bex-back-icon-color);
  71. }
  72. .header-title {
  73. font-size: 18px;
  74. font-weight: 600;
  75. line-height: 1;
  76. }
  77. .vip-card {
  78. margin: 40px 16px 30px;
  79. border-radius: 8px;
  80. position: relative;
  81. border: 1px solid #2c2c2c;
  82. background: #121212;
  83. position: relative;
  84. }
  85. .vip-card::before {
  86. content: "";
  87. position: absolute;
  88. right: 0;
  89. top: -40px;
  90. width: 150px;
  91. height: 150px;
  92. background-image: url(/images/image195@2x.png);
  93. background-repeat: no-repeat;
  94. background-position: left top;
  95. background-size: 150px auto;
  96. z-index: 10;
  97. }
  98. .vip-box {
  99. position: relative;
  100. padding: 16px;
  101. z-index: 8;
  102. background-image: url(/images/unblock-bg-round2@2x.png);
  103. background-repeat: no-repeat;
  104. background-position: left top;
  105. background-size: 270px auto;
  106. background-color: #121212;
  107. }
  108. .vip-bg {
  109. position: absolute;
  110. z-index: 4;
  111. right: 0;
  112. top: 0;
  113. }
  114. .vip-bg::after {
  115. content: "";
  116. position: absolute;
  117. right: -16px;
  118. top: -130px;
  119. width: 200px;
  120. height: 260px;
  121. background-image: url(/images/unlock-dots-right1@2x.png);
  122. background-repeat: no-repeat;
  123. background-position: left top;
  124. background-size: 200px auto;
  125. }
  126. .vip-card-header {
  127. display: flex;
  128. justify-content: space-between;
  129. align-items: center;
  130. margin-bottom: 26px;
  131. }
  132. .vip-level-badge {
  133. gap: 8px;
  134. }
  135. .vip-level-title {
  136. font-size: 10px;
  137. color: #888888;
  138. margin-bottom: 6px;
  139. }
  140. .vip-level-text {
  141. font-size: 32px;
  142. font-weight: 700;
  143. }
  144. .vip-card-tabs {
  145. display: flex;
  146. gap: 8px;
  147. }
  148. .vip-tab {
  149. padding: 6px 12px;
  150. border-radius: 8px;
  151. font-size: 12px;
  152. background: rgba(255, 255, 255, 0.1);
  153. border: 1px solid rgba(255, 255, 255, 0.1);
  154. cursor: pointer;
  155. transition: all 0.3s ease;
  156. }
  157. .vip-tab.active {
  158. background: linear-gradient(135deg, #f5a623, #ff6b35);
  159. border-color: transparent;
  160. }
  161. .vip-card-tip {
  162. font-size: 10px;
  163. color: #8a8a9a;
  164. margin-top: 16px;
  165. text-align: right;
  166. }
  167. .vip-card-tip span {
  168. color: var(--bex-brand-start);
  169. }
  170. .progress-items {
  171. display: flex;
  172. flex-direction: column;
  173. gap: 18px;
  174. }
  175. .progress-item {
  176. font-size: 10px;
  177. }
  178. .progress-label {
  179. color: #888888;
  180. margin-bottom: 6px;
  181. }
  182. .progress-label span {
  183. color: #ffffff;
  184. font-weight: 600;
  185. }
  186. .progress-bar {
  187. width: 100%;
  188. height: 6px;
  189. background: rgba(255, 255, 255, 0.1);
  190. border-radius: 3px;
  191. overflow: hidden;
  192. }
  193. .progress-bar-fill {
  194. height: 100%;
  195. background: linear-gradient(90deg, #f5a623, #ff6b35);
  196. border-radius: 3px;
  197. transition: width 0.5s ease;
  198. }
  199. .section-title {
  200. font-size: 16px;
  201. font-weight: 600;
  202. padding: 0 16px 12px;
  203. }
  204. .benefits-tabs {
  205. display: flex;
  206. gap: 12px;
  207. padding: 0 16px;
  208. margin-bottom: 16px;
  209. font-size: 14px;
  210. }
  211. .benefits-tab {
  212. cursor: pointer;
  213. transition: all 0.3s ease;
  214. color: var(--bex-text-secondary);
  215. }
  216. .benefits-tab.active {
  217. border-color: transparent;
  218. color: var(--bex-text-primary);
  219. font-weight: 500;
  220. position: relative;
  221. }
  222. .benefits-tab.active::after {
  223. content: "";
  224. position: absolute;
  225. bottom: 0;
  226. left: 0;
  227. width: 14px;
  228. height: 2px;
  229. transform: translateX(-50%);
  230. left: 50%;
  231. bottom: -6px;
  232. background: linear-gradient(135deg, #f5a623, #ff6b35);
  233. }
  234. .benefits-table {
  235. margin: 0 16px 32px;
  236. }
  237. .benefits-header {
  238. display: grid;
  239. grid-template-columns: 1.5fr 1fr 1fr;
  240. padding: 12px 0;
  241. font-size: 10px;
  242. /* gap: 10px; */
  243. color: #6a6a7a;
  244. text-align: left;
  245. }
  246. .benefits-header > div:nth-child(3) {
  247. text-align: right;
  248. }
  249. .benefits-row {
  250. display: grid;
  251. grid-template-columns: 1.5fr 1fr 1fr;
  252. padding: 14px 0;
  253. font-size: 12px;
  254. align-items: center;
  255. text-align: left;
  256. border-bottom: 1px solid #2c2c2c;
  257. transition: background 0.3s ease;
  258. }
  259. .td {
  260. min-width: 80px;
  261. }
  262. .benefits-row > div:nth-child(3) {
  263. flex: 78px;
  264. text-align: right;
  265. }
  266. .benefits-row:last-child {
  267. border-bottom: none;
  268. }
  269. .benefits-row .vip-name {
  270. font-weight: 600;
  271. display: flex;
  272. align-items: center;
  273. gap: 4px;
  274. }
  275. .benefits-row .vip-name img {
  276. width: 14px;
  277. }
  278. .benefits-row.active .vip-icon {
  279. background: linear-gradient(135deg, #f5a623, #ff6b35);
  280. }
  281. @media (max-width: 374px) {
  282. .benefits-header,
  283. .benefits-row {
  284. font-size: 10px;
  285. padding: 10px 8px;
  286. }
  287. .benefits-header {
  288. grid-template-columns: 1.5fr 1fr 1fr;
  289. }
  290. .benefits-row {
  291. grid-template-columns: 1.5fr 1fr 1fr;
  292. }
  293. }
  294. @media (min-width: 768px) {
  295. .container {
  296. max-width: 420px;
  297. margin: 0 auto;
  298. }
  299. }
  300. body.theme-light .vip-bg::after {
  301. opacity: 0.12;
  302. }
  303. .contribution-section {
  304. padding: 0 16px;
  305. margin-bottom: 32px;
  306. }
  307. .contribution-title {
  308. font-family: "PingFang SC";
  309. font-size: 16px;
  310. font-weight: 500;
  311. color: #ffffff;
  312. margin-bottom: 18px;
  313. }
  314. .contribution-card {
  315. width: 100%;
  316. background: #141414;
  317. border: 1px solid #2c2c2c;
  318. border-radius: 8px;
  319. padding: 16px;
  320. }
  321. .contribution-item {
  322. font-family: "PingFang SC";
  323. font-size: 12px;
  324. font-weight: 400;
  325. color: #888888;
  326. line-height: 1.4;
  327. margin-bottom: 25px;
  328. }
  329. .contribution-item:last-child {
  330. margin-bottom: 0;
  331. }
  332. .contribution-item {
  333. display: flex;
  334. align-items: center;
  335. gap: 6px;
  336. }
  337. .contribution-item .highlight {
  338. color: var(--bex-text-primary);
  339. }
  340. .contribution-info-icon {
  341. width: 16px;
  342. height: 16px;
  343. fill: none;
  344. stroke: #888888;
  345. stroke-width: 2;
  346. stroke-linecap: round;
  347. stroke-linejoin: round;
  348. cursor: pointer;
  349. flex-shrink: 0;
  350. transition: stroke 0.3s ease;
  351. }
  352. .contribution-info-icon:hover {
  353. stroke: #f5a623;
  354. }
  355. .contribution-tip {
  356. font-family: "PingFang SC";
  357. font-size: 10px;
  358. color: #666666;
  359. margin-top: 16px;
  360. line-height: 1.5;
  361. }
  362. .loading-overlay,
  363. .error-overlay {
  364. position: fixed;
  365. top: 0;
  366. left: 0;
  367. right: 0;
  368. bottom: 0;
  369. background: var(--bex-overlay-bg);
  370. display: flex;
  371. align-items: center;
  372. justify-content: center;
  373. z-index: 1000;
  374. backdrop-filter: blur(4px);
  375. }
  376. .loading-content,
  377. .error-content {
  378. display: flex;
  379. flex-direction: column;
  380. align-items: center;
  381. gap: 12px;
  382. padding: 32px;
  383. background: #1a1a1a;
  384. border-radius: 12px;
  385. border: 1px solid #2c2c2c;
  386. }
  387. .loading-spinner {
  388. width: 40px;
  389. height: 40px;
  390. border: 3px solid rgba(245, 166, 35, 0.2);
  391. border-top-color: #f5a623;
  392. border-radius: 50%;
  393. animation: spin 1s linear infinite;
  394. }
  395. @keyframes spin {
  396. to {
  397. transform: rotate(360deg);
  398. }
  399. }
  400. .loading-text,
  401. .error-text {
  402. font-size: 14px;
  403. color: #fff;
  404. }
  405. .error-icon {
  406. width: 40px;
  407. height: 40px;
  408. background: #ff4444;
  409. border-radius: 50%;
  410. display: flex;
  411. align-items: center;
  412. justify-content: center;
  413. font-size: 24px;
  414. font-weight: bold;
  415. color: #fff;
  416. }
  417. .error-actions {
  418. display: flex;
  419. gap: 12px;
  420. }
  421. .error-retry {
  422. padding: 10px 24px;
  423. background: linear-gradient(135deg, var(--bex-brand-start), var(--bex-brand-end));
  424. border: none;
  425. border-radius: 8px;
  426. color: #fff;
  427. font-size: 14px;
  428. font-weight: 500;
  429. cursor: pointer;
  430. transition: opacity 0.3s ease;
  431. }
  432. .error-retry:hover {
  433. opacity: 0.9;
  434. }
  435. .error-retry:active {
  436. transform: scale(0.98);
  437. }
  438. .description-modal {
  439. position: fixed;
  440. top: 0;
  441. left: 0;
  442. right: 0;
  443. bottom: 0;
  444. display: flex;
  445. align-items: center;
  446. justify-content: center;
  447. z-index: 1001;
  448. padding: 16px;
  449. }
  450. .modal-overlay {
  451. position: absolute;
  452. top: 0;
  453. left: 0;
  454. right: 0;
  455. bottom: 0;
  456. background: rgba(0, 0, 0, 0.7);
  457. backdrop-filter: blur(4px);
  458. }
  459. .modal-content {
  460. position: relative;
  461. width: 100%;
  462. max-width: 320px;
  463. background: #1a1a1a;
  464. border-radius: 12px;
  465. border: 1px solid #2c2c2c;
  466. overflow: hidden;
  467. animation: modalFadeIn 0.2s ease;
  468. }
  469. @keyframes modalFadeIn {
  470. from {
  471. opacity: 0;
  472. transform: scale(0.95);
  473. }
  474. to {
  475. opacity: 1;
  476. transform: scale(1);
  477. }
  478. }
  479. .modal-header {
  480. display: flex;
  481. align-items: center;
  482. justify-content: space-between;
  483. padding: 16px;
  484. border-bottom: 1px solid #2c2c2c;
  485. }
  486. .modal-title {
  487. font-size: 16px;
  488. font-weight: 600;
  489. color: #ffffff;
  490. }
  491. .modal-close {
  492. width: 24px;
  493. height: 24px;
  494. color: var(--bex-text-secondary);
  495. cursor: pointer;
  496. transition: color 0.3s ease;
  497. }
  498. .modal-close:hover {
  499. color: var(--bex-text-primary);
  500. }
  501. .modal-body {
  502. padding: 16px;
  503. }
  504. .modal-body p {
  505. font-size: 14px;
  506. color: var(--bex-text-secondary);
  507. line-height: 1.6;
  508. margin: 0;
  509. }
  510. body.theme-light {
  511. background: var(--bex-page-bg);
  512. color: var(--bex-text-primary);
  513. }
  514. body.theme-light .header svg path {
  515. stroke: var(--bex-back-icon-color);
  516. }
  517. body.theme-light .vip-card,
  518. body.theme-light .vip-box,
  519. body.theme-light .contribution-card {
  520. background-color: var(--bex-card-bg);
  521. background: var(--bex-card-bg);
  522. border-color: var(--bex-border);
  523. }
  524. body.theme-light .vip-level-title,
  525. body.theme-light .vip-card-tip,
  526. body.theme-light .progress-label,
  527. body.theme-light .benefits-tab,
  528. body.theme-light .benefits-header,
  529. body.theme-light .contribution-item,
  530. body.theme-light .contribution-info-icon,
  531. body.theme-light .modal-close,
  532. body.theme-light .modal-body p {
  533. color: var(--bex-text-secondary);
  534. stroke: var(--bex-text-secondary);
  535. }
  536. body.theme-light .vip-level-text,
  537. body.theme-light .vip-card-tip span,
  538. body.theme-light .contribution-info-icon:hover {
  539. color: var(--bex-brand);
  540. stroke: var(--bex-brand);
  541. }
  542. body.theme-light .progress-label span,
  543. body.theme-light .benefits-tab.active,
  544. body.theme-light .contribution-title,
  545. body.theme-light .contribution-item .highlight,
  546. body.theme-light .loading-text,
  547. body.theme-light .error-text,
  548. body.theme-light .modal-title {
  549. color: var(--bex-text-primary);
  550. }
  551. body.theme-light .progress-bar {
  552. background: var(--bex-progress-bg);
  553. }
  554. body.theme-light .progress-bar-fill,
  555. body.theme-light .benefits-tab.active::after,
  556. body.theme-light .error-retry {
  557. background: var(--bex-brand);
  558. }
  559. body.theme-light .benefits-row,
  560. body.theme-light .loading-content,
  561. body.theme-light .error-content,
  562. body.theme-light .modal-content,
  563. body.theme-light .modal-header {
  564. border-color: var(--bex-border);
  565. }
  566. body.theme-light .benefits-row {
  567. border-bottom-color: var(--bex-border-soft);
  568. }
  569. body.theme-light .contribution-tip {
  570. color: var(--bex-text-tertiary);
  571. }
  572. body.theme-light .loading-content,
  573. body.theme-light .error-content,
  574. body.theme-light .modal-content {
  575. background: var(--bex-modal-bg);
  576. }
  577. body.theme-light .loading-spinner {
  578. border-top-color: var(--bex-brand);
  579. }
  580. body.theme-light .modal-overlay,
  581. body.theme-light .loading-overlay,
  582. body.theme-light .error-overlay {
  583. background: var(--bex-overlay-bg);
  584. }