/* 双向助力活动页专属样式 */ * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } html, body { background: var(--bex-page-bg-welfare, #0e0e0e); color: var(--bex-text-primary, #ffffff); min-height: 100vh; } body { font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.4; } .container { position: relative; width: 100%; min-height: 100vh; overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom); } /* ===== 遮罩 ===== */ .loading-overlay, .error-overlay, .modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; } .loading-overlay, .error-overlay { background: var(--bex-page-bg-welfare, #0e0e0e); flex-direction: column; gap: 16px; } .loading-spinner { width: 40px; height: 40px; border: 3px solid var(--bex-border, #2c2c2c); border-top-color: var(--bex-brand, #fd6f23); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-text, .error-text { color: var(--bex-text-secondary, #888888); font-size: 14px; } .error-content { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 32px; text-align: center; } .error-actions { display: flex; gap: 12px; } .error-retry { padding: 12px 32px; background: #ffffff; border: none; border-radius: 8px; color: #121212; font-size: 14px; font-weight: 500; cursor: pointer; } .modal-overlay { background: rgba(0, 0, 0, 0.8); align-items: flex-end; padding: 0; } .modal-overlay.centered { align-items: center; padding: 24px; } /* ===== 底部面板 ===== */ .modal-panel { width: 100%; max-height: 80vh; background: var(--bex-page-bg-welfare, #0e0e0e); border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.25s ease-out; } .modal-panel.panel-auto { max-height: none; } .modal-panel.panel-unified { height: 80vh; max-height: 90vh; } .panel-drag-handle { width: 32px; height: 4px; background: #2f2f2f; border-radius: 40px; margin: 8px auto 0; flex-shrink: 0; } .panel-tab-bar { display: flex; align-items: flex-end; padding: 12px 16px 0; border-bottom: 1px solid #282828; position: relative; flex-shrink: 0; } .panel-tab { flex: 1; text-align: center; font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; font-weight: 600; color: var(--bex-text-secondary, #888888); padding-bottom: 12px; cursor: pointer; position: relative; } .panel-tab.active { color: var(--bex-text-primary, #ffffff); } .panel-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 14px; height: 2px; background: var(--bex-brand, #fd6f23); border-radius: 2px; } .panel-tab-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #282828; } .panel-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; } /* ===== 居中弹窗卡片 ===== */ .modal-card { width: 100%; max-width: 300px; background: #0f0f0f; border: 1px solid #191919; border-radius: 8px; padding: 24px 16px 16px; text-align: center; animation: fadeIn 0.2s ease-out; } .modal-card .modal-card-desc { color: var(--bex-text-secondary, #888888); font-size: 13px; margin-bottom: 16px; } .modal-checkmark { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; } .modal-card-title { font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 16px; } .modal-amount-card { display: inline-block; background: #161616; border-radius: 6px; padding: 13px 36px; margin-bottom: 16px; } .modal-amount-text { font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 20px; font-weight: 600; } .modal-amount-text .highlight { color: var(--bex-brand, #fd6f23); } .modal-amount-text .white { color: #ffffff; } .modal-card-btn { width: 100%; height: 42px; background: #ffffff; border: none; border-radius: 8px; font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 500; color: #121212; cursor: pointer; } @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } } /* ===== 主页 ===== */ .main-view { position: relative; z-index: 1; padding: 0 16px 20px; /* min-height: 100vh; */ } .hero-decor { z-index: 0; pointer-events: none; position: absolute; } .hero-decor.bg-round { right: -80px; bottom: 0; width: 280px; height: 280px; opacity: 0.4; } .hero-decor.tokenomics-left { right: -20px; top: 0px; width: 157px; opacity: 0.8; } .hero-decor.coin { left: 50%; transform: translateX(-50%); top: 24px; width: 193px; opacity: 0.9; } .hero-content { position: relative; z-index: 1; padding-top: 252px; } .hero-title { font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 26px; font-weight: 600; line-height: 1.38; color: var(--bex-text-primary, #ffffff); text-align: center; margin-bottom: 24px; } .hero-title .highlight { color: var(--bex-brand, #fd6f23); } .hero-subtitle { display: none; } /* ===== 倒计时 ===== */ .countdown-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 254px; margin: 0 auto 32px; height: 62px; } .countdown-label { font-size: 12px; font-weight: 400; font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; color: var(--bex-text-secondary, #888888); margin-bottom: 10px; } .countdown-row { display: flex; align-items: center; gap: 0; } .countdown-num { display: flex; align-items: center; justify-content: center; padding: 0 10px; height: 40px; background: var(--bex-card-bg-dark, #1f1f1f); border-radius: 6px; font-family: "HarmonyOS Sans", "DIN Alternate", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 17px; font-weight: 700; color: var(--bex-text-primary, #ffffff); text-align: center; line-height: 1; } .countdown-sep { width: 16px; text-align: center; font-size: 14px; color: var(--bex-text-secondary, #888888); } .countdown-unit { font-size: 14px; color: var(--bex-text-secondary, #888888); margin-left: 6px; } /* ===== 双按钮 ===== */ .btn-row { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; padding: 0; } .btn { width: 100%; height: 42px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.2s; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-icon { width: 14px; height: 14px; margin-right: 6px; flex-shrink: 0; } .btn-primary { background: #ffffff; color: #121212; } .btn-primary .highlight { color: var(--bex-brand, #fd6f23); } .btn-outline { background: transparent; color: var(--bex-text-primary, #ffffff); border: 1px solid #292929; } .btn-ghost { background: transparent; color: var(--bex-text-primary, #ffffff); } /* ===== 底部操作行(纵向卡片列表) ===== */ .action-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; } .action-item { width: 100%; height: 52px; background: var(--bex-action-bg, rgba(255, 255, 255, 0.03)); border: 1px solid var(--bex-action-border, #292929); border-radius: 8px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 500; line-height: 14px; font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; color: var(--bex-text-primary, #ffffff); cursor: pointer; position: relative; } .action-item-icon { width: 20px; height: 20px; margin-right: 8px; flex-shrink: 0; } .action-item-arrow { width: 18px; height: 18px; flex-shrink: 0; margin-left: auto; opacity: 0.5; } /* ===== 最近参与 ticker(页面顶部) ===== */ .recent-ticker { width: 100%; height: 36px; background: rgba(255, 255, 255, 0.03); overflow: hidden; display: flex; align-items: center; font-size: 12px; font-weight: 400; color: var(--bex-text-secondary, #888888); position: relative; z-index: 2; flex-shrink: 0; } .ticker-list { display: flex; align-items: center; gap: 32px; padding: 0 12px; white-space: nowrap; animation: ticker-scroll 240s linear infinite; } .ticker-item { display: flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 12px; line-height: 17px; color: var(--bex-text-secondary, #888888); } @keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } .ticker-avatar { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid #d0d0d0; overflow: hidden; position: relative; } .ticker-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(106, 106, 106, 0.49); pointer-events: none; } .ticker-avatar img { width: 100%; height: 100%; object-fit: cover; } .ticker-item .highlight { color: var(--bex-brand, #fd6f23); } /* ===== 邀请列表 ===== */ .invite-stats { display: flex; gap: 8px; margin-bottom: 16px; } .stat-card { flex: 1; background: var(--bex-card-bg-action, rgba(255, 255, 255, 0.05)); border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; } .stat-value { font-family: "HarmonyOS Sans", "DIN Alternate", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 28px; font-weight: 700; color: var(--bex-text-primary, #ffffff); line-height: 1; } .stat-value.brand { color: var(--bex-brand, #fd6f23); } .stat-unit { font-size: 14px; font-weight: 400; color: var(--bex-text-primary, #ffffff); margin-left: 2px; } .stat-unit.brand { color: var(--bex-brand, #fd6f23); } .stat-label { font-size: 12px; font-weight: 400; color: var(--bex-text-secondary, #888888); margin-top: 4px; margin-bottom: 4px; } /* ===== 筛选标签 ===== */ .filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .filter-tabs::-webkit-scrollbar { display: none; } .filter-tab { flex-shrink: 0; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 400; color: var(--bex-text-secondary, #888888); cursor: pointer; border: none; background: transparent; } .filter-tab.active { background: rgba(255, 255, 255, 0.1); color: var(--bex-text-primary, #ffffff); font-weight: 500; } /* ===== 列表项 ===== */ .divider-line { height: 1px; background: #1f1f1f; margin: 0; } .list-item { display: flex; align-items: center; padding: 12px 0; position: relative; } .list-item .list-item-divider { position: absolute; bottom: 0; left: 52px; right: 0; height: 1px; background: #1f1f1f; } .avatar { width: 40px; height: 40px; border-radius: 50%; /* background: var(--bex-border, #1f1f1f); */ border: 1px solid var(--bex-border, #1f1f1f); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--bex-text-primary, #ffffff); overflow: hidden; flex-shrink: 0; margin-right: 12px; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .list-info { flex: 1; min-width: 0; } .list-name { font-size: 14px; font-weight: 500; color: var(--bex-text-primary, #ffffff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; } .list-time { font-size: 12px; font-weight: 400; color: var(--bex-text-secondary, #888888); } .status-tag { flex-shrink: 0; font-size: 14px; font-weight: 500; margin-left: 8px; } .status-valid { color: #23bb6e; } .status-pending { color: var(--bex-brand, #fd6f23); } .status-not-qualified { color: var(--bex-text-secondary, #888888); } /* ===== 奖励记录列表 ===== */ .reward-row { display: flex; align-items: center; padding: 12px 0; position: relative; cursor: pointer; } .reward-row .list-item-divider { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #1f1f1f; } .reward-left { flex: 1; min-width: 0; } .reward-amount-text { font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 500; line-height: 16px; } .reward-amount-text .highlight { color: var(--bex-brand, #fd6f23); } .reward-amount-text .white { color: var(--bex-text-primary, #ffffff); } .reward-date { font-size: 12px; font-weight: 400; color: var(--bex-text-secondary, #888888); margin-top: 4px; } .reward-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; } .reward-status-text { font-size: 14px; font-weight: 500; color: var(--bex-text-secondary, #888888); } .reward-status-text.pending { color: var(--bex-brand, #fd6f23); } .reward-chevron { width: 12px; height: 12px; display: flex; align-items: center; justify-content: center; color: var(--bex-text-secondary, #888888); font-size: 12px; } .empty-state { padding: 56px 16px; text-align: center; color: var(--bex-text-secondary, #888888); font-size: 12px; } .empty-icon { width: 64px; height: 64px; margin: 0 auto 6px; display: block; } .load-more { text-align: center; padding: 16px; color: var(--bex-text-secondary, #888888); font-size: 12px; font-weight: 400; } /* ===== 邀请分享底部弹窗 ===== */ .invite-sheet-body { padding: 12px 16px 32px; } .invite-sheet-title { font-size: 16px; font-weight: 600; color: var(--bex-text-primary, #ffffff); text-align: center; margin-bottom: 20px; font-family: "HarmonyOS Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; } .invite-sheet-card { background: var(--bex-card-bg-dark, #1f1f1f); border-radius: 8px; padding: 12px; margin-bottom: 12px; } .invite-sheet-card-title { font-size: 14px; font-weight: 600; color: var(--bex-text-primary, #ffffff); margin-bottom: 8px; font-family: "HarmonyOS Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif; } .invite-sheet-card-row { display: flex; align-items: end; gap: 8px; } .invite-sheet-plan-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .invite-sheet-card-desc { font-size: 12px; color: var(--bex-text-secondary, #888888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .invite-sheet-link { flex: 1; font-size: 12px; color: var(--bex-text-secondary, #888888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .invite-sheet-link.secondary { color: var(--bex-text-secondary, #686868); } .invite-sheet-copy-btn { flex-shrink: 0; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 4px; } .invite-sheet-copy-btn:active { opacity: 0.6; } /* ===== 规则 ===== */ .rule-content { text-align: left; font-size: 14px; line-height: 1.6; color: var(--bex-text-secondary, #888888); white-space: pre-wrap; max-height: 300px; overflow-y: scroll; overflow-x: hidden; } /* ===== 关联用户弹窗(在统一面板之上) ===== */ .reward-users-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1500; display: flex; flex-direction: column; justify-content: flex-end; } .reward-users-panel { background: var(--bex-panel-bg, #0e0e0e); border-radius: 20px 20px 0 0; max-height: 70vh; height: 60vh; display: flex; flex-direction: column; } .reward-users-panel .panel-drag-handle { width: 32px; height: 4px; background: #2f2f2f; border-radius: 40px; margin: 8px auto 0; } .reward-users-panel .reward-users-title { font-size: 16px; font-weight: 600; font-family: "PingFang SC", sans-serif; text-align: left; padding: 12px 16px 16px; color: var(--bex-text-primary, #ffffff); } .reward-users-panel .reward-users-body { flex: 1; overflow-y: auto; padding: 0 16px 16px; } .reward-users-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; position: relative; } .reward-users-item + .reward-users-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid var(--bex-divider, #1f1f1f); } .reward-users-item .reward-users-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: #7e7e7e; border: 1px solid #d0d0d0; overflow: hidden; position: relative; } .reward-users-item .reward-users-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(106, 106, 106, 0.49); pointer-events: none; } .reward-users-item .reward-users-avatar img { width: 100%; height: 100%; object-fit: cover; } .reward-users-item .reward-users-info { flex: 1; min-width: 0; } .reward-users-item .reward-users-name { font-size: 14px; font-weight: 500; line-height: 16px; color: var(--bex-text-primary, #ffffff); margin-bottom: 4px; } .reward-users-item .reward-users-time { font-size: 12px; color: var(--bex-text-secondary, #888888); } /* 浅色主题 */ html.theme-light .reward-users-overlay { background: rgba(0, 0, 0, 0.3); } html.theme-light .reward-users-panel { background: #ffffff; } html.theme-light .reward-users-panel .panel-drag-handle { background: #d0d0d0; } html.theme-light .reward-users-panel .reward-users-title { color: #0e0e0e; } html.theme-light .reward-users-item .reward-users-name { color: #0e0e0e; } html.theme-light .reward-users-item + .reward-users-item::before { border-color: #e5e5e5; } /* ===== Toast ===== */ .toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.85); color: #ffffff; padding: 10px 20px; border-radius: 20px; font-size: 14px; z-index: 2000; opacity: 0; transition: opacity 0.3s; pointer-events: none; } .toast.show { opacity: 1; } /* ===== 浅色主题 ===== */ /* 页面背景 */ html.theme-light .container { background: #ffffff; } /* 面板背景 */ html.theme-light .modal-panel { background: #ffffff; } html.theme-light .panel-drag-handle { background: #e6e6e6; } /* 主按钮:深色底白字 */ html.theme-light .btn-primary { background: #121212; color: #ffffff; } /* 描边按钮:浅灰边框深色字 */ html.theme-light .btn-outline { border-color: #e8e8e8; color: #121212; } /* 错误重试按钮 */ html.theme-light .error-retry { background: #121212; color: #ffffff; } /* ===== 居中弹窗卡片 ===== */ html.theme-light .modal-card { background: #ffffff; border-color: #e8e8e8; } html.theme-light .modal-card-title, html.theme-light .modal-amount-text .white { color: #121212; } html.theme-light .modal-amount-card { background: #f3f3f3; } html.theme-light .modal-card-btn { background: #121212; color: #ffffff; } html.theme-light .modal-card-desc { color: #888888; } /* ===== 操作区(纵向卡片列表) ===== */ html.theme-light .action-item { background: #ffffff; border-color: #e8e8e8; } html.theme-light .action-item:hover { background: #f5f5f5; } /* ===== 统一面板 Tab ===== */ html.theme-light .panel-tab-bar { border-bottom-color: #efefef; } html.theme-light .panel-tab { color: #888888; } html.theme-light .panel-tab.active { color: #121212; } html.theme-light .panel-tab.active::after { background: #fd6f23; } /* ===== 邀请列表 ===== */ html.theme-light .stat-card { background: #ffffff; border: 1px solid #e8e8e8; } html.theme-light .stat-label { color: #888888; } html.theme-light .stat-value { color: #121212; } html.theme-light .stat-value.brand { color: #fd6f23; } html.theme-light .stat-unit, html.theme-light .stat-unit.brand { color: #888888; } /* 筛选标签 */ html.theme-light .filter-tab { color: #888888; } html.theme-light .filter-tab.active { background: rgba(18, 18, 18, 0.06); color: #121212; } /* 列表项 */ html.theme-light .list-item-avatar { background: #7e7e7e; border-color: #d0d0d0; } html.theme-light .list-item-name { color: #121212; } html.theme-light .list-item-time { color: #888888; } html.theme-light .list-item-divider { background: #efefef; } /* 状态标签 */ html.theme-light .status-valid { color: #1a9c5a; } html.theme-light .status-pending { color: #d45a1a; } html.theme-light .status-claimed { color: #888888; } /* ===== 奖励记录 ===== */ html.theme-light .reward-amount-text .white { color: #121212; } html.theme-light .reward-date { color: #888888; } html.theme-light .reward-status-text { color: #888888; } html.theme-light .reward-status-text.pending { color: #fd6f23; } /* ===== 邀请分享弹窗 ===== */ html.theme-light .invite-sheet-title { color: #121212; } html.theme-light .invite-sheet-card { background: #f3f3f3; } html.theme-light .invite-sheet-card-title { color: #121212; } html.theme-light .invite-sheet-card-desc { color: #888888; } html.theme-light .invite-sheet-link { color: #888888; } html.theme-light .invite-sheet-link.secondary { color: #888888; } html.theme-light .invite-sheet-copy-btn svg path { stroke: #121212; } /* ===== 分割线 ===== */ html.theme-light .divider-line, html.theme-light .list-item-divider { background: #efefef; } /* ===== Ticker ===== */ html.theme-light .recent-ticker { background: rgba(0, 0, 0, 0.03); } html.theme-light .ticker-avatar { border-color: #d0d0d0; } html.theme-light .ticker-item { color: #888888; }