:root {
  --red: #e6322e;
  --red-deep: #c40704;
  --rose: #ff1962;
  --navy: #102542;
  --ink: #1f2430;
  --muted: #697386;
  --line: #e7e9ee;
  --soft: #fff2f2;
  --paper: #ffffff;
  --stage: #edf1f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--stage);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.desktop-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  min-height: 100vh;
  padding: 28px 20px 96px;
}

.phone-page {
  position: relative;
  width: min(100%, 415px);
  min-height: 100vh;
  overflow: hidden;
  background: #f6f7fb;
  box-shadow: 0 18px 54px rgba(16, 37, 66, 0.18);
}

.hero {
  position: relative;
  min-height: 392px;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 44%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.56) 0%, rgba(7, 17, 31, 0.18) 50%, rgba(246, 247, 251, 0.98) 100%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.68) 0%, rgba(7, 17, 31, 0.12) 65%, rgba(7, 17, 31, 0) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 34px 22px 0;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 0 10px;
  color: #ffe5d5;
  background: rgba(230, 50, 46, 0.88);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 280px;
  font-size: 33px;
  line-height: 1.18;
  font-weight: 800;
}

.hero-note {
  max-width: 286px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 42px;
  margin-top: 18px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(45deg, var(--red), var(--rose));
  border-radius: 24px;
  box-shadow: 0 10px 22px rgba(230, 50, 46, 0.34);
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 16px;
}

.stats div {
  min-height: 74px;
  padding: 12px 6px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats b {
  display: block;
  color: var(--red);
  font-size: 18px;
}

.stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.form-section,
.feature-band,
.risk,
.site-footer,
.ticker {
  background: var(--paper);
}

.form-section {
  padding: 22px 16px 18px;
}

.section-title {
  text-align: center;
}

.section-title span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  color: var(--red);
  background: var(--soft);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.section-title h2 {
  margin-top: 10px;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.section-title p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.loan-form {
  margin-top: 22px;
}

.field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}

.field > span,
.field legend {
  min-height: 40px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
}

.field > span::after,
.field legend::after {
  content: "*";
  margin-left: 2px;
  color: var(--red);
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  outline: none;
}

input::placeholder {
  color: #b0b7c3;
}

input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 50, 46, 0.1);
}

.radio-field {
  padding: 0;
  border: 0;
}

.radio-field legend {
  padding: 0;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-options label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
  color: #333;
  background: #f1f3f6;
  border: 1px solid #f1f3f6;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.radio-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-options label:has(input:checked) {
  color: var(--red-deep);
  background: var(--soft);
  border-color: rgba(230, 50, 46, 0.35);
}

.asset-field > span::after {
  content: "";
}

.asset-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asset-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #333;
  background: #f7f8fb;
  border: 1px solid #e6e9ef;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.asset-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.asset-options label:has(input:checked) {
  color: var(--red-deep);
  background: var(--soft);
  border-color: rgba(230, 50, 46, 0.35);
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.agreement input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
}

.error-message {
  min-height: 20px;
  margin-bottom: 10px;
  color: var(--red-deep);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.submit-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(45deg, var(--red), var(--rose));
  border: 0;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(230, 50, 46, 0.28);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button::after {
  content: "";
  position: absolute;
  top: -22px;
  left: -70px;
  width: 54px;
  height: 92px;
  background: rgba(255, 255, 255, 0.36);
  transform: rotate(25deg);
  animation: button-shine 2.8s linear infinite;
}

@keyframes button-shine {
  0% {
    left: -70px;
  }
  68% {
    left: 110%;
  }
  100% {
    left: 110%;
  }
}

.ticker {
  margin-top: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.ticker > p {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.ticker ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ticker li {
  display: grid;
  grid-template-columns: 48px 1fr 1.4fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: #9b2b2a;
  background: rgba(230, 50, 46, 0.08);
  border-radius: 6px;
  font-size: 12px;
}

.feature-band {
  margin-top: 10px;
  padding: 24px 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.steps article {
  min-height: 126px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  font-size: 12px;
}

.steps h3 {
  margin-top: 12px;
  color: #111827;
  font-size: 16px;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.risk {
  margin-top: 10px;
  padding: 18px 18px 14px;
  color: #30343b;
  text-align: center;
  border-top: 1px solid var(--line);
}

.risk p {
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
}

.risk p + p {
  margin-top: 6px;
}

.site-footer {
  padding: 12px 18px 76px;
  color: #757d8d;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
}

.site-footer small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}

.desktop-aside {
  width: 250px;
  padding-top: 90px;
}

.aside-card {
  padding: 22px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(16, 37, 66, 0.14);
  text-align: center;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 8px;
  justify-content: center;
  margin: 0 auto 16px;
}

.qr-grid span {
  width: 28px;
  height: 28px;
  background: #111827;
  border-radius: 3px;
}

.qr-grid span:nth-child(2),
.qr-grid span:nth-child(4),
.qr-grid span:nth-child(6),
.qr-grid span:nth-child(9),
.qr-grid span:nth-child(12),
.qr-grid span:nth-child(14),
.qr-grid span:nth-child(16),
.qr-grid span:nth-child(18),
.qr-grid span:nth-child(21),
.qr-grid span:nth-child(24) {
  background: #fff;
  border: 1px solid #dfe3ea;
}

.aside-card p {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.aside-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sticky-actions {
  position: fixed;
  left: calc(50% - 139px);
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 415px);
  min-height: 56px;
  transform: translateX(-50%);
  box-shadow: 0 -8px 24px rgba(16, 37, 66, 0.14);
}

.sticky-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.sticky-actions a:first-child {
  background: linear-gradient(45deg, var(--red), var(--rose));
}

.wechat-float {
  position: fixed;
  right: max(14px, calc((100vw - 415px) / 2 - 174px));
  bottom: 86px;
  z-index: 14;
  width: 178px;
  padding: 12px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(28, 151, 86, 0.24);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(16, 37, 66, 0.18);
}

.wechat-float img {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 8px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
}

.wechat-float strong {
  display: block;
  color: #12301f;
  font-size: 14px;
  line-height: 1.2;
}

.wechat-id {
  display: block;
  margin-top: 5px;
  color: #1c9756;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  user-select: all;
  overflow-wrap: anywhere;
}

.wechat-copy {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  color: #fff;
  background: #1c9756;
  border: 0;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wechat-copy-status {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: #1c9756;
  font-size: 11px;
  font-weight: 700;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 37, 66, 0.48);
}

.success-modal[hidden] {
  display: none;
}

.success-card {
  width: min(100%, 330px);
  padding: 24px 20px 18px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.success-card strong {
  color: #111827;
  font-size: 22px;
}

.success-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.close-modal {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 21px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  body {
    background: #f6f7fb;
  }

  .desktop-stage {
    display: block;
    padding: 0 0 82px;
  }

  .phone-page {
    width: 100%;
    box-shadow: none;
  }

  .desktop-aside {
    display: none;
  }

  .sticky-actions {
    left: 50%;
  }

  .wechat-float {
    right: 10px;
    bottom: 72px;
    width: 148px;
    padding: 8px;
  }

  .wechat-float img {
    width: 118px;
    height: 118px;
    margin-bottom: 6px;
  }

  .wechat-float strong {
    font-size: 13px;
  }

  .wechat-id {
    font-size: 12px;
  }

  .wechat-copy {
    min-height: 30px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 29px;
  }

  .field {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .field > span,
  .field legend {
    font-size: 13px;
  }
}
