/* 抽奖相关页：把 Bootstrap 默认蓝（primary/info）统一映射为绿系 */
.lottery-brand-scope .alert-info,
.lottery-brand-scope .alert-primary {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
    border-color: #a3cfbb !important;
}

.lottery-brand-scope .alert-info .alert-link,
.lottery-brand-scope .alert-primary .alert-link {
    color: #0a3622 !important;
}

.lottery-brand-scope .alert-info .btn-close,
.lottery-brand-scope .alert-primary .btn-close {
    filter: none;
}

.lottery-brand-scope .btn-info,
.lottery-brand-scope .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #13653f;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #198754;
    --bs-btn-disabled-border-color: #198754;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.lottery-brand-scope .btn-outline-info,
.lottery-brand-scope .btn-outline-primary {
    --bs-btn-color: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #198754;
    --bs-btn-hover-border-color: #198754;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #157347;
    --bs-btn-active-border-color: #157347;
    color: #198754 !important;
    -webkit-text-fill-color: #198754 !important;
    border-color: #198754 !important;
    background-color: transparent !important;
}

.lottery-brand-scope .btn-outline-info:hover,
.lottery-brand-scope .btn-outline-primary:hover,
.lottery-brand-scope .btn-outline-info:focus,
.lottery-brand-scope .btn-outline-primary:focus,
.lottery-brand-scope .btn-outline-info:active,
.lottery-brand-scope .btn-outline-primary:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.lottery-brand-scope .text-info,
.lottery-brand-scope .text-primary,
.lottery-brand-scope .link-info,
.lottery-brand-scope .link-primary {
    color: #198754 !important;
    -webkit-text-fill-color: #198754 !important;
}

.lottery-brand-scope .bg-info,
.lottery-brand-scope .bg-primary {
    background-color: #198754 !important;
}

.lottery-brand-scope .badge.bg-info,
.lottery-brand-scope .badge.bg-primary,
.lottery-brand-scope .badge.text-bg-info,
.lottery-brand-scope .badge.text-bg-primary {
    background-color: #198754 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.lottery-brand-scope .border-info,
.lottery-brand-scope .border-primary {
    border-color: #a3cfbb !important;
}

/*
 * 绿底实心控件强制白字（含嵌在整卡 <a> 内的 span.btn / badge）
 * 对抗：全站 a 绿链、本页 a 绿字 inherit、-webkit-text-fill-color 继承
 */
.lottery-brand-scope .btn-success,
.lottery-brand-scope a.btn-success,
.lottery-brand-scope a .btn-success,
.lottery-brand-scope span.btn-success,
.lottery-brand-scope .btn-success:link,
.lottery-brand-scope .btn-success:visited,
.lottery-brand-scope .btn-success:hover,
.lottery-brand-scope .btn-success:focus,
.lottery-brand-scope .btn-success:active,
.lottery-brand-scope a .btn-success:hover,
.lottery-brand-scope .badge.bg-success,
.lottery-brand-scope a .badge.bg-success,
.lottery-brand-scope .badge.text-bg-success,
.lottery-brand-scope a .badge.text-bg-success,
.lottery-brand-scope .lottery-action-btn,
.lottery-brand-scope a .lottery-action-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.lottery-brand-scope .btn-success i,
.lottery-brand-scope a .btn-success i,
.lottery-brand-scope .badge.bg-success i,
.lottery-brand-scope a .badge.bg-success i,
.lottery-brand-scope .lottery-action-btn i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 正文内裸链接（排除按钮 / 导航 / 整卡可点区域）统一绿 */
.lottery-brand-scope a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand):not(.lottery-card) {
    color: #198754 !important;
    -webkit-text-fill-color: #198754 !important;
}

.lottery-brand-scope a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand):not(.lottery-card):hover {
    color: #157347 !important;
    -webkit-text-fill-color: #157347 !important;
}

/* 整卡链接：保持深色正文，勿把绿字 fill 灌进内部绿底控件 */
.lottery-brand-scope a.lottery-card,
.lottery-brand-scope a.lottery-card:link,
.lottery-brand-scope a.lottery-card:visited,
.lottery-brand-scope a.lottery-card:hover,
.lottery-brand-scope a.lottery-card:focus,
.lottery-brand-scope a.lottery-card:active {
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
}
