/* =========================================================
   RichPay — 四方支付官网
   ========================================================= */

:root {
  --brand: #4057ff;
  --brand-2: #6a7bff;
  --mint: #00c98d;
  --mint-2: #00e0a5;
  --ink: #070d1c;
  --ink-2: #0b1428;
  --text: #17223a;
  --muted: #5c6b84;
  --line: #e6ecf7;
  --bg-soft: #f5f8fd;
  --surface: #ffffff;
  --radius: 20px;
  --shadow-sm: 0 2px 12px rgba(15, 27, 53, .05);
  --shadow-md: 0 20px 50px rgba(15, 27, 53, .10);
  --grad: linear-gradient(120deg, #4057ff 0%, #00c98d 100%);
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(64, 87, 255, .18); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 通用组件 ---------- */

.grad-text {
  background: linear-gradient(100deg, #7f8dff 0%, #37e3b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 34px rgba(64, 87, 255, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(64, 87, 255, .42);
}

.btn-ghost {
  color: #eaf1ff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

.btn-block { width: 100%; height: 52px; font-size: 15.5px; }

.section { padding: 112px 0; }

.section-head { max-width: 640px; margin: 0 auto 58px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; max-width: 560px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}

.section-head p {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--muted);
}

.flag {
  width: 21px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  flex-shrink: 0;
}

/* 滚动进入动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 20px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(11, 18, 32, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(64, 87, 255, .32));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  transition: color .3s ease;
}
.brand-name span { color: #6ee7bd; transition: color .3s ease; }

.site-header.scrolled .brand-name { color: #101a2e; }
.site-header.scrolled .brand-name span { color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav > a:not(.nav-cta) {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(238, 244, 255, .78);
  transition: color .25s ease;
}
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .3s ease;
}
.main-nav > a:not(.nav-cta):hover { color: #fff; }
.main-nav > a:not(.nav-cta):hover::after { width: 100%; }

.site-header.scrolled .main-nav > a:not(.nav-cta) { color: #46536b; }
.site-header.scrolled .main-nav > a:not(.nav-cta):hover { color: #101a2e; }

.nav-cta {
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px rgba(64, 87, 255, .3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(64, 87, 255, .4); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.scrolled .menu-toggle { background: #f2f6fd; border-color: #e3eaf6; }
.site-header.scrolled .menu-toggle span { background: #17223a; }

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(64, 87, 255, .38), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(0, 201, 141, .18), transparent 62%),
    linear-gradient(180deg, #070d1c 0%, #091228 62%, #081020 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 86% 66% at 50% 22%, #000 28%, transparent 76%);
  mask-image: radial-gradient(ellipse 86% 66% at 50% 22%, #000 28%, transparent 76%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 48px;
  align-items: center;
  padding-top: 156px;
  padding-bottom: 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #a9b8d6;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-2);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 224, 165, .55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.35rem, 4.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  color: #fff;
}

.hero-lead {
  max-width: 540px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.85;
  color: #9fb0cd;
}
.hero-lead strong { color: #e6eeff; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8ea1c2;
}
.hero-points svg { width: 16px; height: 16px; color: var(--mint-2); flex-shrink: 0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.stat-num {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  background: linear-gradient(120deg, #ffffff 10%, #8beed0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { margin-top: 6px; font-size: 12.5px; color: #7f92b3; }

/* Hero 视觉卡片 */
.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-glow {
  position: absolute;
  inset: 6% 2% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 38%, rgba(64, 87, 255, .45), transparent 60%),
    radial-gradient(circle at 28% 76%, rgba(0, 201, 141, .26), transparent 58%);
  filter: blur(34px);
  pointer-events: none;
}

.pay-card {
  position: absolute;
  left: 1%;
  top: 118px;
  width: min(342px, 82%);
  padding: 24px 24px 20px;
  border-radius: 22px;
  background: linear-gradient(158deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .48);
  animation: floatY 7.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

.pay-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #63f0c1;
  background: rgba(0, 201, 141, .13);
  border: 1px solid rgba(0, 201, 141, .32);
}

.status-pill .dot,
.pay-foot .dot,
.footer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-2);
  box-shadow: 0 0 0 3px rgba(0, 201, 141, .16);
  flex-shrink: 0;
}

