| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859 |
- /* BEX 福利中心样式 */
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- user-select: none;
- -webkit-tap-highlight-color: transparent;
- }
- :root {
- --safe-area-inset-top: env(safe-area-inset-top, 0px);
- --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
- }
- body {
- font-family:
- -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
- "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
- sans-serif;
- color: #ffffff;
- background: var(--bex-page-bg);
- line-height: 1.5;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- /* letter-spacing: 0.2px; */
- padding-bottom: env(safe-area-inset-bottom);
- min-height: 100vh;
- }
- body {
- padding-top: var(--safe-area-inset-top);
- padding-bottom: var(--safe-area-inset-bottom);
- /* padding-top: 44px; */
- }
- .container {
- margin: 0 auto;
- position: relative;
- padding: 0 16px;
- }
- /* 背景装饰 */
- .bg-decoration {
- position: absolute;
- left: -90px;
- top: 48px;
- width: 300px;
- height: 300px;
- pointer-events: none;
- z-index: 0;
- opacity: 0.5;
- }
- body.theme-light .bg-decoration {
- opacity: 0.15;
- }
- /* 顶部导航栏 */
- .navbar {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 50px;
- position: relative;
- z-index: 1;
- }
- .back-button {
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 16px;
- height: 16px;
- cursor: pointer;
- }
- .navbar-title {
- font-size: 15px;
- font-weight: 500;
- color: #ffffff;
- }
- /* 标题区域 */
- .header-section {
- padding: 24px 0 40px 0;
- display: flex;
- justify-content: space-between;
- }
- .header-title {
- font-size: 26px;
- padding-top: 14px;
- font-weight: 600;
- line-height: 26px;
- margin-bottom: 12px;
- }
- .header-subtitle {
- font-size: 12px;
- color: #888888;
- line-height: 12px;
- }
- .header-image {
- /* position: absolute; */
- right: 16px;
- top: 10px;
- min-width: 96px;
- min-height: 82px;
- width: 131px;
- height: 91px;
- object-fit: contain;
- }
- .category-tabs-container {
- overflow-x: scroll;
- padding-bottom: 10px;
- }
- /* 一级导航 Tab */
- .category-tabs {
- display: flex;
- position: relative;
- z-index: 1;
- border-bottom: var(--bex-border) 1px solid;
- }
- .category-tab {
- font-size: 16px;
- font-weight: 600;
- color: #888888;
- padding-bottom: 8px;
- margin-right: 16px;
- cursor: pointer;
- position: relative;
- white-space: nowrap;
- }
- .category-tab.active {
- color: var(--bex-text-primary);
- }
- .category-tab.active::after {
- content: "";
- position: absolute;
- bottom: 0;
- left: 50%;
- right: 0;
- transform: translateX(-50%);
- width: 14px;
- height: 2px;
- background-color: var(--bex-brand);
- }
- /* 二级 Tab */
- .level-tabs {
- display: inline-flex;
- background-color: var(--bex-level-tabs-bg);
- border-radius: 4px;
- padding: 2px;
- margin: 0 0 16px;
- }
- .level-tab {
- padding: 4px 10px;
- font-size: 12px;
- color: #888888;
- border-radius: 4px;
- cursor: pointer;
- }
- .level-tab.active {
- background-color: rgba(255, 255, 255, 0.1);
- color: var(--bex-text-primary);
- }
- .theme-light .level-tab.active {
- background-color: #1212120f;
- }
- /* 任务卡片列表 */
- .task-list {
- position: relative;
- z-index: 1;
- }
- .task-card {
- padding: 20px 16px 16px 16px;
- margin-bottom: 16px;
- background-color: rgba(255, 255, 255, 0.03);
- border: solid 1px var(--bex-border);
- border-radius: 6px;
- position: relative;
- }
- .task-card.history .task-action-btn {
- opacity: 0.5;
- cursor: not-allowed;
- }
- .task-card.history .task-action-btn.history-detail-btn {
- opacity: 1;
- }
- .task-header {
- display: flex;
- align-items: center;
- margin-bottom: 8px;
- padding-right: 24px;
- }
- .task-name {
- font-size: 14px;
- font-weight: 600;
- color: var(--bex-text-primary);
- }
- .task-progress-current {
- color: var(--bex-brand);
- }
- .task-info-icon {
- /* position: absolute; */
- /* right: 16px; */
- /* top: 20px; */
- width: 14px;
- height: 14px;
- margin-left: 6px;
- cursor: pointer;
- }
- .task-reward-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .task-reward-row.top {
- margin-bottom: 8px;
- }
- .task-reward-row.bottom {
- margin-top: 8px;
- }
- .task-reward-label {
- font-size: 12px;
- color: #888888;
- }
- .task-reward-value {
- font-size: 12px;
- font-weight: 500;
- color: var(--bex-text-primary);
- }
- .task-reward-value.reward-top {
- font-size: 14px;
- color: var(--bex-brand);
- font-weight: 600;
- }
- .progress-bar {
- height: 4px;
- background-color: var(--bex-progress-bg);
- border-radius: 2px;
- overflow: hidden;
- }
- .progress-bar-fill {
- height: 100%;
- background: var(--bex-brand);
- border-radius: 2px;
- transition: width 0.3s ease;
- }
- .task-action-btn {
- width: 100%;
- height: 32px;
- /* margin-top: 16px; */
- border: none;
- border-radius: 6px;
- background-color: var(--bex-back-icon-color);
- color: var(--bex-page-bg);
- font-size: 13px;
- font-weight: 500;
- cursor: pointer;
- transition: opacity 0.2s ease;
- }
- .task-action-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- .btn-hl {
- color: var(--bex-brand);
- }
- /* 阶梯奖励 */
- .task-card.has-tiers .task-header {
- margin-bottom: 12px;
- }
- .tier-section {
- position: relative;
- margin: 16px 0;
- overflow: hidden;
- }
- .tier-scrollable {
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- }
- .tier-scrollable::-webkit-scrollbar {
- display: none;
- }
- .tier-scroll-inner {
- position: relative;
- min-width: 100%;
- }
- .tier-labels-row {
- position: relative;
- height: 16px;
- margin-bottom: 4px;
- }
- .tier-rewards-row {
- margin-bottom: 6px;
- }
- .tier-conditions-row {
- margin-top: 6px;
- }
- .tier-reward-badge,
- .tier-condition-label {
- position: absolute;
- transform: translateX(-50%);
- font-size: 10px;
- font-weight: 600;
- color: var(--bex-text-primary);
- white-space: nowrap;
- }
- .tier-reward-badge {
- background-color: var(--bex-progress-bg);
- border-radius: 10px;
- padding: 2px 6px;
- line-height: 12px;
- }
- .tier-reward-badge.completed {
- color: var(--bex-brand);
- }
- .tier-condition-label {
- font-weight: 400;
- color: var(--bex-text-primary);
- }
- .tier-progress-bar {
- position: relative;
- height: 4px;
- margin: 8px 0;
- }
- .tier-progress-track {
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background-color: var(--bex-progress-bg);
- border-radius: 2px;
- }
- .tier-progress-fill {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: var(--bex-brand);
- border-radius: 2px;
- transition: width 0.3s ease;
- }
- .tier-dots {
- position: absolute;
- left: 0;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- }
- .tier-dot {
- position: absolute;
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background-color: #343434;
- transform: translate(-50%, -50%);
- }
- body.theme-light .tier-dot {
- background-color: #EBEBEB;
- }
- .tier-dot.completed {
- background-color: var(--bex-brand);
- }
- /* 充值倒计时条 */
- .deposit-countdown-bar {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 6px 12px;
- background-color: #fd6f2333;
- border-radius: 34px;
- /* margin-bottom: 12px; */
- }
- .deposit-countdown-text {
- font-size: 11px;
- color: var(--bex-text-primary);
- }
- /* FAQ */
- .faq-section {
- margin-top: 32px;
- position: relative;
- z-index: 1;
- }
- .section-title {
- font-size: 14px;
- font-weight: 600;
- color: var(--bex-text-primary);
- margin-bottom: 16px;
- }
- .faq-item {
- margin-bottom: 12px;
- }
- .faq-question {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 12px;
- color: #888888;
- cursor: pointer;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--bex-border);
- }
- .faq-answer {
- display: none;
- font-size: 12px;
- color: var(--bex-text-primary);
- line-height: 18px;
- padding-top: 12px;
- }
- .faq-item.open .faq-answer {
- display: block;
- }
- .faq-arrow {
- width: 5px;
- height: 8px;
- transition: transform 0.3s ease;
- }
- .faq-item.open .faq-arrow {
- transform: rotate(90deg);
- }
- /* 空状态 */
- .empty-tip {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 48px 0;
- }
- .empty-icon {
- width: 80px;
- height: 80px;
- margin-bottom: 12px;
- }
- .empty-tip p {
- font-size: 12px;
- color: #888888;
- }
- /* 规则说明 */
- .rules-section {
- position: relative;
- z-index: 1;
- margin-bottom: 8px;
- }
- .rules-header {
- display: flex;
- align-items: center;
- cursor: pointer;
- }
- .rules-title {
- font-size: 14px;
- color: #888888;
- margin-right: 6px;
- }
- .rules-info-icon {
- width: 14px;
- height: 14px;
- }
- .task-copy {
- font-size: 12px;
- color: var(--bex-text-secondary);
- line-height: 18px;
- margin-bottom: 16px;
- }
- /* 加载和错误 */
- .loading-overlay,
- .error-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- background-color: var(--bex-page-bg);
- z-index: 100;
- }
- .loading-overlay{
- opacity: 0.4;
- }
- .loading-spinner {
- width: 32px;
- height: 32px;
- border: 2px solid rgba(255, 255, 255, 0.1);
- border-top-color: var(--bex-brand);
- border-radius: 50%;
- animation: spin 1s linear infinite;
- margin-bottom: 12px;
- }
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
- .loading-text {
- font-size: 12px;
- color: #888888;
- }
- .error-content {
- text-align: center;
- }
- .error-text {
- font-size: 14px;
- color: #ffffff;
- margin-bottom: 24px;
- }
- .error-actions {
- display: flex;
- gap: 12px;
- }
- .error-retry {
- padding: 10px 24px;
- border-radius: 6px;
- border: none;
- background-color: #ffffff;
- color: #121212;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- }
- /* 弹窗 */
- .modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.7);
- display: none;
- align-items: center;
- justify-content: center;
- z-index: 200;
- padding: 0 24px;
- }
- .modal-content {
- background-color: #1a1a1a;
- border-radius: 12px;
- padding: 24px 12px;
- width: 100%;
- max-width: 300px;
- text-align: center;
- }
- .rules-modal {
- max-width: 320px;
- max-height: 70vh;
- overflow-y: auto;
- }
- .rules-modal-body {
- font-size: 12px;
- color: #888888;
- line-height: 18px;
- text-align: left;
- margin-bottom: 20px;
- white-space: pre-wrap;
- }
- .rules-modal-title {
- font-size: 16px;
- font-weight: 600;
- color: var(--bex-text-primary);
- margin-bottom: 16px;
- text-align: center;
- }
- .modal-title {
- font-size: 16px;
- font-weight: 600;
- color: var(--bex-text-primary);
- margin-bottom: 16px;
- }
- .modal-title.left {
- text-align: left;
- }
- .modal-body {
- font-size: 12px;
- color: #888888;
- line-height: 18px;
- margin-bottom: 20px;
- }
- .modal-buttons {
- display: flex;
- gap: 10px;
- }
- .modal-btn {
- flex: 1;
- height: 42px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 500;
- border: 1px solid var(--bex-border);
- background-color: transparent;
- color: #fff;
- cursor: pointer;
- }
- .modal-btn.primary {
- background-color: var(--bex-back-icon-color);
- border-color: var(--bex-card-bg-soft);
- color: #000;
- }
- .modal-btn.full {
- width: 100%;
- }
- .modal-icon {
- width: 44px;
- height: 44px;
- margin: 0 auto 16px;
- display: block;
- }
- .modal-reward-container {
- text-align: center;
- }
- .modal-reward {
- display: inline-flex;
- align-items: baseline;
- font-size: 32px;
- font-weight: 700;
- color: #ffffff;
- margin-bottom: 20px;
- padding: 12px 24px;
- background: #161616;
- border-radius: 6px;
- line-height: 1;
- }
- .modal-reward-value {
- font-size: 32px;
- font-weight: 700;
- color: var(--bex-brand);
- margin-right: 4px;
- }
- .blocked-placeholder {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 48px 32px;
- text-align: center;
- }
- .blocked-placeholder .blocked-icon {
- width: 80px;
- height: 80px;
- margin-bottom: 16px;
- background: url("/images/empty.svg") no-repeat center center;
- background-size: contain;
- opacity: 0.6;
- }
- body.theme-light .blocked-placeholder .blocked-icon {
- background-image: url("/images/empty-light.svg");
- }
- .blocked-placeholder .blocked-title {
- font-size: 16px;
- font-weight: 600;
- color: var(--bex-text-primary);
- margin-bottom: 8px;
- }
- .blocked-placeholder .blocked-tip {
- font-size: 12px;
- color: var(--bex-text-secondary);
- margin-bottom: 24px;
- line-height: 1.5;
- }
- .blocked-placeholder .blocked-action-btn {
- min-width: 160px;
- padding: 10px 20px;
- font-size: 14px;
- font-weight: 500;
- color: var(--bex-page-bg);
- background-color: var(--bex-text-primary);
- border: none;
- border-radius: 8px;
- cursor: pointer;
- }
- body.theme-light .blocked-placeholder .blocked-action-btn {
- color: #fff;
- }
- .deposit-preview-modal {
- position: relative;
- width: 300px;
- padding: 20px 16px 16px;
- background-color: var(--bex-modal-bg);
- border: 1px solid var(--bex-border);
- border-radius: 8px;
- }
- .deposit-preview-loading {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- background-color: var(--bex-modal-bg);
- border-radius: 8px;
- z-index: 10;
- }
- .deposit-preview-modal .modal-title {
- font-size: 14px;
- font-weight: 600;
- color: var(--bex-text-primary);
- margin-bottom: 20px;
- text-align: left;
- }
- .deposit-preview-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 16px;
- }
- .deposit-preview-label {
- font-size: 12px;
- color: var(--bex-text-secondary);
- }
- .deposit-preview-value {
- font-size: 12px;
- font-weight: 500;
- color: var(--bex-text-primary);
- text-align: right;
- }
- .deposit-preview-divider {
- height: 1px;
- background-color: var(--bex-border-soft);
- margin: 4px 0 16px;
- }
- .deposit-preview-tip {
- font-size: 12px;
- color: var(--bex-text-secondary);
- line-height: 18px;
- margin-bottom: 20px;
- text-align: left;
- }
- .task-action-btn.history-detail-btn {
- background-color: #fff;
- color: #000;
- }
- body.theme-light .task-action-btn.history-detail-btn {
- background-color: #000;
- color: #fff;
- }
- body.theme-light .modal-btn {
- color: #000;
- border: 1px solid var(--bex-border);
- }
- body.theme-light .modal-reward {
- background: #f7f7f7;
- color: #2f2f2f;
- }
- body.theme-light .modal-btn.primary {
- color: #fff;
- }
|