/* 邀请活动入口页专属样式 */ * { 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); } .main-view { position: relative; z-index: 1; padding: 12px 16px 90px; max-width: 410px; margin: 0 auto; } /* ===== 遮罩 ===== */ .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; } .panel-drag-handle { width: 32px; height: 4px; background: #2f2f2f; border-radius: 40px; margin: 8px auto 0; flex-shrink: 0; } @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); } } /* ===== Hero 卡片 ===== */ .hero-card { position: relative; width: 100%; border-radius: 8px; padding: 1px; margin-bottom: 40px; } .hero-card-inner { position: relative; width: 100%; border-radius: 7px; background: rgba(255, 255, 255, 0.02); border: 2px solid #fd7723; padding: 24px 16px 0; padding-bottom: 20px; } .hero-bg { position: absolute; right: 0; top: 0; width: 292px; height: 194px; opacity: 1; border-radius: 0 0 50% 50%; pointer-events: none; background: url("/images/unblock-bg-round1.png") no-repeat center center; background-size: cover; } .hero-title { position: relative; z-index: 1; font-size: 15px; font-weight: 500; color: var(--bex-text-primary, #ffffff); text-align: center; margin-bottom: 4px; line-height: 21px; } .hero-subtitle { position: relative; z-index: 1; font-size: 28px; font-weight: 600; color: #fd8523; text-align: center; margin-bottom: 16px; line-height: 39px; } .hero-rights { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; } .hero-rights-line { width: 88px; height: 2px; border-radius: 1px; background: linear-gradient( 90deg, rgba(253, 111, 35, 1), rgba(253, 111, 35, 0.144) ); } .hero-rights-line.left { transform: scaleX(-1); } .hero-rights-text { font-size: 15px; font-weight: 500; line-height: 22px; color: #fd8523; } .hero-stats { position: relative; z-index: 1; display: flex; justify-content: space-around; padding: 0 40px; margin-bottom: 18px; } .hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; } .hero-stat-value { font-family: "HarmonyOS Sans", "DIN Alternate", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 26px; font-weight: 500; color: #fd8523; line-height: 22px; } .hero-stat-unit { font-size: 12px; font-weight: 500; color: #fd8523; margin-left: 2px; line-height: 17px; } .hero-stat-label { font-size: 11px; color: var(--bex-text-secondary, #888888); line-height: 15px; } .hero-activate-btn { position: absolute; z-index: 10; bottom: -6px; left: 50%; transform: translateX(-50%); width: 90%; height: 42px; border: none; border-radius: 8px; background: linear-gradient( 90deg, rgba(253, 111, 35, 1) 0%, rgba(253, 148, 35, 1) 100% ); color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 4px; margin-bottom: -16px; } .hero-activate-btn:disabled { background: linear-gradient( 90deg, rgb(212, 212, 212) 0%, rgb(204, 204, 204) 100% ); color: #000; cursor: default; } /* ===== 收益估算区 ===== */ .commission-section { position: relative; width: 100%; height: 80px; margin-bottom: 16px; display: flex; align-items: center; background-image: url(/images/group-470833-bg.png); background-position: center center; background-repeat: no-repeat; background-size: 100% 80px; } .commission-section .info { font-size: 10px; } .commission-tag-label { font-size: 10px; position: absolute; font-style: normal; left: 0; top: 6px; background: #393939; width: 108px; height: 21px; border-radius: 8px 0 8px 0; text-align: center; line-height: 21px; color: #121212; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .commission-right .commission-tag-label { right: 0; left: auto; top: 0; border-radius: 0 8px 0 8px; background: linear-gradient(90deg, #fd6f23 0%, #fd9423 100%); } .commission-left, .commission-right { display: flex; flex-direction: column; justify-content: space-around; padding-top: 28px; padding-bottom: 10px; align-items: center; } .commission-left .info { color: #888; } .commission-left .meny { font-size: 12px; font-weight: 500; color: #fff; } .commission-left { position: relative; left: 0; top: 0; width: 40%; height: 100%; } .commission-right .info { color: #fd8523; } .commission-right .meny { font-size: 18px; font-weight: 500; color: #fd8523; } .commission-right { position: relative; right: 0; top: 0; width: 60%; height: 100%; } /* ===== 好友交易量滑块 ===== */ .volume-section { width: 100%; margin-bottom: 30px; } .volume-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .volume-title { font-size: 11px; width: 70px; color: var(--bex-text-secondary, #888888); margin-right: 8px; } .volume-tx { font-size: 11px; } .volume-slider-wrap { display: flex; align-items: center; width: 100%; height: 24px; } .volume-box { position: relative; flex: 1; margin: 0 16px; height: 24px; cursor: pointer; display: flex; align-items: center; } .volume-track { width: 100%; height: 4px; border-radius: 2px; background: #2b2b2b; position: relative; overflow: hidden; } .volume-progress { position: absolute; top: 0; left: 0; height: 4px; border-radius: 2px; background: linear-gradient( 90deg, rgba(253, 111, 35, 1) 0%, rgba(253, 159, 35, 1) 100% ); width: 0; } .volume-thumb-box { position: absolute; top: 50%; left: 0; width: 24px; height: 14px; margin-top: -7px; margin-left: -12px; z-index: 2; border-radius: 4px; cursor: pointer; } .volume-thumb-box::before { content: ""; position: absolute; inset: -2px; border-radius: 6px; background: rgba(253, 111, 35, 0.45); filter: blur(4px); z-index: -1; } .volume-thumb { display: block; width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(180deg, rgba(253, 111, 35, 0.5) 0%, #967563 100%); border: 1px solid #e7e7e7; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); } .volume-current { position: absolute; top: 22px; left: 0; font-size: 11px; font-weight: 500; color: #fd6f23; transform: translateX(-50%); white-space: nowrap; } /* ===== 邀请活动列表 ===== */ .activity-list-section { width: 100%; margin-bottom: 16px; } .activity-list-title { font-size: 19px; font-weight: 600; color: var(--bex-text-primary, #ffffff); margin-bottom: 18px; } .activity-card { position: relative; width: 100%; border-radius: 8px; margin-bottom: 16px; overflow: hidden; min-height: 179px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 8px; background: rgba(255, 255, 255, 0.03); } .activity-card-bg { position: absolute; left: 0; top: 0; width: 141px; height: 153px; background: url(/images/unblock-bg-left-round.png) no-repeat left center; background-size: contain; border-radius: 0 0 100% 0; pointer-events: none; } .activity-card-image { position: absolute; right: 24px; top: 28px; width: 76px; height: 82px; border-radius: 8px; background-image: url(/images/unblock-right.png); background-size: cover; background-position: center center; background-repeat: no-repeat; pointer-events: none; overflow: hidden; } .activity-card-title { position: relative; z-index: 1; font-size: 17px; font-weight: 600; color: var(--bex-text-primary, #ffffff); line-height: 24px; max-width: 174px; flex: 1; display: flex; align-items: center; margin: 0 24px; } .activity-card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 24px; background: #ffffff08; /* background-color: #FFFFFF08; */ /* margin-top: auto; */ } .activity-countdown { display: flex; align-items: center; gap: 4px; } .activity-countdown-label, .activity-countdown-unit { font-size: 10px; font-weight: 600; color: var(--bex-text-secondary, #888888); line-height: 14px; } .activity-countdown-days, .activity-countdown-time { font-family: "HarmonyOS Sans", "DIN Alternate", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; font-weight: 700; color: var(--bex-text-primary, #ffffff); line-height: 1; } .activity-btn { height: 24px; padding: 0 12px; border: none; border-radius: 6px; background: var(--bex-text-primary, #ffffff); color: #121212; font-size: 11px; font-weight: 500; cursor: pointer; display: flex; align-items: center; line-height: 1; gap: 4px; } .activity-btn:disabled { opacity: 0.5; cursor: not-allowed; } .activity-empty { padding: 48px 16px; text-align: center; color: var(--bex-text-secondary, #888888); font-size: 12px; } /* ===== 底部邀请链接区 ===== */ .invite-link-section { display: flex; align-items: center; gap: 10px; border-top: 1px solid #171717; position: fixed; bottom: -2px; width: 100%; left: 0; z-index: 100; padding: 4px 16px 26px; background: #0e0e0e; height: 80px; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); } .invite-link-section.visible { transform: translateY(0); } .invite-link-card { flex: 1; display: flex; align-items: center; justify-content: space-between; background: #161616; border-radius: 8px; padding: 10px 12px; } .invite-link-info { flex: 1; min-width: 0; display: flex; align-items: center; } .invite-link-label { font-size: 14px; font-weight: 500; color: var(--bex-text-primary, #ffffff); min-width: 80px; } .invite-link-url { max-width: 158px; font-size: 12px; color: var(--bex-text-secondary, #888888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .invite-link-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .invite-link-copy-btn, .invite-link-share-btn { /* width: 42px; */ /* height: 42px; */ cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; } .invite-link-share-btn { background: #161616; border-radius: 8px; padding: 12px; } .invite-link-copy-btn svg, .invite-link-share-btn svg { width: 18px; height: 18px; } /* ===== 激活弹窗 ===== */ .activate-modal { width: 100%; max-width: 300px; background: #0f0f0f; border: 1px solid #191919; border-radius: 8px; padding: 20px 16px 16px; animation: fadeIn 0.2s ease-out; } .activate-modal-title { font-size: 14px; font-weight: 600; color: var(--bex-text-primary, #ffffff); margin-bottom: 20px; } .activate-modal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; cursor: pointer; } .activate-modal-row-text { font-size: 14px; font-weight: 500; color: var(--bex-text-primary, #ffffff); } .activate-modal-row-action { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--bex-brand, #fd6f23); } .activate-modal-btn { width: 100%; height: 42px; border: none; border-radius: 8px; background: linear-gradient( 90deg, rgba(253, 111, 35, 1) 0%, rgba(253, 148, 35, 1) 100% ); color: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 12px; } .activate-modal-note { font-size: 9px; line-height: 1.5; color: var(--bex-text-secondary, #888888); } /* ===== 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 .commission-section { background-image: url(/images/group-470833-bg-light.png); } html.theme-light .hero-card-inner { background: rgba(255, 255, 255, 0.6); } html.theme-light .hero-bg { opacity: 0.8; } html.theme-light .activity-card-footer { background-color: transparent; border-top: #e8e8e8 1px solid; } html.theme-light .hero-title { color: #121212; } html.theme-light .hero-subtitle { color: #fd8523; } html.theme-light .hero-rights-text { color: #fd8523; } html.theme-light .hero-stat-value, html.theme-light .hero-stat-unit { color: #fd8523; } html.theme-light .hero-activate-btn { color: #ffffff; } html.theme-light .hero-stat-label, html.theme-light .volume-title, html.theme-light .volume-minmax, html.theme-light .commission-label { color: #888888; } html.theme-light .commission-status-card.inactive { background: #f3f3f3; } html.theme-light .commission-status-card.inactive .commission-status-tag { background: #e8e8e8; color: #121212; } html.theme-light .commission-status-card.active { background: linear-gradient( 180deg, rgba(255, 245, 235, 1) 0%, rgba(255, 235, 220, 1) 100% ); } html.theme-light .commission-left .meny { color: #121212; } html.theme-light .volume-track { background: #e7e7e7; } html.theme-light .commission-left .commission-tag-label { background: #e4cfbe; } html.theme-light .commission-right .meny, html.theme-light .commission-right .info { color: #93471e; } html.theme-light .commission-right .commission-tag-label { background: linear-gradient(90deg, #ff965f 0%, #ffb36c 100%); } html.theme-light .commission-watermark span { color: rgba(18, 18, 18, 0.03); } html.theme-light .activity-card { background: #ffffff08; border: 1px solid #e8e8e8; } html.theme-light .activity-list-title, html.theme-light .activity-card-title, html.theme-light .activity-countdown-days, html.theme-light .activity-countdown-time { color: #121212; } html.theme-light .activity-btn { background: #121212; color: #ffffff; } html.theme-light .invite-link-section { border-top-color: #efefef; background: #ffffff; } html.theme-light .invite-link-card, html.theme-light .invite-link-share-btn { background: #f3f3f3; } html.theme-light .invite-link-label { color: #121212; } html.theme-light .invite-link-url { color: #888888; } html.theme-light .activate-modal { background: #ffffff; border-color: #e8e8e8; } html.theme-light .activate-modal-title, html.theme-light .activate-modal-row-text { color: #121212; } html.theme-light .error-retry { background: #121212; color: #ffffff; } html.theme-light .loading-overlay, html.theme-light .error-overlay { background: #ffffff; } html.theme-light .modal-panel { background: #ffffff; } html.theme-light .activate-modal-btn { color: #121212; } html.theme-light .panel-drag-handle { background: #e6e6e6; }