:root {
  color-scheme: light;
  --page-blue-top: #1c7ef0;
  --page-blue-mid: #63b6ff;
  --page-blue-bottom: #2d8ef6;
  --text-cream: #fefcf5;
  --text-deep: #153056;
  --text-muted: #64748b;
  --green-top: #5ee85b;
  --green-bottom: #10c65a;
  --gold-top: #ffd863;
  --gold-bottom: #ffb829;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--page-blue-top) 0%, var(--page-blue-mid) 48%, var(--page-blue-bottom) 100%);
}

body {
  color: #fff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.refund-page {
  min-height: 100vh;
}

.refund-page__container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    max(24px, env(safe-area-inset-top))
    16px
    max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle at 20% 68%, rgba(255, 222, 119, 0.2), transparent 18%),
    radial-gradient(circle at 84% 74%, rgba(73, 225, 120, 0.18), transparent 14%),
    linear-gradient(180deg, var(--page-blue-top) 0%, var(--page-blue-mid) 46%, var(--page-blue-bottom) 100%);
}

.refund-page__container::before,
.refund-page__container::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.refund-page__container::before {
  top: 110px;
  right: -96px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.refund-page__container::after {
  left: -72px;
  bottom: 180px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(255, 211, 82, 0.18), rgba(255, 211, 82, 0));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  text-align: center;
  padding-top: 2px;
  flex: 0 0 auto;
}

.refund-page__title {
  margin: 0;
  color: var(--text-cream);
  font-size: clamp(30px, 8.4vw, 54px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 20px rgba(16, 63, 146, 0.28);
}

.refund-page__subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 4.1vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(10px, 3vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-shadow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(66vw, 260px);
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(26, 82, 163, 0.56) 0%, rgba(26, 82, 163, 0.18) 46%, transparent 76%);
  filter: blur(16px);
}

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(300px, 74vw);
  aspect-ratio: 300 / 620;
  height: auto;
  transform: translate(-50%, -50%) rotate(16deg);
  border-radius: 42px;
  background: linear-gradient(160deg, #eceef1 0%, #bcc3cb 18%, #eff2f5 39%, #8d98a3 58%, #edf0f4 75%, #88939f 100%);
  box-shadow:
    0 26px 60px rgba(16, 54, 115, 0.26),
    0 10px 18px rgba(16, 54, 115, 0.12);
}

.screen {
  position: absolute;
  inset: 16px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #1478f4 0%, #7cc6ff 56%, #f4fbff 100%);
  border: 8px solid #0f1420;
}

.speaker {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  width: 100px;
  height: 26px;
  margin-left: -50px;
  border-radius: 0 0 16px 16px;
  background: #0b111c;
}

.speaker__slot {
  width: 44px;
  height: 7px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: #1f2733;
}

.side-button {
  position: absolute;
  left: -8px;
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #525a63, #b0b8c0);
}

.side-button--one {
  top: 112px;
  height: 24px;
}

.side-button--two {
  top: 172px;
  height: 42px;
}

.side-button--three {
  top: 226px;
  height: 42px;
}

.status {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 600;
}

.status__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 16px;
  height: 10px;
}

.signal__bar {
  width: 3px;
  background: #fff;
  border-radius: 2px 2px 0 0;
}

.signal__bar--1 {
  height: 4px;
}

.signal__bar--2 {
  height: 7px;
}

.signal__bar--3 {
  height: 10px;
}

