/* ==========================================================================
   首页专属样式
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* 不要写死 100dvh：视口很高时会把内容撑散。用 min-height + 内容自然撑开 */
  min-height: min(100dvh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  background: var(--navy-800);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bg-dark.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 14% 8%,  rgba(0, 212, 170, 0.20), transparent 62%),
    radial-gradient(760px 420px at 92% 88%, rgba(22, 74, 120, 0.42), transparent 66%),
    linear-gradient(160deg, rgba(7, 26, 47, 0.55), rgba(10, 37, 64, 0.88));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.10);
  border: 1px solid rgba(0, 212, 170, 0.28);
  color: var(--teal-500);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero__accent {
  color: var(--teal-500);
  position: relative;
  white-space: nowrap;
}
.hero__accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-500), rgba(0, 212, 170, 0.1));
}

.hero__lede {
  margin-top: 26px;
  max-width: 54ch;
  font-size: 17.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  margin: 56px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  justify-content: start;
}
.hero__stats div { display: grid; gap: 3px; }
.hero__stats dt {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  color: var(--teal-500);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__stats dd {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}

/* ---------- Hero 右侧流转卡 ---------- */
.hero__visual { display: flex; justify-content: flex-end; }

.flowcard {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 40px 80px -40px rgba(0, 0, 0, 0.7);
  animation: floatY 8s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.flowcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.flowcard__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.flow { list-style: none; margin: 0; padding: 0; position: relative; }
/* 竖向连接线 */
.flow::before {
  content: "";
  position: absolute;
  left: 7px; top: 18px; bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(0, 212, 170, 0.5), rgba(0, 212, 170, 0.16));
}

.flow__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 11px 0;
}

.flow__dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.16);
}

.flow__step div { display: grid; gap: 2px; }
.flow__step strong {
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.06em;
}
.flow__step small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* 淂翼卡：金色圆点，与青绿主色区分 */
.flow__step--card .flow__dot {
  background: #D8B978;
  box-shadow: 0 0 0 4px rgba(216, 185, 120, 0.18);
}
.flow__step--card strong { color: #E8D3A4; }

.flowcard__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.flowcard__foot span {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.24);
  font-size: 12.5px;
  color: var(--teal-500);
  font-weight: 600;
}

/* ---------- 体系总览 ---------- */
.sysgrid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

/* 六个产品时用 3×2 网格，避免卡片过窄 */
.sysgrid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.syscard {
  position: relative;
  padding: 30px 24px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease),
              border-color 0.34s var(--ease);
}
.syscard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.syscard:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -26px rgba(10, 37, 64, 0.3); border-color: #C7D6E4; }
.syscard:hover::before { transform: scaleX(1); }

.syscard__num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-600);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.syscard h3 { font-size: 18px; margin-bottom: 5px; }
.syscard__en {
  font-size: 12.5px !important;
  color: var(--teal-700) !important;
  font-weight: 600;
  margin-bottom: 14px !important;
}
.syscard p { font-size: 14.5px; line-height: 1.75; color: var(--ink-500); }

