/* 工资提取底部弹层（assets / salary 共用） */
@keyframes redeem-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* —— 工资提取底部弹层 —— */
.salary-withdraw-sheet[hidden] {
  display: none !important;
}

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

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

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

.salary-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(39, 174, 96, 0.14);
  animation: redeem-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.salary-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);
}

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

.salary-withdraw-sheet__hero svg,
.salary-withdraw-sheet__hero-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 168px;
  max-height: 220px;
  object-fit: cover;
}

@media (max-height: 700px) {
  .salary-withdraw-sheet__hero svg,
  .salary-withdraw-sheet__hero-img {
    min-height: 140px;
    max-height: 168px;
  }

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

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

.salary-withdraw-sheet.is-success .salary-withdraw-sheet__hero {
  background: linear-gradient(180deg, #ddf3e6 0%, #f4fcf7 100%);
}

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

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

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

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

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

.salary-hype {
  margin: 14px 0 4px;
  padding: 16px 14px 14px;
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 214, 102, 0.28), transparent 55%),
    linear-gradient(165deg, #fff8e8 0%, #fff 42%, #f3fbf6 100%);
  border: 1px solid rgba(201, 140, 40, 0.22);
  box-shadow: 0 8px 24px rgba(180, 110, 20, 0.08);
  text-align: center;
  animation: salary-hype-in 0.35s ease;
}

.salary-hype[hidden] {
  display: none !important;
}

@keyframes salary-hype-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes salary-hype-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(1.02); }
}

@keyframes salary-hype-amt {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 18px rgba(201, 120, 20, 0.35); }
}

@keyframes salary-hype-bar {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
  100% { filter: brightness(1); }
}

.salary-hype__eyebrow {
  margin: 0 0 8px;
  display: inline-flex;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #9a5b00;
  background: rgba(255, 193, 7, 0.22);
  border-radius: 999px;
  animation: salary-hype-pulse 1.6s ease-in-out infinite;
}

.salary-hype__label {
  margin: 0;
  font-size: 12px;
  color: #8a6118;
}

.salary-hype__amt {
  display: block;
  margin: 6px 0 8px;
  font-size: clamp(1.75rem, 8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #c41e22;
  animation: salary-hype-amt 1.8s ease-in-out infinite;
}

.salary-hype__pulse {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1e8f4f;
}

.salary-hype__bar {
  height: 10px;
  margin: 0 0 8px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.12);
  overflow: hidden;
}

.salary-hype__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34c759, #27ae60 55%, #ffb020);
  animation: salary-hype-bar 1.4s ease-in-out infinite;
  transition: width 0.45s ease;
}

.salary-hype__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #667892;
}

.salary-hype__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 6px;
}

.salary-hype__bullets li {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  color: #3d516f;
}

.salary-hype__bullets strong {
  color: #c41e22;
  font-weight: 800;
}

.salary-hype__accel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(201, 140, 40, 0.35);
  text-align: left;
}

.salary-hype__accel[hidden] {
  display: none !important;
}

.salary-hype__accel-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #9a5b00;
}

.salary-hype__accel-list {
  display: grid;
  gap: 6px;
}

.salary-hype__accel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(196, 30, 34, 0.12);
  text-decoration: none;
  color: inherit;
}

.salary-hype__accel-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #17325f;
}

.salary-hype__accel-item small {
  display: block;
  font-size: 11px;
  color: #8a6118;
  margin-top: 2px;
}

.salary-hype__accel-item em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #c41e22;
  white-space: nowrap;
}

.salary-withdraw-sheet--hype .salary-withdraw-sheet__title {
  color: #9a1b1f;
}

.salary-withdraw-sheet--hype .salary-withdraw-sheet__btn--primary {
  background: linear-gradient(135deg, #e8353a 0%, #c41e22 55%, #a0181c 100%);
  box-shadow: 0 6px 18px rgba(196, 30, 34, 0.28);
}

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

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

.salary-withdraw-stat {
  flex: 1;
  max-width: 110px;
  padding: 10px 8px;
  text-align: center;
  background: linear-gradient(135deg, #f0faf3, #fafcfa);
  border: 1px solid #c8edd4;
  border-radius: 10px;
}

.salary-withdraw-stat span {
  display: block;
  font-size: 11px;
  color: #5a9a6e;
}

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

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

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

.salary-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%;
}

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

.salary-withdraw-step.is-done span {
  color: #fff;
  background: #27ae60;
}

.salary-withdraw-step.is-done em {
  color: #27ae60;
  font-weight: 600;
}

.salary-withdraw-step.is-active span {
  color: #fff;
  background: linear-gradient(135deg, #5fd080, #27ae60);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.28);
}

.salary-withdraw-step.is-active em {
  color: #1e8f4f;
  font-weight: 700;
}

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

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

.salary-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);
}

