:root.yun-mobile-payment-active {
  color-scheme: light;
  background: #f3f6fb;
}

body.yun-mobile-payment-active {
  min-width: 0 !important;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(55, 127, 255, 0.16), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(246, 193, 92, 0.15), transparent 27%),
    linear-gradient(180deg, #edf4ff 0, #f5f7fb 38%, #f7f8fb 100%) !important;
  color: #152238;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.yun-mobile-payment-active::before,
body.yun-mobile-payment-active::after {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.yun-mobile-payment-active::before {
  top: -110px;
  left: -90px;
  width: 240px;
  height: 240px;
  background: rgba(22, 119, 255, 0.08);
  filter: blur(2px);
}

body.yun-mobile-payment-active::after {
  right: -100px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  background: rgba(216, 159, 46, 0.08);
}

.yun-uid-payment-page {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px
    max(34px, env(safe-area-inset-bottom)) !important;
}

.yun-uid-mobile-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 2px 18px;
  color: #294461;
  font-size: 13px;
}

.yun-uid-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  font-weight: 720;
}

.yun-uid-brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #1677ff, #0a5fda);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.24);
  font-size: 18px;
}

.yun-uid-route-pill {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(63, 118, 178, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #6b7b8f;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.yun-uid-route-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45a66b;
  box-shadow: 0 0 0 3px rgba(69, 166, 107, 0.12);
}

.yun-uid-payment-page .yun-uid-form-container {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
}

.yun-uid-payment-page .yun-uid-payment-card {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(221, 228, 238, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 60px rgba(34, 53, 82, 0.12),
    0 3px 12px rgba(34, 53, 82, 0.05);
  text-align: left !important;
}

.yun-uid-payment-hero {
  position: relative;
  overflow: hidden;
  padding: 27px 24px 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 211, 120, 0.22), transparent 28%),
    linear-gradient(135deg, #071a33 0%, #0b2c54 58%, #12477d 100%);
  color: #fff;
}

.yun-uid-payment-hero::after {
  position: absolute;
  right: -28px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.yun-uid-payment-kicker {
  display: block;
  margin-bottom: 9px;
  color: #e9bd63;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.1px;
}

.yun-uid-payment-hero h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 0.5px;
}

.yun-uid-payment-hero p {
  margin: 8px 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.yun-uid-payment-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.yun-uid-payment-steps span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.yun-uid-payment-steps span:last-child {
  justify-self: end;
}

.yun-uid-payment-steps b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.yun-uid-payment-steps .is-active {
  color: #fff;
}

.yun-uid-payment-steps .is-active b {
  border-color: #efc46f;
  background: #efc46f;
  color: #14283e;
}

.yun-uid-payment-steps i {
  height: 1px;
  margin: 0 10px;
  background: linear-gradient(
    90deg,
    rgba(239, 196, 111, 0.7),
    rgba(255, 255, 255, 0.15)
  );
}

.yun-uid-original-title {
  display: none !important;
}

.yun-uid-payment-page .yun-uid-amount-wrap {
  position: relative;
  margin: 0;
  padding: 26px 24px 0;
}

.yun-uid-amount-label {
  display: block;
  margin-bottom: 8px;
  color: #536276;
  font-size: 13px;
  font-weight: 680;
}

.yun-uid-payment-page .yun-uid-amount-input {
  position: relative;
  display: block;
}

.yun-uid-payment-page .yun-uid-amount-input::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 3px;
  color: #17243a;
  content: "¥";
  font-size: 30px;
  font-weight: 760;
  transform: translateY(-44%);
  pointer-events: none;
}

.yun-uid-payment-page .yun-uid-amount-input .el-input__inner,
.yun-uid-payment-page .yun-uid-amount-input input {
  width: 100%;
  height: 78px !important;
  padding: 0 4px 2px 45px !important;
  border: 0 !important;
  border-bottom: 2px solid #e5e9ef !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #121d30;
  font-size: clamp(38px, 12vw, 48px) !important;
  font-weight: 760;
  line-height: 1 !important;
  caret-color: #1677ff;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.yun-uid-payment-page .yun-uid-amount-input .el-input__inner:focus,
.yun-uid-payment-page .yun-uid-amount-input input:focus {
  border-bottom-color: #1677ff !important;
}

.yun-uid-payment-page .yun-uid-amount-input input::placeholder {
  color: #cbd2dc;
  opacity: 1;
}

.yun-uid-payment-page
  .yun-uid-amount-input
  input[type="number"]::-webkit-outer-spin-button,
.yun-uid-payment-page
  .yun-uid-amount-input
  input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.yun-uid-amount-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: #8994a5;
  font-size: 11px;
  line-height: 1.6;
}

.yun-uid-amount-hint span {
  color: #4baa6f;
  font-size: 8px;
}

.yun-uid-quick-amounts {
  padding: 20px 24px 4px;
}

.yun-uid-quick-amounts > span {
  display: block;
  margin-bottom: 10px;
  color: #7b8798;
  font-size: 11px;
}

.yun-uid-quick-amounts > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.yun-uid-quick-amounts button {
  min-width: 0;
  height: 36px;
  padding: 0 4px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #46566b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease;
}

.yun-uid-quick-amounts button:active {
  border-color: #7fb2f5;
  background: #edf5ff;
  color: #1167db;
  transform: scale(0.97);
}

.yun-uid-payment-page .yun-uid-submit-wrap {
  margin: 0;
  padding: 20px 24px 0;
}

.yun-uid-payment-page .yun-uid-submit {
  width: 100% !important;
  height: 52px;
  margin: 0 !important;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #1677ff, #0a67e7);
  color: #fff;
  box-shadow: 0 12px 26px rgba(22, 119, 255, 0.22);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 0.5px;
}

.yun-uid-payment-page .yun-uid-submit:hover,
.yun-uid-payment-page .yun-uid-submit:focus {
  background: linear-gradient(135deg, #1677ff, #0a67e7);
  color: #fff;
}

.yun-uid-payment-page .yun-uid-submit:active {
  transform: scale(0.988);
}

.yun-uid-payment-page .yun-uid-submit.is-loading {
  opacity: 0.78;
}

.yun-uid-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 24px 24px;
  padding: 13px 14px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fafbfd;
  color: #8490a1;
  font-size: 11px;
  line-height: 1.55;
}

.yun-uid-security-note strong {
  display: block;
  margin-bottom: 1px;
  color: #566478;
  font-size: 12px;
}

.yun-uid-security-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e9f7ee;
  color: #3b9a5f;
  font-weight: 800;
}