/* 淂翼卡：金色系以呼应 LOGO 与卡面 */
.syscard--deyi {
  background: linear-gradient(155deg, #FFFDF8, #FBF6EA);
  border-color: #E8D9B4;
}
.syscard--deyi::before { background: #C9A961; }
.syscard--deyi .syscard__num { color: #A8863C; }
.syscard--deyi .syscard__en { color: #A8863C !important; }
.syscard--deyi:hover { border-color: #D9C48C; }

.syscard__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(201, 169, 97, 0.14);
  border: 1px solid rgba(201, 169, 97, 0.42);
  color: #8A6B24;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.syscard__link:hover {
  background: rgba(201, 169, 97, 0.24);
  border-color: #C9A961;
  transform: translateY(-1px);
}
.syscard__link:active { transform: scale(0.97); }
.syscard__link svg { width: 14px; height: 14px; }

.sysnote {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--ink-400);
  text-align: center;
}
.sysnote a {
  color: var(--teal-700);
  font-weight: 600;
  border-bottom: 1px solid rgba(14, 143, 115, 0.32);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.sysnote a:hover { color: var(--teal-600); border-bottom-color: var(--teal-600); }

/* ---------- 支付产品网格 ---------- */
.paygrid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.paycard {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.028);
  transition: background 0.28s var(--ease);
}
.paycard:hover { background: rgba(0, 212, 170, 0.09); }
.paycard h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--teal-500);
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.paycard p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

/* 可点击产品卡：箭头 + 轻微上浮，表明可进入 */
.paycard--link { position: relative; }
.paycard--link h4 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.paycard--link .paycard__arrow {
  flex: 0 0 auto;
  display: block;
  width: 14px;
  height: 14px;
  opacity: 0.45;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.paycard--link:hover {
  background: rgba(0, 212, 170, 0.13);
  transform: translateY(-2px);
}
.paycard--link:hover .paycard__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}
.paycard--link:active { transform: scale(0.99); }

/* ---------- 合作渠道 ---------- */
.chanlist {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.chan {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.chan:hover {
  transform: translateY(-4px);
  border-color: #C7D6E4;
  box-shadow: 0 16px 32px -20px rgba(10, 37, 64, 0.3);
}
.chan img { max-height: 40px; width: auto; object-fit: contain; }

/* ---------- 行业场景 ---------- */
.scengrid { margin-top: 52px; }

.scen {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
              border-color 0.32s var(--ease);
}
.scen:hover {
  transform: translateY(-4px);
  border-color: #C7D6E4;
  box-shadow: 0 20px 42px -24px rgba(10, 37, 64, 0.28);
}
.scen__logo {
  flex-shrink: 0;
  width: 92px; height: 92px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scen__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.scen__body { display: grid; gap: 10px; }
.scen__body h3 { font-size: 19px; }
.scen__body p { font-size: 14.5px; color: var(--ink-500); line-height: 1.78; }

/* ---------- 安全合规 ---------- */
.sec-trust { position: relative; }
.trustgrid { margin-top: 52px; }

.trust {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease),
              border-color 0.32s var(--ease);
}
.trust:hover {
  transform: translateY(-4px);
  background: rgba(0, 212, 170, 0.07);
  border-color: rgba(0, 212, 170, 0.32);
}
.trust svg {
  width: 30px; height: 30px;
  color: var(--teal-500);
  margin-bottom: 18px;
}
.trust h3 { font-size: 17px; margin-bottom: 10px; }
.trust p { font-size: 14.5px; line-height: 1.78; color: rgba(255, 255, 255, 0.6); }

/* ---------- 合作优势 ---------- */
.whygrid {
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why {
  padding: 34px 30px;
  background: var(--white);
  transition: background 0.28s var(--ease);
}
.why:hover { background: #FBFDFE; }
.why__n {
  display: block;
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-600);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.why h3 { font-size: 18px; margin-bottom: 9px; }
.why p { font-size: 14.5px; color: var(--ink-500); line-height: 1.78; }

/* ---------- CTA ---------- */
.cta {
  padding: 0 0 clamp(72px, 9vw, 108px);
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 52px 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(0, 212, 170, 0.18), transparent 62%),
    linear-gradient(120deg, var(--navy-800), var(--navy-700));
  position: relative;
  overflow: hidden;
}
.cta__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bg-dark.png");
  background-size: cover;
  opacity: 0.18;
  pointer-events: none;
}
.cta__inner > * { position: relative; z-index: 1; }
.cta__inner h2 { color: var(--white); }
.cta__inner p {
  margin-top: 10px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.68);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 52px; }
  .hero__visual { justify-content: flex-start; }
  .flowcard { max-width: 480px; }
  .sysgrid, .sysgrid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .paygrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chanlist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .whygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 64px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
  .sysgrid, .sysgrid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chanlist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .whygrid { grid-template-columns: 1fr; }
  .scen { flex-direction: column; gap: 20px; }
  .cta__inner { padding: 38px 30px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; min-width: 190px; }
}

@media (max-width: 520px) {
  .sysgrid, .sysgrid--6, .paygrid, .chanlist { grid-template-columns: 1fr; }
  .chan { height: 78px; }
  .hero__actions .btn { width: 100%; }
  .flowcard { padding: 22px; }
}