/**
 * 首页：品牌首屏试算 + 白底分区，视觉节奏清晰
 */

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page {
  overflow: hidden;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 92% 18%, rgba(227, 85, 25, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 50% at 8% 88%, rgba(227, 85, 25, 0.05), transparent 52%),
    #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  animation: home-rise 0.55s ease both;
}

.hero-brand {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-primary);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.hero-sub {
  margin: 0 0 24px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 34em;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  animation: home-rise 0.65s ease 0.06s both;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

/* —— 试算卡 —— */
.calc-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 20px;
  padding: 20px 20px 16px;
  box-shadow: 0 12px 32px rgba(31, 31, 31, 0.06);
  overflow: visible;
}

.calc-row {
  padding: 2px 0 10px;
  border-bottom: 1px solid #ece8e4;
}

.calc-row--recv {
  margin-top: 10px;
}

/* 收款方式：标签在左、选择器在右，同一行对齐 */
.calc-row--way {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  border-bottom: 0;
  padding-bottom: 8px;
}

.calc-row--way .calc-label {
  margin: 0;
  flex: 0 0 auto;
}

.calc-row--way .calc-row-body {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.calc-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.2;
  color: #929aa5;
  font-weight: 500;
  white-space: nowrap;
}

.calc-row-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.calc-amount-main,
.calc-amount-main.custom-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  max-width: none;
}

.calc-card .custom-input .input-wrapper {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 !important;
  background: transparent;
}

.calc-card .custom-input .input-element {
  width: 100%;
  min-width: 0;
  height: 44px;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: #1f1f1f;
  padding: 0;
  line-height: 1.1;
}

.calc-card .custom-input .input-element::placeholder {
  color: #c8c4bf;
  font-weight: 600;
}

.calc-card .custom-input.input-focused .input-wrapper {
  box-shadow: none !important;
}

.calc-receive {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-ccy-wrap {
  flex: 0 0 auto;
  width: max-content;
  max-width: 132px;
}

.calc-ccy-wrap > .custom-select,
.calc-ccy-wrap.custom-select {
  width: max-content !important;
  max-width: 132px;
  min-width: 0;
}

.calc-ccy-wrap .select-trigger,
.calc-ccy-wrap .custom-select.select-borderless .select-trigger {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  min-height: 42px;
  height: 42px;
  padding: 0 4px 0 10px !important;
  border-radius: 999px;
  gap: 6px;
  width: max-content !important;
  max-width: 132px;
}

.calc-ccy-wrap .select-trigger:hover {
  background: rgba(227, 85, 25, 0.06);
}

.calc-ccy-wrap .select-value {
  flex: 0 1 auto !important;
  overflow: hidden;
  max-width: 96px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.calc-ccy-wrap .select-value-content,
.calc-ccy-wrap .calc-ccy-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1;
}

.calc-ccy-wrap .select-trigger .calc-ccy-name {
  display: none;
}

.select-dropdown .calc-ccy-name,
.select-sheet-body .calc-ccy-name {
  display: inline;
  margin-left: 6px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 400;
}

.calc-ccy-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.calc-ccy-wrap .select-trigger .calc-ccy-flag {
  width: 24px;
  height: 24px;
}

.calc-ccy-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #1f1f1f;
}

.calc-ccy-wrap .select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  flex-shrink: 0;
  opacity: 0.45;
  line-height: 0;
  position: relative;
  top: 1px;
}

.calc-ccy-wrap .select-arrow .g-icon {
  width: 12px;
  height: 12px;
  display: block;
}

.select-option:has(.calc-ccy-option) {
  min-height: 44px;
  padding: 10px 14px;
  gap: 10px;
}

.select-dropdown.is-sheet .select-option:has(.calc-ccy-option) {
  min-height: 52px;
  padding: 14px 16px;
}

.select-option-group:has(.calc-ccy-option) + .select-option-group {
  margin-top: 6px;
  padding-top: 6px;
}

/* —— 收款方式选择（本地选项，仅展示） —— */
.calc-way-wrap {
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  max-width: 100%;
}

.calc-way-wrap > .custom-select,
.calc-way-wrap.custom-select {
  width: max-content !important;
  max-width: 100%;
}

.calc-way-wrap .select-trigger,
.calc-way-wrap .custom-select.select-borderless .select-trigger {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  min-height: 42px;
  height: 42px;
  padding: 0 4px 0 10px !important;
  border-radius: 10px;
  gap: 8px;
  width: max-content !important;
  max-width: 100%;
}

.calc-way-wrap .select-value {
  flex: 0 1 auto !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  line-height: 1;
}

.calc-way-wrap .select-value-content,
.calc-way-wrap .calc-way-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1;
}

.calc-way-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.calc-way-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #1f1f1f;
}

.calc-way-wrap .select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  flex-shrink: 0;
  opacity: 0.45;
  line-height: 0;
  position: relative;
  top: 1px;
}

.calc-way-wrap .select-arrow .g-icon {
  width: 12px;
  height: 12px;
  display: block;
}

