/* ============================================================
   KAAF 品牌主题补丁 v1（2026-11-12）
   1) 登录页/首页页眉 LOGO 换成品牌图形（亮版/暗版自动）
   2) 内页页眉：紫色方块 K -> 品牌钻石 + 卡夫风格标题
   3) 登录页底部说明文字固定到页面底部
   4) 输入框自动填充检测（配合 kaaf-input-guard.js 清空被误填的手机号）
   ============================================================ */

:root{
  --kaaf-navy:#0b1b3a;
  --kaaf-navy-2:#1c3f7a;
  --kaaf-ink:#0d1424;
}

/* ---------- 1) 全品牌 LOGO（登录页 / 首页） ---------- */
.kaaf-brand{
  display:inline-flex !important;
  align-items:center;
  text-decoration:none;
  min-width:0;
}
.kaaf-brand .kaaf-brand-logo{
  display:block;
  width:auto;
  height:30px;
  max-width:72vw;
  object-fit:contain;
  object-position:left center;
}
.lg__brand.kaaf-brand .kaaf-brand-logo{height:44px}
.hm__brand.kaaf-brand .kaaf-brand-logo{height:32px}
/* 暗底页眉时自动换暗版，并给一点点辉光，避免银灰发灰 */
.kaaf-brand.kaaf-dark .kaaf-brand-logo{
  filter:drop-shadow(0 1px 6px rgba(90,150,255,.35));
}

/* ---------- 2) 内页页眉：品牌钻石 + 卡夫风标题 ---------- */
.bh__mark.kaaf-mark{
  width:34px !important;
  height:34px !important;
  flex:none;
  border-radius:11px !important;
  transform:none !important;
  background:linear-gradient(145deg,#152c5c 0%,#0a1530 100%) !important;
  border:1px solid rgba(120,160,230,.38) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 8px 18px -10px rgba(10,25,60,.65) !important;
  display:grid !important;
  place-items:center;
  overflow:hidden;
}
.bh__mark.kaaf-mark > span{display:none !important}
.bh__mark.kaaf-mark .kaaf-mark-img{
  width:25px;height:25px;display:block;object-fit:contain;
  filter:drop-shadow(0 0 4px rgba(110,170,255,.45));
}
.bh__brand.kaaf-bh .bh__txt b{
  font-family:"Songti SC","STSongti-SC","Source Han Serif SC","Noto Serif SC",STSong,SimSun,serif;
  font-weight:700;
  font-size:17px;
  line-height:1.15;
  letter-spacing:.04em;
  background:linear-gradient(180deg,#22467f 0%,#0b1b3a 72%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
.bh__brand.kaaf-bh .bh__txt i{
  color:#8b98ad;
  letter-spacing:.2em;
  font-size:8.5px;
}
/* 暗底页眉：标题改浅银 */
.bh__brand.kaaf-bh.kaaf-dark .bh__txt b{
  background:linear-gradient(180deg,#ffffff 0%,#c9dcff 75%);
  -webkit-background-clip:text;background-clip:text;
}
.bh__brand.kaaf-bh.kaaf-dark .bh__txt i{color:rgba(210,225,250,.72)}

/* ---------- 3) 登录页底部文字固定到页面底部 ---------- */
.lg__foot{
  position:fixed !important;
  left:0;right:0;
  bottom:calc(18px + env(safe-area-inset-bottom,0px)) !important;
  margin:0 !important;
  padding:0 28px !important;
  text-align:center !important;
  z-index:6;
  pointer-events:none;
}
.lg__wrap{padding-bottom:88px}

/* ---------- 4) 浏览器自动填充高亮检测（JS 会监听这个动画名） ---------- */
@keyframes kaaf-autofill-start{from{outline-color:#000}to{outline-color:#000}}
input:-webkit-autofill{
  animation-name:kaaf-autofill-start;
  animation-duration:1ms;
  animation-iteration-count:1;
}
/* 金额输入框：去掉 iOS/Android 的填充底色，视觉更干净 */
.kaaf-amt{caret-color:var(--kaaf-navy-2)}
