/* ========== 1. Reset & tokens (375 逻辑稿, @3x 切图 ÷3) ========== */
* {
  box-sizing: border-box;
}

:root {
  --color-bg-cream: #fff4e6;
  --color-bg-page-start: #fff8f0;
  --color-bg-page-end: #ffe8c7;
  --color-primary: #ff4a16;
  --color-text-primary: #1f1f1f;
  --color-text-secondary: #333;
  --color-text-muted: #999;
  --color-text-placeholder: #8a8a8a;
  --color-border-input: #e8e8e8;
  --color-input-bg: #f6f6f6;
  --color-trust-bg: #fff6e8;
  --color-trust-sub: #777;
  --gradient-cta: linear-gradient(180deg, #ff8135 0%, #fa4314 100%);
  --shadow-card: 0 8rem 19rem rgba(255, 124, 26, 0.12);
  --shadow-cta: 0 14rem 28rem rgba(255, 45, 27, 0.26);
  --shadow-rule-btn: 0 8rem 20rem rgba(255, 143, 41, 0.15);
  --radius-card: 17rem;
  --radius-input: 9rem;
  --radius-pill: 999px;
  --page-padding-x: 12rem;
}

html {
  font-size: calc(100vw / 375);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-cream);
}

/* ========== 2. Layout ========== */
.page {
  width: 100%;
  max-width: 375rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 8rem 18rem;
  background-color: #FEFCFA;
}

.page-top {
  margin: 0 -8rem;
  padding: 10rem 8rem 0;
  background: linear-gradient(180deg, #fdefe2 0%, #fef9f500 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 12rem;
  color: #000;
  font-weight: 700;
  line-height: 22rem;
  margin-left: 4rem;
}

.rule-btn {
  border: 0;
  background: #fff;
  border-radius: 11rem;
  font-size: 10rem;
  color: #000000;
  box-shadow: var(--shadow-rule-btn);
  cursor: pointer;
  height: 22rem;
  width: 58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

/* ========== 3. Hero ========== */
.hero {
  text-align: center;
  padding: 10rem 0 14rem;
}

.hero-title {
  font-size: 0;
  line-height: 0;
  margin: 0 auto;
}

.hero-title img {
  /* width: 92%; */
  width: 279rem;
  height: auto;
  display: inline-block;
}

/* ========== 4. Offer cards ========== */
.offer-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13rem;
  margin-bottom: 14rem;
  align-items: center;
}

.offer-row .offer-card {
  width: 171rem;
  height: 120rem;
  display: block;
}

.offer-row .offer-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60rem;
  height: 60rem;
  z-index: 2;
  pointer-events: none;
}

/* ========== 5. Content card ========== */
.content-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 12rem 16rem 10rem;
  box-shadow: 0px 0px 10px 0px #FDF0E3;
}

.form-box {
  padding-bottom: 10rem;
}

/* ===== Phone Input (from lplq-demo) ===== */
.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #E0E0E0;
  border-radius: 12rem;
  padding: 0 12rem;
  height: 56rem;
  margin-bottom: 12rem;
  background: #F6F6F6;
}

.phone-input__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.phone-input__icon img {
  width: 26rem;
  height: 26rem;
  object-fit: contain;
}

.phone-input__field {
  flex: 1;
  min-width: 0;
  font-size: 13rem;
  color: #000000;
  border: none;
  outline: none;
  background: none;
}

.phone-input__field::placeholder {
  color: #999999;
  font-size: 13rem;
}

.phone-input__carrier {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  /* border-left: 1px solid #EEE; */
  padding-left: 8px;
  margin-left: 4px;
  min-width: 0;
}

.carrier-select {
  appearance: none;
  -webkit-appearance: none;
  font-size: 13rem;
  color: #060606;
  padding-right: 16px;
  padding-left: 0;
  cursor: pointer;
  text-align: right;
  text-align-last: right;
  width: 100%;
  max-width: 150rem;
  border: none;
  outline: none;
  background: none;
}

.carrier-select__arrow {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.carrier-select__arrow img {
  width: 17px;
  height: auto;
  object-fit: contain;
}

.cta {
  width: 327rem;
  height: 42rem;
  /* margin-top: 14rem; */
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: #fff;
  font-size: 18rem;
  font-weight: bold;
  cursor: pointer;
}

.users {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10rem;
  gap: 6rem;
}

.users__avatars {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.users__text {
  color: #999999;
  font-size: 10rem;
  line-height: 1;
  white-space: nowrap;
}

.avatar {
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #eee;
}

/* ========== 6. Benefits ========== */
.benefits {
  display: flex;
  justify-content: space-between;
  gap: 0;
  padding: 10rem 8rem;
  border: 1px solid #F1F1F1;
  border-radius: 12rem;
}

.benefit {
  flex: 1;
  text-align: center;
  min-width: 0;
  position: relative;
}

.benefit:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background: #FFEFE1;
  /* background: #FDFDborder: 1px solid #FFEFE1;FD; */
}

.benefit-icon {
  width: 30rem;
  height: 30rem;
  display: inline-block;
  object-fit: contain;
}

.benefit b {
  display: block;
  margin-top: 6rem;
  font-size: 10rem;
  line-height: 1.2;
  font-weight: 500;
  color: #000000;
  line-height: 14rem;
}

.benefit span {
  display: block;
  margin-top: 5rem;
  font-size: 8rem;
  line-height: 1.2;
  color: #999999;
  line-height: 11rem;
}

/* ========== 7. Video section ========== */
.video-section {
  text-align: center;
  padding: 16rem 0 12rem;
}

.video-section-title {
  margin: 0 0 10rem;
  font-size: 0;
  line-height: 0;
}

.video-section-title img {
  width: 70%;
  max-width: 180rem;
  height: auto;
  display: inline-block;
}

.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5rem;
}

