/* 银行卡 · 蓝色主题（与账变明细 / 安全中心 ld-head 一致） */

.bank-page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.bank-panel,
.bank-add-panel {
  position: relative;
  z-index: 1;
  margin: 12px 14px 0;
}

.bank-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.bank-panel-title {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  color: #1a2a4a;
}

.bank-panel-count {
  font-size: 12px;
  font-weight: 600;
  color: #6b7c93;
}

.bank-panel-count--pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 132, 255, 0.08);
  color: #1565cc;
  border: 1px solid rgba(29, 132, 255, 0.14);
}

.bank-empty {
  padding: 36px 20px 32px;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(13, 58, 110, 0.04);
}

.bank-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(29, 132, 255, 0.12), rgba(21, 101, 204, 0.06));
  color: #1d84ff;
}

.bank-empty p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1a2a4a;
}

.bank-empty span {
  font-size: 12px;
  line-height: 1.55;
  color: #8a96a8;
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bank-card {
  position: relative;
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(56, 189, 248, 0.28), transparent 55%),
    linear-gradient(155deg, #0b3d7a 0%, #1565cc 50%, #1d84ff 100%);
  box-shadow: 0 8px 22px rgba(13, 58, 110, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bank-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}

.bank-card.is-pending {
  background: linear-gradient(155deg, #4a5568 0%, #718096 100%);
  box-shadow: 0 6px 16px rgba(13, 58, 110, 0.1);
}

.bank-card.is-reject {
  background: linear-gradient(155deg, #9b2c2c 0%, #c53030 100%);
  box-shadow: 0 6px 16px rgba(155, 44, 44, 0.18);
}

.bank-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.bank-card-top h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--app-display, sans-serif);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.bank-badge {
  flex-shrink: 0;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1565cc;
}

.bank-badge.pending {
  background: rgba(255, 237, 174, 0.95);
  color: #92400e;
}

.bank-badge.reject {
  background: rgba(255, 255, 255, 0.9);
  color: #b91c1c;
}

.bank-card .line {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.bank-card .no {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--app-display, sans-serif);
  letter-spacing: 0.06em;
  color: #fff;
}

.bank-card .foot {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.bank-toast {
  display: none;
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 99;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(13, 58, 110, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bank-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(213, 222, 228, 0.9);
  box-shadow: 0 -8px 24px rgba(13, 58, 110, 0.06);
}

.bank-add-btn,
.bank-add-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1d84ff 0%, #1565cc 100%);
  box-shadow: 0 8px 20px rgba(29, 132, 255, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bank-add-btn:active,
.bank-add-submit:active:not(.disabled) {
  opacity: 0.92;
  transform: scale(0.99);
}

.bank-add-submit.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* —— 添加银行卡 —— */

.bank-add-page {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.bank-add-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
}

.bank-add-alert--info {
  background: rgba(29, 132, 255, 0.08);
  border: 1px solid rgba(29, 132, 255, 0.16);
  color: #1a2a4a;
}

.bank-add-alert--warn {
  background: rgba(255, 209, 0, 0.12);
  border: 1px solid rgba(255, 209, 0, 0.28);
  color: #8a4b16;
}

.bank-add-alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  background: rgba(29, 132, 255, 0.14);
  color: #1565cc;
}

.bank-add-alert--warn .bank-add-alert-icon {
  background: rgba(255, 209, 0, 0.35);
  color: #8a4b16;
}

.bank-add-link {
  color: #1d84ff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 2px;
}

.bank-add-skeleton {
  margin-bottom: 8px;
}

.bank-add-form-card {
  margin-bottom: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(13, 58, 110, 0.04);
  overflow: hidden;
}

.bank-add-field {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.bank-add-field--last {
  border-bottom: none;
}

.bank-add-field > label {
  width: 72px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.bank-add-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #1c1c1c;
  text-align: right;
  padding: 0;
}

.bank-add-field input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.bank-add-field input[readonly] {
  color: #94a3b8;
  font-weight: 400;
}

.bank-add-field .app-select-field {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: #1c1c1c;
  text-align: right;
  padding: 0 20px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
  line-height: 44px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bank-add-field .app-select-field.is-placeholder {
  color: #bbb;
  font-weight: 400;
}

.bank-add-tip {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.5);
  font-size: 12px;
  line-height: 1.7;
  color: #8a96a8;
}

.bank-add-tip-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.bank-add-actions {
  margin-top: 4px;
}
