/* 惠爱公益 · 会员登录 / 会员状态 通用样式
   自包含：使用固定品牌色，不依赖各页面自身的 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: #D9261A; border: 1px solid #D9261A; }
.bf-btn-ghost:hover { background: #FBEDE8; }
.bf-btn-primary { background: #D9261A; color: #fff; }
.bf-btn-primary:hover { background: #B42014; }

/* 已登录：会员名 chip（可点击进入个人中心） */
.bf-member-chip { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; color: #3A2826; padding: 6px 12px; border-radius: 10px; background: #FBEDE8; border: 1px solid transparent; transition: all .15s; }
.bf-member-chip:hover { background: #F6DED5; border-color: #D9261A; }

/* 登录 / 注册弹窗 */
.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: #9A8A85; cursor: pointer; }
.bf-auth-close:hover { color: #3A2826; }
.bf-auth-tabs { display: flex; gap: 18px; margin-bottom: 6px; }
.bf-auth-tab { font-size: 17px; font-weight: 700; color: #9A8A85; cursor: pointer; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.bf-auth-tab.active { color: #B42014; border-bottom-color: #D9261A; }
.bf-auth-title { font-size: 14px; color: #9A8A85; 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: #9A8A85; text-align: left; }
.bf-auth-field input { height: 42px; border: 1px solid rgba(58,40,38,0.15); border-radius: 10px; padding: 0 12px; font-size: 15px; color: #3A2826; outline: none; background: #fff; }
.bf-auth-field input:focus { border-color: #D9261A; }
.bf-auth-agree { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9A8A85; 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: #9A8A85; 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; }

/* ============== 新版页脚（grid 版式，固定色值，不依赖变量） ============== */
.site-footer {
  background: #1F2329;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-col h5 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; transition: color 0.2s ease-out; }
.footer-col a:hover { color: #D9261A; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
