/* 保障金提取底部弹层（assets / fund-claim 共用） */
/* —— 保障金提取底部弹层 —— */
.fund-withdraw-sheet[hidden] {
  display: none !important;
}

.fund-withdraw-sheet {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fund-withdraw-sheet.is-open {
  display: flex !important;
}

.fund-withdraw-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(10, 22, 48, 0.52);
  animation: redeem-fade-in 0.22s ease;
}

.fund-withdraw-sheet__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell-max, 430px);
  max-height: min(92vh, 720px);
  overflow: hidden;
  padding: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(255, 139, 0, 0.16);
  animation: redeem-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.fund-withdraw-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #8a9bb5;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fund-withdraw-sheet__hero {
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
  background: linear-gradient(180deg, #ffe0b8 0%, #fff8ee 100%);
}

.fund-withdraw-sheet__hero svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
  max-height: 200px;
  object-fit: cover;
}

.fund-withdraw-sheet.is-success .fund-withdraw-sheet__hero {
  background: linear-gradient(180deg, #ffe8c8 0%, #fff9f0 100%);
}

.fund-withdraw-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 18px 8px;
}

.fund-withdraw-sheet__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background: #fff1e0;
  border-radius: 999px;
}

.fund-withdraw-sheet__badge[hidden] {
  display: none !important;
}

.fund-withdraw-sheet__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1a2d4d;
  text-align: center;
}

.fund-withdraw-sheet__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #5a6f94;
  text-align: center;
}

.fund-withdraw-quota-card {
  margin-top: 14px;
  padding: 14px 16px;
  text-align: center;
  background: linear-gradient(165deg, #f0fdfa 0%, #ecfeff 100%);
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 12px;
}

.fund-withdraw-quota-card__window {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #0d9488;
  letter-spacing: 0.04em;
}

.fund-withdraw-quota-card__label {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0f766e;
}

.fund-withdraw-sheet__stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.fund-withdraw-sheet__stats[hidden] {
  display: none !important;
}

.fund-withdraw-stat {
  flex: 1;
  max-width: 130px;
  padding: 10px 8px;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #fffcf7);
  border: 1px solid #ffd7a8;
  border-radius: 10px;
}

.fund-withdraw-stat span {
  display: block;
  font-size: 11px;
  color: #c27a2e;
}

.fund-withdraw-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
}

.fund-withdraw-sheet__steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.fund-withdraw-step {
  flex: 1;
  max-width: 96px;
  text-align: center;
}

.fund-withdraw-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #8a9bb5;
  background: #eef2f8;
  border-radius: 50%;
}

.fund-withdraw-step em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: #8a9bb5;
}

.fund-withdraw-step.is-done span {
  color: #fff;
  background: #ff8b00;
}

.fund-withdraw-step.is-done em {
  color: #c2410c;
  font-weight: 600;
}

.fund-withdraw-step.is-active span {
  color: #fff;
  background: linear-gradient(135deg, #ffb020, #ff8b00);
  box-shadow: 0 4px 12px rgba(255, 139, 0, 0.3);
}

.fund-withdraw-step.is-active em {
  color: #c2410c;
  font-weight: 700;
}

.fund-withdraw-housing {
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #fff8ee 0%, #fff1dc 100%);
  border: 1px solid #ffd7a8;
  border-radius: 12px;
}

.fund-withdraw-contact {
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #fff4e8 0%, #ffe8cc 100%);
  border: 1px solid #ffc978;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 139, 0, 0.1);
}

.fund-withdraw-contact[hidden] {
  display: none !important;
}

.fund-withdraw-contact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fund-withdraw-contact__head strong {
  font-size: 14px;
  font-weight: 700;
  color: #9a4b0a;
}

.fund-withdraw-contact__head span {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ffb020, #ff8b00);
  border-radius: 999px;
}

.fund-withdraw-contact__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #8a5a2a;
}

.fund-withdraw-contact__hours {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #c27a2e;
}

.fund-withdraw-housing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fund-withdraw-housing__head strong {
  font-size: 14px;
  font-weight: 700;
  color: #9a4b0a;
}

.fund-withdraw-housing__head span {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.fund-withdraw-housing__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8a5a2a;
}

.fund-withdraw-sheet__rules {
  margin: 14px 0 0;
  padding: 12px 14px 12px 28px;
  font-size: 12px;
  line-height: 1.65;
  color: #5a6f94;
  background: #fffaf3;
  border: 1px solid #ffe0b8;
  border-radius: 10px;
}

.fund-withdraw-sheet__rules li + li {
  margin-top: 6px;
}

.fund-withdraw-sheet__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -4px 16px rgba(15, 35, 70, 0.06);
}

.fund-withdraw-sheet__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  user-select: none;
}

.fund-withdraw-sheet__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fund-withdraw-sheet__btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.fund-withdraw-sheet__btn[hidden] {
  display: none !important;
}

.fund-withdraw-sheet__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ffb020 0%, #ff8b00 100%);
  box-shadow: 0 6px 18px rgba(255, 139, 0, 0.28);
}

.fund-withdraw-sheet__btn--gold {
  color: #7a4e00;
  background: linear-gradient(135deg, #ffe9a8 0%, #ffc84a 100%);
  box-shadow: 0 6px 16px rgba(255, 176, 32, 0.28);
}

.fund-withdraw-sheet__btn--ghost {
  color: #5a6f94;
  background: #f2f5fa;
}

.fund-withdraw-sheet.is-success .fund-withdraw-sheet__title {
  color: #c2410c;
}

@media (max-height: 700px) {
  .fund-withdraw-sheet__hero svg {
    min-height: 130px;
    max-height: 160px;
  }

  .fund-withdraw-sheet__title {
    font-size: 18px;
  }

  .fund-withdraw-sheet__desc {
    font-size: 13px;
  }
}

@keyframes redeem-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes redeem-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
