/* 2026-11-08 前端字体颜色 × 主题配色适配（覆盖旧版硬编码灰度/白字） */
.txbc-home{
  --var-card-primary: var(--color-text-primary,#333) !important;
  --btmnav_def: color-mix(in srgb, var(--color-text-secondary,#8f95a3) 55%, var(--color-text-primary,#333)) !important;
  --gs-400: color-mix(in srgb, var(--color-text-secondary,#8f95a3) 82%, var(--color-text-primary,#333)) !important;
}
/* 搜索框文字/占位：原使用边框色，浅色主题下几乎不可见 */
.txbc-home .search-bar,
.txbc-home .search-bar .search-placeholder{color:color-mix(in srgb, var(--color-text-secondary,#8f95a3) 55%, var(--color-text-primary,#333)) !important}
/* 排行榜页签的叠加文字：原固定白色，浅色主题下与页签文字重叠发虚 */
.txbc-home .rank-tabs .tab .absolute{color:inherit !important}
/* 公告条文字与下载按钮 */
.txbc-home .slogan-bar{color:var(--color-text-primary,#333) !important}
.txbc-home .slogan-bar .slogan-text{color:var(--color-text-primary,#333) !important}
.txbc-home .slogan-bar .slogan-btn{color:#fff !important;background:color-mix(in srgb,var(--color-primary,#e13739) 52%,#000) !important}
.txbc-home .slogan-bar .slogan-btn .light{color:#fff !important}
/* “全部”按钮红底固定白字，避免深色主题下文字变黑 */
.txbc-home .section-all-btn{color:#fff !important}
/* 刷新按钮 */
.txbc-home .rank-tabs .refresh{background:color-mix(in srgb,#e52f31 84%,#000) !important;color:#fff !important}
/* 排行榜表头（排名/玩家/赠送金额） */
.txbc-home .rank-card .rank-header{color:color-mix(in srgb, var(--color-text-secondary,#8f95a3) 55%, var(--color-text-primary,#333)) !important}
/* 奖池：深色主题下浅金色数字落在白底上不可读 */
html[data-mobile-theme="black"] .txbc-home .jackpot-card .jackpot-amount,
html[data-mobile-theme="imperialGold"] .txbc-home .jackpot-card .jackpot-amount{background:var(--color-bg-raised,#2a2a2a) !important}
/* 浅色主题：奖池数字、激活导航用加深后的主色，保证在白底上清晰 */
html[data-mobile-theme="champagne"] .txbc-home .jackpot-card .jackpot-number,
html[data-mobile-theme="blue"] .txbc-home .jackpot-card .jackpot-number,
html[data-mobile-theme="purple"] .txbc-home .jackpot-card .jackpot-number,
html[data-mobile-theme="sakura"] .txbc-home .jackpot-card .jackpot-number,
html[data-mobile-theme="glacier"] .txbc-home .jackpot-card .jackpot-number,
html[data-mobile-theme="txbc"] .txbc-home .jackpot-card .jackpot-number,
html[data-mobile-theme="champagne"] .txbc-home .jackpot-card .jackpot-currency,
html[data-mobile-theme="blue"] .txbc-home .jackpot-card .jackpot-currency,
html[data-mobile-theme="purple"] .txbc-home .jackpot-card .jackpot-currency,
html[data-mobile-theme="sakura"] .txbc-home .jackpot-card .jackpot-currency,
html[data-mobile-theme="glacier"] .txbc-home .jackpot-card .jackpot-currency,
html[data-mobile-theme="txbc"] .txbc-home .jackpot-card .jackpot-currency{color:color-mix(in srgb, var(--color-primary,#e13739) 55%, #000) !important}
html[data-mobile-theme="champagne"] .txbc-home .bottom-nav-item.active .bottom-nav-label,
html[data-mobile-theme="blue"] .txbc-home .bottom-nav-item.active .bottom-nav-label,
html[data-mobile-theme="purple"] .txbc-home .bottom-nav-item.active .bottom-nav-label,
html[data-mobile-theme="sakura"] .txbc-home .bottom-nav-item.active .bottom-nav-label,
html[data-mobile-theme="glacier"] .txbc-home .bottom-nav-item.active .bottom-nav-label,
html[data-mobile-theme="txbc"] .txbc-home .bottom-nav-item.active .bottom-nav-label{color:color-mix(in srgb, var(--color-primary,#e13739) 55%, #000) !important}
/* 浅色主题下排行榜数值/加载更多改用主文字色，保证对比清晰 */
html[data-mobile-theme="champagne"] .txbc-home .rank-value,
html[data-mobile-theme="blue"] .txbc-home .rank-value,
html[data-mobile-theme="purple"] .txbc-home .rank-value,
html[data-mobile-theme="sakura"] .txbc-home .rank-value,
html[data-mobile-theme="glacier"] .txbc-home .rank-value,
html[data-mobile-theme="txbc"] .txbc-home .rank-value,
html[data-mobile-theme="champagne"] .txbc-home .rank-more,
html[data-mobile-theme="blue"] .txbc-home .rank-more,
html[data-mobile-theme="purple"] .txbc-home .rank-more,
html[data-mobile-theme="sakura"] .txbc-home .rank-more,
html[data-mobile-theme="glacier"] .txbc-home .rank-more,
html[data-mobile-theme="txbc"] .txbc-home .rank-more{color:var(--color-text-primary,#333) !important}
/* 深色主题（翡翠绿/中国红）：排行数值与激活导航改用主文字色 */
html[data-mobile-theme="green"] .txbc-home .rank-value,
html[data-mobile-theme="chinaRed"] .txbc-home .rank-value,
html[data-mobile-theme="green"] .txbc-home .rank-more,
html[data-mobile-theme="chinaRed"] .txbc-home .rank-more,
html[data-mobile-theme="green"] .txbc-home .rank-user,
html[data-mobile-theme="chinaRed"] .txbc-home .rank-user,
html[data-mobile-theme="green"] .txbc-home .bottom-nav-item.active .bottom-nav-label,
html[data-mobile-theme="chinaRed"] .txbc-home .bottom-nav-item.active .bottom-nav-label{color:var(--color-text-primary,#fff) !important}
/* 翡翠绿主题排行条纹过亮，改用卡片底色保证白字清晰 */
html[data-mobile-theme="green"] .txbc-home .rank-item{background:var(--color-bg-card,#00866d) !important}
/* 底部导航未激活项 */
.txbc-home .bottom-nav-item:not(.active) .bottom-nav-label{color:var(--btmnav_def) !important}
/* 浅色主题：二级文字整体加深，保证白底上清晰可读 */
html:is([data-mobile-theme="champagne"],[data-mobile-theme="blue"],[data-mobile-theme="purple"],[data-mobile-theme="sakura"],[data-mobile-theme="glacier"],[data-mobile-theme="txbc"]){--color-text-secondary:#5f6470 !important}
/* 次要说明文字（原 --gs-300 边框色） */
.txbc-home .jackpot-card .jackpot-desc,
.txbc-home .marquee-wrap .marquee-end{color:var(--color-text-secondary,#8f95a3) !important}
/* 顶部登录/注册按钮：字体由12px放大至14px，修复失效变量（--ru/--Component-button-primary 未定义）导致的透明背景与无边框 */
.txbc-home .navbar-login,
.txbc-home .navbar-register{font-size:14px !important;height:30px !important;min-width:64px !important;padding:0 10px !important;box-sizing:border-box !important;font-weight:600 !important}
.txbc-home .navbar-login{color:var(--color-text-primary,#333) !important;border:1px solid color-mix(in srgb, var(--color-text-primary,#333) 40%, transparent) !important;background:transparent !important}
.txbc-home .navbar-register{background:var(--color-primary,#e13739) !important;color:#fff !important;border:none !important}
/* 浅金主色主题（曜石黑金/香槟金/黑金）：注册按钮主色偏浅，改用深色文字保证对比 */
html[data-mobile-theme="black"] .txbc-home .navbar-register,
html[data-mobile-theme="champagne"] .txbc-home .navbar-register,
html[data-mobile-theme="imperialGold"] .txbc-home .navbar-register{color:#1c1c1e !important}