.logos div {
  height: 38rem;
  border: 1px solid #eee;
  border-radius: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 3rem 5rem;
  overflow: hidden;
  width: 62rem;
  box-sizing: border-box;
}

.logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-section p {
  margin: 12rem 0 0;
  color: #878484;
  font-size: 8rem;
  line-height: 11rem;
}

/* ========== 8. Trust & price ========== */
.trust {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #FDF6F0;
  border-radius: 10rem;
  padding: 0rem 8rem;
  height: 60rem;
}

.trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6rem;
  padding: 0 3rem;
}

.trust-item__icon {
  flex-shrink: 0;
  width: 26rem;
  height: 26rem;
  object-fit: contain;
}

.trust-item__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2rem;
}

.trust-item__text b {
  font-size: 8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000000;
  line-height: 11rem;
}

.trust-item__text span {
  color: #999999;
  font-size: 7rem;
  line-height:10rem,;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4rem;
}

.price-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin: 9rem 0 0;
  color: #878484;
  font-size: 9rem;
  line-height: 11rem;
}

/* ========== 9. Modal / picker / toast ========== */
.bank-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center
}

.bank-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  position: relative;
  animation: modalSlideIn .3s ease-out;
  margin-top: 100px
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.bank-modal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0
}

.form-group {
  margin-bottom: 20px
}

.form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  color: #333
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color .3s ease
}

.form-input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .1)
}

.bank-select {
  display: none
}

.bank-select-wrapper {
  position: relative;
  display: block
}

.bank-select-trigger {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #fff;
  color: #333;
  transition: border-color .3s ease;
  user-select: none
}

.bank-select-trigger:active {
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .1)
}

.bank-select-trigger .trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.bank-select-trigger .trigger-arrow {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  margin-left: 8px
}

.bank-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center
}

.bank-picker-overlay.show {
  display: flex
}

.bank-picker-modal {
  background: #fff;
  border-radius: 12px;
  width: 85%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  overflow: hidden;
  animation: pickerSlideIn .25s ease-out
}

@keyframes pickerSlideIn {
  from {
    transform: scale(.9);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.bank-picker-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative
}

.bank-picker-title {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%)
}

.bank-picker-close {
  width: 28px;
  height: 28px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  padding: 0;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1
}

.bank-picker-close:active {
  background: #e8e8e8
}

.bank-list-wrapper {
  height: calc(48px * 6.5);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c0c0c0 #f5f5f5
}

.bank-list-wrapper::-webkit-scrollbar {
  width: 4px
}

.bank-list-wrapper::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 2px
}

.bank-list-wrapper::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 2px
}

.bank-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: #999
}

.bank-list-item {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  box-sizing: border-box;
  transition: background .15s;
  user-select: none
}

.bank-list-item:last-child {
  border-bottom: none
}

.bank-list-item:active {
  background: #f0f6ff
}

.bank-list-item.selected {
  background: #e6f0ff;
  color: #1677ff;
  font-weight: 600
}

.bank-list-item.selected::after {
  content: "✓";
  margin-left: auto;
  color: #1677ff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 32px
}

.btn {
  flex: 1;
  height: 56px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease
}

.btn-submit {
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
  height: 56px;
  font-size: 18px
}

.btn-submit:hover {
  background: linear-gradient(135deg, #0958d9, #003eb3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, .3)
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all .3s ease
}

.close-btn:hover {
  background: #e8e8e8;
  color: #333
}

.card-type-radio-group {
  display: flex;
  gap: 30px;
  padding: 12px 0
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none
}

.radio-option input[type=radio] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-right: 8px;
  cursor: pointer;
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: radio
}

.radio-label {
  font-size: 16px;
  color: #333;
  cursor: pointer;
  line-height: 1
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 12px));
  max-width: calc(100% - 48px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10000000;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18)
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%)
}

/* ========== 10. Media queries ========== */
@media (max-width: 360px) {
  .carrier-select {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .bank-modal {
    width: 95%;
    padding: 20px
  }

  .bank-modal-title {
    font-size: 18px
  }

  .form-input,
  .btn {
    height: 52px;
    font-size: 17px
  }

  .bank-select-trigger {
    height: 52px;
    font-size: 17px
  }

  .bank-picker-modal {
    width: 92%
  }

  .bank-list-wrapper {
    height: calc(44px * 6.5)
  }

  .bank-list-item {
    height: 44px;
    font-size: 15px;
    padding: 0 16px
  }

  .card-type-radio-group {
    gap: 24px
  }

  .radio-option input[type=radio] {
    width: 16px;
    height: 16px;
    margin-right: 6px
  }

  .radio-label {
    font-size: 15px
  }
}