/* ---------- 人工审核页：办理流程 / 常见问题 ---------- */
.flow3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 14px;
}
.flow-step {
  background: linear-gradient(180deg, #f6f8ff 0%, #eaf0fd 100%);
  border: 1px solid #e3eafb;
  border-radius: 14px;
  padding: 14px 8px 13px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.flow-step:nth-child(2) {
  background: linear-gradient(180deg, #eef3fe 0%, #dde7fb 100%);
  border-color: #d3dffa;
}
.flow-step:nth-child(3) {
  background: linear-gradient(180deg, #fff9ea 0%, #fbedc9 100%);
  border-color: #f6e1b0;
}
.flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 2px 6px rgba(43, 74, 203, 0.28);
}
.flow-step:nth-child(3) .flow-n {
  background: linear-gradient(135deg, #f7d07c 0%, #e8b34a 100%);
  color: #4a3200;
  box-shadow: 0 2px 6px rgba(232, 179, 74, 0.32);
}
.flow-t {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 7px;
  color: #1c2437;
}
.flow-d {
  font-size: 11px;
  color: #7f8a9e;
  margin-top: 4px;
  line-height: 1.45;
}

.faq-card {
  margin: 0 14px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}
.faq-card .cell + .cell::before {
  left: 14px;
  right: 14px;
}

/* ---------- 借钱 ---------- */
.loan-hero {
  margin: 12px 16px 0;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: linear-gradient(150deg, #121b40 0%, #1d2f6d 52%, #2b46a0 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 27, 64, 0.32);
  position: relative;
  overflow: hidden;
}
.loan-hero .coin {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 88px;
  height: 88px;
  color: var(--gold);
  opacity: 0.17;
  pointer-events: none;
}
.loan-label {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
}
.loan-amount {
  font-size: 38px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.5px;
  color: var(--gold);
  position: relative;
  line-height: 1.15;
}
.loan-amount small {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 5px;
}
.loan-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
  margin-top: 9px;
  line-height: 1.55;
  position: relative;
  max-width: 88%;
}
.loan-badge {
  margin-left: 7px;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(243, 195, 91, 0.92);
  color: #4a3305;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  flex: none;
}

/* 主按钮 + 三个卖点 */
.loan-panel {
  margin: 12px 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
}
.loan-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7d07c 0%, #e8b34a 100%);
  color: #3a2905;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(232, 179, 74, 0.28);
}
.loan-cta:active {
  transform: scale(0.99);
}
.loan-tags {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
}
.loan-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #7a8494;
}
.loan-tag svg {
  color: var(--gold-d);
  flex: none;
}

/* 服务说明条 */
.loan-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
  font-size: 12.5px;
  color: #5a6474;
  line-height: 1.5;
  text-align: left;
  width: calc(100% - 32px);
  border: none;
}
.loan-notice:active {
  background: #fafbfd;
}
.loan-notice .spk {
  color: var(--blue);
  flex: none;
}
.loan-notice b {
  font-weight: 600;
  color: #1b2436;
}
.loan-notice .arr {
  margin-left: auto;
  color: #c6ccd6;
  flex: none;
}

/* 借钱攻略 */
.loan-guide {
  margin: 12px 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
}
.guide-hd {
  display: flex;
  align-items: center;
  gap: 9px;
}
.guide-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  background: linear-gradient(150deg, var(--blue-2), var(--blue-d));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-title {
  font-size: 15.5px;
  font-weight: 600;
}
.guide-more {
  margin-left: auto;
  font-size: 11.5px;
  color: #aab2c0;
}
.guide-sub {
  font-size: 12.5px;
  color: #8b95a6;
  margin-top: 9px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.guide-item {
  border: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 3px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4a5568;
  line-height: 1.2;
}
.guide-item:active {
  background: #f1f4f9;
}
.guide-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gi-1 {
  background: #fff6e6;
  color: #c9942f;
}
.gi-2 {
  background: #eef3ff;
  color: var(--blue);
}
.gi-3 {
  background: #ecf8f0;
  color: #2f9e64;
}
.gi-4 {
  background: #fff0ed;
  color: #d4715a;
}

/* 三步流程 */
.loan-steps {
  margin: 12px 16px 0;
  padding: 18px 10px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
  display: flex;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 2px;
}
.step-n {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--blue-2), var(--blue-d));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step + .step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  border-top: 1px dashed #e3e9f2;
}
.step-t {
  font-size: 13px;
  font-weight: 600;
  color: #1b2436;
}
.step-d {
  font-size: 11.5px;
  color: #8b95a6;
  margin-top: 4px;
  line-height: 1.45;
}

.sheet-h {
  padding: 16px 18px 2px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.sheet-body {
  padding: 6px 18px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #5a6474;
}
.sheet-body b {
  color: #1b2436;
}
.sheet-body p {
  margin: 0 0 10px;
}

/* ---------- 我的 ---------- */
.me-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  text-align: left;
  padding: 22px 18px;
  background: linear-gradient(160deg, #f7f9ff 0%, #eef3ff 100%);
  cursor: pointer;
}
.me-edit {
  margin-top: 4px;
  font-size: 12px;
  color: #8b95a6;
}
.me-ava {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #dfe6f6;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(43, 74, 203, 0.18);
}
.me-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.me-name {
  font-size: 18px;
  font-weight: 600;
}
.me-sub {
  font-size: 12.5px;
  color: #8b95a6;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.me-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
}
.me-dot.off {
  background: #c7d2e5;
}

.me-foot {
  text-align: center;
  font-size: 11.5px;
  color: #b3bac6;
  padding: 22px 20px;
  line-height: 1.7;
}

/* ---------- 底部 tabbar（通栏固定，不悬浮） ---------- */
#tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56px + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  box-sizing: border-box;
  display: flex;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  transition:
    transform 0.26s cubic-bezier(0.3, 0.8, 0.3, 1),
    opacity 0.2s ease;
}
#app.chat-open #tabbar {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- 浏览器工位模式（mode-browser）：只保留会话界面 ----------
     手机浏览器进入 = 引导工位客户：无 tabbar、无业务页、无返回键，
     全屏就是「接待客服」会话；安装引导走会话内卡片 */
html.mode-browser #tabbar {
  display: none;
}

/* 仅官方 App 内由脚本插入，用来把退出后的保活日志分享出来 */
#sxq-export-log {
  position: absolute;
  left: 12px;
  bottom: calc(68px + var(--safe-b));
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(20, 23, 31, 0.82);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.22);
}
#app.chat-open #sxq-export-log {
  bottom: calc(96px + var(--safe-b));
}
#sxq-export-log:active {
  transform: scale(0.96);
}
html.mode-browser #btn-back {
  display: none;
}
html.mode-browser .view {
  display: none !important;
}
html.mode-browser .view[data-view="chat"] {
  display: flex !important;
  transform: none;
  visibility: visible;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 5px 3px;
  border: none;
  background: none;
  border-radius: 14px;
  color: #98a2b3;
  font-size: 10.5px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}
.tab.on {
  background: #eef3ff;
  color: var(--blue);
}
.tab:active {
  transform: scale(0.94);
}
.ti {
  position: relative;
  display: flex;
}
.tbadge {
  position: absolute;
  top: -4px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #fff;
}
.tbadge[hidden] {
  display: none;
}
.tbadge.pulse {
  animation: tbPulse 1.1s ease-in-out infinite;
}
@keyframes tbPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}
