/* ==========================================================================
   易芯付 · 新版首页模版 nova
   设计语言：年轻 / 干净 / 偏 iOS，主色 #1677FF，辅色 #FFB020
   ========================================================================== */

:root {
  --brand: #1677ff;
  --brand-2: #52a6ff;
  --brand-deep: #0b4fd8;
  --brand-soft: #eaf3ff;
  --accent: #ffb020;
  --ink: #22303c;
  --ink-2: #5c6b7a;
  --ink-3: #97a4b0;
  --line: rgba(34, 48, 60, 0.08);
  --bg: #fefdf8;
  --surface: #ffffff;
  --radius: 24px;
  --shadow-sm: 0 4px 16px rgba(22, 68, 130, 0.06);
  --shadow: 0 14px 40px rgba(22, 68, 130, 0.09);
  --shadow-lg: 0 30px 70px rgba(11, 79, 216, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 88% -12%, rgba(82, 166, 255, 0.20), transparent 62%),
    radial-gradient(760px 560px at -12% 8%, rgba(162, 217, 240, 0.34), transparent 62%),
    radial-gradient(820px 640px at 106% 78%, rgba(255, 176, 32, 0.10), transparent 66%);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254, 253, 248, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav-in {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
/* 公司 logo 是透明底的 3D 图形，不能加圆角裁切和外发光，否则轮廓会被切/发蓝 */
.logo img { width: 42px; height: 42px; object-fit: contain; border-radius: 0; box-shadow: none; }
.logo b { font-size: 17px; letter-spacing: -0.2px; }
.logo span { font-size: 11px; color: var(--ink-3); padding: 2px 7px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 12px;
  transition: all 0.18s;
}
.nav-links a:hover { color: var(--brand); background: rgba(22, 119, 255, 0.07); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 21px;
  font-size: 14.5px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #3b8bff 0%, #1677ff 52%, #0b4fd8 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(22, 119, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(22, 119, 255, 0.36); }
.btn-ghost { background: rgba(255, 255, 255, 0.85); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: rgba(22, 119, 255, 0.3); }
.btn-lg { height: 52px; padding: 0 30px; border-radius: 26px; font-size: 16px; }
.burger { display: none; }

/* ---------------- Hero ---------------- */
.hero { padding: 76px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 8px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(22, 119, 255, 0.16);
  font-size: 13px; color: var(--brand); font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill i {
  font-style: normal; background: var(--brand-soft); color: var(--brand);
  padding: 3px 9px; border-radius: 20px; font-size: 11px;
}

h1.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.16; letter-spacing: -1.6px; font-weight: 800;
  margin-bottom: 20px;
}
h1.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #1677ff 0%, #52a6ff 55%, #0b4fd8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 540px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.dot-ok { width: 6px; height: 6px; border-radius: 50%; background: #0f9d76; display: inline-block; }

/* 手机预览 */
.phone-box { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; height: 600px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #e8eef7 0%, #cfd9e6 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: #fefdf8; position: relative; padding: 18px 16px;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: 0 0 16px 16px; background: #cfd9e6;
  z-index: 3;
}
.mini-hero {
  margin-top: 30px; border-radius: 22px; padding: 18px 18px 16px;
  background: linear-gradient(146deg, #3d8bff, #1677ff 46%, #0a48c8);
  color: #fff; box-shadow: 0 18px 34px rgba(11, 79, 216, 0.34);
  position: relative; overflow: hidden;
}
.mini-hero::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -60px; top: -80px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
}
.mini-hero small { font-size: 11px; opacity: 0.82; }
.mini-hero .m {
  font-size: 30px; font-weight: 700; letter-spacing: -0.6px; margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.mini-hero .s { font-size: 11px; opacity: 0.8; }
.mini-actions { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.mini-actions span {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600;
  padding: 8px 0; border-radius: 12px; background: #fff; color: var(--brand-deep);
}
.mini-actions span.ghost { background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }

.mini-card {
  background: #fff; border-radius: 18px; padding: 14px; margin-top: 12px;
  box-shadow: 0 8px 22px rgba(22, 68, 130, 0.08);
}
.mini-card .t { font-size: 12px; font-weight: 600; }
.mini-card .v { font-size: 19px; font-weight: 700; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.mini-bars i {
  flex: 1; border-radius: 6px; background: linear-gradient(180deg, #a8cdfb, #dcebfd);
  display: block;
}
.mini-bars i.on { background: linear-gradient(180deg, #1677ff, #6fb2ff); }

.mini-row {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px;
  padding: 12px; margin-top: 10px; box-shadow: 0 8px 22px rgba(22, 68, 130, 0.07);
}
.mini-row .ic {
  width: 32px; height: 32px; border-radius: 11px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--brand);
  font-weight: 700;
}
.mini-row .n { font-size: 12px; font-weight: 600; }
.mini-row .d { font-size: 10px; color: var(--ink-3); }
.mini-row .a { margin-left: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.float-card {
  position: absolute; background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 16px;
  padding: 11px 15px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(12px); animation: floaty 5s ease-in-out infinite;
}
.float-card .fi {
  width: 26px; height: 26px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 13px;
}
.float-card .fi svg { width: 13px; height: 13px; display: block; }
.float-card.one { left: -42px; top: 96px; }
.float-card.two { right: -26px; bottom: 132px; animation-delay: 1.6s; }
.float-card.one .fi { background: #e8f8f0; color: #0f9d76; }
.float-card.two .fi { background: #fff4e0; color: #c07d00; }

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

/* ---------------- 能力条 ---------------- */
.stats { padding: 26px 0 10px; }
.stats-in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 10px;
  backdrop-filter: blur(16px);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 40px; background: var(--line);
}
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.8px; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ---------------- 通用 section ---------------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-tag {
  font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.6px;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -1px; font-weight: 800; line-height: 1.25; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* 卡片网格 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.24s cubic-bezier(0.22, 0.68, 0.36, 1), box-shadow 0.24s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 18px;
}
/* 图标统一用内联 SVG（stroke=currentColor 继承下面的 ic-xxx 配色） */
.card .ic svg { width: 24px; height: 24px; display: block; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.ic-blue { background: var(--brand-soft); color: var(--brand); }
.ic-green { background: #e6f8f0; color: #0f9d76; }
.ic-orange { background: #fff4e0; color: #c07d00; }
.ic-purple { background: #f1ecff; color: #7b61ff; }
.ic-red { background: #fdecec; color: #e0575b; }
.ic-cyan { background: #e6f6fd; color: #0b8ed6; }

/* 支付方式 */
.pay-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pay-item {
  display: flex; align-items: center; gap: 12px; padding: 20px 18px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9); transition: all 0.22s;
}
.pay-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pay-item .logo-dot {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 700; color: #fff;
}
.pay-item b { font-size: 14.5px; }
.pay-item small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }

/* 接入三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step .no {
  width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  margin-bottom: 16px; box-shadow: 0 8px 18px rgba(22, 119, 255, 0.28);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); }
.step code {
  display: block; margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: #f5f8fc; color: #3c5b7a; font-size: 12px; font-family: "SFMono-Regular", Consolas, monospace;
  overflow-x: auto; white-space: nowrap;
}

/* App 下载区 */
.app-band {
  background: linear-gradient(140deg, #2f83ff 0%, #1677ff 46%, #0a48c8 100%);
  border-radius: 34px; padding: 52px 48px; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.app-band::after {
  content: ""; position: absolute; right: -100px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 68%);
}
.app-band::before {
  content: ""; position: absolute; left: 42%; bottom: -160px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, 0.34), transparent 68%);
}
.app-band-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 30px; align-items: center; }
.app-band h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.8px; line-height: 1.3; }
.app-band p { margin-top: 12px; color: rgba(255, 255, 255, 0.84); font-size: 15px; max-width: 560px; }
.app-feats { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }
.app-feats span::before { content: "✓"; margin-right: 7px; color: #ffd27a; font-weight: 700; }
.app-band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 28px rgba(3, 30, 80, 0.24); }
.app-band .btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.app-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border-radius: 18px; padding: 4px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, 0.9);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; color: var(--brand); }
.faq p { padding-bottom: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }

/* CTA */
.cta { text-align: center; padding: 20px 0 96px; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; font-weight: 800; }
.cta p { margin: 14px 0 28px; color: var(--ink-2); }

/* Footer */
.foot {
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  padding: 44px 0 34px; backdrop-filter: blur(12px);
}
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .logo { margin-bottom: 12px; }
.foot-brand .logo img { width: 38px; height: 38px; }
.foot-brand p { font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col b { display: block; font-size: 13.5px; margin-bottom: 12px; }
.foot-col a { display: block; font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.foot-col a:hover { color: var(--brand); }
.copy {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* 回到顶部 */
.top-btn {
  position: fixed; right: 26px; bottom: 30px; width: 46px; height: 46px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 17px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: all 0.24s; backdrop-filter: blur(10px); z-index: 90;
}
.top-btn.on { opacity: 1; pointer-events: auto; }
.top-btn:hover { transform: translateY(-3px); }

/* 滚动进场：由 foot.php 给元素加 .rv，进入视口后加 .in。
   JS 未执行时元素不会带 .rv，所以内容始终可见（渐进增强）。 */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .68, .36, 1);
}
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone-box { order: -1; transform: scale(0.92); }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(3)::before { display: none; }
  .grid-4, .pay-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .app-band-in { grid-template-columns: 1fr; }
  .app-actions { flex-direction: row; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .hero { padding: 44px 0 24px; }
  .section { padding: 58px 0; }
  .phone { width: 268px; height: 540px; }
  .float-card.one { left: -6px; top: 70px; }
  .float-card.two { right: -6px; bottom: 108px; }
  .nav-actions .btn-ghost { display: none; }
  .logo img { width: 34px; height: 34px; }
  .logo b { font-size: 16px; }
  .app-band { padding: 34px 24px; border-radius: 26px; }
  .foot-in { flex-direction: column; }
  .copy { flex-direction: column; }
}

/* 超窄屏（iPhone SE 一类）：让出「免签约」胶囊，保证注册按钮不贴边 */
@media (max-width: 430px) {
  .logo { gap: 8px; }
  .logo span { display: none; }
  .nav-actions .btn { padding: 0 18px; }
}
