/* 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; }