.pay-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #c3d1e9;
}

.pay-amount {
  margin-top: 22px;
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}

.pay-convert { margin-top: 4px; font-size: 12.5px; color: #8fa1c0; }

.pay-rows { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .09); }
.pay-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
}
.pay-rows > div + div { margin-top: 11px; }
.pay-rows span { color: #8698b8; }
.pay-rows b { font-weight: 500; color: #e8efff; text-align: right; }

.pay-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, .13);
  font-size: 12.5px;
  color: #7ef0c4;
}

.float-card {
  position: absolute;
  border-radius: 18px;
  background: rgba(12, 23, 46, .92);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.route-card {
  top: 16px;
  right: 0;
  width: 252px;
  padding: 18px 18px 20px;
  animation: floatY 9s ease-in-out .6s infinite;
}

.float-title {
  margin-bottom: 15px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8195b8;
}

.route-row {
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #c9d6ee;
}
.route-row + .route-row { margin-top: 12px; }
.route-row b { font-weight: 500; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

.track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #4057ff, #00e0a5);
  animation: barGrow 1.8s cubic-bezier(.2, .7, .2, 1) .4s forwards;
}

@keyframes barGrow {
  from { width: 0; }
  to { width: var(--v); }
}

.latency-card {
  left: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 224px;
  padding: 15px 18px;
  animation: floatY 8.5s ease-in-out 1.2s infinite;
  z-index: 4;
}

.spark { width: 62px; height: 32px; flex-shrink: 0; }
.latency-card span { display: block; font-size: 11px; color: #8195b8; }
.latency-card strong { font-size: 1.12rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }

/* 支付方式跑马灯 */
.marquee {
  position: relative;
  z-index: 2;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(226, 236, 255, .42);
  white-space: nowrap;
}
.marquee-group i { width: 4px; height: 4px; border-radius: 50%; background: rgba(110, 231, 189, .55); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 全球通道 ---------- */

.channels { background: var(--bg-soft); }

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.country-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e9eef8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.country-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #d7e2f5;
}

.country-media { position: relative; height: 168px; overflow: hidden; }
.country-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.country-card:hover .country-media img { transform: scale(1.06); }
.country-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 28, .18), transparent 45%, rgba(7, 13, 28, .28));
}

.country-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #16233a;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(7, 13, 28, .18);
}

.country-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }

.country-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.country-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.country-head span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #8090aa;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f2f6fd;
}

.country-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chips li {
  padding: 5px 9px;
  font-size: 11.5px;
  color: #44546f;
  background: #f4f7fd;
  border: 1px solid #e7edf8;
  border-radius: 8px;
}

.country-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.country-meta > div { padding-top: 14px; border-top: 1px solid var(--line); }
.country-meta span { display: block; font-size: 11px; color: #8090aa; }
.country-meta b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: #17223a; }

/* ---------- 费率与规则 ---------- */

.country-card { position: relative; cursor: pointer; }
.country-card:focus-visible { outline: 3px solid rgba(64, 87, 255, .4); outline-offset: 3px; }

.country-card.is-active {
  border-color: #b9c6ff;
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px rgba(64, 87, 255, .1), var(--shadow-md);
}
.country-card.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  z-index: 3;
}

.channels-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12.5px;
  color: #8090aa;
}
.channels-more::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(0, 201, 141, .12);
}

.rate-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 58px 0 20px;
  padding-top: 38px;
  border-top: 1px solid #e2eaf7;
}
.rate-headline .eyebrow { margin-bottom: 12px; }
.rate-headline h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; }
.rate-headline > p { max-width: 350px; font-size: 12.5px; line-height: 1.7; color: var(--muted); text-align: right; }

.rate-panels { scroll-margin-top: 96px; }

.rate-panel {
  display: none;
  padding: 34px 34px 30px;
  background: #fff;
  border: 1px solid #e6edf9;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 27, 53, .08);
}
.rate-panel.is-active { display: block; animation: panelIn .45s cubic-bezier(.2, .7, .2, 1); }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.rate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.rate-country { display: flex; align-items: center; gap: 14px; }
.rate-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #f5f8fd;
  border: 1px solid #e8eef9;
  flex-shrink: 0;
}
.rate-flag svg { width: 26px; height: 17px; border-radius: 3px; }
.rate-country h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.rate-country p { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.rate-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #53627c;
  background: #f4f7fd;
  border: 1px solid #e7eef9;
}
.rate-badge.is-open { color: #0a9c70; background: #ecfbf5; border-color: #cdf1e3; }
.rate-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b57f;
  box-shadow: 0 0 0 3px rgba(0, 181, 127, .14);
}

