/* 春凯科技 · 电子名片 —— 样式（移动端优先，375/390/430 自适应，PC 居中卡片） */

:root {
  --brand: #2E8DDE;
  --brand2: #3FCBD9;
  --ink: #16232E;
  --sub: #5B7285;
  --muted: #93A6B4;
  --line: #E6EFF5;
  --page: #EFF5F9;
  --radius: 14px;
  --maxw: 480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  overflow: hidden;
}

@media (min-width: 640px) {
  body { padding: 24px 0; }
  .wrap { border-radius: 18px; box-shadow: 0 12px 40px rgba(22, 35, 46, .10); min-height: 0; }
}

/* ---------- 首屏 ---------- */
.hero-banner { width: 100%; background: #F4FAFE; }
.hero-text { padding: 20px 22px 22px; text-align: center; }
.hero-brand { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--brand); }
.hero-name { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.hero-tagline { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--brand); }
.hero-intro {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: #F5FAFD; font-size: 13.5px; line-height: 1.85; color: var(--sub); text-align: left;
}

/* ---------- 区块 ---------- */
.section { padding: 22px 18px 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.section-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
}

/* ---------- 主业务卡 ---------- */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  padding: 15px 15px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 1px 2px rgba(22, 35, 46, .04);
}
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-title { font-size: 16px; font-weight: 700; }
.badge {
  padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 600; line-height: 1.5;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand2));
}
.badge.alt { color: var(--brand); background: #fff; border: 1px solid #BBDCF3; }
.card-desc { margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--sub); }
.card-act { margin-top: 12px; }

/* AI金融卡的两个子条 */
.subs { margin-top: 6px; }
.sub { padding: 12px 0 0; }
.sub + .sub { margin-top: 12px; border-top: 1px dashed var(--line); }
.sub-title { font-size: 14.5px; font-weight: 600; }
.sub-desc { margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: var(--sub); }
.sub .card-act { margin-top: 10px; }

/* ---------- 按钮（宽度按内容自适应） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border: 0; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  box-shadow: 0 4px 12px rgba(46, 141, 222, .22);
}
.btn:active { opacity: .86; }
.btn.ghost { color: var(--brand); background: #fff; border: 1px solid #BBDCF3; box-shadow: none; }
.btn.ghost:active { background: #F4FAFE; }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- 小程序码 ---------- */
.qrcode { margin-top: 12px; padding: 14px 10px 12px; border-radius: 12px; background: #F5FAFD; text-align: center; }
.qrcode img { width: 150px; height: 150px; margin: 0 auto; border-radius: 8px; background: #fff; }
.qrcode-tip { margin-top: 8px; font-size: 12px; color: var(--sub); }
@media (max-width: 359px) { .qrcode img { width: 132px; height: 132px; } }

/* ---------- 更多业务（竖排小卡） ---------- */
.mini { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.mini li { padding: 13px 15px; }
.mini li + li { border-top: 1px solid var(--line); }
.mini-title { font-size: 14px; font-weight: 600; }
.mini-desc { margin-top: 3px; font-size: 12.5px; line-height: 1.65; color: var(--sub); }

/* ---------- 尾部灰字 ---------- */
.tail { margin: 20px 18px 0; font-size: 12px; line-height: 1.75; color: var(--muted); text-align: center; }

/* ---------- 底部 ---------- */
.footer {
  margin-top: 22px; padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  background: #F7FBFD; border-top: 1px solid var(--line); text-align: center;
}
.trust { font-size: 12.5px; line-height: 1.7; color: var(--sub); }
.callbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; height: 48px; padding: 0 26px; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  box-shadow: 0 6px 18px rgba(46, 141, 222, .28);
}
.callbtn:active { opacity: .88; }
.callbtn svg { width: 17px; height: 17px; fill: currentColor; }
.call-tip { display: block; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.meta { margin-top: 16px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.meta a { color: var(--muted); }
.meta .sep { margin: 0 6px; }

/* ---------- 载入 / 出错 / 无 JS ---------- */
.loading { padding: 90px 20px; text-align: center; font-size: 13px; color: var(--muted); }
.loaderr { padding: 40px 20px; text-align: center; font-size: 13px; line-height: 1.9; color: #C0392B; }
.loaderr code { font-size: 12px; color: var(--sub); word-break: break-all; }
.noscript { padding: 40px 22px; text-align: center; font-size: 14px; line-height: 2; color: var(--sub); }
.noscript strong { color: var(--ink); font-size: 17px; }
.noscript .meta { margin-top: 18px; font-size: 11px; color: var(--muted); }

#contact { scroll-margin-top: 12px; }
