/* 活动中心页面专属样式 */ * { 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); } /* ===== 导航栏 ===== */ .activity-navbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: center; height: 44px; background: var(--bex-page-bg-welfare, #0e0e0e); padding: 0 16px; } .activity-navbar-back { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: none; border: none; color: var(--bex-text-primary, #ffffff); cursor: pointer; padding: 0; } .activity-navbar-title { font-size: 16px; font-weight: 600; line-height: 22px; color: var(--bex-text-primary, #ffffff); } /* ===== 主内容区 ===== */ .main-view { position: relative; z-index: 1; padding: 10px 16px 24px; } /* ===== 头部区域 ===== */ .ac-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 0 40px; } .ac-header-texts { display: flex; flex-direction: column; gap: 12px; } .ac-header-title { font-size: 26px; font-weight: 600; line-height: 26px; color: var(--bex-text-primary, #ffffff); } .ac-header-subtitle { font-size: 12px; font-weight: 400; line-height: 12px; color: var(--bex-text-secondary, #888888); } .ac-header-decor { position: absolute; right: -10px; top: 0; width: 110px; height: 101px; background: url(/images/image-230.png) center center / contain no-repeat; pointer-events: none; } /* ===== Tab 切换栏 ===== */ .ac-tabs { position: relative; width: 100%; height: 30px; margin-bottom: 24px; } .ac-tabs-inner { display: flex; align-items: center; gap: 20px; height: 28px; } .ac-tab { position: relative; font-size: 16px; font-weight: 600; color: var(--bex-text-secondary, #888888); cursor: pointer; padding-bottom: 6px; user-select: none; } .ac-tab.active { color: var(--bex-text-primary, #ffffff); } .ac-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 14px; height: 2px; border-radius: 1px; background: var(--bex-brand, #fd6f23); } .ac-tabs-line { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #282828; } /* ===== 活动卡片列表 ===== */ .ac-card-list { width: 100%; } .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; 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-title-text { height: 72px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .activity-card-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 24px; background: rgba(255, 255, 255, 0.03); } .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-ended-info { font-size: 12px; font-weight: 500; color: var(--bex-text-secondary, #888888); line-height: 16px; } .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; } .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; } /* ===== 空状态 ===== */ .ac-empty { padding: 48px 16px; text-align: center; color: var(--bex-text-secondary, #888888); font-size: 12px; } /* ===== 遮罩 ===== */ .loading-overlay, .error-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; } /* ===== Toast ===== */ .toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.85); color: #ffffff; font-size: 13px; padding: 10px 24px; border-radius: 8px; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; white-space: nowrap; } .toast.show { opacity: 1; } /* 日间主题 */ html .theme-light .ac-tabs-line { background-color: #efefef; } html .theme-light .activity-card { background-color: #ffffff08; border-color: #e8e8e8; border-width: 1px; border-style: solid; } html .theme-light .activity-card-footer { border-top: 1px solid #e8e8e8; } html .theme-light .activity-btn { color: #fff; }