/* ============================================================
   finance.css — 居中头部 + 2×2 卡片墙
   ============================================================ */

.finance { padding: 40px 0 105px; background: var(--white); }
.finance__head { position: relative; }
.finance__head h2 { max-width: 20ch; }
.finance__cursor { width: 94px; margin-top: -6px; translate: 210px; }

.finance__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 449px;
  gap: 24px;
  margin-top: 40px;
}

.finance__card {
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.6vw, 38px);
  background: #eef1fb;
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

/* ---------- A：Total balance 叠层交易条 ---------- */
.finance__card--balance header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.finance__card--balance h3 { font-size: clamp(26px, 2.4vw, 34px); }
.finance__card-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0c0e14;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.finance__txns { display: grid; }
.finance__txn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 20px;
  padding: 22px 30px;
  font-size: var(--body-md);
}
.finance__txn span.finance__txn-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
}
.finance__txn-logo img { width: 22px; height: 22px; }
.finance__txn span { flex: 1; }
.finance__txn strong { font-size: 22px; font-weight: 700; }
.finance__txn em {
  font-style: normal;
  display: grid;
  justify-items: end;
  font-weight: 700;
}
.finance__txn em small { font-weight: 400; font-size: var(--body-md); }
.finance__txn--dark { background: #0c0e14; color: var(--white); }
.finance__txn--dark em { color: var(--green); }
.finance__txn--dark em small { color: rgb(255 255 255 / .7); }
.finance__txn--green { background: var(--green); color: var(--ink); margin-top: -16px; box-shadow: 0 -14px 30px rgb(0 0 0 / .12); }
.finance__txn--white { background: var(--white); color: var(--ink); margin-top: -16px; width: 92%; margin-inline: auto; box-shadow: 0 14px 34px rgb(3 0 40 / .1); }

/* ---------- B：2M+ users ---------- */
.finance__card--users { background: #e9edfb; position: relative; padding-bottom: 0; }
.finance__users-head { display: flex; align-items: center; gap: 20px; }
.finance__users-head img { height: 44px; width: auto; }
.finance__users-num {
  font-family: var(--font-numeric);
  font-weight: 500;
  font-size: clamp(48px, 4.6vw, 66px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.finance__card--users h3 { margin-top: 12px; font-size: clamp(24px, 2.1vw, 30px); }
.finance__card--users p { margin-top: 12px; max-width: 52ch; }
.finance__users-photo {
  margin-top: 20px;
  border-radius: 20px 20px 0 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}

/* ---------- C：$15,860 深色渐变卡 ---------- */
.finance__card--amount {
  background:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(150deg, #14333c 0%, #071d24 60%, #04141a 100%);
  background-size: 90px 90px, 90px 90px, cover;
  color: var(--white);
  justify-content: center;
  align-items: flex-start;
  padding-inline: clamp(40px, 4.5vw, 70px);
}
.finance__amount {
  font-family: var(--font-numeric);
  font-size: clamp(56px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.finance__amount-caption { margin-top: 18px; color: rgb(255 255 255 / .72); font-size: var(--body-lg); }

/* ---------- D：手持手机 ---------- */
.finance__card--phone { padding: 0; background: #eef1fb; }
.finance__card--phone img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1199px) {
  .finance__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .finance__users-photo { flex: none; max-height: 300px; }
}
@media (max-width: 809px) {
  .finance { padding: 80px 0; }
  .finance__grid { margin-top: 56px; gap: 16px; }
  .finance__txn { padding: 22px 20px; }
}
