/* 组件样式：TabBar / 产品推荐弹窗 / 手机号登录弹层（由小程序组件 wxss 换算） */

/* ---------------- 自绘 TabBar ---------------- */
.ftb {
  position: absolute;
  left: 2.4rem;
  right: 2.4rem;
  bottom: 3.2rem;
  height: 11.6rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2.4rem);
  border-radius: 5.8rem;
  display: flex;
  box-shadow: 0 1.6rem 5.6rem rgba(29,33,41,.14);
  z-index: 100;
}
.ftb-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: #C9CDD4;
  cursor: pointer;
  transition: color .18s ease;
}
.ftb-ic { width: 4.8rem; height: 4.8rem; transition: transform .12s ease; }
.ftb-txt { font-size: 2.4rem; font-weight: 500; }
.ftb-tab:active .ftb-ic { transform: scale(.86); }
.ftb-tab.active { color: var(--theme, #FF7D00); }
.ftb-flat {
  left: 0; right: 0; bottom: 0;
  height: 14.4rem;
  background: #fff;
  backdrop-filter: none;
  border-radius: 0;
  border-top: .2rem solid #EEF1F6;
  box-shadow: none;
}
.ftb-flat .ftb-tab { color: #A6ADBB; }
.ftb-flat .ftb-tab.active { color: var(--theme, #3E7BFA); }
.ftb-flat .ftb-tab.active .ftb-txt { font-weight: 600; }

/* ---------------- 产品推荐弹窗（不可关闭） ---------------- */
#promo-layer { position: absolute; inset: 0; z-index: 200; pointer-events: none; }
.pp-mask {
  position: absolute;
  inset: 0;
  background: rgba(29,33,41,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6.8rem;
  pointer-events: auto;
  animation: ppFade .22s ease;
}
@keyframes ppFade { from { opacity: 0; } to { opacity: 1; } }
.pp-card {
  width: 100%;
  background: #fff;
  border-radius: 4rem;
  overflow: hidden;
  box-shadow: 0 3.6rem 10rem rgba(29,33,41,.28);
  animation: ppPop .24s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes ppPop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pp-cover { width: 100%; display: block; }
.pp-body { padding: 2.8rem 3.6rem 3.6rem; }
.pp-name { font-size: 3.4rem; font-weight: 700; color: #1D2129; }
.pp-sum {
  margin-top: 1.6rem;
  font-size: 2.6rem;
  line-height: 1.6;
  color: #4E5969;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-btn {
  margin-top: 3.2rem;
  height: 9.2rem;
  border-radius: 4.6rem;
  background: var(--brand-grad, var(--theme, #FF7D00));
  box-shadow: var(--btn-shadow, none);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  cursor: pointer;
}
.pp-btn:active { transform: scale(.98); }
.pp-tip { margin-top: 1.6rem; font-size: 2.3rem; color: #86909C; text-align: center; }

/* ---------------- 手机号登录弹层 ---------------- */
#login-layer { position: absolute; inset: 0; z-index: 251; pointer-events: none; }
.ls-mask {
  position: absolute;
  inset: 0;
  background: rgba(29,33,41,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
}
.ls-mask.show { opacity: 1; visibility: visible; pointer-events: auto; }
.ls-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 4.8rem 4.8rem 0 0;
  padding: 2rem 4rem 6rem;
  padding-bottom: max(6rem, env(safe-area-inset-bottom));
  box-shadow: 0 -2rem 8rem rgba(29,33,41,.2);
  transform: translateY(102%);
  transition: transform .26s cubic-bezier(.32,.72,0,1);
  will-change: transform;
}
.ls-sheet.show { transform: translateY(0); pointer-events: auto; }
.sheet-handle { width: 7.2rem; height: .8rem; border-radius: .4rem; background: #E5E6EB; margin: 0 auto 2.8rem; }
.sheet-head { position: relative; display: flex; justify-content: center; align-items: center; }
.sh-title { font-size: 3.5rem; font-weight: 700; color: #1D2129; }
.sh-close {
  position: absolute; right: 0; top: 0;
  width: 5.2rem; height: 5.2rem; border-radius: 50%;
  background: #F2F3F5; color: #86909C;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; cursor: pointer;
}
.sh-close:active { background: #E5E6EB; }
.sh-desc { font-size: 2.4rem; color: #86909C; text-align: center; margin-top: 1.2rem; }

.auth-card {
  margin-top: 3.6rem;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 2.8rem;
  background: #F7F8FA;
  border: .2rem solid #F2F3F5;
  border-radius: 2.8rem;
}
.badge {
  width: 8.8rem; height: 8.8rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: .2rem solid #E5E6EB; border-radius: 2rem;
}
.badge-ic { font-size: 4.4rem; line-height: 1; }
.ac-info { flex: 1; min-width: 0; }
.ac-t { font-size: 2.8rem; font-weight: 600; color: #1D2129; }
.ac-d { font-size: 2.3rem; color: #86909C; margin-top: 1rem; line-height: 1.6; }

.field-label { display: block; font-size: 2.4rem; color: #4E5969; margin-top: 3.6rem; }
.ipt-row { margin-top: 2rem; }
.ipt {
  height: 9.6rem;
  border: .2rem solid #E5E6EB;
  border-radius: 2.4rem;
  display: flex;
  align-items: center;
  padding: 0 2.8rem;
  gap: 1.6rem;
  background: #FAFBFC;
}
.ipt:focus-within { border-color: var(--theme, #FF7D00); }
.ipt-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 2.9rem; color: #1D2129;
}
.prefix {
  font-size: 2.8rem; font-weight: 500; color: #4E5969;
  padding-right: 1.8rem; margin-right: .4rem;
  border-right: .2rem solid #E5E6EB;
}
.sheet-btn { margin-top: 4.4rem; width: 100%; }
.sheet-btn.loading { background: #F2F3F5; color: #86909C; box-shadow: none; }
.sheet-btn.logging { opacity: .7; }
.spinner {
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  border: .3rem solid #C9CDD4; border-top-color: #86909C;
  display: inline-block; vertical-align: middle; margin-right: 1.2rem;
  animation: dy-spin .8s linear infinite;
}
@keyframes dy-spin { to { transform: rotate(360deg); } }
.err-tip {
  margin-top: 2.4rem;
  display: flex; align-items: flex-start; justify-content: center;
  gap: 1rem; padding: 0 1.2rem;
  font-size: 2.3rem; line-height: 1.5; text-align: left; color: #F53F3F;
}
.err-tip .dot {
  width: 2.6rem; height: 2.6rem; margin-top: .4rem;
  border-radius: 50%; background: #F53F3F; color: #fff;
  font-size: 2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agree-row {
  margin-top: 3.2rem;
  display: flex; align-items: flex-start; gap: 1.4rem;
  font-size: 2.3rem; color: #86909C; line-height: 1.6;
}
.radio {
  width: 3rem; height: 3rem; border-radius: 50%;
  flex-shrink: 0; margin-top: .2rem;
  border: .3rem solid #C9CDD4; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.radio.checked { background: var(--theme, #FF7D00); border-color: var(--theme, #FF7D00); }
.radio.checked::after { content: "\2713"; color: #fff; font-size: 1.8rem; }
.ag-txt { flex: 1; }
.protocol-links { color: var(--theme, #FF7D00); cursor: pointer; }
.sheet-hint { font-size: 2.2rem; color: #86909C; text-align: center; margin-top: 2.4rem; line-height: 1.6; }

/* 协议二次确认弹窗 */
.dlg {
  position: absolute; inset: 0; z-index: 260;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,33,41,.55);
  opacity: 0; visibility: hidden; transition: opacity .18s;
}
.dlg.show { opacity: 1; visibility: visible; pointer-events: auto; }
.dlg-box {
  width: 58.8rem; background: #fff; border-radius: 3.6rem;
  padding: 4.8rem 4rem 4rem; text-align: center;
  box-shadow: 0 2.4rem 6.4rem rgba(29,33,41,.18);
}
.dlg-icon { font-size: 5.6rem; line-height: 1; }
.dlg-title { font-size: 3.4rem; font-weight: 700; color: #1D2129; margin-top: 2rem; }
.dlg-body { font-size: 2.6rem; color: #4E5969; line-height: 1.75; margin-top: 1.8rem; }
.dlg-body .u { color: var(--theme, #FF7D00); cursor: pointer; }
.dlg-actions { display: flex; gap: 2.2rem; margin-top: 4rem; }
.dlg-btn-ghost {
  flex: 1; height: 8.8rem; line-height: 8.8rem;
  border-radius: 4.4rem; background: #F2F3F5;
  font-size: 2.9rem; color: #4E5969; cursor: pointer;
}
.dlg-btn-ghost:active { background: #E8EAED; }
.dlg-btn-main {
  flex: 1.35; height: 8.8rem; line-height: 8.8rem;
  border-radius: 4.4rem; background: var(--brand-grad, var(--theme, #FF7D00));
  color: #fff; font-size: 2.9rem; font-weight: 600;
  box-shadow: var(--btn-shadow, none); cursor: pointer;
}
.dlg-btn-main:active { opacity: .88; }