.select-option:has(.calc-way-option) {
  min-height: 44px;
  padding: 10px 14px;
  gap: 10px;
}

.select-dropdown.is-sheet .select-option:has(.calc-way-option) {
  min-height: 52px;
  padding: 14px 16px;
}

.calc-rate-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 4px 0 16px;
  min-height: 22px;
  font-size: 13px;
  color: #929aa5;
}

.calc-rate-text {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}

.calc-rate-text strong {
  color: #1f1f1f;
  font-weight: 700;
}

.calc-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.calc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #929aa5;
}

/* display:flex 会盖掉 UA 的 [hidden]，必须显式压回 */
.calc-meta-row[hidden] {
  display: none !important;
}

.calc-meta-label {
  flex: 0 0 auto;
}

.calc-meta-value {
  flex: 1 1 auto;
  text-align: right;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

/* 付款金额：相对手续费 / IOF 更突出 */
.calc-meta-row--pay {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #ece8e4;
  font-size: 14px;
  color: #1f1f1f;
}

.calc-meta-row--pay .calc-meta-label {
  font-weight: 600;
  color: #1f1f1f;
}

.calc-meta-row--pay .calc-meta-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
}

.calc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(227, 85, 25, 0.28);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.calc-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 12px 28px rgba(227, 85, 25, 0.34);
  transform: translateY(-1px);
}

.calc-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(227, 85, 25, 0.22);
}

/* —— Sections —— */
.section {
  padding: 64px 0;
  background: #ffffff;
}

.section-head {
  margin-bottom: 28px;
  max-width: 40em;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* License */
.section--license {
  padding-top: 40px;
}

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.license-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 16px;
  background: #fff;
}

.license-card-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}

.license-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.license-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.license-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Features */
.section--features {
  background:
    linear-gradient(180deg, rgba(227, 85, 25, 0.035) 0%, rgba(255, 255, 255, 0) 48%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 20px;
}

.feature-item {
  padding: 8px 4px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 14px;
}

.feature-icon .g-icon {
  width: 22px;
  height: 22px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-item p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Steps */
.step-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
  position: relative;
}

.step-rail::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 85, 25, 0.28), transparent);
  pointer-events: none;
}

.step-item {
  position: relative;
  z-index: 1;
}

.step-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(227, 85, 25, 0.28);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px #fff;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-item p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Scenes */
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scene-media {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f4f4f4;
}

.scene-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.55s ease;
}

.scene-card.is-revealed .scene-media img {
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .scene-card.is-revealed:hover .scene-media img {
    transform: scale(1.03);
  }
}

.scene-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.scene-body p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.65;
  max-width: 36em;
}

/* FAQ */
.faq-box .collapse-panel p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* CTA */
.section--cta {
  padding-top: 24px;
  padding-bottom: 48px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(227, 85, 25, 0.16), transparent 55%),
    #fff7f2;
  border: 1px solid rgba(227, 85, 25, 0.12);
}

.cta-band-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.cta-band-copy p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.footnote {
  margin: 0 auto 28px;
  width: min(100% - 32px, var(--site-max));
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .hero-grid,
  .scene-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 0 28px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-visual {
    border-radius: 18px;
  }

  .hero-visual img {
    aspect-ratio: 16 / 11;
  }

  .hero-brand {
    text-align: left;
  }

  .calc-card {
    max-width: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head--row .site-cta {
    width: 100%;
  }

  /* 优势：移动端 2×2，避免四列挤窄 / 单列过长 */
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
  }

  .feature-item {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 31, 31, 0.06);
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  .feature-icon .g-icon {
    width: 18px;
    height: 18px;
  }

  .feature-item h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .feature-item p {
    font-size: 12px;
    line-height: 1.55;
  }

  /* 四步：竖向时间轴 */
  .step-rail {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
  }

  .step-rail::before {
    display: none;
  }

  .step-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 0 0 22px;
    position: relative;
  }

  .step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 1px;
    background: rgba(227, 85, 25, 0.22);
  }

  .step-item:last-child {
    padding-bottom: 0;
  }

  .step-index {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-bottom: 0;
    box-shadow: none;
    width: 36px;
    height: 36px;
    background: var(--color-primary-soft);
    border-color: transparent;
  }

  .step-item h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 4px 0 0;
    font-size: 16px;
  }

  .step-item p {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .calc-ccy-flag,
  .calc-ccy-wrap .select-trigger .calc-ccy-flag,
  .calc-way-icon {
    width: 22px;
    height: 22px;
  }

  .calc-ccy-code,
  .calc-way-name {
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .hero-copy,
  .hero-visual {
    animation-duration: 0.45s;
  }

  .hero-visual {
    animation-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual {
    animation: none;
  }

  .scene-media img,
  .scene-card.is-revealed .scene-media img {
    transform: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px 12px;
    align-items: start;
  }

  .feature-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .feature-item h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .feature-item p {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
  }
}
