/* 老盘重启报单页 */
body.report {
  background: linear-gradient(180deg, #fff6ed 0%, #fff 40%);
  min-height: 100vh;
  padding-bottom: 32px;
}

/* 顶部 */
.rp-header {
  position: relative;
  background: #fff;
}
.rp-hero {
  display: block;
  width: 100%;
  height: auto;
}
.rp-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-decoration: none;
}
.rp-back svg { width: 20px; height: 20px; }

/* 快捷链接 */
.rp-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 14px 0;
}
.rp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .15s;
}
.rp-link svg { width: 18px; height: 18px; }
.rp-link:active { transform: scale(.97); }
.rp-link.primary {
  background: linear-gradient(135deg, #dc2626, #c42a27);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(196,42,39,.25);
}

/* 通用卡片 */
.rp-card {
  margin: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.rp-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  padding-left: 10px;
  position: relative;
}
.rp-card-title::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 3px; height: 16px;
  background: linear-gradient(180deg, #f59e0b, #c42a27);
  border-radius: 2px;
}

.rp-p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #4b5563;
  margin: 0 0 12px;
}
.rp-p b { color: #c42a27; }

.rp-rewards {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fffaf2, #fff0e8);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #fde0b4;
}
.rp-rewards li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px dashed #f3d7a8;
  font-size: 14px;
}
.rp-rewards li:last-child { border-bottom: none; }
.rp-rewards .label { color: #92400e; font-weight: 600; }
.rp-rewards .value { color: #c42a27; font-size: 13px; }
.rp-rewards .value b {
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-right: 2px;
  letter-spacing: -.5px;
}

.rp-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #78350f;
}
.rp-notice svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.rp-notice b { color: #c42a27; }

/* 表单 */
.rp-form { display: flex; flex-direction: column; gap: 14px; }
.rp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rp-field > span {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}
.rp-field input,
.rp-field select {
  height: 44px;
  padding: 0 12px;
  font-size: 14.5px;
  color: #111827;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.rp-field input:focus,
.rp-field select:focus {
  border-color: #c42a27;
  box-shadow: 0 0 0 3px rgba(196,42,39,.12);
}
.rp-field select {
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center;
  padding-right: 36px;
}

.rp-radio-row { flex-direction: column; }
.rp-radios {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.rp-radios label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.rp-radios input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rp-radios em {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-style: normal;
  font-size: 14.5px;
  color: #4b5563;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  transition: all .15s;
}
.rp-radios input:checked + em {
  color: #c42a27;
  border-color: #c42a27;
  background: #fef2f2;
  font-weight: 600;
}

.rp-submit {
  margin-top: 8px;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #c42a27);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(196,42,39,.32);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.rp-submit:active { transform: scale(.98); }
.rp-submit .loading { display: none; }
.rp-submit[data-loading] .txt { display: none; }
.rp-submit[data-loading] .loading { display: inline; }
.rp-submit[data-loading] { opacity: .75; pointer-events: none; }

/* ===================== 自定义成功弹窗 ===================== */
.rp-succ-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: rpFade .25s forwards;
}
@keyframes rpFade { to { opacity: 1; } }

.rp-succ {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, #fff 0%, #fff8ee 100%);
  border-radius: 20px;
  padding: 30px 22px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  animation: rpPop .4s cubic-bezier(.2,.9,.3,1.4) forwards;
}
@keyframes rpPop { to { transform: translateY(0) scale(1); opacity: 1; } }
.rp-succ::before {
  content: '';
  position: absolute;
  top: -60%; left: -50%;
  width: 200%; height: 70%;
  background: radial-gradient(circle, rgba(250,204,21,.28) 0%, transparent 60%);
  pointer-events: none;
}

.rp-succ-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #10b981);
  box-shadow: 0 10px 24px rgba(22,163,74,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rpBounce .55s cubic-bezier(.2,.9,.3,1.6);
}
@keyframes rpBounce {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.rp-succ-icon svg {
  width: 38px; height: 38px;
  color: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: rpDraw .45s .35s forwards;
}
@keyframes rpDraw { to { stroke-dashoffset: 0; } }

.rp-succ-title {
  font-size: 20px;
  font-weight: 700;
  color: #c42a27;
  text-align: center;
  margin-bottom: 6px;
  position: relative;
}
.rp-succ-code {
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  letter-spacing: .5px;
  position: relative;
}
.rp-succ-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: #4b5563;
  text-align: center;
  margin-bottom: 6px;
  position: relative;
}
.rp-succ-body b { color: #c42a27; }

.rp-succ-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  position: relative;
}
.rp-succ-actions a,
.rp-succ-actions button {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.rp-succ-actions .btn-primary {
  background: linear-gradient(135deg, #dc2626, #c42a27);
  color: #fff;
  box-shadow: 0 4px 12px rgba(196,42,39,.3);
}
.rp-succ-actions .btn-ghost {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