.yun-uid-payment-page .yun-uid-result-container {
  display: none !important;
  width: 100% !important;
  height: auto !important;
  padding: 16px 0 0 !important;
}

.yun-uid-payment-page .yun-uid-result-container.has-payment-code {
  display: block !important;
}

.yun-uid-payment-page .yun-uid-result-container .box {
  width: 100% !important;
  padding: 20px;
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(34, 53, 82, 0.08);
}

.yun-uid-payment-page .yun-uid-result-container img {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

body.yun-mobile-payment-active > .el-message {
  width: min(calc(100vw - 30px), 410px);
  min-width: 0;
  border-radius: 13px;
  box-shadow: 0 14px 38px rgba(34, 53, 82, 0.15);
}

@media (max-width: 360px) {
  .yun-uid-payment-page {
    padding-right: 11px !important;
    padding-left: 11px !important;
  }

  .yun-uid-mobile-header {
    margin-right: 4px;
    margin-left: 4px;
  }

  .yun-uid-route-pill {
    display: none;
  }

  .yun-uid-payment-hero,
  .yun-uid-payment-page .yun-uid-amount-wrap,
  .yun-uid-quick-amounts,
  .yun-uid-payment-page .yun-uid-submit-wrap {
    padding-right: 19px;
    padding-left: 19px;
  }

  .yun-uid-security-note {
    margin-right: 19px;
    margin-left: 19px;
  }
}

@media (min-width: 700px) {
  .yun-uid-payment-page {
    padding-top: 38px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yun-uid-payment-page *,
  .yun-uid-payment-page *::before,
  .yun-uid-payment-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