.wifi {
  width: 14px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid transparent;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.battery__head {
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: #fff;
}

.nav {
  position: absolute;
  top: 60px;
  left: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  font-weight: 700;
}

.nav span {
  margin-top: 12px;
}

.back {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

.blob {
  position: absolute;
  top: 76px;
  right: -4px;
  width: 118px;
  height: 126px;
  border-radius: 34px 0 0 120px;
  background: linear-gradient(160deg, rgba(152, 211, 255, 0.56), rgba(34, 141, 249, 0.12));
}

.screen-title {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  color: #fffdf6;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 8px 18px rgba(34, 106, 221, 0.2);
}

.card {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 204px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  box-shadow: 0 18px 34px rgba(67, 113, 182, 0.14);
}

.card-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(122, 122, 138, 0.82);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.card-line--stacked {
  flex-direction: column;
  gap: 6px;
}

.card-line--stacked span {
  color: rgba(92, 92, 108, 0.88);
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.card-line__divider {
  width: 56px;
  height: 2px;
  background: #e6e8ef;
}

.coin-stage {
  position: relative;
  width: 100%;
  height: 132px;
  margin-top: 8px;
  overflow: hidden;
}

.platform {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff6d8 0%, #ffd57e 72%, #f7ab2c 100%);
}

.platform:first-of-type {
  bottom: 12px;
  width: 138px;
  height: 34px;
  background: radial-gradient(circle at 50% 30%, #fff5da 0%, #ffe1a2 40%, #ffbb4a 72%, #f49a18 100%);
}

.platform--mid {
  bottom: -1px;
  width: 156px;
  height: 18px;
  opacity: 0.76;
}

.platform--bottom {
  bottom: -12px;
  width: 168px;
  height: 14px;
  opacity: 0.46;
}

.coin,
.small-coin,
.yuan-coin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7bc 0%, #ffd65b 38%, #ffbd32 64%, #f29e17 100%);
}

.coin {
  position: absolute;
  box-shadow: inset -5px -2px 0 rgba(242, 132, 18, 0.6), 0 16px 26px rgba(244, 177, 62, 0.2);
}

.coin__symbol {
  color: rgba(255, 245, 188, 0.95);
  font-size: 30px;
  font-weight: 800;
}

.coin__symbol--lg {
  font-size: 60px;
}

.coin__symbol--md {
  font-size: 48px;
}

.coin__symbol--sm {
  font-size: 21px;
}

.coin-a {
  left: 4%;
  top: 42%;
  width: 40px;
  height: 40px;
  transform: rotate(-18deg);
}

.coin-b {
  left: -4%;
  top: 60%;
  width: 70px;
  height: 70px;
  transform: rotate(-16deg);
  filter: blur(0.6px);
  opacity: 0.92;
}

.coin-c {
  right: -2%;
  top: 74%;
  width: 62px;
  height: 62px;
  transform: rotate(14deg);
  filter: blur(0.4px);
}

.coin-d {
  right: 8%;
  top: 18%;
  width: 24px;
  height: 24px;
  transform: rotate(16deg);
  opacity: 0.78;
}

.coin-e {
  display: none;
}

.yuan-coin {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  box-shadow:
    inset -10px -4px 0 rgba(242, 132, 18, 0.68),
    0 20px 26px rgba(255, 173, 52, 0.26);
}

.yuan-coin span {
  color: #f7f1d6;
  font-size: 58px;
  font-weight: 800;
}

.small-coin {
  position: absolute;
  box-shadow: inset -3px -2px 0 rgba(242, 132, 18, 0.58);
}

.small-coin span {
  color: #fff3bf;
  font-weight: 700;
}

.small-coin--one {
  right: 14px;
  top: 44px;
  width: 26px;
  height: 26px;
}

.small-coin--one span {
  font-size: 16px;
}

.small-coin--two {
  right: 42px;
  top: 104px;
  width: 20px;
  height: 20px;
}

.small-coin--two span {
  font-size: 11px;
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, #ffd869, #f5af14);
  transform: rotate(45deg);
}

.spark--left {
  left: 28px;
  top: 74px;
}

.spark--right {
  right: 26px;
  top: 68px;
}

.inner-btn,
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.inner-btn {
  width: 78%;
  height: 44px;
  margin: 2px auto 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9f42, #ff641e);
  color: #fff6dc;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 18px rgba(255, 111, 24, 0.22);
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 104px;
  height: 5px;
  margin-left: -52px;
  border-radius: 999px;
  background: rgba(13, 16, 24, 0.92);
}

.cta-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  margin-top: 6px;
  padding: 0 8px;
  flex: 0 0 auto;
}

.cta {
  width: 100%;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.54);
  background: linear-gradient(180deg, var(--green-top), var(--green-bottom));
  color: #fbfff7;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(20, 132, 84, 0.24);
}

.status-message {
  margin: 10px auto 0;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 420px) {
  .refund-page__container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    width: 100%;
    min-height: 0;
  }

  .phone {
    width: min(288px, 76vw);
  }

  .screen-title {
    font-size: 31px;
  }

  .card {
    left: 26px;
    right: 26px;
    top: 198px;
  }

  .card-line--stacked span {
    font-size: 18px;
  }

  .inner-btn {
    height: 42px;
    font-size: 15px;
  }

  .cta-wrap {
    width: 100%;
    padding: 0 4px;
  }

  .cta {
    min-height: 56px;
    border-radius: 16px;
  }

  .coin-a {
    left: -2px;
    top: 43%;
  }

  .coin-b {
    left: -6%;
    top: 61%;
  }

  .coin-c {
    right: -4%;
    top: 75%;
  }

  .coin-d {
    right: 5%;
    top: 20%;
  }
}

@media (max-height: 760px) {
  .refund-page__title {
    font-size: clamp(28px, 7.8vw, 44px);
  }

  .refund-page__subtitle {
    font-size: clamp(15px, 3.8vw, 20px);
  }

  .hero {
    margin-top: 6px;
  }

  .phone {
    width: min(270px, 68vw);
  }

  .cta {
    min-height: 54px;
    font-size: 18px;
  }
}
