welfare.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. /* BEX 福利中心样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. -webkit-touch-callout: none;
  7. -webkit-user-select: none;
  8. user-select: none;
  9. -webkit-tap-highlight-color: transparent;
  10. }
  11. :root {
  12. --safe-area-inset-top: env(safe-area-inset-top, 0px);
  13. --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  14. }
  15. body {
  16. font-family:
  17. -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
  18. "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
  19. sans-serif;
  20. color: #ffffff;
  21. background: var(--bex-page-bg);
  22. line-height: 1.5;
  23. -webkit-font-smoothing: antialiased;
  24. -moz-osx-font-smoothing: grayscale;
  25. /* letter-spacing: 0.2px; */
  26. padding-bottom: env(safe-area-inset-bottom);
  27. min-height: 100vh;
  28. }
  29. body {
  30. padding-top: var(--safe-area-inset-top);
  31. padding-bottom: var(--safe-area-inset-bottom);
  32. /* padding-top: 44px; */
  33. }
  34. .container {
  35. margin: 0 auto;
  36. position: relative;
  37. padding: 0 16px;
  38. }
  39. /* 背景装饰 */
  40. .bg-decoration {
  41. position: absolute;
  42. left: -90px;
  43. top: 48px;
  44. width: 300px;
  45. height: 300px;
  46. pointer-events: none;
  47. z-index: 0;
  48. opacity: 0.5;
  49. }
  50. body.theme-light .bg-decoration {
  51. opacity: 0.15;
  52. }
  53. /* 顶部导航栏 */
  54. .navbar {
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. height: 50px;
  59. position: relative;
  60. z-index: 1;
  61. }
  62. .back-button {
  63. position: absolute;
  64. left: 0;
  65. top: 50%;
  66. transform: translateY(-50%);
  67. width: 16px;
  68. height: 16px;
  69. cursor: pointer;
  70. }
  71. .navbar-title {
  72. font-size: 15px;
  73. font-weight: 500;
  74. color: #ffffff;
  75. }
  76. /* 标题区域 */
  77. .header-section {
  78. padding: 24px 0 40px 0;
  79. display: flex;
  80. justify-content: space-between;
  81. }
  82. .header-title {
  83. font-size: 26px;
  84. padding-top: 14px;
  85. font-weight: 600;
  86. line-height: 26px;
  87. margin-bottom: 12px;
  88. }
  89. .header-subtitle {
  90. font-size: 12px;
  91. color: #888888;
  92. line-height: 12px;
  93. }
  94. .header-image {
  95. /* position: absolute; */
  96. right: 16px;
  97. top: 10px;
  98. min-width: 96px;
  99. min-height: 82px;
  100. width: 131px;
  101. height: 91px;
  102. object-fit: contain;
  103. }
  104. .category-tabs-container {
  105. overflow-x: scroll;
  106. padding-bottom: 10px;
  107. }
  108. /* 一级导航 Tab */
  109. .category-tabs {
  110. display: flex;
  111. position: relative;
  112. z-index: 1;
  113. border-bottom: var(--bex-border) 1px solid;
  114. }
  115. .category-tab {
  116. font-size: 16px;
  117. font-weight: 600;
  118. color: #888888;
  119. padding-bottom: 8px;
  120. margin-right: 16px;
  121. cursor: pointer;
  122. position: relative;
  123. white-space: nowrap;
  124. }
  125. .category-tab.active {
  126. color: var(--bex-text-primary);
  127. }
  128. .category-tab.active::after {
  129. content: "";
  130. position: absolute;
  131. bottom: 0;
  132. left: 50%;
  133. right: 0;
  134. transform: translateX(-50%);
  135. width: 14px;
  136. height: 2px;
  137. background-color: var(--bex-brand);
  138. }
  139. /* 二级 Tab */
  140. .level-tabs {
  141. display: inline-flex;
  142. background-color: var(--bex-level-tabs-bg);
  143. border-radius: 4px;
  144. padding: 2px;
  145. margin: 0 0 16px;
  146. }
  147. .level-tab {
  148. padding: 4px 10px;
  149. font-size: 12px;
  150. color: #888888;
  151. border-radius: 4px;
  152. cursor: pointer;
  153. }
  154. .level-tab.active {
  155. background-color: rgba(255, 255, 255, 0.1);
  156. color: var(--bex-text-primary);
  157. }
  158. .theme-light .level-tab.active {
  159. background-color: #1212120f;
  160. }
  161. /* 任务卡片列表 */
  162. .task-list {
  163. position: relative;
  164. z-index: 1;
  165. }
  166. .task-card {
  167. padding: 20px 16px 16px 16px;
  168. margin-bottom: 16px;
  169. background-color: rgba(255, 255, 255, 0.03);
  170. border: solid 1px var(--bex-border);
  171. border-radius: 6px;
  172. position: relative;
  173. }
  174. .task-card.history .task-action-btn {
  175. opacity: 0.5;
  176. cursor: not-allowed;
  177. }
  178. .task-card.history .task-action-btn.history-detail-btn {
  179. opacity: 1;
  180. }
  181. .task-header {
  182. display: flex;
  183. align-items: center;
  184. margin-bottom: 8px;
  185. padding-right: 24px;
  186. }
  187. .task-name {
  188. font-size: 14px;
  189. font-weight: 600;
  190. color: var(--bex-text-primary);
  191. }
  192. .task-progress-current {
  193. color: var(--bex-brand);
  194. }
  195. .task-info-icon {
  196. /* position: absolute; */
  197. /* right: 16px; */
  198. /* top: 20px; */
  199. width: 14px;
  200. height: 14px;
  201. margin-left: 6px;
  202. cursor: pointer;
  203. }
  204. .task-reward-row {
  205. display: flex;
  206. justify-content: space-between;
  207. align-items: center;
  208. }
  209. .task-reward-row.top {
  210. margin-bottom: 8px;
  211. }
  212. .task-reward-row.bottom {
  213. margin-top: 8px;
  214. }
  215. .task-reward-label {
  216. font-size: 12px;
  217. color: #888888;
  218. }
  219. .task-reward-value {
  220. font-size: 12px;
  221. font-weight: 500;
  222. color: var(--bex-text-primary);
  223. }
  224. .task-reward-value.reward-top {
  225. font-size: 14px;
  226. color: var(--bex-brand);
  227. font-weight: 600;
  228. }
  229. .progress-bar {
  230. height: 4px;
  231. background-color: var(--bex-progress-bg);
  232. border-radius: 2px;
  233. overflow: hidden;
  234. }
  235. .progress-bar-fill {
  236. height: 100%;
  237. background: var(--bex-brand);
  238. border-radius: 2px;
  239. transition: width 0.3s ease;
  240. }
  241. .task-action-btn {
  242. width: 100%;
  243. height: 32px;
  244. /* margin-top: 16px; */
  245. border: none;
  246. border-radius: 6px;
  247. background-color: var(--bex-back-icon-color);
  248. color: var(--bex-page-bg);
  249. font-size: 13px;
  250. font-weight: 500;
  251. cursor: pointer;
  252. transition: opacity 0.2s ease;
  253. }
  254. .task-action-btn:disabled {
  255. opacity: 0.5;
  256. cursor: not-allowed;
  257. }
  258. .btn-hl {
  259. color: var(--bex-brand);
  260. }
  261. /* 阶梯奖励 */
  262. .task-card.has-tiers .task-header {
  263. margin-bottom: 12px;
  264. }
  265. .tier-section {
  266. position: relative;
  267. margin: 16px 0;
  268. overflow: hidden;
  269. }
  270. .tier-scrollable {
  271. overflow-x: auto;
  272. -webkit-overflow-scrolling: touch;
  273. }
  274. .tier-scrollable::-webkit-scrollbar {
  275. display: none;
  276. }
  277. .tier-scroll-inner {
  278. position: relative;
  279. min-width: 100%;
  280. }
  281. .tier-labels-row {
  282. position: relative;
  283. height: 16px;
  284. margin-bottom: 4px;
  285. }
  286. .tier-rewards-row {
  287. margin-bottom: 6px;
  288. }
  289. .tier-conditions-row {
  290. margin-top: 6px;
  291. }
  292. .tier-reward-badge,
  293. .tier-condition-label {
  294. position: absolute;
  295. transform: translateX(-50%);
  296. font-size: 10px;
  297. font-weight: 600;
  298. color: var(--bex-text-primary);
  299. white-space: nowrap;
  300. }
  301. .tier-reward-badge {
  302. background-color: var(--bex-progress-bg);
  303. border-radius: 10px;
  304. padding: 2px 6px;
  305. line-height: 12px;
  306. }
  307. .tier-reward-badge.completed {
  308. color: var(--bex-brand);
  309. }
  310. .tier-condition-label {
  311. font-weight: 400;
  312. color: var(--bex-text-primary);
  313. }
  314. .tier-progress-bar {
  315. position: relative;
  316. height: 4px;
  317. margin: 8px 0;
  318. }
  319. .tier-progress-track {
  320. position: absolute;
  321. left: 0;
  322. right: 0;
  323. top: 0;
  324. bottom: 0;
  325. background-color: var(--bex-progress-bg);
  326. border-radius: 2px;
  327. }
  328. .tier-progress-fill {
  329. position: absolute;
  330. left: 0;
  331. top: 0;
  332. bottom: 0;
  333. background: var(--bex-brand);
  334. border-radius: 2px;
  335. transition: width 0.3s ease;
  336. }
  337. .tier-dots {
  338. position: absolute;
  339. left: 0;
  340. right: 0;
  341. top: 50%;
  342. transform: translateY(-50%);
  343. }
  344. .tier-dot {
  345. position: absolute;
  346. width: 8px;
  347. height: 8px;
  348. border-radius: 50%;
  349. background-color: #343434;
  350. transform: translate(-50%, -50%);
  351. }
  352. body.theme-light .tier-dot {
  353. background-color: #EBEBEB;
  354. }
  355. .tier-dot.completed {
  356. background-color: var(--bex-brand);
  357. }
  358. /* 充值倒计时条 */
  359. .deposit-countdown-bar {
  360. display: inline-flex;
  361. align-items: center;
  362. justify-content: center;
  363. padding: 6px 12px;
  364. background-color: #fd6f2333;
  365. border-radius: 34px;
  366. /* margin-bottom: 12px; */
  367. }
  368. .deposit-countdown-text {
  369. font-size: 11px;
  370. color: var(--bex-text-primary);
  371. }
  372. /* FAQ */
  373. .faq-section {
  374. margin-top: 32px;
  375. position: relative;
  376. z-index: 1;
  377. }
  378. .section-title {
  379. font-size: 14px;
  380. font-weight: 600;
  381. color: var(--bex-text-primary);
  382. margin-bottom: 16px;
  383. }
  384. .faq-item {
  385. margin-bottom: 12px;
  386. }
  387. .faq-question {
  388. display: flex;
  389. justify-content: space-between;
  390. align-items: center;
  391. font-size: 12px;
  392. color: #888888;
  393. cursor: pointer;
  394. padding-bottom: 12px;
  395. border-bottom: 1px solid var(--bex-border);
  396. }
  397. .faq-answer {
  398. display: none;
  399. font-size: 12px;
  400. color: var(--bex-text-primary);
  401. line-height: 18px;
  402. padding-top: 12px;
  403. }
  404. .faq-item.open .faq-answer {
  405. display: block;
  406. }
  407. .faq-arrow {
  408. width: 5px;
  409. height: 8px;
  410. transition: transform 0.3s ease;
  411. }
  412. .faq-item.open .faq-arrow {
  413. transform: rotate(90deg);
  414. }
  415. /* 空状态 */
  416. .empty-tip {
  417. display: flex;
  418. flex-direction: column;
  419. align-items: center;
  420. justify-content: center;
  421. padding: 48px 0;
  422. }
  423. .empty-icon {
  424. width: 80px;
  425. height: 80px;
  426. margin-bottom: 12px;
  427. }
  428. .empty-tip p {
  429. font-size: 12px;
  430. color: #888888;
  431. }
  432. /* 规则说明 */
  433. .rules-section {
  434. position: relative;
  435. z-index: 1;
  436. margin-bottom: 8px;
  437. }
  438. .rules-header {
  439. display: flex;
  440. align-items: center;
  441. cursor: pointer;
  442. }
  443. .rules-title {
  444. font-size: 14px;
  445. color: #888888;
  446. margin-right: 6px;
  447. }
  448. .rules-info-icon {
  449. width: 14px;
  450. height: 14px;
  451. }
  452. .task-copy {
  453. font-size: 12px;
  454. color: var(--bex-text-secondary);
  455. line-height: 18px;
  456. margin-bottom: 16px;
  457. }
  458. /* 加载和错误 */
  459. .loading-overlay,
  460. .error-overlay {
  461. position: fixed;
  462. top: 0;
  463. left: 0;
  464. right: 0;
  465. bottom: 0;
  466. display: flex;
  467. flex-direction: column;
  468. align-items: center;
  469. justify-content: center;
  470. background-color: var(--bex-page-bg);
  471. z-index: 100;
  472. }
  473. .loading-overlay{
  474. opacity: 0.4;
  475. }
  476. .loading-spinner {
  477. width: 32px;
  478. height: 32px;
  479. border: 2px solid rgba(255, 255, 255, 0.1);
  480. border-top-color: var(--bex-brand);
  481. border-radius: 50%;
  482. animation: spin 1s linear infinite;
  483. margin-bottom: 12px;
  484. }
  485. @keyframes spin {
  486. to {
  487. transform: rotate(360deg);
  488. }
  489. }
  490. .loading-text {
  491. font-size: 12px;
  492. color: #888888;
  493. }
  494. .error-content {
  495. text-align: center;
  496. }
  497. .error-text {
  498. font-size: 14px;
  499. color: #ffffff;
  500. margin-bottom: 24px;
  501. }
  502. .error-actions {
  503. display: flex;
  504. gap: 12px;
  505. }
  506. .error-retry {
  507. padding: 10px 24px;
  508. border-radius: 6px;
  509. border: none;
  510. background-color: #ffffff;
  511. color: #121212;
  512. font-size: 14px;
  513. font-weight: 500;
  514. cursor: pointer;
  515. }
  516. /* 弹窗 */
  517. .modal-overlay {
  518. position: fixed;
  519. top: 0;
  520. left: 0;
  521. right: 0;
  522. bottom: 0;
  523. background-color: rgba(0, 0, 0, 0.7);
  524. display: none;
  525. align-items: center;
  526. justify-content: center;
  527. z-index: 200;
  528. padding: 0 24px;
  529. }
  530. .modal-content {
  531. background-color: #1a1a1a;
  532. border-radius: 12px;
  533. padding: 24px 12px;
  534. width: 100%;
  535. max-width: 300px;
  536. text-align: center;
  537. }
  538. .rules-modal {
  539. max-width: 320px;
  540. max-height: 70vh;
  541. overflow-y: auto;
  542. }
  543. .rules-modal-body {
  544. font-size: 12px;
  545. color: #888888;
  546. line-height: 18px;
  547. text-align: left;
  548. margin-bottom: 20px;
  549. white-space: pre-wrap;
  550. }
  551. .rules-modal-title {
  552. font-size: 16px;
  553. font-weight: 600;
  554. color: var(--bex-text-primary);
  555. margin-bottom: 16px;
  556. text-align: center;
  557. }
  558. .modal-title {
  559. font-size: 16px;
  560. font-weight: 600;
  561. color: var(--bex-text-primary);
  562. margin-bottom: 16px;
  563. }
  564. .modal-title.left {
  565. text-align: left;
  566. }
  567. .modal-body {
  568. font-size: 12px;
  569. color: #888888;
  570. line-height: 18px;
  571. margin-bottom: 20px;
  572. }
  573. .modal-buttons {
  574. display: flex;
  575. gap: 10px;
  576. }
  577. .modal-btn {
  578. flex: 1;
  579. height: 42px;
  580. border-radius: 8px;
  581. font-size: 14px;
  582. font-weight: 500;
  583. border: 1px solid var(--bex-border);
  584. background-color: transparent;
  585. color: #fff;
  586. cursor: pointer;
  587. }
  588. .modal-btn.primary {
  589. background-color: var(--bex-back-icon-color);
  590. border-color: var(--bex-card-bg-soft);
  591. color: #000;
  592. }
  593. .modal-btn.full {
  594. width: 100%;
  595. }
  596. .modal-icon {
  597. width: 44px;
  598. height: 44px;
  599. margin: 0 auto 16px;
  600. display: block;
  601. }
  602. .modal-reward-container {
  603. text-align: center;
  604. }
  605. .modal-reward {
  606. display: inline-flex;
  607. align-items: baseline;
  608. font-size: 32px;
  609. font-weight: 700;
  610. color: #ffffff;
  611. margin-bottom: 20px;
  612. padding: 12px 24px;
  613. background: #161616;
  614. border-radius: 6px;
  615. line-height: 1;
  616. }
  617. .modal-reward-value {
  618. font-size: 32px;
  619. font-weight: 700;
  620. color: var(--bex-brand);
  621. margin-right: 4px;
  622. }
  623. .blocked-placeholder {
  624. display: flex;
  625. flex-direction: column;
  626. align-items: center;
  627. justify-content: center;
  628. padding: 48px 32px;
  629. text-align: center;
  630. }
  631. .blocked-placeholder .blocked-icon {
  632. width: 80px;
  633. height: 80px;
  634. margin-bottom: 16px;
  635. background: url("/images/empty.svg") no-repeat center center;
  636. background-size: contain;
  637. opacity: 0.6;
  638. }
  639. body.theme-light .blocked-placeholder .blocked-icon {
  640. background-image: url("/images/empty-light.svg");
  641. }
  642. .blocked-placeholder .blocked-title {
  643. font-size: 16px;
  644. font-weight: 600;
  645. color: var(--bex-text-primary);
  646. margin-bottom: 8px;
  647. }
  648. .blocked-placeholder .blocked-tip {
  649. font-size: 12px;
  650. color: var(--bex-text-secondary);
  651. margin-bottom: 24px;
  652. line-height: 1.5;
  653. }
  654. .blocked-placeholder .blocked-action-btn {
  655. min-width: 160px;
  656. padding: 10px 20px;
  657. font-size: 14px;
  658. font-weight: 500;
  659. color: var(--bex-page-bg);
  660. background-color: var(--bex-text-primary);
  661. border: none;
  662. border-radius: 8px;
  663. cursor: pointer;
  664. }
  665. body.theme-light .blocked-placeholder .blocked-action-btn {
  666. color: #fff;
  667. }
  668. .deposit-preview-modal {
  669. position: relative;
  670. width: 300px;
  671. padding: 20px 16px 16px;
  672. background-color: var(--bex-modal-bg);
  673. border: 1px solid var(--bex-border);
  674. border-radius: 8px;
  675. }
  676. .deposit-preview-loading {
  677. position: absolute;
  678. top: 0;
  679. left: 0;
  680. right: 0;
  681. bottom: 0;
  682. display: flex;
  683. flex-direction: column;
  684. align-items: center;
  685. justify-content: center;
  686. background-color: var(--bex-modal-bg);
  687. border-radius: 8px;
  688. z-index: 10;
  689. }
  690. .deposit-preview-modal .modal-title {
  691. font-size: 14px;
  692. font-weight: 600;
  693. color: var(--bex-text-primary);
  694. margin-bottom: 20px;
  695. text-align: left;
  696. }
  697. .deposit-preview-row {
  698. display: flex;
  699. justify-content: space-between;
  700. align-items: center;
  701. margin-bottom: 16px;
  702. }
  703. .deposit-preview-label {
  704. font-size: 12px;
  705. color: var(--bex-text-secondary);
  706. }
  707. .deposit-preview-value {
  708. font-size: 12px;
  709. font-weight: 500;
  710. color: var(--bex-text-primary);
  711. text-align: right;
  712. }
  713. .deposit-preview-divider {
  714. height: 1px;
  715. background-color: var(--bex-border-soft);
  716. margin: 4px 0 16px;
  717. }
  718. .deposit-preview-tip {
  719. font-size: 12px;
  720. color: var(--bex-text-secondary);
  721. line-height: 18px;
  722. margin-bottom: 20px;
  723. text-align: left;
  724. }
  725. .task-action-btn.history-detail-btn {
  726. background-color: #fff;
  727. color: #000;
  728. }
  729. body.theme-light .task-action-btn.history-detail-btn {
  730. background-color: #000;
  731. color: #fff;
  732. }
  733. body.theme-light .modal-btn {
  734. color: #000;
  735. border: 1px solid var(--bex-border);
  736. }
  737. body.theme-light .modal-reward {
  738. background: #f7f7f7;
  739. color: #2f2f2f;
  740. }
  741. body.theme-light .modal-btn.primary {
  742. color: #fff;
  743. }