.salary-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;
}

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

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

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

.salary-withdraw-sheet__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #5fd080 0%, #27ae60 100%);
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.28);
}

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

.salary-withdraw-sheet.is-success .salary-withdraw-sheet__title {
  color: #1e8f4f;
}

/* —— 工资提取 · 七一筹备主题 —— */
.salary-withdraw-sheet--celebrate .salary-withdraw-sheet__panel {
  box-shadow: 0 -8px 40px rgba(196, 30, 34, 0.18);
}

.salary-withdraw-sheet--celebrate .salary-withdraw-sheet__hero {
  background: linear-gradient(180deg, #c41e22 0%, #ff6b4a 100%);
}

.salary-withdraw-sheet--celebrate .salary-withdraw-sheet__hero svg,
.salary-withdraw-sheet--celebrate .salary-withdraw-sheet__hero-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 240px;
  object-fit: cover;
}

.salary-withdraw-sheet__fest-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #c41e22;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff4e0, #ffe9a8);
  border: 1px solid #ffd54f;
  border-radius: 999px;
}

.salary-withdraw-sheet__fest-badge[hidden] {
  display: none !important;
}

.salary-withdraw-sheet--celebrate .salary-withdraw-sheet__title {
  color: #8b1014;
}

.salary-withdraw-countdown {
  margin-top: 16px;
  padding: 14px 12px 12px;
  text-align: center;
  background: linear-gradient(180deg, #fff8f0 0%, #fff 100%);
  border: 1px solid #f5d4a8;
  border-radius: 14px;
}

.salary-withdraw-countdown[hidden],
.salary-withdraw-queue[hidden],
.salary-withdraw-accel[hidden] {
  display: none !important;
}

.salary-withdraw-countdown__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #9a6b00;
}

.salary-withdraw-countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.salary-withdraw-countdown__unit {
  min-width: 52px;
  padding: 8px 6px 6px;
  background: linear-gradient(180deg, #c41e22, #e8353a);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(196, 30, 34, 0.22);
}

.salary-withdraw-countdown__unit strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.salary-withdraw-countdown__unit span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.salary-withdraw-countdown__sep {
  margin: 0 2px;
  font-size: 18px;
  font-weight: 800;
  font-style: normal;
  color: #c41e22;
}

.salary-withdraw-countdown__note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #8a9bb5;
}

.salary-withdraw-queue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff9f5;
  border: 1px solid #f0dcc8;
  border-radius: 12px;
}

.salary-withdraw-queue__pulse {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: #27ae60;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5);
  animation: salary-queue-pulse 1.6s ease infinite;
}

@keyframes salary-queue-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

.salary-withdraw-queue__text {
  flex: 1;
  min-width: 0;
}

.salary-withdraw-queue__text strong {
  display: block;
  font-size: 14px;
  color: #1a2d4d;
}

.salary-withdraw-queue__text p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5a6f94;
}

.salary-withdraw-queue__no {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  color: #c41e22;
  font-variant-numeric: tabular-nums;
}

.salary-withdraw-accel {
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8fff9, #f0faf3);
  border: 1px solid #c8edd4;
  border-radius: 12px;
}

.salary-withdraw-accel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #5a9a6e;
}

.salary-withdraw-accel__head strong {
  font-size: 12px;
  font-weight: 700;
  color: #1e8f4f;
}

.salary-withdraw-accel__bar {
  height: 8px;
  overflow: hidden;
  background: #dff0e4;
  border-radius: 999px;
}

.salary-withdraw-accel__fill {
  display: block;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, #5fd080, #27ae60);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.salary-withdraw-accel__hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #5a6f94;
}

.salary-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);
}
