/* 收益提现 · LZW 红金主题（与 recharge 一致） */

.wd-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(env(safe-area-inset-bottom) + 88px);
  background: var(--app-bg, #f5f0eb);
}

/* ── 顶部红金 Hero ── */
.wd-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(212, 160, 23, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(200, 16, 46, 0.35), transparent 50%),
    linear-gradient(155deg, #7a1020 0%, #8b1a2a 52%, #8b1528 100%);
}
.wd-hero::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: 26px 26px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
.wd-hero-glow {
  position: absolute;
  top: -50px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 215, 110, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: wd-glow-pulse 4s ease-in-out infinite;
}
.wd-hero-icon {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: 24px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: rgba(245, 215, 110, 0.1);
  pointer-events: none;
  font-family: var(--app-display, serif);
}
@keyframes wd-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.wd-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
}
.wd-nav .back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.wd-nav .back:active { opacity: 0.85; }
.wd-nav .meta { flex: 1; min-width: 0; }
.wd-nav .meta .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232, 176, 106, 0.9);
  font-weight: 600;
}
.wd-nav .meta .t {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  line-height: 1.2;
  color: #fff;
}
.wd-nav .action {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(245, 215, 110, 0.95);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.wd-nav .action:active { opacity: 0.85; }

.wd-hero-body {
  position: relative;
  z-index: 1;
  padding: 4px 20px 0;
}
.wd-hero-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232, 176, 106, 0.85);
  font-weight: 600;
}
.wd-hero-body h1 {
  margin: 6px 0 8px;
  font-family: var(--app-display, serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.wd-hero-body p {
  margin: 0;
  max-width: 22em;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* 余额汇总条 */
.wd-balance-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  margin: 16px 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wd-balance-cell { flex: 1; min-width: 0; }
.wd-balance-cell.align-right { text-align: right; }
.wd-balance-sep {
  width: 1px;
  margin: 4px 14px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.wd-balance-cell .lab {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}
.wd-balance-cell .val {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  line-height: 1;
  color: #fff;
}
.wd-balance-cell .val.highlight { color: #f5d76e; }
.wd-balance-cell .val small {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
}

/* 状态统计 */
.wd-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 16px 0;
}
.wd-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.wd-stat .v {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  color: #fff;
  line-height: 1.1;
}
.wd-stat .v.open { color: #7dffb0; }
.wd-stat .k {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ── 主体内容区 ── */
.wd-body {
  position: relative;
  z-index: 2;
  margin-top: -14px;
  padding: 0 16px 12px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #f8f2f3 0%, var(--app-bg, #f5f0eb) 120px);
  box-shadow: 0 -10px 30px rgba(122, 16, 32, 0.1);
}
.wd-body::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin: 10px auto 12px;
  border-radius: 2px;
  background: rgba(122, 16, 32, 0.12);
}

/* 表单卡片 */
.wd-card {
  margin-bottom: 12px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--app-line, #eadfe1);
  box-shadow: var(--app-shadow-sm, 0 1px 6px rgba(0, 0, 0, 0.05));
}
.wd-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.wd-section-title {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
}
.wd-section-hint {
  font-size: 12px;
  color: var(--app-muted, #9a8a8e);
}

.wd-field {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 2px;
  border-bottom: 1px solid var(--app-line, #eadfe1);
}
.wd-field--last { border-bottom: none; }
.wd-field > label {
  width: 72px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-sub, #5c4a4e);
}
.wd-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--app-ink, #7a1020);
  padding: 0;
  text-align: right;
}
.wd-field input::placeholder {
  color: #bbb;
  font-weight: 400;
}
.wd-select,
.wd-field .app-select-field {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--app-ink, #7a1020);
  text-align: right;
  padding: 0 20px 0 0;
  appearance: none;
  -webkit-appearance: none;
  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='%239a8a8e' 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;
}
.wd-field .app-select-field.is-placeholder {
  color: #bbb;
  font-weight: 400;
}
.wd-field .app-select-field.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.wd-field .app-select-field.is-empty {
  -webkit-tap-highlight-color: transparent;
}

/* 金额输入 */
.wd-amount-row {
  margin: 12px 0;
  padding: 14px 0;
  border-top: 1px solid var(--app-line, #eadfe1);
  border-bottom: 1px solid var(--app-line, #eadfe1);
}
.wd-amount-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--app-sub, #5c4a4e);
  margin-bottom: 8px;
  font-weight: 600;
}
.wd-amount-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--app-primary, #c8102e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.wd-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 52px;
  border-radius: 14px;
  background: #f8f4f5;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.wd-input-row:focus-within {
  border-color: rgba(245, 215, 110, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 215, 110, 0.18);
}
.wd-input-prefix {
  font-size: 20px;
  font-weight: 700;
  color: var(--app-primary, #c8102e);
  font-family: var(--app-display, serif);
  flex-shrink: 0;
}
.wd-input-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
  text-align: left;
  -webkit-appearance: none;
}
.wd-input-row input::placeholder {
  font-size: 15px;
  font-weight: 400;
  color: #bbb;
}
.wd-input-row .unit {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--app-muted, #9a8a8e);
  font-weight: 600;
}

/* 短信验证 */
.wd-sms {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--app-line, #eadfe1);
}
.wd-sms > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-sub, #5c4a4e);
  margin-bottom: 8px;
}
.wd-sms-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd-sms-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--app-line, #eadfe1);
  background: #f8f4f5;
  font-size: 15px;
  outline: none;
}
.wd-sms-row input:focus {
  border-color: rgba(245, 215, 110, 0.65);
  background: #fff;
}
.wd-sms-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--app-primary, #c8102e) 0%, var(--app-primary-2, #e33845) 100%);
  cursor: pointer;
  opacity: 0.45;
}

/* 银行卡预览 */
.wd-bank-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9e8 0%, #fff 55%, #fff5f5 100%);
  border: 1.5px solid rgba(245, 215, 110, 0.55);
  box-shadow: 0 4px 16px rgba(245, 215, 110, 0.12);
}
.wd-bank-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wd-bank-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.wd-bank-type {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink, #7a1020);
}
.wd-bank-rows { display: flex; flex-direction: column; gap: 6px; }
.wd-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.wd-bank-row .lab { color: var(--app-muted, #9a8a8e); }
.wd-bank-row .val {
  font-weight: 600;
  color: var(--app-ink, #7a1020);
  font-variant-numeric: tabular-nums;
}

/* 警告条 */
.wd-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9e8 0%, #fff5e0 100%);
  border: 1px solid rgba(245, 215, 110, 0.5);
}
.wd-alert-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.12);
  color: var(--app-primary, #c8102e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.wd-alert-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #8a6d00;
}
.wd-alert-btn {
  flex-shrink: 0;
  padding: 0 12px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--app-primary, #c8102e) 0%, var(--app-primary-2, #e33845) 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 3px 10px rgba(200, 16, 46, 0.28);
  -webkit-tap-highlight-color: transparent;
}

/* 提示 */
.wd-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--app-line, #eadfe1);
  border-left: 3px solid var(--app-primary, #c8102e);
  font-size: 13px;
  line-height: 1.65;
  color: var(--app-sub, #5c4a4e);
}
.wd-tip-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  color: var(--app-primary, #c8102e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* 底部链接 */
.wd-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.wd-links a {
  color: var(--app-primary, #c8102e);
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* 关闭时段 */
.wd-closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 28px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--app-line, #eadfe1);
  box-shadow: var(--app-shadow-sm, 0 1px 6px rgba(0, 0, 0, 0.05));
  text-align: center;
}
.wd-closed-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.wd-closed-msg {
  font-size: 14px;
  color: var(--app-primary, #c8102e);
  font-weight: 600;
  line-height: 1.7;
}

/* 底部按钮 */
.wd-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--app-line, #eadfe1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wd-submit {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--app-primary, #c8102e) 0%, var(--app-primary-2, #e33845) 100%);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wd-submit:active:not(.disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.28);
}
.wd-submit.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 兼容旧 withdraw-page 类名（其他提现页仍用 pn-page） */
.withdraw-page:not(.wd-page) {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(env(safe-area-inset-bottom) + 88px);
  background: var(--app-bg, #f5f0eb);
}
