/* ==========================================================================
   智能电子名片 SAAS — 名片 H5 / 欢迎页样式
   ========================================================================== */

:root {
  --bg: #0b1f3a;
  --bg2: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --primary: #22d3ee;
  --success: #34d399;
  --grad: linear-gradient(120deg, #fbbf24 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(251, 191, 36, .12), rgba(34, 211, 238, .08));
  --font: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg2); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--grad); color: #0b1f3a;
  border: 0; cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 14px rgba(251, 191, 36, .25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(251, 191, 36, .35); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255, 255, 255, .1); color: var(--text); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .18); }
.btn.lg { padding: 14px 32px; font-size: 16px; }
.btn.sm { padding: 6px 14px; font-size: 12px; }
.btn.block { width: 100%; }

/* ---------- 渐变背景 ---------- */
.grad-bg { background: var(--grad); }
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5; pointer-events: none;
  animation: glow-float 8s ease-in-out infinite;
}
@keyframes glow-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* ---------- 通用容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, .85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 1px;
}
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ---------- Hero（欢迎页主视觉） ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%;
  width: 800px; height: 800px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(251, 191, 36, .15), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.2;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.hero h1 .grad-text { display: block; }
.hero .lead {
  font-size: 18px; color: var(--muted); max-width: 680px;
  margin: 0 auto 36px; line-height: 1.7;
  position: relative; z-index: 1;
}
.hero .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 800px; margin: 60px auto 0;
  position: relative; z-index: 1;
}
.hero-stat .v {
  font-size: 32px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
}

/* ---------- Feature 卡片 ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, .4);
  box-shadow: 0 12px 30px rgba(251, 191, 36, .1);
}
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  color: var(--accent);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Section 标题 ---------- */
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title .eyebrow {
  display: inline-block; padding: 4px 14px;
  background: var(--grad-soft); color: var(--accent);
  border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 38px; font-weight: 800; margin-bottom: 12px;
}
.section-title p { color: var(--muted); font-size: 15px; max-width: 600px; margin: 0 auto; }
@media (max-width: 600px) { .section-title h2 { font-size: 26px; } }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted); font-size: 13px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center;
}
.footer a { color: var(--muted); transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   名片 H5 落地页
   ========================================================================== */
.card-h5 {
  max-width: 480px; margin: 0 auto;
  min-height: 100vh;
  position: relative; overflow: hidden;
}
.card-h5 .cover {
  height: 220px;
  background: var(--grad);
  position: relative; overflow: hidden;
}
.card-h5 .cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 31, 58, 1));
}
.card-h5 .avatar-wrap {
  position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.card-h5 .avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 4px solid var(--bg2);
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #0b1f3a; font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.card-h5 .info {
  text-align: center; padding: 50px 24px 24px;
}
.card-h5 .name { font-size: 22px; font-weight: 700; }
.card-h5 .title { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-h5 .company { color: var(--accent); font-size: 13px; margin-top: 6px; }
.card-h5 .slogan { color: var(--muted); font-size: 13px; margin-top: 12px; font-style: italic; }
.card-h5 .vip-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(251, 191, 36, .2), rgba(34, 211, 238, .15));
  border: 1px solid rgba(251, 191, 36, .3);
  color: var(--accent); font-size: 11px; font-weight: 600;
  margin-top: 10px;
}
.card-h5 .actions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 16px 20px;
}
.card-h5 .action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px; font-size: 11px; color: var(--muted);
  transition: all .2s;
}
.card-h5 .action:hover { background: rgba(251, 191, 36, .12); color: var(--accent); transform: translateY(-2px); }
.card-h5 .action .i {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent);
}
.card-h5 .section {
  padding: 0 20px 20px;
}
.card-h5 .sec-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
  color: var(--text);
}
.card-h5 .sec-title::before {
  content: ''; width: 3px; height: 14px; background: var(--grad); border-radius: 2px;
}
.card-h5 .info-list { display: flex; flex-direction: column; gap: 8px; }
.card-h5 .info-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .04);
  border-radius: 10px;
  font-size: 13px;
}
.card-h5 .info-item .i { color: var(--accent); width: 20px; text-align: center; }
.card-h5 .info-item a:hover { color: var(--accent); }

.card-h5 .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card-h5 .product {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px; overflow: hidden;
  transition: all .2s;
}
.card-h5 .product:hover { transform: translateY(-2px); border-color: rgba(251, 191, 36, .4); }
.card-h5 .product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: rgba(255, 255, 255, .05); }
.card-h5 .product .p { padding: 10px; }
.card-h5 .product .n { font-size: 13px; font-weight: 600; }
.card-h5 .product .pr { color: var(--accent); font-size: 14px; font-weight: 700; margin-top: 4px; }

.card-h5 .lead-form {
  padding: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}
.card-h5 .lead-form input, .card-h5 .lead-form textarea {
  width: 100%; padding: 10px 12px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px; color: var(--text); font-size: 13px;
  margin-bottom: 8px;
}
.card-h5 .lead-form input:focus, .card-h5 .lead-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.card-h5 .lead-form button {
  width: 100%; padding: 12px;
  background: var(--grad); color: #0b1f3a;
  border: 0; border-radius: 8px; font-weight: 700; font-size: 14px;
}

.card-h5 .fab {
  position: fixed; right: 16px; bottom: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); color: #0b1f3a;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(251, 191, 36, .4);
  z-index: 100;
  animation: fab-bounce 2s ease-in-out infinite;
}
@keyframes fab-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.card-h5 .bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(11, 31, 58, .95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 12px 16px;
  display: flex; gap: 8px;
  z-index: 99;
}
.card-h5 .bottom-bar button, .card-h5 .bottom-bar a {
  flex: 1; padding: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; color: var(--text);
  font-size: 13px; text-align: center;
}
.card-h5 .bottom-bar .primary { background: var(--grad); color: #0b1f3a; border: 0; font-weight: 700; }
.card-h5.has-bottom-bar { padding-bottom: 80px; }

/* ==========================================================================
   海报页
   ========================================================================== */
.poster-page {
  max-width: 420px; margin: 30px auto;
  background: #fff; color: #0f172a;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.poster-page .top { background: var(--grad); padding: 24px; text-align: center; color: #fff; }
.poster-page .top h1 { font-size: 22px; font-weight: 800; }
.poster-page .top p { font-size: 13px; opacity: .9; margin-top: 4px; }
.poster-page .qr-area {
  padding: 30px; text-align: center;
}
.poster-page .qr-area img { width: 240px; height: 240px; margin: 0 auto; border: 8px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.poster-page .qr-area .tip { color: #64748b; font-size: 13px; margin-top: 16px; }
.poster-page .footer-info { padding: 20px 24px; background: #f8fafc; text-align: center; font-size: 12px; color: #64748b; }

/* ==========================================================================
   错误页（404/500）
   ========================================================================== */
.err-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(251, 191, 36, .08), transparent 60%);
}
.err-card {
  max-width: 480px; text-align: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px; padding: 50px 40px;
  backdrop-filter: blur(20px);
}
.err-card .code {
  font-size: 96px; font-weight: 900; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.err-card h1 { font-size: 22px; margin-bottom: 12px; }
.err-card p { color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.err-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-card .illust {
  font-size: 64px; margin-bottom: 16px;
  display: inline-block;
  animation: illust-float 3s ease-in-out infinite;
}
@keyframes illust-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}