/* 军训服兑换系统自定义样式与动画 */
:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --success: #15803d;
  --danger: #b91c1c;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f1f5f9;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

/* 移动端滚动流畅 */
html, body {
  min-height: 100vh;
}

/* 二维码拍凭证卡片仿真票据效果 */
.voucher-ticket {
  background: #ffffff;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.ticket-divider {
  position: relative;
  border-top: 2px dashed #cbd5e1;
  margin: 16px 0;
}

.ticket-divider::before, .ticket-divider::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  background-color: #f1f5f9;
  border-radius: 50%;
}

.ticket-divider::before {
  left: -26px;
}

.ticket-divider::after {
  right: -26px;
}

/* 扫码窗口动画 */
.scanner-container {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* 呼吸动画 */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-badge {
  animation: pulse-ring 2s infinite ease-in-out;
}

/* 弹窗遮罩 */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
