/* 惠爱公益 · 会员登录 / 会员状态 通用样式
   自包含：使用固定品牌色，不依赖各页面自身的 CSS 变量，保证 cross-page 一致。 */

.bf-link { text-decoration: none; color: inherit; }
.bf-link:hover { text-decoration: none; }

/* 会员状态 / 登录按钮（由 auth.js 渲染进 #bfAuthSlot） */
.bf-btn { border: none; cursor: pointer; border-radius: 22px; font-size: 14px; padding: 9px 18px; font-family: inherit; font-weight: 500; line-height: 1; transition: all .2s; white-space: nowrap; }
.bf-btn-ghost { background: #fff; color: #E76F51; border: 1px solid #E76F51; }
.bf-btn-ghost:hover { background: #FBEDE8; }
.bf-btn-primary { background: #E76F51; color: #fff; }
.bf-btn-primary:hover { background: #C25540; }

/* 已登录：会员名 chip（可点击进入个人中心） */
.bf-member-chip { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; color: #2C3E3E; padding: 6px 12px; border-radius: 10px; background: #FBEDE8; border: 1px solid transparent; transition: all .15s; }
.bf-member-chip:hover { background: #F6DED5; border-color: #E76F51; }

/* 登录 / 注册弹窗 */
.bf-auth-mask { position: fixed; inset: 0; background: rgba(31,35,41,.5); z-index: 1000; display: none; }
.bf-auth-mask.show { display: block; }
.bf-auth-box { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.96); width: 380px; max-width: 92vw; background: #fff; border-radius: 18px; padding: 28px 26px 22px; box-shadow: 0 24px 60px rgba(43,42,40,.28); z-index: 1001; display: none; }
.bf-auth-box.show { display: block; animation: bfAuthIn .18s ease forwards; }
@keyframes bfAuthIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.96); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.bf-auth-close { position: absolute; right: 14px; top: 8px; border: 0; background: none; font-size: 26px; line-height: 1; color: #9CA3AF; cursor: pointer; }
.bf-auth-close:hover { color: #2C3E3E; }
.bf-auth-tabs { display: flex; gap: 18px; margin-bottom: 6px; }
.bf-auth-tab { font-size: 17px; font-weight: 700; color: #9CA3AF; cursor: pointer; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.bf-auth-tab.active { color: #C25540; border-bottom-color: #E76F51; }
.bf-auth-title { font-size: 14px; color: #9CA3AF; margin: 4px 0 16px; }
.bf-auth-form { display: flex; flex-direction: column; gap: 14px; }
.bf-auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #9CA3AF; text-align: left; }
.bf-auth-field input { height: 42px; border: 1px solid rgba(44,62,62,.15); border-radius: 10px; padding: 0 12px; font-size: 15px; color: #2C3E3E; outline: none; background: #fff; }
.bf-auth-field input:focus { border-color: #E76F51; }
.bf-auth-agree { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9CA3AF; text-align: left; }
.bf-auth-submit { height: 44px; font-size: 15px; margin-top: 2px; width: 100%; }
.bf-auth-msg { font-size: 13px; color: #c62828; min-height: 16px; text-align: left; }
.bf-auth-tip { font-size: 11.5px; color: #9CA3AF; line-height: 1.6; margin-top: 4px; text-align: left; }

/* 轻量 toast */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; z-index: 2000; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; }