.rate-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.rate-kpi {
  padding: 14px 15px;
  border-radius: 13px;
  background: #f7f9fe;
  border: 1px solid #edf2fa;
}
.rate-kpi span { display: block; font-size: 11px; color: #8090aa; }
.rate-kpi b {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #1b2942;
  word-break: break-word;
}
.rate-kpi b.accent {
  font-size: 17px;
  background: linear-gradient(120deg, #2f4bd8, #00a97a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rate-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border: 1px solid #edf2fa;
  border-radius: 14px;
  overflow: hidden;
}
.rate-item { padding: 13px 18px; border-bottom: 1px solid #eef3fb; }
.rate-item:nth-child(odd) { border-right: 1px solid #eef3fb; }
.rate-item:last-child,
.rate-item:nth-last-child(2) { border-bottom: 0; }
.rate-item.span-2 { grid-column: span 2; border-right: 0; }
.rate-item span { display: block; font-size: 11px; letter-spacing: .04em; color: #8090aa; }
.rate-item p { margin-top: 3px; font-size: 13px; line-height: 1.65; color: #2c3852; }

.rate-notes {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fbfdff;
  border: 1px solid #edf2fa;
}
.rate-notes h4 { font-size: 13px; font-weight: 700; color: #1b2942; }
.rate-notes ol { display: grid; gap: 6px; margin-top: 10px; counter-reset: note; }
.rate-notes li {
  position: relative;
  padding-left: 20px;
  font-size: 12.8px;
  line-height: 1.75;
  color: #586885;
  counter-increment: note;
}
.rate-notes li::before {
  content: counter(note) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #8090aa;
}
.inner-note {
  margin-top: 16px;
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 12.3px;
  line-height: 1.65;
  color: #9a6a14;
  background: #fff8ec;
  border: 1px solid #ffe6bd;
}

/* ---------- 产品能力 ---------- */

.products { background: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  padding: 30px 26px 26px;
  background: #fff;
  border: 1px solid #e9eef8;
  border-radius: 20px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dde6f6; }
.product-card:hover::before { opacity: 1; }

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(140deg, #eef2ff, #e9fbf5);
  border: 1px solid #e3eafb;
}
.product-icon svg { width: 24px; height: 24px; }

.product-card h3 { margin-top: 20px; font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.product-card p { margin-top: 10px; font-size: 13.8px; line-height: 1.75; color: var(--muted); }

.product-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9aa9c2;
}

/* ---------- 技术接入 ---------- */

.developers {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 460px at 88% 0%, rgba(64, 87, 255, .26), transparent 62%),
    radial-gradient(620px 400px at 6% 96%, rgba(0, 201, 141, .12), transparent 60%),
    #081020;
}

.dev-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 60px;
  align-items: center;
}

.developers .section-head h2 { color: #fff; }
.developers .section-head p { color: #97a9c8; }
.developers .eyebrow { color: #6ee7bd; }

.dev-features { display: grid; gap: 26px; }
.dev-features li { display: flex; gap: 15px; }
.dev-icon { flex-shrink: 0; width: 38px; height: 38px; color: var(--mint-2); }
.dev-icon svg { width: 30px; height: 30px; }

.dev-features h3 { font-size: 15.5px; font-weight: 600; color: #eaf1ff; }
.dev-features p { margin-top: 5px; font-size: 13.5px; line-height: 1.75; color: #8fa2c1; }

.code-panel {
  border-radius: 20px;
  overflow: hidden;
  background: #0b172e;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .5);
}

.code-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .025);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; }
.code-dots i:nth-child(1) { background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }

.code-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
}

.code-tab {
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #8ea3c7;
  background: transparent;
  transition: background .25s ease, color .25s ease;
}
.code-tab:hover { color: #d6e2f8; }
.code-tab.is-active { background: rgba(64, 87, 255, .28); color: #fff; }

.copy-btn {
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  color: #9fb3d6;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .13);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.copy-btn.is-copied { color: #6ee7bd; border-color: rgba(0, 201, 141, .45); }

.code-body { padding: 22px 24px 24px; }

.code-block {
  display: none;
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.8;
  color: #d4e1f8;
  tab-size: 2;
}
.code-block.is-active { display: block; }
.code-block code { font-family: inherit; }

.tok-c { color: #5f7699; }
.tok-s { color: #7ef0c4; }
.tok-k { color: #a6b9ff; }
.tok-n { color: #ffc46b; }

/* ---------- 为什么选择我们 ---------- */

.why {
  background:
    radial-gradient(760px 420px at 100% 10%, rgba(64, 87, 255, .06), transparent 60%),
    #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 64px;
  align-items: center;
}

.why-list { display: grid; gap: 26px; }
.why-list li { display: flex; gap: 16px; }

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 18px rgba(64, 87, 255, .26);
}
.why-icon svg { width: 17px; height: 17px; }

.why-list h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.why-list p { margin-top: 6px; font-size: 13.8px; line-height: 1.75; color: var(--muted); }

.perf-card {
  position: relative;
  padding: 32px 30px 26px;
  border-radius: 24px;
  background: linear-gradient(175deg, #ffffff, #f7faff);
  border: 1px solid #e6edf9;
  box-shadow: 0 26px 60px rgba(17, 34, 68, .1);
}

.perf-badge {
  position: absolute;
  top: -15px;
  right: 24px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px rgba(64, 87, 255, .32);
}

.perf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.perf-head p { font-size: 13px; color: var(--muted); }
.perf-head strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, #1c2b4a, #0e9f78);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.perf-head strong span { font-size: .55em; }

.perf-tag {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: #0a9c70;
  background: #eafbf3;
  border: 1px solid #d3f4e5;
}

.perf-bars { display: grid; gap: 18px; margin-top: 28px; }

.perf-row {
  display: grid;
  grid-template-columns: 82px 1fr 56px;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #5c6b84;
}
.perf-row b { text-align: right; font-weight: 600; color: #17223a; font-variant-numeric: tabular-nums; }

.perf-row .track { height: 8px; background: #edf2fa; }
.perf-row .track i {
  background: linear-gradient(90deg, #4057ff, #00c98d);
  animation: none;
  width: 0;
  transition: width 1.3s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in .perf-row .track i { width: var(--v); }

.perf-foot {
  margin-top: 26px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  color: #3b54cf;
  background: #eef3ff;
  border: 1px solid #e0e8ff;
}

/* ---------- 接入流程 ---------- */

.process { background: var(--bg-soft); }

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

.step {
  position: relative;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid #e8eef9;
  border-radius: 18px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(64, 87, 255, .24);
}

.step h3 { margin-top: 18px; font-size: 16.5px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

/* ---------- 联系 ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 500px at 6% 0%, rgba(64, 87, 255, .34), transparent 60%),
    radial-gradient(680px 460px at 96% 88%, rgba(0, 201, 141, .16), transparent 62%),
    #081020;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 60px;
  align-items: start;
}

.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #9aaccb; }
.contact .eyebrow { color: #6ee7bd; }

.contact-list { display: grid; gap: 16px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, border-color .3s ease;
}
.contact-list li:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #6ee7bd;
  background: rgba(0, 201, 141, .1);
  border: 1px solid rgba(0, 201, 141, .18);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-list li > div span { display: block; font-size: 11.5px; color: #7f93b4; }
.contact-list a,
.contact-list b { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 500; color: #eaf1ff; line-height: 1.5; transition: color .25s ease; }
.contact-list a:hover { color: #6ee7bd; }

.contact-form {
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #46546e;
}
.field label i { font-style: normal; color: #00b57f; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 14px;
  height: 48px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #f6f8fd;
  border: 1px solid #e4ebf7;
  border-radius: 12px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.65; }
.field input::placeholder,
.field textarea::placeholder { color: #a4b0c5; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: #6d7dff;
  box-shadow: 0 0 0 4px rgba(64, 87, 255, .12);
}
.field input:invalid:not(:placeholder-shown) { border-color: #ff8a8a; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23718099' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
  color: var(--text);
}

.market-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #52617a;
  background: #f8faff;
  border: 1px solid #e4ebf7;
  cursor: pointer;
  transition: all .25s ease;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: #c9d5ee; }
.chip.is-active {
  color: #2c43d8;
  background: #eef2ff;
  border-color: #4057ff;
  box-shadow: 0 0 0 3px rgba(64, 87, 255, .08);
}

.contact-form .btn-block { margin-top: 24px; }

.form-note { margin-top: 14px; font-size: 11.5px; line-height: 1.7; color: #8b98af; text-align: center; }
.form-note a { color: #4057ff; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: #060b16;
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: #6ee7bd; }
.footer-brand p { max-width: 300px; margin-top: 18px; font-size: 13.5px; line-height: 1.85; color: #8b9bb8; }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: #7ef0c4;
  background: rgba(0, 201, 141, .07);
  border: 1px solid rgba(0, 201, 141, .18);
}

.footer-col h4 { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #fff; }
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: #8b9bb8;
  transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12.5px;
  color: #6b7b98;
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { transition: color .25s ease; }
.footer-legal a:hover { color: #cfdcf3; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  padding: 14px 24px;
  border-radius: 13px;
  font-size: 14px;
  color: #fff;
  background: rgba(14, 24, 45, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 138px; }
  .hero-lead { max-width: 620px; }
  .hero-visual { width: 100%; max-width: 540px; margin: 8px auto 0; min-height: 540px; }

  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .dev-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .why-grid .perf-card { max-width: 560px; }

  .rate-kpis { grid-template-columns: repeat(3, 1fr); }
  .rate-headline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rate-headline > p { text-align: left; max-width: 520px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 13, 28, .18);
    border: 1px solid #e9eef8;
  }
  .main-nav.open { display: flex; }

  .main-nav > a:not(.nav-cta) {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    color: #1c2740;
  }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .main-nav > a:not(.nav-cta):hover { background: #f4f7fd; color: #101a2e; }
  .site-header.scrolled .main-nav > a:not(.nav-cta) { color: #1c2740; }

  .nav-cta { margin-top: 8px; text-align: center; padding: 13px; }

  .hero h1 { font-size: clamp(2.1rem, 6vw, 2.9rem); }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .hero-inner { padding-top: 124px; padding-bottom: 40px; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .stat-num { font-size: 1.7rem; }

  .hero-visual { min-height: 620px; }
  .pay-card { top: 150px; left: 0; }
  .route-card { width: 226px; top: 0; right: -4px; padding: 15px; }
  .latency-card { width: 200px; left: -4px; bottom: 0; padding: 13px 15px; }

  .country-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .contact-form { padding: 26px 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .span-2 { grid-column: span 1; }

  .rate-panel { padding: 22px 20px 20px; }
  .rate-kpis { grid-template-columns: repeat(2, 1fr); }
  .rate-details { grid-template-columns: 1fr; }
  .rate-item:nth-child(odd) { border-right: 0; }
  .rate-item:nth-last-child(2) { border-bottom: 1px solid #eef3fb; }
  .rate-item.span-2 { grid-column: span 1; }
  .rate-country h3 { font-size: 18px; }
  .rate-flag { width: 40px; height: 40px; border-radius: 11px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }

  .footer-bottom { justify-content: flex-start; gap: 12px; }
  .footer-legal { gap: 18px; }

  .marquee-group span { font-size: 13.5px; }
  .marquee-group { gap: 26px; padding-right: 26px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; padding: 14px 18px; }
  .hero-points { gap: 8px 16px; }
  .hero-visual { min-height: 620px; }
  .pay-card { top: 155px; width: 86%; padding: 20px; }
  .pay-amount { font-size: 1.75rem; }
  .route-card { width: 205px; }
  .route-row { grid-template-columns: 48px 1fr 40px; gap: 8px; font-size: 11px; }
  .latency-card { width: 188px; gap: 10px; }
  .spark { width: 48px; }
  .perf-card { padding: 26px 20px 22px; }
  .perf-row { grid-template-columns: 68px 1fr 50px; gap: 10px; font-size: 11.5px; }
  .code-body { padding: 18px 16px 20px; }
  .code-block { font-size: 11.5px; }
  .code-topbar { flex-wrap: wrap; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
